Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for GNU FriBidi 1.0.16.
4 #
5 # Report bugs to <https://github.com/fribidi/fribidi/issues/new>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: https://github.com/fribidi/fribidi/issues/new about
280 $0: your system, including any error possibly output before
281 $0: this message. Then install a modern shell, or manually
282 $0: run the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='GNU FriBidi'
623 PACKAGE_TARNAME='fribidi'
624 PACKAGE_VERSION='1.0.16'
625 PACKAGE_STRING='GNU FriBidi 1.0.16'
626 PACKAGE_BUGREPORT='https://github.com/fribidi/fribidi/issues/new'
627 PACKAGE_URL='http://fribidi.org/'
628
629 ac_unique_file="fribidi.pc.in"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 LIBOBJS
666 ENABLE_SHARED_FALSE
667 ENABLE_SHARED_TRUE
668 FRIBIDI_CPPFLAGS
669 LDFLAGS_FOR_BUILD
670 CPPFLAGS_FOR_BUILD
671 CFLAGS_FOR_BUILD
672 BUILD_OBJEXT
673 BUILD_EXEEXT
674 CPP_FOR_BUILD
675 ac_ct_CC_FOR_BUILD
676 CC_FOR_BUILD
677 SIZEOF_INT
678 CPP
679 PLATFORM_WIN32_FALSE
680 PLATFORM_WIN32_TRUE
681 OS_WIN32_FALSE
682 OS_WIN32_TRUE
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 LT_CURRENT_MINUS_AGE
687 LT_VERSION_INFO
688 FRIBIDI_MSVC_BUILD_PLACEHOLDER
689 FRIBIDI_BINARY_AGE
690 FRIBIDI_INTERFACE_AGE
691 FRIBIDI_INTERFACE_VERSION
692 FRIBIDI_VERSION
693 FRIBIDI_MICRO_VERSION
694 FRIBIDI_MINOR_VERSION
695 FRIBIDI_MAJOR_VERSION
696 LT_SYS_LIBRARY_PATH
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 MANIFEST_TOOL
703 RANLIB
704 DLLTOOL
705 OBJDUMP
706 LN_S
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LD
711 FGREP
712 EGREP
713 GREP
714 SED
715 host_os
716 host_vendor
717 host_cpu
718 host
719 build_os
720 build_vendor
721 build_cpu
722 build
723 LIBTOOL
724 am__fastdepCC_FALSE
725 am__fastdepCC_TRUE
726 CCDEPMODE
727 am__nodep
728 AMDEPBACKSLASH
729 AMDEP_FALSE
730 AMDEP_TRUE
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 ac_ct_AR
741 AR
742 AM_BACKSLASH
743 AM_DEFAULT_VERBOSITY
744 AM_DEFAULT_V
745 AM_V
746 CSCOPE
747 ETAGS
748 CTAGS
749 am__untar
750 am__tar
751 AMTAR
752 am__leading_dot
753 SET_MAKE
754 AWK
755 mkdir_p
756 MKDIR_P
757 INSTALL_STRIP_PROGRAM
758 STRIP
759 install_sh
760 MAKEINFO
761 AUTOHEADER
762 AUTOMAKE
763 AUTOCONF
764 ACLOCAL
765 VERSION
766 PACKAGE
767 CYGPATH_W
768 am__isrc
769 INSTALL_DATA
770 INSTALL_SCRIPT
771 INSTALL_PROGRAM
772 target_alias
773 host_alias
774 build_alias
775 LIBS
776 ECHO_T
777 ECHO_N
778 ECHO_C
779 DEFS
780 mandir
781 localedir
782 libdir
783 psdir
784 pdfdir
785 dvidir
786 htmldir
787 infodir
788 docdir
789 oldincludedir
790 includedir
791 runstatedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL
811 am__quote'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_silent_rules
816 enable_dependency_tracking
817 enable_static
818 enable_shared
819 with_pic
820 enable_fast_install
821 with_aix_soname
822 with_gnu_ld
823 with_sysroot
824 enable_libtool_lock
825 enable_debug
826 enable_deprecated
827 '
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 LT_SYS_LIBRARY_PATH
837 PKG_CONFIG
838 PKG_CONFIG_PATH
839 PKG_CONFIG_LIBDIR
840 CPP'
841
842
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
864
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 runstatedir='${localstatedir}/run'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
891
892 ac_prev=
893 ac_dashdash=
894 for ac_option
895 do
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
901 fi
902
903 case $ac_option in
904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *=) ac_optarg= ;;
906 *) ac_optarg=yes ;;
907 esac
908
909 case $ac_dashdash$ac_option in
910 --)
911 ac_dashdash=yes ;;
912
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
917
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
922
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
929
930 --config-cache | -C)
931 cache_file=config.cache ;;
932
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
937
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
944
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: \`$ac_useropt'"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
960
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
965
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
970
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error $? "invalid feature name: \`$ac_useropt'"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
986
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
995
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
999
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1006
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1011
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1017
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1024
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1029
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1034
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1041
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1046
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1053
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1058
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1062
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1066
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1070
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1079
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1084
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1091
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1098
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1115
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1120
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1125
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1129
1130 -runstatedir | --runstatedir | --runstatedi | --runstated \
1131 | --runstate | --runstat | --runsta | --runst | --runs \
1132 | --run | --ru | --r)
1133 ac_prev=runstatedir ;;
1134 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1135 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1136 | --run=* | --ru=* | --r=*)
1137 runstatedir=$ac_optarg ;;
1138
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
1143 sbindir=$ac_optarg ;;
1144
1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147 | --sharedst | --shareds | --shared | --share | --shar \
1148 | --sha | --sh)
1149 ac_prev=sharedstatedir ;;
1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 | --sha=* | --sh=*)
1154 sharedstatedir=$ac_optarg ;;
1155
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
1159 site=$ac_optarg ;;
1160
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164 srcdir=$ac_optarg ;;
1165
1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167 | --syscon | --sysco | --sysc | --sys | --sy)
1168 ac_prev=sysconfdir ;;
1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171 sysconfdir=$ac_optarg ;;
1172
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
1174 ac_prev=target_alias ;;
1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176 target_alias=$ac_optarg ;;
1177
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1180
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
1183
1184 -with-* | --with-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: \`$ac_useropt'"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=\$ac_optarg ;;
1199
1200 -without-* | --without-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: \`$ac_useropt'"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=no ;;
1215
1216 --x)
1217 # Obsolete; use --with-x.
1218 with_x=yes ;;
1219
1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221 | --x-incl | --x-inc | --x-in | --x-i)
1222 ac_prev=x_includes ;;
1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225 x_includes=$ac_optarg ;;
1226
1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;;
1233
1234 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1235 Try \`$0 --help' for more information"
1236 ;;
1237
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 case $ac_envvar in #(
1242 '' | [0-9]* | *[!_$as_cr_alnum]* )
1243 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1244 esac
1245 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;;
1247
1248 *)
1249 # FIXME: should be removed in autoconf 3.0.
1250 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254 ;;
1255
1256 esac
1257 done
1258
1259 if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 as_fn_error $? "missing argument to $ac_option"
1262 fi
1263
1264 if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1266 no) ;;
1267 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1268 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1270 fi
1271
1272 # Check all directory arguments for consistency.
1273 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir runstatedir
1277 do
1278 eval ac_val=\$$ac_var
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1291 done
1292
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1296 build=$build_alias
1297 host=$host_alias
1298 target=$target_alias
1299
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 elif test "x$build_alias" != "x$host_alias"; then
1305 cross_compiling=yes
1306 fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 as_fn_error $? "working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 as_fn_error $? "pwd does not report name of working directory"
1321
1322
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 printf "%s\n" X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\).*/{
1346 s//\1/
1347 q
1348 }
1349 s/.*/./; q'`
1350 srcdir=$ac_confdir
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 srcdir=..
1353 fi
1354 else
1355 ac_srcdir_defaulted=no
1356 fi
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1360 fi
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 ac_abs_confdir=`(
1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1364 pwd)`
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 srcdir=.
1368 fi
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1372 case $srcdir in
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 esac
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 done
1381
1382 #
1383 # Report the --help message.
1384 #
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389 \`configure' configures GNU FriBidi 1.0.16 to adapt to many kinds of systems.
1390
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1395
1396 Defaults for the options are specified in brackets.
1397
1398 Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking ...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 [PREFIX]
1414
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1419
1420 For better control, use the options below.
1421
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/fribidi]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443 _ACEOF
1444
1445 cat <<\_ACEOF
1446
1447 Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
1452 System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 _ACEOF
1456 fi
1457
1458 if test -n "$ac_init_help"; then
1459 case $ac_init_help in
1460 short | recursive ) echo "Configuration of GNU FriBidi 1.0.16:";;
1461 esac
1462 cat <<\_ACEOF
1463
1464 Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --enable-silent-rules less verbose build output (undo: "make V=1")
1469 --disable-silent-rules verbose build output (undo: "make V=0")
1470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
1474 --enable-static[=PKGS] build static libraries [default=no]
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-libtool-lock avoid locking (might break parallel builds)
1479 --enable-debug turn on debugging [default=no]
1480 --disable-deprecated do not build deprecated functionality
1481
1482 Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1486 both]
1487 --with-aix-soname=aix|svr4|both
1488 shared library versioning (aka "SONAME") variant to
1489 provide on AIX, [default=aix].
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1492 compiler's sysroot if not specified).
1493
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 LIBS libraries to pass to the linker, e.g. -l<library>
1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1502 LT_SYS_LIBRARY_PATH
1503 User-defined run-time library search path.
1504 PKG_CONFIG path to pkg-config utility
1505 PKG_CONFIG_PATH
1506 directories to add to pkg-config's search path
1507 PKG_CONFIG_LIBDIR
1508 path overriding pkg-config's built-in search path
1509 CPP C preprocessor
1510
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1513
1514 Report bugs to <https://github.com/fribidi/fribidi/issues/new>.
1515 GNU FriBidi home page: <http://fribidi.org/>.
1516 General help using GNU software: <https://www.gnu.org/gethelp/>.
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
1527 ac_builddir=.
1528
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *)
1532 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1544
1545 case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for configure.gnu first; this name is used for a wrapper for
1563 # Metaconfig's "Configure" on case-insensitive file systems.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 GNU FriBidi configure 1.0.16
1581 generated by GNU Autoconf 2.71
1582
1583 Copyright (C) 2021 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1588 fi
1589
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1593
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext conftest.beam
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 printf "%s\n" "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext
1620 then :
1621 ac_retval=0
1622 else $as_nop
1623 printf "%s\n" "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_compile
1632
1633 # ac_fn_c_try_link LINENO
1634 # -----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_link ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1640 if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 printf "%s\n" "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest$ac_exeext && {
1659 test "$cross_compiling" = yes ||
1660 test -x conftest$ac_exeext
1661 }
1662 then :
1663 ac_retval=0
1664 else $as_nop
1665 printf "%s\n" "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_link
1679
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 printf %s "checking for $2... " >&6; }
1689 if eval test \${$3+y}
1690 then :
1691 printf %s "(cached) " >&6
1692 else $as_nop
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1695 $4
1696 #include <$2>
1697 _ACEOF
1698 if ac_fn_c_try_compile "$LINENO"
1699 then :
1700 eval "$3=yes"
1701 else $as_nop
1702 eval "$3=no"
1703 fi
1704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1705 fi
1706 eval ac_res=\$$3
1707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 printf "%s\n" "$ac_res" >&6; }
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710
1711 } # ac_fn_c_check_header_compile
1712
1713 # ac_fn_c_check_func LINENO FUNC VAR
1714 # ----------------------------------
1715 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1716 ac_fn_c_check_func ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 printf %s "checking for $2... " >&6; }
1721 if eval test \${$3+y}
1722 then :
1723 printf %s "(cached) " >&6
1724 else $as_nop
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1729 #define $2 innocuous_$2
1730
1731 /* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char $2 (); below. */
1733
1734 #include <limits.h>
1735 #undef $2
1736
1737 /* Override any GCC internal prototype to avoid an error.
1738 Use char because int might match the return type of a GCC
1739 builtin and then its argument prototype would still apply. */
1740 #ifdef __cplusplus
1741 extern "C"
1742 #endif
1743 char $2 ();
1744 /* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747 #if defined __stub_$2 || defined __stub___$2
1748 choke me
1749 #endif
1750
1751 int
1752 main (void)
1753 {
1754 return $2 ();
1755 ;
1756 return 0;
1757 }
1758 _ACEOF
1759 if ac_fn_c_try_link "$LINENO"
1760 then :
1761 eval "$3=yes"
1762 else $as_nop
1763 eval "$3=no"
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1766 conftest$ac_exeext conftest.$ac_ext
1767 fi
1768 eval ac_res=\$$3
1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 printf "%s\n" "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773 } # ac_fn_c_check_func
1774
1775 # ac_fn_c_try_cpp LINENO
1776 # ----------------------
1777 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_cpp ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_cpp conftest.$ac_ext"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 printf "%s\n" "$ac_try_echo"; } >&5
1788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } > conftest.i && {
1797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 }
1800 then :
1801 ac_retval=0
1802 else $as_nop
1803 printf "%s\n" "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807 fi
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_cpp
1812
1813 # ac_fn_c_try_run LINENO
1814 # ----------------------
1815 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1816 # executables *can* be run.
1817 ac_fn_c_try_run ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_link"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 printf "%s\n" "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>&5
1828 ac_status=$?
1829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1831 { { case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 printf "%s\n" "$ac_try_echo"; } >&5
1837 (eval "$ac_try") 2>&5
1838 ac_status=$?
1839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; }; }
1841 then :
1842 ac_retval=0
1843 else $as_nop
1844 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1845 printf "%s\n" "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=$ac_status
1849 fi
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1853
1854 } # ac_fn_c_try_run
1855
1856 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1857 # --------------------------------------------
1858 # Tries to find the compile-time value of EXPR in a program that includes
1859 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1860 # computed
1861 ac_fn_c_compute_int ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if test "$cross_compiling" = yes; then
1865 # Depending upon the size, compute the lo and hi bounds.
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 $4
1869 int
1870 main (void)
1871 {
1872 static int test_array [1 - 2 * !(($2) >= 0)];
1873 test_array [0] = 0;
1874 return test_array [0];
1875
1876 ;
1877 return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"
1881 then :
1882 ac_lo=0 ac_mid=0
1883 while :; do
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 $4
1887 int
1888 main (void)
1889 {
1890 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1891 test_array [0] = 0;
1892 return test_array [0];
1893
1894 ;
1895 return 0;
1896 }
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"
1899 then :
1900 ac_hi=$ac_mid; break
1901 else $as_nop
1902 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1903 if test $ac_lo -le $ac_mid; then
1904 ac_lo= ac_hi=
1905 break
1906 fi
1907 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1910 done
1911 else $as_nop
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 $4
1915 int
1916 main (void)
1917 {
1918 static int test_array [1 - 2 * !(($2) < 0)];
1919 test_array [0] = 0;
1920 return test_array [0];
1921
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"
1927 then :
1928 ac_hi=-1 ac_mid=-1
1929 while :; do
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 $4
1933 int
1934 main (void)
1935 {
1936 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1937 test_array [0] = 0;
1938 return test_array [0];
1939
1940 ;
1941 return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"
1945 then :
1946 ac_lo=$ac_mid; break
1947 else $as_nop
1948 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1949 if test $ac_mid -le $ac_hi; then
1950 ac_lo= ac_hi=
1951 break
1952 fi
1953 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1956 done
1957 else $as_nop
1958 ac_lo= ac_hi=
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1963 # Binary search between lo and hi bounds.
1964 while test "x$ac_lo" != "x$ac_hi"; do
1965 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 $4
1969 int
1970 main (void)
1971 {
1972 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1973 test_array [0] = 0;
1974 return test_array [0];
1975
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"
1981 then :
1982 ac_hi=$ac_mid
1983 else $as_nop
1984 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1987 done
1988 case $ac_lo in #((
1989 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1990 '') ac_retval=1 ;;
1991 esac
1992 else
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 $4
1996 static long int longval (void) { return $2; }
1997 static unsigned long int ulongval (void) { return $2; }
1998 #include <stdio.h>
1999 #include <stdlib.h>
2000 int
2001 main (void)
2002 {
2003
2004 FILE *f = fopen ("conftest.val", "w");
2005 if (! f)
2006 return 1;
2007 if (($2) < 0)
2008 {
2009 long int i = longval ();
2010 if (i != ($2))
2011 return 1;
2012 fprintf (f, "%ld", i);
2013 }
2014 else
2015 {
2016 unsigned long int i = ulongval ();
2017 if (i != ($2))
2018 return 1;
2019 fprintf (f, "%lu", i);
2020 }
2021 /* Do not output a trailing newline, as this causes \r\n confusion
2022 on some platforms. */
2023 return ferror (f) || fclose (f) != 0;
2024
2025 ;
2026 return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_run "$LINENO"
2030 then :
2031 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2032 else $as_nop
2033 ac_retval=1
2034 fi
2035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2036 conftest.$ac_objext conftest.beam conftest.$ac_ext
2037 rm -f conftest.val
2038
2039 fi
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2042
2043 } # ac_fn_c_compute_int
2044 ac_configure_args_raw=
2045 for ac_arg
2046 do
2047 case $ac_arg in
2048 *\'*)
2049 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050 esac
2051 as_fn_append ac_configure_args_raw " '$ac_arg'"
2052 done
2053
2054 case $ac_configure_args_raw in
2055 *$as_nl*)
2056 ac_safe_unquote= ;;
2057 *)
2058 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2059 ac_unsafe_a="$ac_unsafe_z#~"
2060 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2061 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2062 esac
2063
2064 cat >config.log <<_ACEOF
2065 This file contains any messages produced by compilers while
2066 running configure, to aid debugging if configure makes a mistake.
2067
2068 It was created by GNU FriBidi $as_me 1.0.16, which was
2069 generated by GNU Autoconf 2.71. Invocation command line was
2070
2071 $ $0$ac_configure_args_raw
2072
2073 _ACEOF
2074 exec 5>>config.log
2075 {
2076 cat <<_ASUNAME
2077 ## --------- ##
2078 ## Platform. ##
2079 ## --------- ##
2080
2081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086
2087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2088 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2089
2090 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2091 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2093 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2094 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2095 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2096 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2097
2098 _ASUNAME
2099
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103 IFS=$as_save_IFS
2104 case $as_dir in #(((
2105 '') as_dir=./ ;;
2106 */) ;;
2107 *) as_dir=$as_dir/ ;;
2108 esac
2109 printf "%s\n" "PATH: $as_dir"
2110 done
2111 IFS=$as_save_IFS
2112
2113 } >&5
2114
2115 cat >&5 <<_ACEOF
2116
2117
2118 ## ----------- ##
2119 ## Core tests. ##
2120 ## ----------- ##
2121
2122 _ACEOF
2123
2124
2125 # Keep a trace of the command line.
2126 # Strip out --no-create and --no-recursion so they do not pile up.
2127 # Strip out --silent because we don't want to record it for future runs.
2128 # Also quote any args containing shell meta-characters.
2129 # Make two passes to allow for proper duplicate-argument suppression.
2130 ac_configure_args=
2131 ac_configure_args0=
2132 ac_configure_args1=
2133 ac_must_keep_next=false
2134 for ac_pass in 1 2
2135 do
2136 for ac_arg
2137 do
2138 case $ac_arg in
2139 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2141 | -silent | --silent | --silen | --sile | --sil)
2142 continue ;;
2143 *\'*)
2144 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2145 esac
2146 case $ac_pass in
2147 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2148 2)
2149 as_fn_append ac_configure_args1 " '$ac_arg'"
2150 if test $ac_must_keep_next = true; then
2151 ac_must_keep_next=false # Got value, back to normal.
2152 else
2153 case $ac_arg in
2154 *=* | --config-cache | -C | -disable-* | --disable-* \
2155 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2156 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2157 | -with-* | --with-* | -without-* | --without-* | --x)
2158 case "$ac_configure_args0 " in
2159 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2160 esac
2161 ;;
2162 -* ) ac_must_keep_next=true ;;
2163 esac
2164 fi
2165 as_fn_append ac_configure_args " '$ac_arg'"
2166 ;;
2167 esac
2168 done
2169 done
2170 { ac_configure_args0=; unset ac_configure_args0;}
2171 { ac_configure_args1=; unset ac_configure_args1;}
2172
2173 # When interrupted or exit'd, cleanup temporary files, and complete
2174 # config.log. We remove comments because anyway the quotes in there
2175 # would cause problems or look ugly.
2176 # WARNING: Use '\'' to represent an apostrophe within the trap.
2177 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2178 trap 'exit_status=$?
2179 # Sanitize IFS.
2180 IFS=" "" $as_nl"
2181 # Save into config.log some information that might help in debugging.
2182 {
2183 echo
2184
2185 printf "%s\n" "## ---------------- ##
2186 ## Cache variables. ##
2187 ## ---------------- ##"
2188 echo
2189 # The following way of writing the cache mishandles newlines in values,
2190 (
2191 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2192 eval ac_val=\$$ac_var
2193 case $ac_val in #(
2194 *${as_nl}*)
2195 case $ac_var in #(
2196 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2197 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2198 esac
2199 case $ac_var in #(
2200 _ | IFS | as_nl) ;; #(
2201 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2202 *) { eval $ac_var=; unset $ac_var;} ;;
2203 esac ;;
2204 esac
2205 done
2206 (set) 2>&1 |
2207 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2208 *${as_nl}ac_space=\ *)
2209 sed -n \
2210 "s/'\''/'\''\\\\'\'''\''/g;
2211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2212 ;; #(
2213 *)
2214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2215 ;;
2216 esac |
2217 sort
2218 )
2219 echo
2220
2221 printf "%s\n" "## ----------------- ##
2222 ## Output variables. ##
2223 ## ----------------- ##"
2224 echo
2225 for ac_var in $ac_subst_vars
2226 do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in
2229 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230 esac
2231 printf "%s\n" "$ac_var='\''$ac_val'\''"
2232 done | sort
2233 echo
2234
2235 if test -n "$ac_subst_files"; then
2236 printf "%s\n" "## ------------------- ##
2237 ## File substitutions. ##
2238 ## ------------------- ##"
2239 echo
2240 for ac_var in $ac_subst_files
2241 do
2242 eval ac_val=\$$ac_var
2243 case $ac_val in
2244 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245 esac
2246 printf "%s\n" "$ac_var='\''$ac_val'\''"
2247 done | sort
2248 echo
2249 fi
2250
2251 if test -s confdefs.h; then
2252 printf "%s\n" "## ----------- ##
2253 ## confdefs.h. ##
2254 ## ----------- ##"
2255 echo
2256 cat confdefs.h
2257 echo
2258 fi
2259 test "$ac_signal" != 0 &&
2260 printf "%s\n" "$as_me: caught signal $ac_signal"
2261 printf "%s\n" "$as_me: exit $exit_status"
2262 } >&5
2263 rm -f core *.core core.conftest.* &&
2264 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2265 exit $exit_status
2266 ' 0
2267 for ac_signal in 1 2 13 15; do
2268 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2269 done
2270 ac_signal=0
2271
2272 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2273 rm -f -r conftest* confdefs.h
2274
2275 printf "%s\n" "/* confdefs.h */" > confdefs.h
2276
2277 # Predefined preprocessor variables.
2278
2279 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2280
2281 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2282
2283 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2284
2285 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2286
2287 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2288
2289 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2290
2291
2292 # Let the site file select an alternate cache file if it wants to.
2293 # Prefer an explicitly selected file to automatically selected ones.
2294 if test -n "$CONFIG_SITE"; then
2295 ac_site_files="$CONFIG_SITE"
2296 elif test "x$prefix" != xNONE; then
2297 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2298 else
2299 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2300 fi
2301
2302 for ac_site_file in $ac_site_files
2303 do
2304 case $ac_site_file in #(
2305 */*) :
2306 ;; #(
2307 *) :
2308 ac_site_file=./$ac_site_file ;;
2309 esac
2310 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2312 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2313 sed 's/^/| /' "$ac_site_file" >&5
2314 . "$ac_site_file" \
2315 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2317 as_fn_error $? "failed to load site script $ac_site_file
2318 See \`config.log' for more details" "$LINENO" 5; }
2319 fi
2320 done
2321
2322 if test -r "$cache_file"; then
2323 # Some versions of bash will fail to source /dev/null (special files
2324 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2325 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2327 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2328 case $cache_file in
2329 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2330 *) . "./$cache_file";;
2331 esac
2332 fi
2333 else
2334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2335 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2336 >$cache_file
2337 fi
2338
2339 # Test code for whether the C compiler supports C89 (global declarations)
2340 ac_c_conftest_c89_globals='
2341 /* Does the compiler advertise C89 conformance?
2342 Do not test the value of __STDC__, because some compilers set it to 0
2343 while being otherwise adequately conformant. */
2344 #if !defined __STDC__
2345 # error "Compiler does not advertise C89 conformance"
2346 #endif
2347
2348 #include <stddef.h>
2349 #include <stdarg.h>
2350 struct stat;
2351 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2352 struct buf { int x; };
2353 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2354 static char *e (p, i)
2355 char **p;
2356 int i;
2357 {
2358 return p[i];
2359 }
2360 static char *f (char * (*g) (char **, int), char **p, ...)
2361 {
2362 char *s;
2363 va_list v;
2364 va_start (v,p);
2365 s = g (p, va_arg (v,int));
2366 va_end (v);
2367 return s;
2368 }
2369
2370 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2371 function prototypes and stuff, but not \xHH hex character constants.
2372 These do not provoke an error unfortunately, instead are silently treated
2373 as an "x". The following induces an error, until -std is added to get
2374 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2375 array size at least. It is necessary to write \x00 == 0 to get something
2376 that is true only with -std. */
2377 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2378
2379 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2380 inside strings and character constants. */
2381 #define FOO(x) '\''x'\''
2382 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2383
2384 int test (int i, double x);
2385 struct s1 {int (*f) (int a);};
2386 struct s2 {int (*f) (double a);};
2387 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2388 int, int);'
2389
2390 # Test code for whether the C compiler supports C89 (body of main).
2391 ac_c_conftest_c89_main='
2392 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2393 '
2394
2395 # Test code for whether the C compiler supports C99 (global declarations)
2396 ac_c_conftest_c99_globals='
2397 // Does the compiler advertise C99 conformance?
2398 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2399 # error "Compiler does not advertise C99 conformance"
2400 #endif
2401
2402 #include <stdbool.h>
2403 extern int puts (const char *);
2404 extern int printf (const char *, ...);
2405 extern int dprintf (int, const char *, ...);
2406 extern void *malloc (size_t);
2407
2408 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2409 // dprintf is used instead of fprintf to avoid needing to declare
2410 // FILE and stderr.
2411 #define debug(...) dprintf (2, __VA_ARGS__)
2412 #define showlist(...) puts (#__VA_ARGS__)
2413 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2414 static void
2415 test_varargs_macros (void)
2416 {
2417 int x = 1234;
2418 int y = 5678;
2419 debug ("Flag");
2420 debug ("X = %d\n", x);
2421 showlist (The first, second, and third items.);
2422 report (x>y, "x is %d but y is %d", x, y);
2423 }
2424
2425 // Check long long types.
2426 #define BIG64 18446744073709551615ull
2427 #define BIG32 4294967295ul
2428 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2429 #if !BIG_OK
2430 #error "your preprocessor is broken"
2431 #endif
2432 #if BIG_OK
2433 #else
2434 #error "your preprocessor is broken"
2435 #endif
2436 static long long int bignum = -9223372036854775807LL;
2437 static unsigned long long int ubignum = BIG64;
2438
2439 struct incomplete_array
2440 {
2441 int datasize;
2442 double data[];
2443 };
2444
2445 struct named_init {
2446 int number;
2447 const wchar_t *name;
2448 double average;
2449 };
2450
2451 typedef const char *ccp;
2452
2453 static inline int
2454 test_restrict (ccp restrict text)
2455 {
2456 // See if C++-style comments work.
2457 // Iterate through items via the restricted pointer.
2458 // Also check for declarations in for loops.
2459 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2460 continue;
2461 return 0;
2462 }
2463
2464 // Check varargs and va_copy.
2465 static bool
2466 test_varargs (const char *format, ...)
2467 {
2468 va_list args;
2469 va_start (args, format);
2470 va_list args_copy;
2471 va_copy (args_copy, args);
2472
2473 const char *str = "";
2474 int number = 0;
2475 float fnumber = 0;
2476
2477 while (*format)
2478 {
2479 switch (*format++)
2480 {
2481 case '\''s'\'': // string
2482 str = va_arg (args_copy, const char *);
2483 break;
2484 case '\''d'\'': // int
2485 number = va_arg (args_copy, int);
2486 break;
2487 case '\''f'\'': // float
2488 fnumber = va_arg (args_copy, double);
2489 break;
2490 default:
2491 break;
2492 }
2493 }
2494 va_end (args_copy);
2495 va_end (args);
2496
2497 return *str && number && fnumber;
2498 }
2499 '
2500
2501 # Test code for whether the C compiler supports C99 (body of main).
2502 ac_c_conftest_c99_main='
2503 // Check bool.
2504 _Bool success = false;
2505 success |= (argc != 0);
2506
2507 // Check restrict.
2508 if (test_restrict ("String literal") == 0)
2509 success = true;
2510 char *restrict newvar = "Another string";
2511
2512 // Check varargs.
2513 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2514 test_varargs_macros ();
2515
2516 // Check flexible array members.
2517 struct incomplete_array *ia =
2518 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2519 ia->datasize = 10;
2520 for (int i = 0; i < ia->datasize; ++i)
2521 ia->data[i] = i * 1.234;
2522
2523 // Check named initializers.
2524 struct named_init ni = {
2525 .number = 34,
2526 .name = L"Test wide string",
2527 .average = 543.34343,
2528 };
2529
2530 ni.number = 58;
2531
2532 int dynamic_array[ni.number];
2533 dynamic_array[0] = argv[0][0];
2534 dynamic_array[ni.number - 1] = 543;
2535
2536 // work around unused variable warnings
2537 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2538 || dynamic_array[ni.number - 1] != 543);
2539 '
2540
2541 # Test code for whether the C compiler supports C11 (global declarations)
2542 ac_c_conftest_c11_globals='
2543 // Does the compiler advertise C11 conformance?
2544 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2545 # error "Compiler does not advertise C11 conformance"
2546 #endif
2547
2548 // Check _Alignas.
2549 char _Alignas (double) aligned_as_double;
2550 char _Alignas (0) no_special_alignment;
2551 extern char aligned_as_int;
2552 char _Alignas (0) _Alignas (int) aligned_as_int;
2553
2554 // Check _Alignof.
2555 enum
2556 {
2557 int_alignment = _Alignof (int),
2558 int_array_alignment = _Alignof (int[100]),
2559 char_alignment = _Alignof (char)
2560 };
2561 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2562
2563 // Check _Noreturn.
2564 int _Noreturn does_not_return (void) { for (;;) continue; }
2565
2566 // Check _Static_assert.
2567 struct test_static_assert
2568 {
2569 int x;
2570 _Static_assert (sizeof (int) <= sizeof (long int),
2571 "_Static_assert does not work in struct");
2572 long int y;
2573 };
2574
2575 // Check UTF-8 literals.
2576 #define u8 syntax error!
2577 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2578
2579 // Check duplicate typedefs.
2580 typedef long *long_ptr;
2581 typedef long int *long_ptr;
2582 typedef long_ptr long_ptr;
2583
2584 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2585 struct anonymous
2586 {
2587 union {
2588 struct { int i; int j; };
2589 struct { int k; long int l; } w;
2590 };
2591 int m;
2592 } v1;
2593 '
2594
2595 # Test code for whether the C compiler supports C11 (body of main).
2596 ac_c_conftest_c11_main='
2597 _Static_assert ((offsetof (struct anonymous, i)
2598 == offsetof (struct anonymous, w.k)),
2599 "Anonymous union alignment botch");
2600 v1.i = 2;
2601 v1.w.k = 5;
2602 ok |= v1.i != 5;
2603 '
2604
2605 # Test code for whether the C compiler supports C11 (complete).
2606 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2607 ${ac_c_conftest_c99_globals}
2608 ${ac_c_conftest_c11_globals}
2609
2610 int
2611 main (int argc, char **argv)
2612 {
2613 int ok = 0;
2614 ${ac_c_conftest_c89_main}
2615 ${ac_c_conftest_c99_main}
2616 ${ac_c_conftest_c11_main}
2617 return ok;
2618 }
2619 "
2620
2621 # Test code for whether the C compiler supports C99 (complete).
2622 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2623 ${ac_c_conftest_c99_globals}
2624
2625 int
2626 main (int argc, char **argv)
2627 {
2628 int ok = 0;
2629 ${ac_c_conftest_c89_main}
2630 ${ac_c_conftest_c99_main}
2631 return ok;
2632 }
2633 "
2634
2635 # Test code for whether the C compiler supports C89 (complete).
2636 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2637
2638 int
2639 main (int argc, char **argv)
2640 {
2641 int ok = 0;
2642 ${ac_c_conftest_c89_main}
2643 return ok;
2644 }
2645 "
2646
2647 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2648 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2649 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2650 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2651 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2652 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2653 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2654 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2655 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2656
2657 # Auxiliary files required by this configure script.
2658 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2659
2660 # Locations in which to look for auxiliary files.
2661 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2662
2663 # Search for a directory containing all of the required auxiliary files,
2664 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2665 # If we don't find one directory that contains all the files we need,
2666 # we report the set of missing files from the *first* directory in
2667 # $ac_aux_dir_candidates and give up.
2668 ac_missing_aux_files=""
2669 ac_first_candidate=:
2670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 as_found=false
2673 for as_dir in $ac_aux_dir_candidates
2674 do
2675 IFS=$as_save_IFS
2676 case $as_dir in #(((
2677 '') as_dir=./ ;;
2678 */) ;;
2679 *) as_dir=$as_dir/ ;;
2680 esac
2681 as_found=:
2682
2683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2684 ac_aux_dir_found=yes
2685 ac_install_sh=
2686 for ac_aux in $ac_aux_files
2687 do
2688 # As a special case, if "install-sh" is required, that requirement
2689 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2690 # and $ac_install_sh is set appropriately for whichever one is found.
2691 if test x"$ac_aux" = x"install-sh"
2692 then
2693 if test -f "${as_dir}install-sh"; then
2694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2695 ac_install_sh="${as_dir}install-sh -c"
2696 elif test -f "${as_dir}install.sh"; then
2697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2698 ac_install_sh="${as_dir}install.sh -c"
2699 elif test -f "${as_dir}shtool"; then
2700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2701 ac_install_sh="${as_dir}shtool install -c"
2702 else
2703 ac_aux_dir_found=no
2704 if $ac_first_candidate; then
2705 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2706 else
2707 break
2708 fi
2709 fi
2710 else
2711 if test -f "${as_dir}${ac_aux}"; then
2712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2713 else
2714 ac_aux_dir_found=no
2715 if $ac_first_candidate; then
2716 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2717 else
2718 break
2719 fi
2720 fi
2721 fi
2722 done
2723 if test "$ac_aux_dir_found" = yes; then
2724 ac_aux_dir="$as_dir"
2725 break
2726 fi
2727 ac_first_candidate=false
2728
2729 as_found=false
2730 done
2731 IFS=$as_save_IFS
2732 if $as_found
2733 then :
2734
2735 else $as_nop
2736 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2737 fi
2738
2739
2740 # These three variables are undocumented and unsupported,
2741 # and are intended to be withdrawn in a future Autoconf release.
2742 # They can cause serious problems if a builder's source tree is in a directory
2743 # whose full name contains unusual characters.
2744 if test -f "${ac_aux_dir}config.guess"; then
2745 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2746 fi
2747 if test -f "${ac_aux_dir}config.sub"; then
2748 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2749 fi
2750 if test -f "$ac_aux_dir/configure"; then
2751 ac_configure="$SHELL ${ac_aux_dir}configure"
2752 fi
2753
2754 # Check that the precious variables saved in the cache have kept the same
2755 # value.
2756 ac_cache_corrupted=false
2757 for ac_var in $ac_precious_vars; do
2758 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2759 eval ac_new_set=\$ac_env_${ac_var}_set
2760 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2761 eval ac_new_val=\$ac_env_${ac_var}_value
2762 case $ac_old_set,$ac_new_set in
2763 set,)
2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2765 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2766 ac_cache_corrupted=: ;;
2767 ,set)
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2769 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2770 ac_cache_corrupted=: ;;
2771 ,);;
2772 *)
2773 if test "x$ac_old_val" != "x$ac_new_val"; then
2774 # differences in whitespace do not lead to failure.
2775 ac_old_val_w=`echo x $ac_old_val`
2776 ac_new_val_w=`echo x $ac_new_val`
2777 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2779 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2780 ac_cache_corrupted=:
2781 else
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2783 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2784 eval $ac_var=\$ac_old_val
2785 fi
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2787 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2789 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2790 fi;;
2791 esac
2792 # Pass precious variables to config.status.
2793 if test "$ac_new_set" = set; then
2794 case $ac_new_val in
2795 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2796 *) ac_arg=$ac_var=$ac_new_val ;;
2797 esac
2798 case " $ac_configure_args " in
2799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2800 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2801 esac
2802 fi
2803 done
2804 if $ac_cache_corrupted; then
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2806 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2808 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2809 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2810 and start over" "$LINENO" 5
2811 fi
2812 ## -------------------- ##
2813 ## Main body of script. ##
2814 ## -------------------- ##
2815
2816 ac_ext=c
2817 ac_cpp='$CPP $CPPFLAGS'
2818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2821
2822
2823
2824
2825 ac_config_headers="$ac_config_headers config.h"
2826
2827
2828
2829 am__api_version='1.16'
2830
2831
2832
2833 # Find a good install program. We prefer a C program (faster),
2834 # so one script is as good as another. But avoid the broken or
2835 # incompatible versions:
2836 # SysV /etc/install, /usr/sbin/install
2837 # SunOS /usr/etc/install
2838 # IRIX /sbin/install
2839 # AIX /bin/install
2840 # AmigaOS /C/install, which installs bootblocks on floppy discs
2841 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2842 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2843 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2844 # OS/2's system install, which has a completely different semantic
2845 # ./install, which can be erroneously created by make from ./install.sh.
2846 # Reject install programs that cannot install multiple files.
2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2848 printf %s "checking for a BSD-compatible install... " >&6; }
2849 if test -z "$INSTALL"; then
2850 if test ${ac_cv_path_install+y}
2851 then :
2852 printf %s "(cached) " >&6
2853 else $as_nop
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857 IFS=$as_save_IFS
2858 case $as_dir in #(((
2859 '') as_dir=./ ;;
2860 */) ;;
2861 *) as_dir=$as_dir/ ;;
2862 esac
2863 # Account for fact that we put trailing slashes in our PATH walk.
2864 case $as_dir in #((
2865 ./ | /[cC]/* | \
2866 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2867 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2868 /usr/ucb/* ) ;;
2869 *)
2870 # OSF1 and SCO ODT 3.0 have their own names for install.
2871 # Don't use installbsd from OSF since it installs stuff as root
2872 # by default.
2873 for ac_prog in ginstall scoinst install; do
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2876 if test $ac_prog = install &&
2877 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2878 # AIX install. It has an incompatible calling convention.
2879 :
2880 elif test $ac_prog = install &&
2881 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2882 # program-specific install script used by HP pwplus--don't use.
2883 :
2884 else
2885 rm -rf conftest.one conftest.two conftest.dir
2886 echo one > conftest.one
2887 echo two > conftest.two
2888 mkdir conftest.dir
2889 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2890 test -s conftest.one && test -s conftest.two &&
2891 test -s conftest.dir/conftest.one &&
2892 test -s conftest.dir/conftest.two
2893 then
2894 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2895 break 3
2896 fi
2897 fi
2898 fi
2899 done
2900 done
2901 ;;
2902 esac
2903
2904 done
2905 IFS=$as_save_IFS
2906
2907 rm -rf conftest.one conftest.two conftest.dir
2908
2909 fi
2910 if test ${ac_cv_path_install+y}; then
2911 INSTALL=$ac_cv_path_install
2912 else
2913 # As a last resort, use the slow shell script. Don't cache a
2914 # value for INSTALL within a source directory, because that will
2915 # break other packages using the cache if that directory is
2916 # removed, or if the value is a relative name.
2917 INSTALL=$ac_install_sh
2918 fi
2919 fi
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2921 printf "%s\n" "$INSTALL" >&6; }
2922
2923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2924 # It thinks the first close brace ends the variable substitution.
2925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2926
2927 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2928
2929 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2930
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2932 printf %s "checking whether build environment is sane... " >&6; }
2933 # Reject unsafe characters in $srcdir or the absolute working directory
2934 # name. Accept space and tab only in the latter.
2935 am_lf='
2936 '
2937 case `pwd` in
2938 *[\\\"\#\$\&\'\`$am_lf]*)
2939 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2940 esac
2941 case $srcdir in
2942 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2943 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2944 esac
2945
2946 # Do 'set' in a subshell so we don't clobber the current shell's
2947 # arguments. Must try -L first in case configure is actually a
2948 # symlink; some systems play weird games with the mod time of symlinks
2949 # (eg FreeBSD returns the mod time of the symlink's containing
2950 # directory).
2951 if (
2952 am_has_slept=no
2953 for am_try in 1 2; do
2954 echo "timestamp, slept: $am_has_slept" > conftest.file
2955 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2956 if test "$*" = "X"; then
2957 # -L didn't work.
2958 set X `ls -t "$srcdir/configure" conftest.file`
2959 fi
2960 if test "$*" != "X $srcdir/configure conftest.file" \
2961 && test "$*" != "X conftest.file $srcdir/configure"; then
2962
2963 # If neither matched, then we have a broken ls. This can happen
2964 # if, for instance, CONFIG_SHELL is bash and it inherits a
2965 # broken ls alias from the environment. This has actually
2966 # happened. Such a system could not be considered "sane".
2967 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2968 alias in your environment" "$LINENO" 5
2969 fi
2970 if test "$2" = conftest.file || test $am_try -eq 2; then
2971 break
2972 fi
2973 # Just in case.
2974 sleep 1
2975 am_has_slept=yes
2976 done
2977 test "$2" = conftest.file
2978 )
2979 then
2980 # Ok.
2981 :
2982 else
2983 as_fn_error $? "newly created file is older than distributed files!
2984 Check your system clock" "$LINENO" 5
2985 fi
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2987 printf "%s\n" "yes" >&6; }
2988 # If we didn't sleep, we still need to ensure time stamps of config.status and
2989 # generated files are strictly newer.
2990 am_sleep_pid=
2991 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2992 ( sleep 1 ) &
2993 am_sleep_pid=$!
2994 fi
2995
2996 rm -f conftest.file
2997
2998 test "$program_prefix" != NONE &&
2999 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3000 # Use a double $ so make ignores it.
3001 test "$program_suffix" != NONE &&
3002 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3003 # Double any \ or $.
3004 # By default was `s,x,x', remove it if useless.
3005 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3006 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3007
3008
3009 # Expand $ac_aux_dir to an absolute path.
3010 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3011
3012
3013 if test x"${MISSING+set}" != xset; then
3014 MISSING="\${SHELL} '$am_aux_dir/missing'"
3015 fi
3016 # Use eval to expand $SHELL
3017 if eval "$MISSING --is-lightweight"; then
3018 am_missing_run="$MISSING "
3019 else
3020 am_missing_run=
3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3022 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3023 fi
3024
3025 if test x"${install_sh+set}" != xset; then
3026 case $am_aux_dir in
3027 *\ * | *\ *)
3028 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3029 *)
3030 install_sh="\${SHELL} $am_aux_dir/install-sh"
3031 esac
3032 fi
3033
3034 # Installed binaries are usually stripped using 'strip' when the user
3035 # run "make install-strip". However 'strip' might not be the right
3036 # tool to use in cross-compilation environments, therefore Automake
3037 # will honor the 'STRIP' environment variable to overrule this program.
3038 if test "$cross_compiling" != no; then
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3041 set dummy ${ac_tool_prefix}strip; ac_word=$2
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 printf %s "checking for $ac_word... " >&6; }
3044 if test ${ac_cv_prog_STRIP+y}
3045 then :
3046 printf %s "(cached) " >&6
3047 else $as_nop
3048 if test -n "$STRIP"; then
3049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 case $as_dir in #(((
3056 '') as_dir=./ ;;
3057 */) ;;
3058 *) as_dir=$as_dir/ ;;
3059 esac
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 STRIP=$ac_cv_prog_STRIP
3073 if test -n "$STRIP"; then
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3075 printf "%s\n" "$STRIP" >&6; }
3076 else
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 printf "%s\n" "no" >&6; }
3079 fi
3080
3081
3082 fi
3083 if test -z "$ac_cv_prog_STRIP"; then
3084 ac_ct_STRIP=$STRIP
3085 # Extract the first word of "strip", so it can be a program name with args.
3086 set dummy strip; ac_word=$2
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 printf %s "checking for $ac_word... " >&6; }
3089 if test ${ac_cv_prog_ac_ct_STRIP+y}
3090 then :
3091 printf %s "(cached) " >&6
3092 else $as_nop
3093 if test -n "$ac_ct_STRIP"; then
3094 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099 IFS=$as_save_IFS
3100 case $as_dir in #(((
3101 '') as_dir=./ ;;
3102 */) ;;
3103 *) as_dir=$as_dir/ ;;
3104 esac
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_ac_ct_STRIP="strip"
3108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3109 break 2
3110 fi
3111 done
3112 done
3113 IFS=$as_save_IFS
3114
3115 fi
3116 fi
3117 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3118 if test -n "$ac_ct_STRIP"; then
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3120 printf "%s\n" "$ac_ct_STRIP" >&6; }
3121 else
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 printf "%s\n" "no" >&6; }
3124 fi
3125
3126 if test "x$ac_ct_STRIP" = x; then
3127 STRIP=":"
3128 else
3129 case $cross_compiling:$ac_tool_warned in
3130 yes:)
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3132 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3133 ac_tool_warned=yes ;;
3134 esac
3135 STRIP=$ac_ct_STRIP
3136 fi
3137 else
3138 STRIP="$ac_cv_prog_STRIP"
3139 fi
3140
3141 fi
3142 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3143
3144
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3146 printf %s "checking for a race-free mkdir -p... " >&6; }
3147 if test -z "$MKDIR_P"; then
3148 if test ${ac_cv_path_mkdir+y}
3149 then :
3150 printf %s "(cached) " >&6
3151 else $as_nop
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3154 do
3155 IFS=$as_save_IFS
3156 case $as_dir in #(((
3157 '') as_dir=./ ;;
3158 */) ;;
3159 *) as_dir=$as_dir/ ;;
3160 esac
3161 for ac_prog in mkdir gmkdir; do
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3164 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3165 'mkdir ('*'coreutils) '* | \
3166 'BusyBox '* | \
3167 'mkdir (fileutils) '4.1*)
3168 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3169 break 3;;
3170 esac
3171 done
3172 done
3173 done
3174 IFS=$as_save_IFS
3175
3176 fi
3177
3178 test -d ./--version && rmdir ./--version
3179 if test ${ac_cv_path_mkdir+y}; then
3180 MKDIR_P="$ac_cv_path_mkdir -p"
3181 else
3182 # As a last resort, use the slow shell script. Don't cache a
3183 # value for MKDIR_P within a source directory, because that will
3184 # break other packages using the cache if that directory is
3185 # removed, or if the value is a relative name.
3186 MKDIR_P="$ac_install_sh -d"
3187 fi
3188 fi
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3190 printf "%s\n" "$MKDIR_P" >&6; }
3191
3192 for ac_prog in gawk mawk nawk awk
3193 do
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195 set dummy $ac_prog; ac_word=$2
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 printf %s "checking for $ac_word... " >&6; }
3198 if test ${ac_cv_prog_AWK+y}
3199 then :
3200 printf %s "(cached) " >&6
3201 else $as_nop
3202 if test -n "$AWK"; then
3203 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208 IFS=$as_save_IFS
3209 case $as_dir in #(((
3210 '') as_dir=./ ;;
3211 */) ;;
3212 *) as_dir=$as_dir/ ;;
3213 esac
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_AWK="$ac_prog"
3217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 AWK=$ac_cv_prog_AWK
3227 if test -n "$AWK"; then
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3229 printf "%s\n" "$AWK" >&6; }
3230 else
3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 printf "%s\n" "no" >&6; }
3233 fi
3234
3235
3236 test -n "$AWK" && break
3237 done
3238
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3240 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3241 set x ${MAKE-make}
3242 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3243 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3244 then :
3245 printf %s "(cached) " >&6
3246 else $as_nop
3247 cat >conftest.make <<\_ACEOF
3248 SHELL = /bin/sh
3249 all:
3250 @echo '@@@%%%=$(MAKE)=@@@%%%'
3251 _ACEOF
3252 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3253 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3254 *@@@%%%=?*=@@@%%%*)
3255 eval ac_cv_prog_make_${ac_make}_set=yes;;
3256 *)
3257 eval ac_cv_prog_make_${ac_make}_set=no;;
3258 esac
3259 rm -f conftest.make
3260 fi
3261 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263 printf "%s\n" "yes" >&6; }
3264 SET_MAKE=
3265 else
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 printf "%s\n" "no" >&6; }
3268 SET_MAKE="MAKE=${MAKE-make}"
3269 fi
3270
3271 rm -rf .tst 2>/dev/null
3272 mkdir .tst 2>/dev/null
3273 if test -d .tst; then
3274 am__leading_dot=.
3275 else
3276 am__leading_dot=_
3277 fi
3278 rmdir .tst 2>/dev/null
3279
3280 # Check whether --enable-silent-rules was given.
3281 if test ${enable_silent_rules+y}
3282 then :
3283 enableval=$enable_silent_rules;
3284 fi
3285
3286 case $enable_silent_rules in # (((
3287 yes) AM_DEFAULT_VERBOSITY=0;;
3288 no) AM_DEFAULT_VERBOSITY=1;;
3289 *) AM_DEFAULT_VERBOSITY=1;;
3290 esac
3291 am_make=${MAKE-make}
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3293 printf %s "checking whether $am_make supports nested variables... " >&6; }
3294 if test ${am_cv_make_support_nested_variables+y}
3295 then :
3296 printf %s "(cached) " >&6
3297 else $as_nop
3298 if printf "%s\n" 'TRUE=$(BAR$(V))
3299 BAR0=false
3300 BAR1=true
3301 V=1
3302 am__doit:
3303 @$(TRUE)
3304 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3305 am_cv_make_support_nested_variables=yes
3306 else
3307 am_cv_make_support_nested_variables=no
3308 fi
3309 fi
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3311 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3312 if test $am_cv_make_support_nested_variables = yes; then
3313 AM_V='$(V)'
3314 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3315 else
3316 AM_V=$AM_DEFAULT_VERBOSITY
3317 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3318 fi
3319 AM_BACKSLASH='\'
3320
3321 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3322 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3323 # is not polluted with repeated "-I."
3324 am__isrc=' -I$(srcdir)'
3325 # test to see if srcdir already configured
3326 if test -f $srcdir/config.status; then
3327 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3328 fi
3329 fi
3330
3331 # test whether we have cygpath
3332 if test -z "$CYGPATH_W"; then
3333 if (cygpath --version) >/dev/null 2>/dev/null; then
3334 CYGPATH_W='cygpath -w'
3335 else
3336 CYGPATH_W=echo
3337 fi
3338 fi
3339
3340
3341 # Define the identity of the package.
3342 PACKAGE='fribidi'
3343 VERSION='1.0.16'
3344
3345
3346 # Some tools Automake needs.
3347
3348 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3349
3350
3351 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3352
3353
3354 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3355
3356
3357 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3358
3359
3360 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3361
3362 # For better backward compatibility. To be removed once Automake 1.9.x
3363 # dies out for good. For more background, see:
3364 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3365 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3366 mkdir_p='$(MKDIR_P)'
3367
3368 # We need awk for the "check" target (and possibly the TAP driver). The
3369 # system "awk" is bad on some platforms.
3370 # Always define AMTAR for backward compatibility. Yes, it's still used
3371 # in the wild :-( We should find a proper way to deprecate it ...
3372 AMTAR='$${TAR-tar}'
3373
3374
3375 # We'll loop over all known methods to create a tar archive until one works.
3376 _am_tools='gnutar pax cpio none'
3377
3378 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3379
3380
3381
3382
3383
3384 # Variables for tags utilities; see am/tags.am
3385 if test -z "$CTAGS"; then
3386 CTAGS=ctags
3387 fi
3388
3389 if test -z "$ETAGS"; then
3390 ETAGS=etags
3391 fi
3392
3393 if test -z "$CSCOPE"; then
3394 CSCOPE=cscope
3395 fi
3396
3397
3398
3399 # POSIX will say in a future version that running "rm -f" with no argument
3400 # is OK; and we want to be able to make that assumption in our Makefile
3401 # recipes. So use an aggressive probe to check that the usage we want is
3402 # actually supported "in the wild" to an acceptable degree.
3403 # See automake bug#10828.
3404 # To make any issue more visible, cause the running configure to be aborted
3405 # by default if the 'rm' program in use doesn't match our expectations; the
3406 # user can still override this though.
3407 if rm -f && rm -fr && rm -rf; then : OK; else
3408 cat >&2 <<'END'
3409 Oops!
3410
3411 Your 'rm' program seems unable to run without file operands specified
3412 on the command line, even when the '-f' option is present. This is contrary
3413 to the behaviour of most rm programs out there, and not conforming with
3414 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3415
3416 Please tell [email protected] about your system, including the value
3417 of your $PATH and any error possibly output before this message. This
3418 can help us improve future automake versions.
3419
3420 END
3421 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3422 echo 'Configuration will proceed anyway, since you have set the' >&2
3423 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3424 echo >&2
3425 else
3426 cat >&2 <<'END'
3427 Aborting the configuration process, to ensure you take notice of the issue.
3428
3429 You can download and install GNU coreutils to get an 'rm' implementation
3430 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3431
3432 If you want to complete the configuration process using your problematic
3433 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3434 to "yes", and re-run configure.
3435
3436 END
3437 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3438 fi
3439 fi
3440
3441 # Check whether --enable-silent-rules was given.
3442 if test ${enable_silent_rules+y}
3443 then :
3444 enableval=$enable_silent_rules;
3445 fi
3446
3447 case $enable_silent_rules in # (((
3448 yes) AM_DEFAULT_VERBOSITY=0;;
3449 no) AM_DEFAULT_VERBOSITY=1;;
3450 *) AM_DEFAULT_VERBOSITY=0;;
3451 esac
3452 am_make=${MAKE-make}
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3454 printf %s "checking whether $am_make supports nested variables... " >&6; }
3455 if test ${am_cv_make_support_nested_variables+y}
3456 then :
3457 printf %s "(cached) " >&6
3458 else $as_nop
3459 if printf "%s\n" 'TRUE=$(BAR$(V))
3460 BAR0=false
3461 BAR1=true
3462 V=1
3463 am__doit:
3464 @$(TRUE)
3465 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3466 am_cv_make_support_nested_variables=yes
3467 else
3468 am_cv_make_support_nested_variables=no
3469 fi
3470 fi
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3472 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3473 if test $am_cv_make_support_nested_variables = yes; then
3474 AM_V='$(V)'
3475 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3476 else
3477 AM_V=$AM_DEFAULT_VERBOSITY
3478 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3479 fi
3480 AM_BACKSLASH='\'
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492 DEPDIR="${am__leading_dot}deps"
3493
3494 ac_config_commands="$ac_config_commands depfiles"
3495
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3497 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3498 cat > confinc.mk << 'END'
3499 am__doit:
3500 @echo this is the am__doit target >confinc.out
3501 .PHONY: am__doit
3502 END
3503 am__include="#"
3504 am__quote=
3505 # BSD make does it like this.
3506 echo '.include "confinc.mk" # ignored' > confmf.BSD
3507 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3508 echo 'include confinc.mk # ignored' > confmf.GNU
3509 _am_result=no
3510 for s in GNU BSD; do
3511 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3512 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }
3516 case $?:`cat confinc.out 2>/dev/null` in #(
3517 '0:this is the am__doit target') :
3518 case $s in #(
3519 BSD) :
3520 am__include='.include' am__quote='"' ;; #(
3521 *) :
3522 am__include='include' am__quote='' ;;
3523 esac ;; #(
3524 *) :
3525 ;;
3526 esac
3527 if test "$am__include" != "#"; then
3528 _am_result="yes ($s style)"
3529 break
3530 fi
3531 done
3532 rm -f confinc.* confmf.*
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3534 printf "%s\n" "${_am_result}" >&6; }
3535
3536 # Check whether --enable-dependency-tracking was given.
3537 if test ${enable_dependency_tracking+y}
3538 then :
3539 enableval=$enable_dependency_tracking;
3540 fi
3541
3542 if test "x$enable_dependency_tracking" != xno; then
3543 am_depcomp="$ac_aux_dir/depcomp"
3544 AMDEPBACKSLASH='\'
3545 am__nodep='_no'
3546 fi
3547 if test "x$enable_dependency_tracking" != xno; then
3548 AMDEP_TRUE=
3549 AMDEP_FALSE='#'
3550 else
3551 AMDEP_TRUE='#'
3552 AMDEP_FALSE=
3553 fi
3554
3555
3556 ac_ext=c
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561 if test -n "$ac_tool_prefix"; then
3562 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3563 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 printf %s "checking for $ac_word... " >&6; }
3566 if test ${ac_cv_prog_CC+y}
3567 then :
3568 printf %s "(cached) " >&6
3569 else $as_nop
3570 if test -n "$CC"; then
3571 ac_cv_prog_CC="$CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576 IFS=$as_save_IFS
3577 case $as_dir in #(((
3578 '') as_dir=./ ;;
3579 */) ;;
3580 *) as_dir=$as_dir/ ;;
3581 esac
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3584 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588 done
3589 done
3590 IFS=$as_save_IFS
3591
3592 fi
3593 fi
3594 CC=$ac_cv_prog_CC
3595 if test -n "$CC"; then
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597 printf "%s\n" "$CC" >&6; }
3598 else
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 printf "%s\n" "no" >&6; }
3601 fi
3602
3603
3604 fi
3605 if test -z "$ac_cv_prog_CC"; then
3606 ac_ct_CC=$CC
3607 # Extract the first word of "gcc", so it can be a program name with args.
3608 set dummy gcc; ac_word=$2
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 printf %s "checking for $ac_word... " >&6; }
3611 if test ${ac_cv_prog_ac_ct_CC+y}
3612 then :
3613 printf %s "(cached) " >&6
3614 else $as_nop
3615 if test -n "$ac_ct_CC"; then
3616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3620 do
3621 IFS=$as_save_IFS
3622 case $as_dir in #(((
3623 '') as_dir=./ ;;
3624 */) ;;
3625 *) as_dir=$as_dir/ ;;
3626 esac
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3629 ac_cv_prog_ac_ct_CC="gcc"
3630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi
3638 fi
3639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3640 if test -n "$ac_ct_CC"; then
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3642 printf "%s\n" "$ac_ct_CC" >&6; }
3643 else
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 printf "%s\n" "no" >&6; }
3646 fi
3647
3648 if test "x$ac_ct_CC" = x; then
3649 CC=""
3650 else
3651 case $cross_compiling:$ac_tool_warned in
3652 yes:)
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655 ac_tool_warned=yes ;;
3656 esac
3657 CC=$ac_ct_CC
3658 fi
3659 else
3660 CC="$ac_cv_prog_CC"
3661 fi
3662
3663 if test -z "$CC"; then
3664 if test -n "$ac_tool_prefix"; then
3665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3666 set dummy ${ac_tool_prefix}cc; ac_word=$2
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 printf %s "checking for $ac_word... " >&6; }
3669 if test ${ac_cv_prog_CC+y}
3670 then :
3671 printf %s "(cached) " >&6
3672 else $as_nop
3673 if test -n "$CC"; then
3674 ac_cv_prog_CC="$CC" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679 IFS=$as_save_IFS
3680 case $as_dir in #(((
3681 '') as_dir=./ ;;
3682 */) ;;
3683 *) as_dir=$as_dir/ ;;
3684 esac
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3687 ac_cv_prog_CC="${ac_tool_prefix}cc"
3688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3689 break 2
3690 fi
3691 done
3692 done
3693 IFS=$as_save_IFS
3694
3695 fi
3696 fi
3697 CC=$ac_cv_prog_CC
3698 if test -n "$CC"; then
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3700 printf "%s\n" "$CC" >&6; }
3701 else
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 printf "%s\n" "no" >&6; }
3704 fi
3705
3706
3707 fi
3708 fi
3709 if test -z "$CC"; then
3710 # Extract the first word of "cc", so it can be a program name with args.
3711 set dummy cc; ac_word=$2
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 printf %s "checking for $ac_word... " >&6; }
3714 if test ${ac_cv_prog_CC+y}
3715 then :
3716 printf %s "(cached) " >&6
3717 else $as_nop
3718 if test -n "$CC"; then
3719 ac_cv_prog_CC="$CC" # Let the user override the test.
3720 else
3721 ac_prog_rejected=no
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725 IFS=$as_save_IFS
3726 case $as_dir in #(((
3727 '') as_dir=./ ;;
3728 */) ;;
3729 *) as_dir=$as_dir/ ;;
3730 esac
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3733 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3734 ac_prog_rejected=yes
3735 continue
3736 fi
3737 ac_cv_prog_CC="cc"
3738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3739 break 2
3740 fi
3741 done
3742 done
3743 IFS=$as_save_IFS
3744
3745 if test $ac_prog_rejected = yes; then
3746 # We found a bogon in the path, so make sure we never use it.
3747 set dummy $ac_cv_prog_CC
3748 shift
3749 if test $# != 0; then
3750 # We chose a different compiler from the bogus one.
3751 # However, it has the same basename, so the bogon will be chosen
3752 # first if we set CC to just the basename; use the full file name.
3753 shift
3754 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3755 fi
3756 fi
3757 fi
3758 fi
3759 CC=$ac_cv_prog_CC
3760 if test -n "$CC"; then
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 printf "%s\n" "$CC" >&6; }
3763 else
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 printf "%s\n" "no" >&6; }
3766 fi
3767
3768
3769 fi
3770 if test -z "$CC"; then
3771 if test -n "$ac_tool_prefix"; then
3772 for ac_prog in cl.exe
3773 do
3774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777 printf %s "checking for $ac_word... " >&6; }
3778 if test ${ac_cv_prog_CC+y}
3779 then :
3780 printf %s "(cached) " >&6
3781 else $as_nop
3782 if test -n "$CC"; then
3783 ac_cv_prog_CC="$CC" # Let the user override the test.
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3787 do
3788 IFS=$as_save_IFS
3789 case $as_dir in #(((
3790 '') as_dir=./ ;;
3791 */) ;;
3792 *) as_dir=$as_dir/ ;;
3793 esac
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3798 break 2
3799 fi
3800 done
3801 done
3802 IFS=$as_save_IFS
3803
3804 fi
3805 fi
3806 CC=$ac_cv_prog_CC
3807 if test -n "$CC"; then
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3809 printf "%s\n" "$CC" >&6; }
3810 else
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 printf "%s\n" "no" >&6; }
3813 fi
3814
3815
3816 test -n "$CC" && break
3817 done
3818 fi
3819 if test -z "$CC"; then
3820 ac_ct_CC=$CC
3821 for ac_prog in cl.exe
3822 do
3823 # Extract the first word of "$ac_prog", so it can be a program name with args.
3824 set dummy $ac_prog; ac_word=$2
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 printf %s "checking for $ac_word... " >&6; }
3827 if test ${ac_cv_prog_ac_ct_CC+y}
3828 then :
3829 printf %s "(cached) " >&6
3830 else $as_nop
3831 if test -n "$ac_ct_CC"; then
3832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3833 else
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3836 do
3837 IFS=$as_save_IFS
3838 case $as_dir in #(((
3839 '') as_dir=./ ;;
3840 */) ;;
3841 *) as_dir=$as_dir/ ;;
3842 esac
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3845 ac_cv_prog_ac_ct_CC="$ac_prog"
3846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3847 break 2
3848 fi
3849 done
3850 done
3851 IFS=$as_save_IFS
3852
3853 fi
3854 fi
3855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3856 if test -n "$ac_ct_CC"; then
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3858 printf "%s\n" "$ac_ct_CC" >&6; }
3859 else
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 printf "%s\n" "no" >&6; }
3862 fi
3863
3864
3865 test -n "$ac_ct_CC" && break
3866 done
3867
3868 if test "x$ac_ct_CC" = x; then
3869 CC=""
3870 else
3871 case $cross_compiling:$ac_tool_warned in
3872 yes:)
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3875 ac_tool_warned=yes ;;
3876 esac
3877 CC=$ac_ct_CC
3878 fi
3879 fi
3880
3881 fi
3882 if test -z "$CC"; then
3883 if test -n "$ac_tool_prefix"; then
3884 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3885 set dummy ${ac_tool_prefix}clang; ac_word=$2
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 printf %s "checking for $ac_word... " >&6; }
3888 if test ${ac_cv_prog_CC+y}
3889 then :
3890 printf %s "(cached) " >&6
3891 else $as_nop
3892 if test -n "$CC"; then
3893 ac_cv_prog_CC="$CC" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898 IFS=$as_save_IFS
3899 case $as_dir in #(((
3900 '') as_dir=./ ;;
3901 */) ;;
3902 *) as_dir=$as_dir/ ;;
3903 esac
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3906 ac_cv_prog_CC="${ac_tool_prefix}clang"
3907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3908 break 2
3909 fi
3910 done
3911 done
3912 IFS=$as_save_IFS
3913
3914 fi
3915 fi
3916 CC=$ac_cv_prog_CC
3917 if test -n "$CC"; then
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 printf "%s\n" "$CC" >&6; }
3920 else
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 printf "%s\n" "no" >&6; }
3923 fi
3924
3925
3926 fi
3927 if test -z "$ac_cv_prog_CC"; then
3928 ac_ct_CC=$CC
3929 # Extract the first word of "clang", so it can be a program name with args.
3930 set dummy clang; ac_word=$2
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 printf %s "checking for $ac_word... " >&6; }
3933 if test ${ac_cv_prog_ac_ct_CC+y}
3934 then :
3935 printf %s "(cached) " >&6
3936 else $as_nop
3937 if test -n "$ac_ct_CC"; then
3938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3939 else
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3942 do
3943 IFS=$as_save_IFS
3944 case $as_dir in #(((
3945 '') as_dir=./ ;;
3946 */) ;;
3947 *) as_dir=$as_dir/ ;;
3948 esac
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3951 ac_cv_prog_ac_ct_CC="clang"
3952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955 done
3956 done
3957 IFS=$as_save_IFS
3958
3959 fi
3960 fi
3961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3962 if test -n "$ac_ct_CC"; then
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3964 printf "%s\n" "$ac_ct_CC" >&6; }
3965 else
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 printf "%s\n" "no" >&6; }
3968 fi
3969
3970 if test "x$ac_ct_CC" = x; then
3971 CC=""
3972 else
3973 case $cross_compiling:$ac_tool_warned in
3974 yes:)
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3976 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3977 ac_tool_warned=yes ;;
3978 esac
3979 CC=$ac_ct_CC
3980 fi
3981 else
3982 CC="$ac_cv_prog_CC"
3983 fi
3984
3985 fi
3986
3987
3988 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error $? "no acceptable C compiler found in \$PATH
3991 See \`config.log' for more details" "$LINENO" 5; }
3992
3993 # Provide some information about the compiler.
3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3995 set X $ac_compile
3996 ac_compiler=$2
3997 for ac_option in --version -v -V -qversion -version; do
3998 { { ac_try="$ac_compiler $ac_option >&5"
3999 case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002 esac
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 printf "%s\n" "$ac_try_echo"; } >&5
4005 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4006 ac_status=$?
4007 if test -s conftest.err; then
4008 sed '10a\
4009 ... rest of stderr output deleted ...
4010 10q' conftest.err >conftest.er1
4011 cat conftest.er1 >&5
4012 fi
4013 rm -f conftest.er1 conftest.err
4014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }
4016 done
4017
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020
4021 int
4022 main (void)
4023 {
4024
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 ac_clean_files_save=$ac_clean_files
4030 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4031 # Try to create an executable without -o first, disregard a.out.
4032 # It will help us diagnose broken compilers, and finding out an intuition
4033 # of exeext.
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4035 printf %s "checking whether the C compiler works... " >&6; }
4036 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4037
4038 # The possible output files:
4039 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4040
4041 ac_rmfiles=
4042 for ac_file in $ac_files
4043 do
4044 case $ac_file in
4045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4046 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4047 esac
4048 done
4049 rm -f $ac_rmfiles
4050
4051 if { { ac_try="$ac_link_default"
4052 case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055 esac
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 printf "%s\n" "$ac_try_echo"; } >&5
4058 (eval "$ac_link_default") 2>&5
4059 ac_status=$?
4060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }
4062 then :
4063 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4064 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4065 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4066 # so that the user can short-circuit this test for compilers unknown to
4067 # Autoconf.
4068 for ac_file in $ac_files ''
4069 do
4070 test -f "$ac_file" || continue
4071 case $ac_file in
4072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4073 ;;
4074 [ab].out )
4075 # We found the default executable, but exeext='' is most
4076 # certainly right.
4077 break;;
4078 *.* )
4079 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4080 then :; else
4081 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4082 fi
4083 # We set ac_cv_exeext here because the later test for it is not
4084 # safe: cross compilers may not add the suffix if given an `-o'
4085 # argument, so we may need to know it at that point already.
4086 # Even if this section looks crufty: it has the advantage of
4087 # actually working.
4088 break;;
4089 * )
4090 break;;
4091 esac
4092 done
4093 test "$ac_cv_exeext" = no && ac_cv_exeext=
4094
4095 else $as_nop
4096 ac_file=''
4097 fi
4098 if test -z "$ac_file"
4099 then :
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 printf "%s\n" "no" >&6; }
4102 printf "%s\n" "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4107 as_fn_error 77 "C compiler cannot create executables
4108 See \`config.log' for more details" "$LINENO" 5; }
4109 else $as_nop
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4111 printf "%s\n" "yes" >&6; }
4112 fi
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4114 printf %s "checking for C compiler default output file name... " >&6; }
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4116 printf "%s\n" "$ac_file" >&6; }
4117 ac_exeext=$ac_cv_exeext
4118
4119 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4120 ac_clean_files=$ac_clean_files_save
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4122 printf %s "checking for suffix of executables... " >&6; }
4123 if { { ac_try="$ac_link"
4124 case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127 esac
4128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4129 printf "%s\n" "$ac_try_echo"; } >&5
4130 (eval "$ac_link") 2>&5
4131 ac_status=$?
4132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4133 test $ac_status = 0; }
4134 then :
4135 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4136 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4137 # work properly (i.e., refer to `conftest.exe'), while it won't with
4138 # `rm'.
4139 for ac_file in conftest.exe conftest conftest.*; do
4140 test -f "$ac_file" || continue
4141 case $ac_file in
4142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4143 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4144 break;;
4145 * ) break;;
4146 esac
4147 done
4148 else $as_nop
4149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4150 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4151 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4152 See \`config.log' for more details" "$LINENO" 5; }
4153 fi
4154 rm -f conftest conftest$ac_cv_exeext
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4156 printf "%s\n" "$ac_cv_exeext" >&6; }
4157
4158 rm -f conftest.$ac_ext
4159 EXEEXT=$ac_cv_exeext
4160 ac_exeext=$EXEEXT
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 #include <stdio.h>
4164 int
4165 main (void)
4166 {
4167 FILE *f = fopen ("conftest.out", "w");
4168 return ferror (f) || fclose (f) != 0;
4169
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 ac_clean_files="$ac_clean_files conftest.out"
4175 # Check that the compiler produces executables we can run. If not, either
4176 # the compiler is broken, or we cross compile.
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4178 printf %s "checking whether we are cross compiling... " >&6; }
4179 if test "$cross_compiling" != yes; then
4180 { { ac_try="$ac_link"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186 printf "%s\n" "$ac_try_echo"; } >&5
4187 (eval "$ac_link") 2>&5
4188 ac_status=$?
4189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190 test $ac_status = 0; }
4191 if { ac_try='./conftest$ac_cv_exeext'
4192 { { case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197 printf "%s\n" "$ac_try_echo"; } >&5
4198 (eval "$ac_try") 2>&5
4199 ac_status=$?
4200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201 test $ac_status = 0; }; }; then
4202 cross_compiling=no
4203 else
4204 if test "$cross_compiling" = maybe; then
4205 cross_compiling=yes
4206 else
4207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4208 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4209 as_fn_error 77 "cannot run C compiled programs.
4210 If you meant to cross compile, use \`--host'.
4211 See \`config.log' for more details" "$LINENO" 5; }
4212 fi
4213 fi
4214 fi
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4216 printf "%s\n" "$cross_compiling" >&6; }
4217
4218 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4219 ac_clean_files=$ac_clean_files_save
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4221 printf %s "checking for suffix of object files... " >&6; }
4222 if test ${ac_cv_objext+y}
4223 then :
4224 printf %s "(cached) " >&6
4225 else $as_nop
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228
4229 int
4230 main (void)
4231 {
4232
4233 ;
4234 return 0;
4235 }
4236 _ACEOF
4237 rm -f conftest.o conftest.obj
4238 if { { ac_try="$ac_compile"
4239 case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242 esac
4243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4244 printf "%s\n" "$ac_try_echo"; } >&5
4245 (eval "$ac_compile") 2>&5
4246 ac_status=$?
4247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4248 test $ac_status = 0; }
4249 then :
4250 for ac_file in conftest.o conftest.obj conftest.*; do
4251 test -f "$ac_file" || continue;
4252 case $ac_file in
4253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4254 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4255 break;;
4256 esac
4257 done
4258 else $as_nop
4259 printf "%s\n" "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4261
4262 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4263 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4264 as_fn_error $? "cannot compute suffix of object files: cannot compile
4265 See \`config.log' for more details" "$LINENO" 5; }
4266 fi
4267 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4268 fi
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4270 printf "%s\n" "$ac_cv_objext" >&6; }
4271 OBJEXT=$ac_cv_objext
4272 ac_objext=$OBJEXT
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4274 printf %s "checking whether the compiler supports GNU C... " >&6; }
4275 if test ${ac_cv_c_compiler_gnu+y}
4276 then :
4277 printf %s "(cached) " >&6
4278 else $as_nop
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281
4282 int
4283 main (void)
4284 {
4285 #ifndef __GNUC__
4286 choke me
4287 #endif
4288
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 if ac_fn_c_try_compile "$LINENO"
4294 then :
4295 ac_compiler_gnu=yes
4296 else $as_nop
4297 ac_compiler_gnu=no
4298 fi
4299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4300 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4301
4302 fi
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4304 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306
4307 if test $ac_compiler_gnu = yes; then
4308 GCC=yes
4309 else
4310 GCC=
4311 fi
4312 ac_test_CFLAGS=${CFLAGS+y}
4313 ac_save_CFLAGS=$CFLAGS
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4315 printf %s "checking whether $CC accepts -g... " >&6; }
4316 if test ${ac_cv_prog_cc_g+y}
4317 then :
4318 printf %s "(cached) " >&6
4319 else $as_nop
4320 ac_save_c_werror_flag=$ac_c_werror_flag
4321 ac_c_werror_flag=yes
4322 ac_cv_prog_cc_g=no
4323 CFLAGS="-g"
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326
4327 int
4328 main (void)
4329 {
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_compile "$LINENO"
4336 then :
4337 ac_cv_prog_cc_g=yes
4338 else $as_nop
4339 CFLAGS=""
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342
4343 int
4344 main (void)
4345 {
4346
4347 ;
4348 return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"
4352 then :
4353
4354 else $as_nop
4355 ac_c_werror_flag=$ac_save_c_werror_flag
4356 CFLAGS="-g"
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4359
4360 int
4361 main (void)
4362 {
4363
4364 ;
4365 return 0;
4366 }
4367 _ACEOF
4368 if ac_fn_c_try_compile "$LINENO"
4369 then :
4370 ac_cv_prog_cc_g=yes
4371 fi
4372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4373 fi
4374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4375 fi
4376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4377 ac_c_werror_flag=$ac_save_c_werror_flag
4378 fi
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4380 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4381 if test $ac_test_CFLAGS; then
4382 CFLAGS=$ac_save_CFLAGS
4383 elif test $ac_cv_prog_cc_g = yes; then
4384 if test "$GCC" = yes; then
4385 CFLAGS="-g -O2"
4386 else
4387 CFLAGS="-g"
4388 fi
4389 else
4390 if test "$GCC" = yes; then
4391 CFLAGS="-O2"
4392 else
4393 CFLAGS=
4394 fi
4395 fi
4396 ac_prog_cc_stdc=no
4397 if test x$ac_prog_cc_stdc = xno
4398 then :
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4400 printf %s "checking for $CC option to enable C11 features... " >&6; }
4401 if test ${ac_cv_prog_cc_c11+y}
4402 then :
4403 printf %s "(cached) " >&6
4404 else $as_nop
4405 ac_cv_prog_cc_c11=no
4406 ac_save_CC=$CC
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4409 $ac_c_conftest_c11_program
4410 _ACEOF
4411 for ac_arg in '' -std=gnu11
4412 do
4413 CC="$ac_save_CC $ac_arg"
4414 if ac_fn_c_try_compile "$LINENO"
4415 then :
4416 ac_cv_prog_cc_c11=$ac_arg
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext conftest.beam
4419 test "x$ac_cv_prog_cc_c11" != "xno" && break
4420 done
4421 rm -f conftest.$ac_ext
4422 CC=$ac_save_CC
4423 fi
4424
4425 if test "x$ac_cv_prog_cc_c11" = xno
4426 then :
4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4428 printf "%s\n" "unsupported" >&6; }
4429 else $as_nop
4430 if test "x$ac_cv_prog_cc_c11" = x
4431 then :
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4433 printf "%s\n" "none needed" >&6; }
4434 else $as_nop
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4436 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4437 CC="$CC $ac_cv_prog_cc_c11"
4438 fi
4439 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4440 ac_prog_cc_stdc=c11
4441 fi
4442 fi
4443 if test x$ac_prog_cc_stdc = xno
4444 then :
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4446 printf %s "checking for $CC option to enable C99 features... " >&6; }
4447 if test ${ac_cv_prog_cc_c99+y}
4448 then :
4449 printf %s "(cached) " >&6
4450 else $as_nop
4451 ac_cv_prog_cc_c99=no
4452 ac_save_CC=$CC
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455 $ac_c_conftest_c99_program
4456 _ACEOF
4457 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4458 do
4459 CC="$ac_save_CC $ac_arg"
4460 if ac_fn_c_try_compile "$LINENO"
4461 then :
4462 ac_cv_prog_cc_c99=$ac_arg
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.beam
4465 test "x$ac_cv_prog_cc_c99" != "xno" && break
4466 done
4467 rm -f conftest.$ac_ext
4468 CC=$ac_save_CC
4469 fi
4470
4471 if test "x$ac_cv_prog_cc_c99" = xno
4472 then :
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4474 printf "%s\n" "unsupported" >&6; }
4475 else $as_nop
4476 if test "x$ac_cv_prog_cc_c99" = x
4477 then :
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4479 printf "%s\n" "none needed" >&6; }
4480 else $as_nop
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4482 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4483 CC="$CC $ac_cv_prog_cc_c99"
4484 fi
4485 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4486 ac_prog_cc_stdc=c99
4487 fi
4488 fi
4489 if test x$ac_prog_cc_stdc = xno
4490 then :
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4492 printf %s "checking for $CC option to enable C89 features... " >&6; }
4493 if test ${ac_cv_prog_cc_c89+y}
4494 then :
4495 printf %s "(cached) " >&6
4496 else $as_nop
4497 ac_cv_prog_cc_c89=no
4498 ac_save_CC=$CC
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501 $ac_c_conftest_c89_program
4502 _ACEOF
4503 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4504 do
4505 CC="$ac_save_CC $ac_arg"
4506 if ac_fn_c_try_compile "$LINENO"
4507 then :
4508 ac_cv_prog_cc_c89=$ac_arg
4509 fi
4510 rm -f core conftest.err conftest.$ac_objext conftest.beam
4511 test "x$ac_cv_prog_cc_c89" != "xno" && break
4512 done
4513 rm -f conftest.$ac_ext
4514 CC=$ac_save_CC
4515 fi
4516
4517 if test "x$ac_cv_prog_cc_c89" = xno
4518 then :
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4520 printf "%s\n" "unsupported" >&6; }
4521 else $as_nop
4522 if test "x$ac_cv_prog_cc_c89" = x
4523 then :
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4525 printf "%s\n" "none needed" >&6; }
4526 else $as_nop
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4528 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4529 CC="$CC $ac_cv_prog_cc_c89"
4530 fi
4531 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4532 ac_prog_cc_stdc=c89
4533 fi
4534 fi
4535
4536 ac_ext=c
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541
4542
4543 ac_ext=c
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4549 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4550 if test ${am_cv_prog_cc_c_o+y}
4551 then :
4552 printf %s "(cached) " >&6
4553 else $as_nop
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556
4557 int
4558 main (void)
4559 {
4560
4561 ;
4562 return 0;
4563 }
4564 _ACEOF
4565 # Make sure it works both with $CC and with simple cc.
4566 # Following AC_PROG_CC_C_O, we do the test twice because some
4567 # compilers refuse to overwrite an existing .o file with -o,
4568 # though they will create one.
4569 am_cv_prog_cc_c_o=yes
4570 for am_i in 1 2; do
4571 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4572 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } \
4576 && test -f conftest2.$ac_objext; then
4577 : OK
4578 else
4579 am_cv_prog_cc_c_o=no
4580 break
4581 fi
4582 done
4583 rm -f core conftest*
4584 unset am_i
4585 fi
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4587 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4588 if test "$am_cv_prog_cc_c_o" != yes; then
4589 # Losing compiler, so override with the script.
4590 # FIXME: It is wrong to rewrite CC.
4591 # But if we don't then we get into trouble of one sort or another.
4592 # A longer-term fix would be to have automake use am__CC in this case,
4593 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4594 CC="$am_aux_dir/compile $CC"
4595 fi
4596 ac_ext=c
4597 ac_cpp='$CPP $CPPFLAGS'
4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4601
4602
4603 depcc="$CC" am_compiler_list=
4604
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4606 printf %s "checking dependency style of $depcc... " >&6; }
4607 if test ${am_cv_CC_dependencies_compiler_type+y}
4608 then :
4609 printf %s "(cached) " >&6
4610 else $as_nop
4611 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4612 # We make a subdir and do the tests there. Otherwise we can end up
4613 # making bogus files that we don't know about and never remove. For
4614 # instance it was reported that on HP-UX the gcc test will end up
4615 # making a dummy file named 'D' -- because '-MD' means "put the output
4616 # in D".
4617 rm -rf conftest.dir
4618 mkdir conftest.dir
4619 # Copy depcomp to subdir because otherwise we won't find it if we're
4620 # using a relative directory.
4621 cp "$am_depcomp" conftest.dir
4622 cd conftest.dir
4623 # We will build objects and dependencies in a subdirectory because
4624 # it helps to detect inapplicable dependency modes. For instance
4625 # both Tru64's cc and ICC support -MD to output dependencies as a
4626 # side effect of compilation, but ICC will put the dependencies in
4627 # the current directory while Tru64 will put them in the object
4628 # directory.
4629 mkdir sub
4630
4631 am_cv_CC_dependencies_compiler_type=none
4632 if test "$am_compiler_list" = ""; then
4633 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4634 fi
4635 am__universal=false
4636 case " $depcc " in #(
4637 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4638 esac
4639
4640 for depmode in $am_compiler_list; do
4641 # Setup a source with many dependencies, because some compilers
4642 # like to wrap large dependency lists on column 80 (with \), and
4643 # we should not choose a depcomp mode which is confused by this.
4644 #
4645 # We need to recreate these files for each test, as the compiler may
4646 # overwrite some of them when testing with obscure command lines.
4647 # This happens at least with the AIX C compiler.
4648 : > sub/conftest.c
4649 for i in 1 2 3 4 5 6; do
4650 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4651 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4652 # Solaris 10 /bin/sh.
4653 echo '/* dummy */' > sub/conftst$i.h
4654 done
4655 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4656
4657 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4658 # mode. It turns out that the SunPro C++ compiler does not properly
4659 # handle '-M -o', and we need to detect this. Also, some Intel
4660 # versions had trouble with output in subdirs.
4661 am__obj=sub/conftest.${OBJEXT-o}
4662 am__minus_obj="-o $am__obj"
4663 case $depmode in
4664 gcc)
4665 # This depmode causes a compiler race in universal mode.
4666 test "$am__universal" = false || continue
4667 ;;
4668 nosideeffect)
4669 # After this tag, mechanisms are not by side-effect, so they'll
4670 # only be used when explicitly requested.
4671 if test "x$enable_dependency_tracking" = xyes; then
4672 continue
4673 else
4674 break
4675 fi
4676 ;;
4677 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4678 # This compiler won't grok '-c -o', but also, the minuso test has
4679 # not run yet. These depmodes are late enough in the game, and
4680 # so weak that their functioning should not be impacted.
4681 am__obj=conftest.${OBJEXT-o}
4682 am__minus_obj=
4683 ;;
4684 none) break ;;
4685 esac
4686 if depmode=$depmode \
4687 source=sub/conftest.c object=$am__obj \
4688 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4689 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4690 >/dev/null 2>conftest.err &&
4691 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4692 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4693 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4694 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4695 # icc doesn't choke on unknown options, it will just issue warnings
4696 # or remarks (even with -Werror). So we grep stderr for any message
4697 # that says an option was ignored or not supported.
4698 # When given -MP, icc 7.0 and 7.1 complain thusly:
4699 # icc: Command line warning: ignoring option '-M'; no argument required
4700 # The diagnosis changed in icc 8.0:
4701 # icc: Command line remark: option '-MP' not supported
4702 if (grep 'ignoring option' conftest.err ||
4703 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4704 am_cv_CC_dependencies_compiler_type=$depmode
4705 break
4706 fi
4707 fi
4708 done
4709
4710 cd ..
4711 rm -rf conftest.dir
4712 else
4713 am_cv_CC_dependencies_compiler_type=none
4714 fi
4715
4716 fi
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4718 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4719 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4720
4721 if
4722 test "x$enable_dependency_tracking" != xno \
4723 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4724 am__fastdepCC_TRUE=
4725 am__fastdepCC_FALSE='#'
4726 else
4727 am__fastdepCC_TRUE='#'
4728 am__fastdepCC_FALSE=
4729 fi
4730
4731
4732
4733
4734 if test -n "$ac_tool_prefix"; then
4735 for ac_prog in ar lib "link -lib"
4736 do
4737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 printf %s "checking for $ac_word... " >&6; }
4741 if test ${ac_cv_prog_AR+y}
4742 then :
4743 printf %s "(cached) " >&6
4744 else $as_nop
4745 if test -n "$AR"; then
4746 ac_cv_prog_AR="$AR" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751 IFS=$as_save_IFS
4752 case $as_dir in #(((
4753 '') as_dir=./ ;;
4754 */) ;;
4755 *) as_dir=$as_dir/ ;;
4756 esac
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4759 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763 done
4764 done
4765 IFS=$as_save_IFS
4766
4767 fi
4768 fi
4769 AR=$ac_cv_prog_AR
4770 if test -n "$AR"; then
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4772 printf "%s\n" "$AR" >&6; }
4773 else
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 printf "%s\n" "no" >&6; }
4776 fi
4777
4778
4779 test -n "$AR" && break
4780 done
4781 fi
4782 if test -z "$AR"; then
4783 ac_ct_AR=$AR
4784 for ac_prog in ar lib "link -lib"
4785 do
4786 # Extract the first word of "$ac_prog", so it can be a program name with args.
4787 set dummy $ac_prog; ac_word=$2
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 printf %s "checking for $ac_word... " >&6; }
4790 if test ${ac_cv_prog_ac_ct_AR+y}
4791 then :
4792 printf %s "(cached) " >&6
4793 else $as_nop
4794 if test -n "$ac_ct_AR"; then
4795 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800 IFS=$as_save_IFS
4801 case $as_dir in #(((
4802 '') as_dir=./ ;;
4803 */) ;;
4804 *) as_dir=$as_dir/ ;;
4805 esac
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4808 ac_cv_prog_ac_ct_AR="$ac_prog"
4809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812 done
4813 done
4814 IFS=$as_save_IFS
4815
4816 fi
4817 fi
4818 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4819 if test -n "$ac_ct_AR"; then
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4821 printf "%s\n" "$ac_ct_AR" >&6; }
4822 else
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 printf "%s\n" "no" >&6; }
4825 fi
4826
4827
4828 test -n "$ac_ct_AR" && break
4829 done
4830
4831 if test "x$ac_ct_AR" = x; then
4832 AR="false"
4833 else
4834 case $cross_compiling:$ac_tool_warned in
4835 yes:)
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838 ac_tool_warned=yes ;;
4839 esac
4840 AR=$ac_ct_AR
4841 fi
4842 fi
4843
4844 : ${AR=ar}
4845
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4847 printf %s "checking the archiver ($AR) interface... " >&6; }
4848 if test ${am_cv_ar_interface+y}
4849 then :
4850 printf %s "(cached) " >&6
4851 else $as_nop
4852 ac_ext=c
4853 ac_cpp='$CPP $CPPFLAGS'
4854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857
4858 am_cv_ar_interface=ar
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 int some_variable = 0;
4862 _ACEOF
4863 if ac_fn_c_try_compile "$LINENO"
4864 then :
4865 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4867 (eval $am_ar_try) 2>&5
4868 ac_status=$?
4869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4870 test $ac_status = 0; }
4871 if test "$ac_status" -eq 0; then
4872 am_cv_ar_interface=ar
4873 else
4874 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4876 (eval $am_ar_try) 2>&5
4877 ac_status=$?
4878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4879 test $ac_status = 0; }
4880 if test "$ac_status" -eq 0; then
4881 am_cv_ar_interface=lib
4882 else
4883 am_cv_ar_interface=unknown
4884 fi
4885 fi
4886 rm -f conftest.lib libconftest.a
4887
4888 fi
4889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4890 ac_ext=c
4891 ac_cpp='$CPP $CPPFLAGS'
4892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895
4896 fi
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4898 printf "%s\n" "$am_cv_ar_interface" >&6; }
4899
4900 case $am_cv_ar_interface in
4901 ar)
4902 ;;
4903 lib)
4904 # Microsoft lib, so override with the ar-lib wrapper script.
4905 # FIXME: It is wrong to rewrite AR.
4906 # But if we don't then we get into trouble of one sort or another.
4907 # A longer-term fix would be to have automake use am__AR in this case,
4908 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4909 # similar.
4910 AR="$am_aux_dir/ar-lib $AR"
4911 ;;
4912 unknown)
4913 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4914 ;;
4915 esac
4916
4917
4918 # Initialize libtool
4919
4920 case `pwd` in
4921 *\ * | *\ *)
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4923 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4924 esac
4925
4926
4927
4928 macro_version='2.4.6'
4929 macro_revision='2.4.6'
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944 ltmain=$ac_aux_dir/ltmain.sh
4945
4946
4947
4948 # Make sure we can run config.sub.
4949 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4950 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4951
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4953 printf %s "checking build system type... " >&6; }
4954 if test ${ac_cv_build+y}
4955 then :
4956 printf %s "(cached) " >&6
4957 else $as_nop
4958 ac_build_alias=$build_alias
4959 test "x$ac_build_alias" = x &&
4960 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4961 test "x$ac_build_alias" = x &&
4962 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4963 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4964 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4965
4966 fi
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4968 printf "%s\n" "$ac_cv_build" >&6; }
4969 case $ac_cv_build in
4970 *-*-*) ;;
4971 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4972 esac
4973 build=$ac_cv_build
4974 ac_save_IFS=$IFS; IFS='-'
4975 set x $ac_cv_build
4976 shift
4977 build_cpu=$1
4978 build_vendor=$2
4979 shift; shift
4980 # Remember, the first character of IFS is used to create $*,
4981 # except with old shells:
4982 build_os=$*
4983 IFS=$ac_save_IFS
4984 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4985
4986
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4988 printf %s "checking host system type... " >&6; }
4989 if test ${ac_cv_host+y}
4990 then :
4991 printf %s "(cached) " >&6
4992 else $as_nop
4993 if test "x$host_alias" = x; then
4994 ac_cv_host=$ac_cv_build
4995 else
4996 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4997 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4998 fi
4999
5000 fi
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5002 printf "%s\n" "$ac_cv_host" >&6; }
5003 case $ac_cv_host in
5004 *-*-*) ;;
5005 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5006 esac
5007 host=$ac_cv_host
5008 ac_save_IFS=$IFS; IFS='-'
5009 set x $ac_cv_host
5010 shift
5011 host_cpu=$1
5012 host_vendor=$2
5013 shift; shift
5014 # Remember, the first character of IFS is used to create $*,
5015 # except with old shells:
5016 host_os=$*
5017 IFS=$ac_save_IFS
5018 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5019
5020
5021 # Backslashify metacharacters that are still active within
5022 # double-quoted strings.
5023 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5024
5025 # Same as above, but do not quote variable references.
5026 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5027
5028 # Sed substitution to delay expansion of an escaped shell variable in a
5029 # double_quote_subst'ed string.
5030 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5031
5032 # Sed substitution to delay expansion of an escaped single quote.
5033 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5034
5035 # Sed substitution to avoid accidental globbing in evaled expressions
5036 no_glob_subst='s/\*/\\\*/g'
5037
5038 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5039 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5040 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5041
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5043 printf %s "checking how to print strings... " >&6; }
5044 # Test print first, because it will be a builtin if present.
5045 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5046 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5047 ECHO='print -r --'
5048 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5049 ECHO='printf %s\n'
5050 else
5051 # Use this function as a fallback that always works.
5052 func_fallback_echo ()
5053 {
5054 eval 'cat <<_LTECHO_EOF
5055 $1
5056 _LTECHO_EOF'
5057 }
5058 ECHO='func_fallback_echo'
5059 fi
5060
5061 # func_echo_all arg...
5062 # Invoke $ECHO with all args, space-separated.
5063 func_echo_all ()
5064 {
5065 $ECHO ""
5066 }
5067
5068 case $ECHO in
5069 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5070 printf "%s\n" "printf" >&6; } ;;
5071 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5072 printf "%s\n" "print -r" >&6; } ;;
5073 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5074 printf "%s\n" "cat" >&6; } ;;
5075 esac
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5091 printf %s "checking for a sed that does not truncate output... " >&6; }
5092 if test ${ac_cv_path_SED+y}
5093 then :
5094 printf %s "(cached) " >&6
5095 else $as_nop
5096 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5097 for ac_i in 1 2 3 4 5 6 7; do
5098 ac_script="$ac_script$as_nl$ac_script"
5099 done
5100 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5101 { ac_script=; unset ac_script;}
5102 if test -z "$SED"; then
5103 ac_path_SED_found=false
5104 # Loop through the user's path and test for each of PROGNAME-LIST
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5107 do
5108 IFS=$as_save_IFS
5109 case $as_dir in #(((
5110 '') as_dir=./ ;;
5111 */) ;;
5112 *) as_dir=$as_dir/ ;;
5113 esac
5114 for ac_prog in sed gsed
5115 do
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5118 as_fn_executable_p "$ac_path_SED" || continue
5119 # Check for GNU ac_path_SED and select it if it is found.
5120 # Check for GNU $ac_path_SED
5121 case `"$ac_path_SED" --version 2>&1` in
5122 *GNU*)
5123 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5124 *)
5125 ac_count=0
5126 printf %s 0123456789 >"conftest.in"
5127 while :
5128 do
5129 cat "conftest.in" "conftest.in" >"conftest.tmp"
5130 mv "conftest.tmp" "conftest.in"
5131 cp "conftest.in" "conftest.nl"
5132 printf "%s\n" '' >> "conftest.nl"
5133 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5135 as_fn_arith $ac_count + 1 && ac_count=$as_val
5136 if test $ac_count -gt ${ac_path_SED_max-0}; then
5137 # Best one so far, save it but keep looking for a better one
5138 ac_cv_path_SED="$ac_path_SED"
5139 ac_path_SED_max=$ac_count
5140 fi
5141 # 10*(2^10) chars as input seems more than enough
5142 test $ac_count -gt 10 && break
5143 done
5144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145 esac
5146
5147 $ac_path_SED_found && break 3
5148 done
5149 done
5150 done
5151 IFS=$as_save_IFS
5152 if test -z "$ac_cv_path_SED"; then
5153 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5154 fi
5155 else
5156 ac_cv_path_SED=$SED
5157 fi
5158
5159 fi
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5161 printf "%s\n" "$ac_cv_path_SED" >&6; }
5162 SED="$ac_cv_path_SED"
5163 rm -f conftest.sed
5164
5165 test -z "$SED" && SED=sed
5166 Xsed="$SED -e 1s/^X//"
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5179 printf %s "checking for grep that handles long lines and -e... " >&6; }
5180 if test ${ac_cv_path_GREP+y}
5181 then :
5182 printf %s "(cached) " >&6
5183 else $as_nop
5184 if test -z "$GREP"; then
5185 ac_path_GREP_found=false
5186 # Loop through the user's path and test for each of PROGNAME-LIST
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5189 do
5190 IFS=$as_save_IFS
5191 case $as_dir in #(((
5192 '') as_dir=./ ;;
5193 */) ;;
5194 *) as_dir=$as_dir/ ;;
5195 esac
5196 for ac_prog in grep ggrep
5197 do
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5200 as_fn_executable_p "$ac_path_GREP" || continue
5201 # Check for GNU ac_path_GREP and select it if it is found.
5202 # Check for GNU $ac_path_GREP
5203 case `"$ac_path_GREP" --version 2>&1` in
5204 *GNU*)
5205 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5206 *)
5207 ac_count=0
5208 printf %s 0123456789 >"conftest.in"
5209 while :
5210 do
5211 cat "conftest.in" "conftest.in" >"conftest.tmp"
5212 mv "conftest.tmp" "conftest.in"
5213 cp "conftest.in" "conftest.nl"
5214 printf "%s\n" 'GREP' >> "conftest.nl"
5215 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5217 as_fn_arith $ac_count + 1 && ac_count=$as_val
5218 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5219 # Best one so far, save it but keep looking for a better one
5220 ac_cv_path_GREP="$ac_path_GREP"
5221 ac_path_GREP_max=$ac_count
5222 fi
5223 # 10*(2^10) chars as input seems more than enough
5224 test $ac_count -gt 10 && break
5225 done
5226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5227 esac
5228
5229 $ac_path_GREP_found && break 3
5230 done
5231 done
5232 done
5233 IFS=$as_save_IFS
5234 if test -z "$ac_cv_path_GREP"; then
5235 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5236 fi
5237 else
5238 ac_cv_path_GREP=$GREP
5239 fi
5240
5241 fi
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5243 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5244 GREP="$ac_cv_path_GREP"
5245
5246
5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5248 printf %s "checking for egrep... " >&6; }
5249 if test ${ac_cv_path_EGREP+y}
5250 then :
5251 printf %s "(cached) " >&6
5252 else $as_nop
5253 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5254 then ac_cv_path_EGREP="$GREP -E"
5255 else
5256 if test -z "$EGREP"; then
5257 ac_path_EGREP_found=false
5258 # Loop through the user's path and test for each of PROGNAME-LIST
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5261 do
5262 IFS=$as_save_IFS
5263 case $as_dir in #(((
5264 '') as_dir=./ ;;
5265 */) ;;
5266 *) as_dir=$as_dir/ ;;
5267 esac
5268 for ac_prog in egrep
5269 do
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5272 as_fn_executable_p "$ac_path_EGREP" || continue
5273 # Check for GNU ac_path_EGREP and select it if it is found.
5274 # Check for GNU $ac_path_EGREP
5275 case `"$ac_path_EGREP" --version 2>&1` in
5276 *GNU*)
5277 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5278 *)
5279 ac_count=0
5280 printf %s 0123456789 >"conftest.in"
5281 while :
5282 do
5283 cat "conftest.in" "conftest.in" >"conftest.tmp"
5284 mv "conftest.tmp" "conftest.in"
5285 cp "conftest.in" "conftest.nl"
5286 printf "%s\n" 'EGREP' >> "conftest.nl"
5287 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5289 as_fn_arith $ac_count + 1 && ac_count=$as_val
5290 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5291 # Best one so far, save it but keep looking for a better one
5292 ac_cv_path_EGREP="$ac_path_EGREP"
5293 ac_path_EGREP_max=$ac_count
5294 fi
5295 # 10*(2^10) chars as input seems more than enough
5296 test $ac_count -gt 10 && break
5297 done
5298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5299 esac
5300
5301 $ac_path_EGREP_found && break 3
5302 done
5303 done
5304 done
5305 IFS=$as_save_IFS
5306 if test -z "$ac_cv_path_EGREP"; then
5307 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5308 fi
5309 else
5310 ac_cv_path_EGREP=$EGREP
5311 fi
5312
5313 fi
5314 fi
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5316 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5317 EGREP="$ac_cv_path_EGREP"
5318
5319
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5321 printf %s "checking for fgrep... " >&6; }
5322 if test ${ac_cv_path_FGREP+y}
5323 then :
5324 printf %s "(cached) " >&6
5325 else $as_nop
5326 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5327 then ac_cv_path_FGREP="$GREP -F"
5328 else
5329 if test -z "$FGREP"; then
5330 ac_path_FGREP_found=false
5331 # Loop through the user's path and test for each of PROGNAME-LIST
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5334 do
5335 IFS=$as_save_IFS
5336 case $as_dir in #(((
5337 '') as_dir=./ ;;
5338 */) ;;
5339 *) as_dir=$as_dir/ ;;
5340 esac
5341 for ac_prog in fgrep
5342 do
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5345 as_fn_executable_p "$ac_path_FGREP" || continue
5346 # Check for GNU ac_path_FGREP and select it if it is found.
5347 # Check for GNU $ac_path_FGREP
5348 case `"$ac_path_FGREP" --version 2>&1` in
5349 *GNU*)
5350 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5351 *)
5352 ac_count=0
5353 printf %s 0123456789 >"conftest.in"
5354 while :
5355 do
5356 cat "conftest.in" "conftest.in" >"conftest.tmp"
5357 mv "conftest.tmp" "conftest.in"
5358 cp "conftest.in" "conftest.nl"
5359 printf "%s\n" 'FGREP' >> "conftest.nl"
5360 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5362 as_fn_arith $ac_count + 1 && ac_count=$as_val
5363 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5364 # Best one so far, save it but keep looking for a better one
5365 ac_cv_path_FGREP="$ac_path_FGREP"
5366 ac_path_FGREP_max=$ac_count
5367 fi
5368 # 10*(2^10) chars as input seems more than enough
5369 test $ac_count -gt 10 && break
5370 done
5371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5372 esac
5373
5374 $ac_path_FGREP_found && break 3
5375 done
5376 done
5377 done
5378 IFS=$as_save_IFS
5379 if test -z "$ac_cv_path_FGREP"; then
5380 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5381 fi
5382 else
5383 ac_cv_path_FGREP=$FGREP
5384 fi
5385
5386 fi
5387 fi
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5389 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5390 FGREP="$ac_cv_path_FGREP"
5391
5392
5393 test -z "$GREP" && GREP=grep
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413 # Check whether --with-gnu-ld was given.
5414 if test ${with_gnu_ld+y}
5415 then :
5416 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5417 else $as_nop
5418 with_gnu_ld=no
5419 fi
5420
5421 ac_prog=ld
5422 if test yes = "$GCC"; then
5423 # Check if gcc -print-prog-name=ld gives a path.
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5425 printf %s "checking for ld used by $CC... " >&6; }
5426 case $host in
5427 *-*-mingw*)
5428 # gcc leaves a trailing carriage return, which upsets mingw
5429 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5430 *)
5431 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5432 esac
5433 case $ac_prog in
5434 # Accept absolute paths.
5435 [\\/]* | ?:[\\/]*)
5436 re_direlt='/[^/][^/]*/\.\./'
5437 # Canonicalize the pathname of ld
5438 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5439 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5440 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5441 done
5442 test -z "$LD" && LD=$ac_prog
5443 ;;
5444 "")
5445 # If it fails, then pretend we aren't using GCC.
5446 ac_prog=ld
5447 ;;
5448 *)
5449 # If it is relative, then search for the first ld in PATH.
5450 with_gnu_ld=unknown
5451 ;;
5452 esac
5453 elif test yes = "$with_gnu_ld"; then
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5455 printf %s "checking for GNU ld... " >&6; }
5456 else
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5458 printf %s "checking for non-GNU ld... " >&6; }
5459 fi
5460 if test ${lt_cv_path_LD+y}
5461 then :
5462 printf %s "(cached) " >&6
5463 else $as_nop
5464 if test -z "$LD"; then
5465 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5466 for ac_dir in $PATH; do
5467 IFS=$lt_save_ifs
5468 test -z "$ac_dir" && ac_dir=.
5469 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5470 lt_cv_path_LD=$ac_dir/$ac_prog
5471 # Check to see if the program is GNU ld. I'd rather use --version,
5472 # but apparently some variants of GNU ld only accept -v.
5473 # Break only if it was the GNU/non-GNU ld that we prefer.
5474 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5475 *GNU* | *'with BFD'*)
5476 test no != "$with_gnu_ld" && break
5477 ;;
5478 *)
5479 test yes != "$with_gnu_ld" && break
5480 ;;
5481 esac
5482 fi
5483 done
5484 IFS=$lt_save_ifs
5485 else
5486 lt_cv_path_LD=$LD # Let the user override the test with a path.
5487 fi
5488 fi
5489
5490 LD=$lt_cv_path_LD
5491 if test -n "$LD"; then
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5493 printf "%s\n" "$LD" >&6; }
5494 else
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 printf "%s\n" "no" >&6; }
5497 fi
5498 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5500 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5501 if test ${lt_cv_prog_gnu_ld+y}
5502 then :
5503 printf %s "(cached) " >&6
5504 else $as_nop
5505 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5506 case `$LD -v 2>&1 </dev/null` in
5507 *GNU* | *'with BFD'*)
5508 lt_cv_prog_gnu_ld=yes
5509 ;;
5510 *)
5511 lt_cv_prog_gnu_ld=no
5512 ;;
5513 esac
5514 fi
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5516 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5517 with_gnu_ld=$lt_cv_prog_gnu_ld
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5528 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5529 if test ${lt_cv_path_NM+y}
5530 then :
5531 printf %s "(cached) " >&6
5532 else $as_nop
5533 if test -n "$NM"; then
5534 # Let the user override the test.
5535 lt_cv_path_NM=$NM
5536 else
5537 lt_nm_to_check=${ac_tool_prefix}nm
5538 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5539 lt_nm_to_check="$lt_nm_to_check nm"
5540 fi
5541 for lt_tmp_nm in $lt_nm_to_check; do
5542 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5543 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5544 IFS=$lt_save_ifs
5545 test -z "$ac_dir" && ac_dir=.
5546 tmp_nm=$ac_dir/$lt_tmp_nm
5547 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5548 # Check to see if the nm accepts a BSD-compat flag.
5549 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5550 # nm: unknown option "B" ignored
5551 # Tru64's nm complains that /dev/null is an invalid object file
5552 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5553 case $build_os in
5554 mingw*) lt_bad_file=conftest.nm/nofile ;;
5555 *) lt_bad_file=/dev/null ;;
5556 esac
5557 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5558 *$lt_bad_file* | *'Invalid file or object type'*)
5559 lt_cv_path_NM="$tmp_nm -B"
5560 break 2
5561 ;;
5562 *)
5563 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5564 */dev/null*)
5565 lt_cv_path_NM="$tmp_nm -p"
5566 break 2
5567 ;;
5568 *)
5569 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5570 continue # so that we can try to find one that supports BSD flags
5571 ;;
5572 esac
5573 ;;
5574 esac
5575 fi
5576 done
5577 IFS=$lt_save_ifs
5578 done
5579 : ${lt_cv_path_NM=no}
5580 fi
5581 fi
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5583 printf "%s\n" "$lt_cv_path_NM" >&6; }
5584 if test no != "$lt_cv_path_NM"; then
5585 NM=$lt_cv_path_NM
5586 else
5587 # Didn't find any BSD compatible name lister, look for dumpbin.
5588 if test -n "$DUMPBIN"; then :
5589 # Let the user override the test.
5590 else
5591 if test -n "$ac_tool_prefix"; then
5592 for ac_prog in dumpbin "link -dump"
5593 do
5594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 printf %s "checking for $ac_word... " >&6; }
5598 if test ${ac_cv_prog_DUMPBIN+y}
5599 then :
5600 printf %s "(cached) " >&6
5601 else $as_nop
5602 if test -n "$DUMPBIN"; then
5603 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5604 else
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5607 do
5608 IFS=$as_save_IFS
5609 case $as_dir in #(((
5610 '') as_dir=./ ;;
5611 */) ;;
5612 *) as_dir=$as_dir/ ;;
5613 esac
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620 done
5621 done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 DUMPBIN=$ac_cv_prog_DUMPBIN
5627 if test -n "$DUMPBIN"; then
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5629 printf "%s\n" "$DUMPBIN" >&6; }
5630 else
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 printf "%s\n" "no" >&6; }
5633 fi
5634
5635
5636 test -n "$DUMPBIN" && break
5637 done
5638 fi
5639 if test -z "$DUMPBIN"; then
5640 ac_ct_DUMPBIN=$DUMPBIN
5641 for ac_prog in dumpbin "link -dump"
5642 do
5643 # Extract the first word of "$ac_prog", so it can be a program name with args.
5644 set dummy $ac_prog; ac_word=$2
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 printf %s "checking for $ac_word... " >&6; }
5647 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5648 then :
5649 printf %s "(cached) " >&6
5650 else $as_nop
5651 if test -n "$ac_ct_DUMPBIN"; then
5652 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657 IFS=$as_save_IFS
5658 case $as_dir in #(((
5659 '') as_dir=./ ;;
5660 */) ;;
5661 *) as_dir=$as_dir/ ;;
5662 esac
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5665 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5667 break 2
5668 fi
5669 done
5670 done
5671 IFS=$as_save_IFS
5672
5673 fi
5674 fi
5675 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5676 if test -n "$ac_ct_DUMPBIN"; then
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5678 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5679 else
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 printf "%s\n" "no" >&6; }
5682 fi
5683
5684
5685 test -n "$ac_ct_DUMPBIN" && break
5686 done
5687
5688 if test "x$ac_ct_DUMPBIN" = x; then
5689 DUMPBIN=":"
5690 else
5691 case $cross_compiling:$ac_tool_warned in
5692 yes:)
5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5694 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5695 ac_tool_warned=yes ;;
5696 esac
5697 DUMPBIN=$ac_ct_DUMPBIN
5698 fi
5699 fi
5700
5701 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5702 *COFF*)
5703 DUMPBIN="$DUMPBIN -symbols -headers"
5704 ;;
5705 *)
5706 DUMPBIN=:
5707 ;;
5708 esac
5709 fi
5710
5711 if test : != "$DUMPBIN"; then
5712 NM=$DUMPBIN
5713 fi
5714 fi
5715 test -z "$NM" && NM=nm
5716
5717
5718
5719
5720
5721
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5723 printf %s "checking the name lister ($NM) interface... " >&6; }
5724 if test ${lt_cv_nm_interface+y}
5725 then :
5726 printf %s "(cached) " >&6
5727 else $as_nop
5728 lt_cv_nm_interface="BSD nm"
5729 echo "int some_variable = 0;" > conftest.$ac_ext
5730 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5731 (eval "$ac_compile" 2>conftest.err)
5732 cat conftest.err >&5
5733 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5734 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5735 cat conftest.err >&5
5736 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5737 cat conftest.out >&5
5738 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5739 lt_cv_nm_interface="MS dumpbin"
5740 fi
5741 rm -f conftest*
5742 fi
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5744 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5745
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5747 printf %s "checking whether ln -s works... " >&6; }
5748 LN_S=$as_ln_s
5749 if test "$LN_S" = "ln -s"; then
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5751 printf "%s\n" "yes" >&6; }
5752 else
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5754 printf "%s\n" "no, using $LN_S" >&6; }
5755 fi
5756
5757 # find the maximum length of command line arguments
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5759 printf %s "checking the maximum length of command line arguments... " >&6; }
5760 if test ${lt_cv_sys_max_cmd_len+y}
5761 then :
5762 printf %s "(cached) " >&6
5763 else $as_nop
5764 i=0
5765 teststring=ABCD
5766
5767 case $build_os in
5768 msdosdjgpp*)
5769 # On DJGPP, this test can blow up pretty badly due to problems in libc
5770 # (any single argument exceeding 2000 bytes causes a buffer overrun
5771 # during glob expansion). Even if it were fixed, the result of this
5772 # check would be larger than it should be.
5773 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5774 ;;
5775
5776 gnu*)
5777 # Under GNU Hurd, this test is not required because there is
5778 # no limit to the length of command line arguments.
5779 # Libtool will interpret -1 as no limit whatsoever
5780 lt_cv_sys_max_cmd_len=-1;
5781 ;;
5782
5783 cygwin* | mingw* | cegcc*)
5784 # On Win9x/ME, this test blows up -- it succeeds, but takes
5785 # about 5 minutes as the teststring grows exponentially.
5786 # Worse, since 9x/ME are not pre-emptively multitasking,
5787 # you end up with a "frozen" computer, even though with patience
5788 # the test eventually succeeds (with a max line length of 256k).
5789 # Instead, let's just punt: use the minimum linelength reported by
5790 # all of the supported platforms: 8192 (on NT/2K/XP).
5791 lt_cv_sys_max_cmd_len=8192;
5792 ;;
5793
5794 mint*)
5795 # On MiNT this can take a long time and run out of memory.
5796 lt_cv_sys_max_cmd_len=8192;
5797 ;;
5798
5799 amigaos*)
5800 # On AmigaOS with pdksh, this test takes hours, literally.
5801 # So we just punt and use a minimum line length of 8192.
5802 lt_cv_sys_max_cmd_len=8192;
5803 ;;
5804
5805 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5806 # This has been around since 386BSD, at least. Likely further.
5807 if test -x /sbin/sysctl; then
5808 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5809 elif test -x /usr/sbin/sysctl; then
5810 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5811 else
5812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5813 fi
5814 # And add a safety zone
5815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5817 ;;
5818
5819 interix*)
5820 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5821 lt_cv_sys_max_cmd_len=196608
5822 ;;
5823
5824 os2*)
5825 # The test takes a long time on OS/2.
5826 lt_cv_sys_max_cmd_len=8192
5827 ;;
5828
5829 osf*)
5830 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5831 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5832 # nice to cause kernel panics so lets avoid the loop below.
5833 # First set a reasonable default.
5834 lt_cv_sys_max_cmd_len=16384
5835 #
5836 if test -x /sbin/sysconfig; then
5837 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5838 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5839 esac
5840 fi
5841 ;;
5842 sco3.2v5*)
5843 lt_cv_sys_max_cmd_len=102400
5844 ;;
5845 sysv5* | sco5v6* | sysv4.2uw2*)
5846 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5847 if test -n "$kargmax"; then
5848 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5849 else
5850 lt_cv_sys_max_cmd_len=32768
5851 fi
5852 ;;
5853 *)
5854 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5855 if test -n "$lt_cv_sys_max_cmd_len" && \
5856 test undefined != "$lt_cv_sys_max_cmd_len"; then
5857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5859 else
5860 # Make teststring a little bigger before we do anything with it.
5861 # a 1K string should be a reasonable start.
5862 for i in 1 2 3 4 5 6 7 8; do
5863 teststring=$teststring$teststring
5864 done
5865 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5866 # If test is not a shell built-in, we'll probably end up computing a
5867 # maximum length that is only half of the actual maximum length, but
5868 # we can't tell.
5869 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5870 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5871 test 17 != "$i" # 1/2 MB should be enough
5872 do
5873 i=`expr $i + 1`
5874 teststring=$teststring$teststring
5875 done
5876 # Only check the string length outside the loop.
5877 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5878 teststring=
5879 # Add a significant safety factor because C++ compilers can tack on
5880 # massive amounts of additional arguments before passing them to the
5881 # linker. It appears as though 1/2 is a usable value.
5882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5883 fi
5884 ;;
5885 esac
5886
5887 fi
5888
5889 if test -n "$lt_cv_sys_max_cmd_len"; then
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5891 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5892 else
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5894 printf "%s\n" "none" >&6; }
5895 fi
5896 max_cmd_len=$lt_cv_sys_max_cmd_len
5897
5898
5899
5900
5901
5902
5903 : ${CP="cp -f"}
5904 : ${MV="mv -f"}
5905 : ${RM="rm -f"}
5906
5907 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5908 lt_unset=unset
5909 else
5910 lt_unset=false
5911 fi
5912
5913
5914
5915
5916
5917 # test EBCDIC or ASCII
5918 case `echo X|tr X '\101'` in
5919 A) # ASCII based system
5920 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5921 lt_SP2NL='tr \040 \012'
5922 lt_NL2SP='tr \015\012 \040\040'
5923 ;;
5924 *) # EBCDIC based system
5925 lt_SP2NL='tr \100 \n'
5926 lt_NL2SP='tr \r\n \100\100'
5927 ;;
5928 esac
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5939 printf %s "checking how to convert $build file names to $host format... " >&6; }
5940 if test ${lt_cv_to_host_file_cmd+y}
5941 then :
5942 printf %s "(cached) " >&6
5943 else $as_nop
5944 case $host in
5945 *-*-mingw* )
5946 case $build in
5947 *-*-mingw* ) # actually msys
5948 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5949 ;;
5950 *-*-cygwin* )
5951 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5952 ;;
5953 * ) # otherwise, assume *nix
5954 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5955 ;;
5956 esac
5957 ;;
5958 *-*-cygwin* )
5959 case $build in
5960 *-*-mingw* ) # actually msys
5961 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5962 ;;
5963 *-*-cygwin* )
5964 lt_cv_to_host_file_cmd=func_convert_file_noop
5965 ;;
5966 * ) # otherwise, assume *nix
5967 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5968 ;;
5969 esac
5970 ;;
5971 * ) # unhandled hosts (and "normal" native builds)
5972 lt_cv_to_host_file_cmd=func_convert_file_noop
5973 ;;
5974 esac
5975
5976 fi
5977
5978 to_host_file_cmd=$lt_cv_to_host_file_cmd
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5980 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5981
5982
5983
5984
5985
5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5987 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5988 if test ${lt_cv_to_tool_file_cmd+y}
5989 then :
5990 printf %s "(cached) " >&6
5991 else $as_nop
5992 #assume ordinary cross tools, or native build.
5993 lt_cv_to_tool_file_cmd=func_convert_file_noop
5994 case $host in
5995 *-*-mingw* )
5996 case $build in
5997 *-*-mingw* ) # actually msys
5998 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5999 ;;
6000 esac
6001 ;;
6002 esac
6003
6004 fi
6005
6006 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6008 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6009
6010
6011
6012
6013
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6015 printf %s "checking for $LD option to reload object files... " >&6; }
6016 if test ${lt_cv_ld_reload_flag+y}
6017 then :
6018 printf %s "(cached) " >&6
6019 else $as_nop
6020 lt_cv_ld_reload_flag='-r'
6021 fi
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6023 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6024 reload_flag=$lt_cv_ld_reload_flag
6025 case $reload_flag in
6026 "" | " "*) ;;
6027 *) reload_flag=" $reload_flag" ;;
6028 esac
6029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6030 case $host_os in
6031 cygwin* | mingw* | pw32* | cegcc*)
6032 if test yes != "$GCC"; then
6033 reload_cmds=false
6034 fi
6035 ;;
6036 darwin*)
6037 if test yes = "$GCC"; then
6038 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6039 else
6040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6041 fi
6042 ;;
6043 esac
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053 if test -n "$ac_tool_prefix"; then
6054 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6055 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 printf %s "checking for $ac_word... " >&6; }
6058 if test ${ac_cv_prog_OBJDUMP+y}
6059 then :
6060 printf %s "(cached) " >&6
6061 else $as_nop
6062 if test -n "$OBJDUMP"; then
6063 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068 IFS=$as_save_IFS
6069 case $as_dir in #(((
6070 '') as_dir=./ ;;
6071 */) ;;
6072 *) as_dir=$as_dir/ ;;
6073 esac
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6076 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6078 break 2
6079 fi
6080 done
6081 done
6082 IFS=$as_save_IFS
6083
6084 fi
6085 fi
6086 OBJDUMP=$ac_cv_prog_OBJDUMP
6087 if test -n "$OBJDUMP"; then
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6089 printf "%s\n" "$OBJDUMP" >&6; }
6090 else
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 printf "%s\n" "no" >&6; }
6093 fi
6094
6095
6096 fi
6097 if test -z "$ac_cv_prog_OBJDUMP"; then
6098 ac_ct_OBJDUMP=$OBJDUMP
6099 # Extract the first word of "objdump", so it can be a program name with args.
6100 set dummy objdump; ac_word=$2
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 printf %s "checking for $ac_word... " >&6; }
6103 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6104 then :
6105 printf %s "(cached) " >&6
6106 else $as_nop
6107 if test -n "$ac_ct_OBJDUMP"; then
6108 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113 IFS=$as_save_IFS
6114 case $as_dir in #(((
6115 '') as_dir=./ ;;
6116 */) ;;
6117 *) as_dir=$as_dir/ ;;
6118 esac
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6132 if test -n "$ac_ct_OBJDUMP"; then
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6134 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6135 else
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 printf "%s\n" "no" >&6; }
6138 fi
6139
6140 if test "x$ac_ct_OBJDUMP" = x; then
6141 OBJDUMP="false"
6142 else
6143 case $cross_compiling:$ac_tool_warned in
6144 yes:)
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6146 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6147 ac_tool_warned=yes ;;
6148 esac
6149 OBJDUMP=$ac_ct_OBJDUMP
6150 fi
6151 else
6152 OBJDUMP="$ac_cv_prog_OBJDUMP"
6153 fi
6154
6155 test -z "$OBJDUMP" && OBJDUMP=objdump
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6166 printf %s "checking how to recognize dependent libraries... " >&6; }
6167 if test ${lt_cv_deplibs_check_method+y}
6168 then :
6169 printf %s "(cached) " >&6
6170 else $as_nop
6171 lt_cv_file_magic_cmd='$MAGIC_CMD'
6172 lt_cv_file_magic_test_file=
6173 lt_cv_deplibs_check_method='unknown'
6174 # Need to set the preceding variable on all platforms that support
6175 # interlibrary dependencies.
6176 # 'none' -- dependencies not supported.
6177 # 'unknown' -- same as none, but documents that we really don't know.
6178 # 'pass_all' -- all dependencies passed with no checks.
6179 # 'test_compile' -- check by making test program.
6180 # 'file_magic [[regex]]' -- check by looking for files in library path
6181 # that responds to the $file_magic_cmd with a given extended regex.
6182 # If you have 'file' or equivalent on your system and you're not sure
6183 # whether 'pass_all' will *always* work, you probably want this one.
6184
6185 case $host_os in
6186 aix[4-9]*)
6187 lt_cv_deplibs_check_method=pass_all
6188 ;;
6189
6190 beos*)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
6193
6194 bsdi[45]*)
6195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6196 lt_cv_file_magic_cmd='/usr/bin/file -L'
6197 lt_cv_file_magic_test_file=/shlib/libc.so
6198 ;;
6199
6200 cygwin*)
6201 # func_win32_libid is a shell function defined in ltmain.sh
6202 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6203 lt_cv_file_magic_cmd='func_win32_libid'
6204 ;;
6205
6206 mingw* | pw32*)
6207 # Base MSYS/MinGW do not provide the 'file' command needed by
6208 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6209 # unless we find 'file', for example because we are cross-compiling.
6210 if ( file / ) >/dev/null 2>&1; then
6211 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6212 lt_cv_file_magic_cmd='func_win32_libid'
6213 else
6214 # Keep this pattern in sync with the one in func_win32_libid.
6215 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6216 lt_cv_file_magic_cmd='$OBJDUMP -f'
6217 fi
6218 ;;
6219
6220 cegcc*)
6221 # use the weaker test based on 'objdump'. See mingw*.
6222 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6223 lt_cv_file_magic_cmd='$OBJDUMP -f'
6224 ;;
6225
6226 darwin* | rhapsody*)
6227 lt_cv_deplibs_check_method=pass_all
6228 ;;
6229
6230 freebsd* | dragonfly*)
6231 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6232 case $host_cpu in
6233 i*86 )
6234 # Not sure whether the presence of OpenBSD here was a mistake.
6235 # Let's accept both of them until this is cleared up.
6236 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6237 lt_cv_file_magic_cmd=/usr/bin/file
6238 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6239 ;;
6240 esac
6241 else
6242 lt_cv_deplibs_check_method=pass_all
6243 fi
6244 ;;
6245
6246 haiku*)
6247 lt_cv_deplibs_check_method=pass_all
6248 ;;
6249
6250 hpux10.20* | hpux11*)
6251 lt_cv_file_magic_cmd=/usr/bin/file
6252 case $host_cpu in
6253 ia64*)
6254 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6255 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6256 ;;
6257 hppa*64*)
6258 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]'
6259 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6260 ;;
6261 *)
6262 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6263 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6264 ;;
6265 esac
6266 ;;
6267
6268 interix[3-9]*)
6269 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6271 ;;
6272
6273 irix5* | irix6* | nonstopux*)
6274 case $LD in
6275 *-32|*"-32 ") libmagic=32-bit;;
6276 *-n32|*"-n32 ") libmagic=N32;;
6277 *-64|*"-64 ") libmagic=64-bit;;
6278 *) libmagic=never-match;;
6279 esac
6280 lt_cv_deplibs_check_method=pass_all
6281 ;;
6282
6283 # This must be glibc/ELF.
6284 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6285 lt_cv_deplibs_check_method=pass_all
6286 ;;
6287
6288 netbsd* | netbsdelf*-gnu)
6289 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6291 else
6292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6293 fi
6294 ;;
6295
6296 newos6*)
6297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6298 lt_cv_file_magic_cmd=/usr/bin/file
6299 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6300 ;;
6301
6302 *nto* | *qnx*)
6303 lt_cv_deplibs_check_method=pass_all
6304 ;;
6305
6306 openbsd* | bitrig*)
6307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6309 else
6310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6311 fi
6312 ;;
6313
6314 osf3* | osf4* | osf5*)
6315 lt_cv_deplibs_check_method=pass_all
6316 ;;
6317
6318 rdos*)
6319 lt_cv_deplibs_check_method=pass_all
6320 ;;
6321
6322 solaris*)
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
6325
6326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
6329
6330 sysv4 | sysv4.3*)
6331 case $host_vendor in
6332 motorola)
6333 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]'
6334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6335 ;;
6336 ncr)
6337 lt_cv_deplibs_check_method=pass_all
6338 ;;
6339 sequent)
6340 lt_cv_file_magic_cmd='/bin/file'
6341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6342 ;;
6343 sni)
6344 lt_cv_file_magic_cmd='/bin/file'
6345 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6346 lt_cv_file_magic_test_file=/lib/libc.so
6347 ;;
6348 siemens)
6349 lt_cv_deplibs_check_method=pass_all
6350 ;;
6351 pc)
6352 lt_cv_deplibs_check_method=pass_all
6353 ;;
6354 esac
6355 ;;
6356
6357 tpf*)
6358 lt_cv_deplibs_check_method=pass_all
6359 ;;
6360 os2*)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363 esac
6364
6365 fi
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6367 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6368
6369 file_magic_glob=
6370 want_nocaseglob=no
6371 if test "$build" = "$host"; then
6372 case $host_os in
6373 mingw* | pw32*)
6374 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6375 want_nocaseglob=yes
6376 else
6377 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6378 fi
6379 ;;
6380 esac
6381 fi
6382
6383 file_magic_cmd=$lt_cv_file_magic_cmd
6384 deplibs_check_method=$lt_cv_deplibs_check_method
6385 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408 if test -n "$ac_tool_prefix"; then
6409 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6410 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 printf %s "checking for $ac_word... " >&6; }
6413 if test ${ac_cv_prog_DLLTOOL+y}
6414 then :
6415 printf %s "(cached) " >&6
6416 else $as_nop
6417 if test -n "$DLLTOOL"; then
6418 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423 IFS=$as_save_IFS
6424 case $as_dir in #(((
6425 '') as_dir=./ ;;
6426 */) ;;
6427 *) as_dir=$as_dir/ ;;
6428 esac
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6438
6439 fi
6440 fi
6441 DLLTOOL=$ac_cv_prog_DLLTOOL
6442 if test -n "$DLLTOOL"; then
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6444 printf "%s\n" "$DLLTOOL" >&6; }
6445 else
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 printf "%s\n" "no" >&6; }
6448 fi
6449
6450
6451 fi
6452 if test -z "$ac_cv_prog_DLLTOOL"; then
6453 ac_ct_DLLTOOL=$DLLTOOL
6454 # Extract the first word of "dlltool", so it can be a program name with args.
6455 set dummy dlltool; ac_word=$2
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 printf %s "checking for $ac_word... " >&6; }
6458 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6459 then :
6460 printf %s "(cached) " >&6
6461 else $as_nop
6462 if test -n "$ac_ct_DLLTOOL"; then
6463 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468 IFS=$as_save_IFS
6469 case $as_dir in #(((
6470 '') as_dir=./ ;;
6471 */) ;;
6472 *) as_dir=$as_dir/ ;;
6473 esac
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6478 break 2
6479 fi
6480 done
6481 done
6482 IFS=$as_save_IFS
6483
6484 fi
6485 fi
6486 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6487 if test -n "$ac_ct_DLLTOOL"; then
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6489 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6490 else
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 printf "%s\n" "no" >&6; }
6493 fi
6494
6495 if test "x$ac_ct_DLLTOOL" = x; then
6496 DLLTOOL="false"
6497 else
6498 case $cross_compiling:$ac_tool_warned in
6499 yes:)
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502 ac_tool_warned=yes ;;
6503 esac
6504 DLLTOOL=$ac_ct_DLLTOOL
6505 fi
6506 else
6507 DLLTOOL="$ac_cv_prog_DLLTOOL"
6508 fi
6509
6510 test -z "$DLLTOOL" && DLLTOOL=dlltool
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6522 printf %s "checking how to associate runtime and link libraries... " >&6; }
6523 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6524 then :
6525 printf %s "(cached) " >&6
6526 else $as_nop
6527 lt_cv_sharedlib_from_linklib_cmd='unknown'
6528
6529 case $host_os in
6530 cygwin* | mingw* | pw32* | cegcc*)
6531 # two different shell functions defined in ltmain.sh;
6532 # decide which one to use based on capabilities of $DLLTOOL
6533 case `$DLLTOOL --help 2>&1` in
6534 *--identify-strict*)
6535 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6536 ;;
6537 *)
6538 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6539 ;;
6540 esac
6541 ;;
6542 *)
6543 # fallback: assume linklib IS sharedlib
6544 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6545 ;;
6546 esac
6547
6548 fi
6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6550 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6551 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6552 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6553
6554
6555
6556
6557
6558
6559
6560 if test -n "$ac_tool_prefix"; then
6561 for ac_prog in ar
6562 do
6563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 printf %s "checking for $ac_word... " >&6; }
6567 if test ${ac_cv_prog_AR+y}
6568 then :
6569 printf %s "(cached) " >&6
6570 else $as_nop
6571 if test -n "$AR"; then
6572 ac_cv_prog_AR="$AR" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577 IFS=$as_save_IFS
6578 case $as_dir in #(((
6579 '') as_dir=./ ;;
6580 */) ;;
6581 *) as_dir=$as_dir/ ;;
6582 esac
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6585 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 AR=$ac_cv_prog_AR
6596 if test -n "$AR"; then
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6598 printf "%s\n" "$AR" >&6; }
6599 else
6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 printf "%s\n" "no" >&6; }
6602 fi
6603
6604
6605 test -n "$AR" && break
6606 done
6607 fi
6608 if test -z "$AR"; then
6609 ac_ct_AR=$AR
6610 for ac_prog in ar
6611 do
6612 # Extract the first word of "$ac_prog", so it can be a program name with args.
6613 set dummy $ac_prog; ac_word=$2
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 printf %s "checking for $ac_word... " >&6; }
6616 if test ${ac_cv_prog_ac_ct_AR+y}
6617 then :
6618 printf %s "(cached) " >&6
6619 else $as_nop
6620 if test -n "$ac_ct_AR"; then
6621 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626 IFS=$as_save_IFS
6627 case $as_dir in #(((
6628 '') as_dir=./ ;;
6629 */) ;;
6630 *) as_dir=$as_dir/ ;;
6631 esac
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6634 ac_cv_prog_ac_ct_AR="$ac_prog"
6635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6636 break 2
6637 fi
6638 done
6639 done
6640 IFS=$as_save_IFS
6641
6642 fi
6643 fi
6644 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6645 if test -n "$ac_ct_AR"; then
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6647 printf "%s\n" "$ac_ct_AR" >&6; }
6648 else
6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 printf "%s\n" "no" >&6; }
6651 fi
6652
6653
6654 test -n "$ac_ct_AR" && break
6655 done
6656
6657 if test "x$ac_ct_AR" = x; then
6658 AR="false"
6659 else
6660 case $cross_compiling:$ac_tool_warned in
6661 yes:)
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664 ac_tool_warned=yes ;;
6665 esac
6666 AR=$ac_ct_AR
6667 fi
6668 fi
6669
6670 : ${AR=ar}
6671 : ${AR_FLAGS=cr}
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6684 printf %s "checking for archiver @FILE support... " >&6; }
6685 if test ${lt_cv_ar_at_file+y}
6686 then :
6687 printf %s "(cached) " >&6
6688 else $as_nop
6689 lt_cv_ar_at_file=no
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692
6693 int
6694 main (void)
6695 {
6696
6697 ;
6698 return 0;
6699 }
6700 _ACEOF
6701 if ac_fn_c_try_compile "$LINENO"
6702 then :
6703 echo conftest.$ac_objext > conftest.lst
6704 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6706 (eval $lt_ar_try) 2>&5
6707 ac_status=$?
6708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6709 test $ac_status = 0; }
6710 if test 0 -eq "$ac_status"; then
6711 # Ensure the archiver fails upon bogus file names.
6712 rm -f conftest.$ac_objext libconftest.a
6713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6714 (eval $lt_ar_try) 2>&5
6715 ac_status=$?
6716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6717 test $ac_status = 0; }
6718 if test 0 -ne "$ac_status"; then
6719 lt_cv_ar_at_file=@
6720 fi
6721 fi
6722 rm -f conftest.* libconftest.a
6723
6724 fi
6725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6726
6727 fi
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6729 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6730
6731 if test no = "$lt_cv_ar_at_file"; then
6732 archiver_list_spec=
6733 else
6734 archiver_list_spec=$lt_cv_ar_at_file
6735 fi
6736
6737
6738
6739
6740
6741
6742
6743 if test -n "$ac_tool_prefix"; then
6744 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6745 set dummy ${ac_tool_prefix}strip; ac_word=$2
6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 printf %s "checking for $ac_word... " >&6; }
6748 if test ${ac_cv_prog_STRIP+y}
6749 then :
6750 printf %s "(cached) " >&6
6751 else $as_nop
6752 if test -n "$STRIP"; then
6753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758 IFS=$as_save_IFS
6759 case $as_dir in #(((
6760 '') as_dir=./ ;;
6761 */) ;;
6762 *) as_dir=$as_dir/ ;;
6763 esac
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6766 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6768 break 2
6769 fi
6770 done
6771 done
6772 IFS=$as_save_IFS
6773
6774 fi
6775 fi
6776 STRIP=$ac_cv_prog_STRIP
6777 if test -n "$STRIP"; then
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6779 printf "%s\n" "$STRIP" >&6; }
6780 else
6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 printf "%s\n" "no" >&6; }
6783 fi
6784
6785
6786 fi
6787 if test -z "$ac_cv_prog_STRIP"; then
6788 ac_ct_STRIP=$STRIP
6789 # Extract the first word of "strip", so it can be a program name with args.
6790 set dummy strip; ac_word=$2
6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792 printf %s "checking for $ac_word... " >&6; }
6793 if test ${ac_cv_prog_ac_ct_STRIP+y}
6794 then :
6795 printf %s "(cached) " >&6
6796 else $as_nop
6797 if test -n "$ac_ct_STRIP"; then
6798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803 IFS=$as_save_IFS
6804 case $as_dir in #(((
6805 '') as_dir=./ ;;
6806 */) ;;
6807 *) as_dir=$as_dir/ ;;
6808 esac
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_ac_ct_STRIP="strip"
6812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6822 if test -n "$ac_ct_STRIP"; then
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6824 printf "%s\n" "$ac_ct_STRIP" >&6; }
6825 else
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 printf "%s\n" "no" >&6; }
6828 fi
6829
6830 if test "x$ac_ct_STRIP" = x; then
6831 STRIP=":"
6832 else
6833 case $cross_compiling:$ac_tool_warned in
6834 yes:)
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837 ac_tool_warned=yes ;;
6838 esac
6839 STRIP=$ac_ct_STRIP
6840 fi
6841 else
6842 STRIP="$ac_cv_prog_STRIP"
6843 fi
6844
6845 test -z "$STRIP" && STRIP=:
6846
6847
6848
6849
6850
6851
6852 if test -n "$ac_tool_prefix"; then
6853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 printf %s "checking for $ac_word... " >&6; }
6857 if test ${ac_cv_prog_RANLIB+y}
6858 then :
6859 printf %s "(cached) " >&6
6860 else $as_nop
6861 if test -n "$RANLIB"; then
6862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867 IFS=$as_save_IFS
6868 case $as_dir in #(((
6869 '') as_dir=./ ;;
6870 */) ;;
6871 *) as_dir=$as_dir/ ;;
6872 esac
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879 done
6880 done
6881 IFS=$as_save_IFS
6882
6883 fi
6884 fi
6885 RANLIB=$ac_cv_prog_RANLIB
6886 if test -n "$RANLIB"; then
6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6888 printf "%s\n" "$RANLIB" >&6; }
6889 else
6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 printf "%s\n" "no" >&6; }
6892 fi
6893
6894
6895 fi
6896 if test -z "$ac_cv_prog_RANLIB"; then
6897 ac_ct_RANLIB=$RANLIB
6898 # Extract the first word of "ranlib", so it can be a program name with args.
6899 set dummy ranlib; ac_word=$2
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 printf %s "checking for $ac_word... " >&6; }
6902 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6903 then :
6904 printf %s "(cached) " >&6
6905 else $as_nop
6906 if test -n "$ac_ct_RANLIB"; then
6907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912 IFS=$as_save_IFS
6913 case $as_dir in #(((
6914 '') as_dir=./ ;;
6915 */) ;;
6916 *) as_dir=$as_dir/ ;;
6917 esac
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6920 ac_cv_prog_ac_ct_RANLIB="ranlib"
6921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6927
6928 fi
6929 fi
6930 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6931 if test -n "$ac_ct_RANLIB"; then
6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6933 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6934 else
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 printf "%s\n" "no" >&6; }
6937 fi
6938
6939 if test "x$ac_ct_RANLIB" = x; then
6940 RANLIB=":"
6941 else
6942 case $cross_compiling:$ac_tool_warned in
6943 yes:)
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6945 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6946 ac_tool_warned=yes ;;
6947 esac
6948 RANLIB=$ac_ct_RANLIB
6949 fi
6950 else
6951 RANLIB="$ac_cv_prog_RANLIB"
6952 fi
6953
6954 test -z "$RANLIB" && RANLIB=:
6955
6956
6957
6958
6959
6960
6961 # Determine commands to create old-style static archives.
6962 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6963 old_postinstall_cmds='chmod 644 $oldlib'
6964 old_postuninstall_cmds=
6965
6966 if test -n "$RANLIB"; then
6967 case $host_os in
6968 bitrig* | openbsd*)
6969 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6970 ;;
6971 *)
6972 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6973 ;;
6974 esac
6975 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6976 fi
6977
6978 case $host_os in
6979 darwin*)
6980 lock_old_archive_extraction=yes ;;
6981 *)
6982 lock_old_archive_extraction=no ;;
6983 esac
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023 # If no C compiler was specified, use CC.
7024 LTCC=${LTCC-"$CC"}
7025
7026 # If no C compiler flags were specified, use CFLAGS.
7027 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7028
7029 # Allow CC to be a program name with arguments.
7030 compiler=$CC
7031
7032
7033 # Check for command to grab the raw symbol name followed by C symbol from nm.
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7035 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7036 if test ${lt_cv_sys_global_symbol_pipe+y}
7037 then :
7038 printf %s "(cached) " >&6
7039 else $as_nop
7040
7041 # These are sane defaults that work on at least a few old systems.
7042 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7043
7044 # Character class describing NM global symbol codes.
7045 symcode='[BCDEGRST]'
7046
7047 # Regexp to match symbols that can be accessed directly from C.
7048 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7049
7050 # Define system-specific variables.
7051 case $host_os in
7052 aix*)
7053 symcode='[BCDT]'
7054 ;;
7055 cygwin* | mingw* | pw32* | cegcc*)
7056 symcode='[ABCDGISTW]'
7057 ;;
7058 hpux*)
7059 if test ia64 = "$host_cpu"; then
7060 symcode='[ABCDEGRST]'
7061 fi
7062 ;;
7063 irix* | nonstopux*)
7064 symcode='[BCDEGRST]'
7065 ;;
7066 osf*)
7067 symcode='[BCDEGQRST]'
7068 ;;
7069 solaris*)
7070 symcode='[BDRT]'
7071 ;;
7072 sco3.2v5*)
7073 symcode='[DT]'
7074 ;;
7075 sysv4.2uw2*)
7076 symcode='[DT]'
7077 ;;
7078 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7079 symcode='[ABDT]'
7080 ;;
7081 sysv4)
7082 symcode='[DFNSTU]'
7083 ;;
7084 esac
7085
7086 # If we're using GNU nm, then use its standard symbol codes.
7087 case `$NM -V 2>&1` in
7088 *GNU* | *'with BFD'*)
7089 symcode='[ABCDGIRSTW]' ;;
7090 esac
7091
7092 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7093 # Gets list of data symbols to import.
7094 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7095 # Adjust the below global symbol transforms to fixup imported variables.
7096 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7097 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7098 lt_c_name_lib_hook="\
7099 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7100 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7101 else
7102 # Disable hooks by default.
7103 lt_cv_sys_global_symbol_to_import=
7104 lt_cdecl_hook=
7105 lt_c_name_hook=
7106 lt_c_name_lib_hook=
7107 fi
7108
7109 # Transform an extracted symbol line into a proper C declaration.
7110 # Some systems (esp. on ia64) link data and code symbols differently,
7111 # so use this general approach.
7112 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7113 $lt_cdecl_hook\
7114 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7115 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7116
7117 # Transform an extracted symbol line into symbol name and symbol address
7118 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7119 $lt_c_name_hook\
7120 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7121 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7122
7123 # Transform an extracted symbol line into symbol name with lib prefix and
7124 # symbol address.
7125 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7126 $lt_c_name_lib_hook\
7127 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7128 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7129 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7130
7131 # Handle CRLF in mingw tool chain
7132 opt_cr=
7133 case $build_os in
7134 mingw*)
7135 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7136 ;;
7137 esac
7138
7139 # Try without a prefix underscore, then with it.
7140 for ac_symprfx in "" "_"; do
7141
7142 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7143 symxfrm="\\1 $ac_symprfx\\2 \\2"
7144
7145 # Write the raw and C identifiers.
7146 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7147 # Fake it for dumpbin and say T for any non-static function,
7148 # D for any global variable and I for any imported variable.
7149 # Also find C++ and __fastcall symbols from MSVC++,
7150 # which start with @ or ?.
7151 lt_cv_sys_global_symbol_pipe="$AWK '"\
7152 " {last_section=section; section=\$ 3};"\
7153 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7154 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7155 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7156 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7157 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7158 " \$ 0!~/External *\|/{next};"\
7159 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7160 " {if(hide[section]) next};"\
7161 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7162 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7163 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7164 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7165 " ' prfx=^$ac_symprfx"
7166 else
7167 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7168 fi
7169 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7170
7171 # Check to see that the pipe works correctly.
7172 pipe_works=no
7173
7174 rm -f conftest*
7175 cat > conftest.$ac_ext <<_LT_EOF
7176 #ifdef __cplusplus
7177 extern "C" {
7178 #endif
7179 char nm_test_var;
7180 void nm_test_func(void);
7181 void nm_test_func(void){}
7182 #ifdef __cplusplus
7183 }
7184 #endif
7185 int main(){nm_test_var='a';nm_test_func();return(0);}
7186 _LT_EOF
7187
7188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7189 (eval $ac_compile) 2>&5
7190 ac_status=$?
7191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192 test $ac_status = 0; }; then
7193 # Now try to grab the symbols.
7194 nlist=conftest.nm
7195 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7196 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7197 # Try sorting and uniquifying the output.
7198 if sort "$nlist" | uniq > "$nlist"T; then
7199 mv -f "$nlist"T "$nlist"
7200 else
7201 rm -f "$nlist"T
7202 fi
7203
7204 # Make sure that we snagged all the symbols we need.
7205 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7206 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7207 cat <<_LT_EOF > conftest.$ac_ext
7208 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7209 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7210 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7211 relocations are performed -- see ld's documentation on pseudo-relocs. */
7212 # define LT_DLSYM_CONST
7213 #elif defined __osf__
7214 /* This system does not cope well with relocations in const data. */
7215 # define LT_DLSYM_CONST
7216 #else
7217 # define LT_DLSYM_CONST const
7218 #endif
7219
7220 #ifdef __cplusplus
7221 extern "C" {
7222 #endif
7223
7224 _LT_EOF
7225 # Now generate the symbol file.
7226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7227
7228 cat <<_LT_EOF >> conftest.$ac_ext
7229
7230 /* The mapping between symbol names and symbols. */
7231 LT_DLSYM_CONST struct {
7232 const char *name;
7233 void *address;
7234 }
7235 lt__PROGRAM__LTX_preloaded_symbols[] =
7236 {
7237 { "@PROGRAM@", (void *) 0 },
7238 _LT_EOF
7239 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7240 cat <<\_LT_EOF >> conftest.$ac_ext
7241 {0, (void *) 0}
7242 };
7243
7244 /* This works around a problem in FreeBSD linker */
7245 #ifdef FREEBSD_WORKAROUND
7246 static const void *lt_preloaded_setup() {
7247 return lt__PROGRAM__LTX_preloaded_symbols;
7248 }
7249 #endif
7250
7251 #ifdef __cplusplus
7252 }
7253 #endif
7254 _LT_EOF
7255 # Now try linking the two files.
7256 mv conftest.$ac_objext conftstm.$ac_objext
7257 lt_globsym_save_LIBS=$LIBS
7258 lt_globsym_save_CFLAGS=$CFLAGS
7259 LIBS=conftstm.$ac_objext
7260 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7262 (eval $ac_link) 2>&5
7263 ac_status=$?
7264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7266 pipe_works=yes
7267 fi
7268 LIBS=$lt_globsym_save_LIBS
7269 CFLAGS=$lt_globsym_save_CFLAGS
7270 else
7271 echo "cannot find nm_test_func in $nlist" >&5
7272 fi
7273 else
7274 echo "cannot find nm_test_var in $nlist" >&5
7275 fi
7276 else
7277 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7278 fi
7279 else
7280 echo "$progname: failed program was:" >&5
7281 cat conftest.$ac_ext >&5
7282 fi
7283 rm -rf conftest* conftst*
7284
7285 # Do not use the global_symbol_pipe unless it works.
7286 if test yes = "$pipe_works"; then
7287 break
7288 else
7289 lt_cv_sys_global_symbol_pipe=
7290 fi
7291 done
7292
7293 fi
7294
7295 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7296 lt_cv_sys_global_symbol_to_cdecl=
7297 fi
7298 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7300 printf "%s\n" "failed" >&6; }
7301 else
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7303 printf "%s\n" "ok" >&6; }
7304 fi
7305
7306 # Response file support.
7307 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7308 nm_file_list_spec='@'
7309 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7310 nm_file_list_spec='@'
7311 fi
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7350 printf %s "checking for sysroot... " >&6; }
7351
7352 # Check whether --with-sysroot was given.
7353 if test ${with_sysroot+y}
7354 then :
7355 withval=$with_sysroot;
7356 else $as_nop
7357 with_sysroot=no
7358 fi
7359
7360
7361 lt_sysroot=
7362 case $with_sysroot in #(
7363 yes)
7364 if test yes = "$GCC"; then
7365 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7366 fi
7367 ;; #(
7368 /*)
7369 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7370 ;; #(
7371 no|'')
7372 ;; #(
7373 *)
7374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7375 printf "%s\n" "$with_sysroot" >&6; }
7376 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7377 ;;
7378 esac
7379
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7381 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7382
7383
7384
7385
7386
7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7388 printf %s "checking for a working dd... " >&6; }
7389 if test ${ac_cv_path_lt_DD+y}
7390 then :
7391 printf %s "(cached) " >&6
7392 else $as_nop
7393 printf 0123456789abcdef0123456789abcdef >conftest.i
7394 cat conftest.i conftest.i >conftest2.i
7395 : ${lt_DD:=$DD}
7396 if test -z "$lt_DD"; then
7397 ac_path_lt_DD_found=false
7398 # Loop through the user's path and test for each of PROGNAME-LIST
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402 IFS=$as_save_IFS
7403 case $as_dir in #(((
7404 '') as_dir=./ ;;
7405 */) ;;
7406 *) as_dir=$as_dir/ ;;
7407 esac
7408 for ac_prog in dd
7409 do
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7412 as_fn_executable_p "$ac_path_lt_DD" || continue
7413 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7414 cmp -s conftest.i conftest.out \
7415 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7416 fi
7417 $ac_path_lt_DD_found && break 3
7418 done
7419 done
7420 done
7421 IFS=$as_save_IFS
7422 if test -z "$ac_cv_path_lt_DD"; then
7423 :
7424 fi
7425 else
7426 ac_cv_path_lt_DD=$lt_DD
7427 fi
7428
7429 rm -f conftest.i conftest2.i conftest.out
7430 fi
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7432 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7433
7434
7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7436 printf %s "checking how to truncate binary pipes... " >&6; }
7437 if test ${lt_cv_truncate_bin+y}
7438 then :
7439 printf %s "(cached) " >&6
7440 else $as_nop
7441 printf 0123456789abcdef0123456789abcdef >conftest.i
7442 cat conftest.i conftest.i >conftest2.i
7443 lt_cv_truncate_bin=
7444 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7445 cmp -s conftest.i conftest.out \
7446 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7447 fi
7448 rm -f conftest.i conftest2.i conftest.out
7449 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7450 fi
7451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7452 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7453
7454
7455
7456
7457
7458
7459
7460 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7461 func_cc_basename ()
7462 {
7463 for cc_temp in $*""; do
7464 case $cc_temp in
7465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7467 \-*) ;;
7468 *) break;;
7469 esac
7470 done
7471 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7472 }
7473
7474 # Check whether --enable-libtool-lock was given.
7475 if test ${enable_libtool_lock+y}
7476 then :
7477 enableval=$enable_libtool_lock;
7478 fi
7479
7480 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7481
7482 # Some flags need to be propagated to the compiler or linker for good
7483 # libtool support.
7484 case $host in
7485 ia64-*-hpux*)
7486 # Find out what ABI is being produced by ac_compile, and set mode
7487 # options accordingly.
7488 echo 'int i;' > conftest.$ac_ext
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490 (eval $ac_compile) 2>&5
7491 ac_status=$?
7492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; }; then
7494 case `/usr/bin/file conftest.$ac_objext` in
7495 *ELF-32*)
7496 HPUX_IA64_MODE=32
7497 ;;
7498 *ELF-64*)
7499 HPUX_IA64_MODE=64
7500 ;;
7501 esac
7502 fi
7503 rm -rf conftest*
7504 ;;
7505 *-*-irix6*)
7506 # Find out what ABI is being produced by ac_compile, and set linker
7507 # options accordingly.
7508 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7510 (eval $ac_compile) 2>&5
7511 ac_status=$?
7512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513 test $ac_status = 0; }; then
7514 if test yes = "$lt_cv_prog_gnu_ld"; then
7515 case `/usr/bin/file conftest.$ac_objext` in
7516 *32-bit*)
7517 LD="${LD-ld} -melf32bsmip"
7518 ;;
7519 *N32*)
7520 LD="${LD-ld} -melf32bmipn32"
7521 ;;
7522 *64-bit*)
7523 LD="${LD-ld} -melf64bmip"
7524 ;;
7525 esac
7526 else
7527 case `/usr/bin/file conftest.$ac_objext` in
7528 *32-bit*)
7529 LD="${LD-ld} -32"
7530 ;;
7531 *N32*)
7532 LD="${LD-ld} -n32"
7533 ;;
7534 *64-bit*)
7535 LD="${LD-ld} -64"
7536 ;;
7537 esac
7538 fi
7539 fi
7540 rm -rf conftest*
7541 ;;
7542
7543 mips64*-*linux*)
7544 # Find out what ABI is being produced by ac_compile, and set linker
7545 # options accordingly.
7546 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7548 (eval $ac_compile) 2>&5
7549 ac_status=$?
7550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551 test $ac_status = 0; }; then
7552 emul=elf
7553 case `/usr/bin/file conftest.$ac_objext` in
7554 *32-bit*)
7555 emul="${emul}32"
7556 ;;
7557 *64-bit*)
7558 emul="${emul}64"
7559 ;;
7560 esac
7561 case `/usr/bin/file conftest.$ac_objext` in
7562 *MSB*)
7563 emul="${emul}btsmip"
7564 ;;
7565 *LSB*)
7566 emul="${emul}ltsmip"
7567 ;;
7568 esac
7569 case `/usr/bin/file conftest.$ac_objext` in
7570 *N32*)
7571 emul="${emul}n32"
7572 ;;
7573 esac
7574 LD="${LD-ld} -m $emul"
7575 fi
7576 rm -rf conftest*
7577 ;;
7578
7579 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7580 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7581 # Find out what ABI is being produced by ac_compile, and set linker
7582 # options accordingly. Note that the listed cases only cover the
7583 # situations where additional linker options are needed (such as when
7584 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7585 # vice versa); the common cases where no linker options are needed do
7586 # not appear in the list.
7587 echo 'int i;' > conftest.$ac_ext
7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7589 (eval $ac_compile) 2>&5
7590 ac_status=$?
7591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7592 test $ac_status = 0; }; then
7593 case `/usr/bin/file conftest.o` in
7594 *32-bit*)
7595 case $host in
7596 x86_64-*kfreebsd*-gnu)
7597 LD="${LD-ld} -m elf_i386_fbsd"
7598 ;;
7599 x86_64-*linux*)
7600 case `/usr/bin/file conftest.o` in
7601 *x86-64*)
7602 LD="${LD-ld} -m elf32_x86_64"
7603 ;;
7604 *)
7605 LD="${LD-ld} -m elf_i386"
7606 ;;
7607 esac
7608 ;;
7609 powerpc64le-*linux*)
7610 LD="${LD-ld} -m elf32lppclinux"
7611 ;;
7612 powerpc64-*linux*)
7613 LD="${LD-ld} -m elf32ppclinux"
7614 ;;
7615 s390x-*linux*)
7616 LD="${LD-ld} -m elf_s390"
7617 ;;
7618 sparc64-*linux*)
7619 LD="${LD-ld} -m elf32_sparc"
7620 ;;
7621 esac
7622 ;;
7623 *64-bit*)
7624 case $host in
7625 x86_64-*kfreebsd*-gnu)
7626 LD="${LD-ld} -m elf_x86_64_fbsd"
7627 ;;
7628 x86_64-*linux*)
7629 LD="${LD-ld} -m elf_x86_64"
7630 ;;
7631 powerpcle-*linux*)
7632 LD="${LD-ld} -m elf64lppc"
7633 ;;
7634 powerpc-*linux*)
7635 LD="${LD-ld} -m elf64ppc"
7636 ;;
7637 s390*-*linux*|s390*-*tpf*)
7638 LD="${LD-ld} -m elf64_s390"
7639 ;;
7640 sparc*-*linux*)
7641 LD="${LD-ld} -m elf64_sparc"
7642 ;;
7643 esac
7644 ;;
7645 esac
7646 fi
7647 rm -rf conftest*
7648 ;;
7649
7650 *-*-sco3.2v5*)
7651 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7652 SAVE_CFLAGS=$CFLAGS
7653 CFLAGS="$CFLAGS -belf"
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7655 printf %s "checking whether the C compiler needs -belf... " >&6; }
7656 if test ${lt_cv_cc_needs_belf+y}
7657 then :
7658 printf %s "(cached) " >&6
7659 else $as_nop
7660 ac_ext=c
7661 ac_cpp='$CPP $CPPFLAGS'
7662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7665
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668
7669 int
7670 main (void)
7671 {
7672
7673 ;
7674 return 0;
7675 }
7676 _ACEOF
7677 if ac_fn_c_try_link "$LINENO"
7678 then :
7679 lt_cv_cc_needs_belf=yes
7680 else $as_nop
7681 lt_cv_cc_needs_belf=no
7682 fi
7683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7684 conftest$ac_exeext conftest.$ac_ext
7685 ac_ext=c
7686 ac_cpp='$CPP $CPPFLAGS'
7687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7690
7691 fi
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7693 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7694 if test yes != "$lt_cv_cc_needs_belf"; then
7695 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7696 CFLAGS=$SAVE_CFLAGS
7697 fi
7698 ;;
7699 *-*solaris*)
7700 # Find out what ABI is being produced by ac_compile, and set linker
7701 # options accordingly.
7702 echo 'int i;' > conftest.$ac_ext
7703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7704 (eval $ac_compile) 2>&5
7705 ac_status=$?
7706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; }; then
7708 case `/usr/bin/file conftest.o` in
7709 *64-bit*)
7710 case $lt_cv_prog_gnu_ld in
7711 yes*)
7712 case $host in
7713 i?86-*-solaris*|x86_64-*-solaris*)
7714 LD="${LD-ld} -m elf_x86_64"
7715 ;;
7716 sparc*-*-solaris*)
7717 LD="${LD-ld} -m elf64_sparc"
7718 ;;
7719 esac
7720 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7721 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7722 LD=${LD-ld}_sol2
7723 fi
7724 ;;
7725 *)
7726 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7727 LD="${LD-ld} -64"
7728 fi
7729 ;;
7730 esac
7731 ;;
7732 esac
7733 fi
7734 rm -rf conftest*
7735 ;;
7736 esac
7737
7738 need_locks=$enable_libtool_lock
7739
7740 if test -n "$ac_tool_prefix"; then
7741 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7742 set dummy ${ac_tool_prefix}mt; ac_word=$2
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 printf %s "checking for $ac_word... " >&6; }
7745 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7746 then :
7747 printf %s "(cached) " >&6
7748 else $as_nop
7749 if test -n "$MANIFEST_TOOL"; then
7750 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7754 do
7755 IFS=$as_save_IFS
7756 case $as_dir in #(((
7757 '') as_dir=./ ;;
7758 */) ;;
7759 *) as_dir=$as_dir/ ;;
7760 esac
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7763 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7765 break 2
7766 fi
7767 done
7768 done
7769 IFS=$as_save_IFS
7770
7771 fi
7772 fi
7773 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7774 if test -n "$MANIFEST_TOOL"; then
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7776 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7777 else
7778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 printf "%s\n" "no" >&6; }
7780 fi
7781
7782
7783 fi
7784 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7785 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7786 # Extract the first word of "mt", so it can be a program name with args.
7787 set dummy mt; ac_word=$2
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 printf %s "checking for $ac_word... " >&6; }
7790 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7791 then :
7792 printf %s "(cached) " >&6
7793 else $as_nop
7794 if test -n "$ac_ct_MANIFEST_TOOL"; then
7795 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800 IFS=$as_save_IFS
7801 case $as_dir in #(((
7802 '') as_dir=./ ;;
7803 */) ;;
7804 *) as_dir=$as_dir/ ;;
7805 esac
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7810 break 2
7811 fi
7812 done
7813 done
7814 IFS=$as_save_IFS
7815
7816 fi
7817 fi
7818 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7819 if test -n "$ac_ct_MANIFEST_TOOL"; then
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7821 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7822 else
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 printf "%s\n" "no" >&6; }
7825 fi
7826
7827 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7828 MANIFEST_TOOL=":"
7829 else
7830 case $cross_compiling:$ac_tool_warned in
7831 yes:)
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7833 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7834 ac_tool_warned=yes ;;
7835 esac
7836 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7837 fi
7838 else
7839 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7840 fi
7841
7842 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7844 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7845 if test ${lt_cv_path_mainfest_tool+y}
7846 then :
7847 printf %s "(cached) " >&6
7848 else $as_nop
7849 lt_cv_path_mainfest_tool=no
7850 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7851 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7852 cat conftest.err >&5
7853 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7854 lt_cv_path_mainfest_tool=yes
7855 fi
7856 rm -f conftest*
7857 fi
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7859 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7860 if test yes != "$lt_cv_path_mainfest_tool"; then
7861 MANIFEST_TOOL=:
7862 fi
7863
7864
7865
7866
7867
7868
7869 case $host_os in
7870 rhapsody* | darwin*)
7871 if test -n "$ac_tool_prefix"; then
7872 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7873 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 printf %s "checking for $ac_word... " >&6; }
7876 if test ${ac_cv_prog_DSYMUTIL+y}
7877 then :
7878 printf %s "(cached) " >&6
7879 else $as_nop
7880 if test -n "$DSYMUTIL"; then
7881 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7882 else
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7885 do
7886 IFS=$as_save_IFS
7887 case $as_dir in #(((
7888 '') as_dir=./ ;;
7889 */) ;;
7890 *) as_dir=$as_dir/ ;;
7891 esac
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7894 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7896 break 2
7897 fi
7898 done
7899 done
7900 IFS=$as_save_IFS
7901
7902 fi
7903 fi
7904 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7905 if test -n "$DSYMUTIL"; then
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7907 printf "%s\n" "$DSYMUTIL" >&6; }
7908 else
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 printf "%s\n" "no" >&6; }
7911 fi
7912
7913
7914 fi
7915 if test -z "$ac_cv_prog_DSYMUTIL"; then
7916 ac_ct_DSYMUTIL=$DSYMUTIL
7917 # Extract the first word of "dsymutil", so it can be a program name with args.
7918 set dummy dsymutil; ac_word=$2
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 printf %s "checking for $ac_word... " >&6; }
7921 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7922 then :
7923 printf %s "(cached) " >&6
7924 else $as_nop
7925 if test -n "$ac_ct_DSYMUTIL"; then
7926 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7927 else
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7930 do
7931 IFS=$as_save_IFS
7932 case $as_dir in #(((
7933 '') as_dir=./ ;;
7934 */) ;;
7935 *) as_dir=$as_dir/ ;;
7936 esac
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7939 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7941 break 2
7942 fi
7943 done
7944 done
7945 IFS=$as_save_IFS
7946
7947 fi
7948 fi
7949 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7950 if test -n "$ac_ct_DSYMUTIL"; then
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7952 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7953 else
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 printf "%s\n" "no" >&6; }
7956 fi
7957
7958 if test "x$ac_ct_DSYMUTIL" = x; then
7959 DSYMUTIL=":"
7960 else
7961 case $cross_compiling:$ac_tool_warned in
7962 yes:)
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7964 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7965 ac_tool_warned=yes ;;
7966 esac
7967 DSYMUTIL=$ac_ct_DSYMUTIL
7968 fi
7969 else
7970 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7971 fi
7972
7973 if test -n "$ac_tool_prefix"; then
7974 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7975 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 printf %s "checking for $ac_word... " >&6; }
7978 if test ${ac_cv_prog_NMEDIT+y}
7979 then :
7980 printf %s "(cached) " >&6
7981 else $as_nop
7982 if test -n "$NMEDIT"; then
7983 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7987 do
7988 IFS=$as_save_IFS
7989 case $as_dir in #(((
7990 '') as_dir=./ ;;
7991 */) ;;
7992 *) as_dir=$as_dir/ ;;
7993 esac
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000 done
8001 done
8002 IFS=$as_save_IFS
8003
8004 fi
8005 fi
8006 NMEDIT=$ac_cv_prog_NMEDIT
8007 if test -n "$NMEDIT"; then
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8009 printf "%s\n" "$NMEDIT" >&6; }
8010 else
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 printf "%s\n" "no" >&6; }
8013 fi
8014
8015
8016 fi
8017 if test -z "$ac_cv_prog_NMEDIT"; then
8018 ac_ct_NMEDIT=$NMEDIT
8019 # Extract the first word of "nmedit", so it can be a program name with args.
8020 set dummy nmedit; ac_word=$2
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 printf %s "checking for $ac_word... " >&6; }
8023 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8024 then :
8025 printf %s "(cached) " >&6
8026 else $as_nop
8027 if test -n "$ac_ct_NMEDIT"; then
8028 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033 IFS=$as_save_IFS
8034 case $as_dir in #(((
8035 '') as_dir=./ ;;
8036 */) ;;
8037 *) as_dir=$as_dir/ ;;
8038 esac
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8041 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8043 break 2
8044 fi
8045 done
8046 done
8047 IFS=$as_save_IFS
8048
8049 fi
8050 fi
8051 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8052 if test -n "$ac_ct_NMEDIT"; then
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8054 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8055 else
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 printf "%s\n" "no" >&6; }
8058 fi
8059
8060 if test "x$ac_ct_NMEDIT" = x; then
8061 NMEDIT=":"
8062 else
8063 case $cross_compiling:$ac_tool_warned in
8064 yes:)
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8066 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8067 ac_tool_warned=yes ;;
8068 esac
8069 NMEDIT=$ac_ct_NMEDIT
8070 fi
8071 else
8072 NMEDIT="$ac_cv_prog_NMEDIT"
8073 fi
8074
8075 if test -n "$ac_tool_prefix"; then
8076 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8077 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 printf %s "checking for $ac_word... " >&6; }
8080 if test ${ac_cv_prog_LIPO+y}
8081 then :
8082 printf %s "(cached) " >&6
8083 else $as_nop
8084 if test -n "$LIPO"; then
8085 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8086 else
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8089 do
8090 IFS=$as_save_IFS
8091 case $as_dir in #(((
8092 '') as_dir=./ ;;
8093 */) ;;
8094 *) as_dir=$as_dir/ ;;
8095 esac
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102 done
8103 done
8104 IFS=$as_save_IFS
8105
8106 fi
8107 fi
8108 LIPO=$ac_cv_prog_LIPO
8109 if test -n "$LIPO"; then
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8111 printf "%s\n" "$LIPO" >&6; }
8112 else
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 printf "%s\n" "no" >&6; }
8115 fi
8116
8117
8118 fi
8119 if test -z "$ac_cv_prog_LIPO"; then
8120 ac_ct_LIPO=$LIPO
8121 # Extract the first word of "lipo", so it can be a program name with args.
8122 set dummy lipo; ac_word=$2
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 printf %s "checking for $ac_word... " >&6; }
8125 if test ${ac_cv_prog_ac_ct_LIPO+y}
8126 then :
8127 printf %s "(cached) " >&6
8128 else $as_nop
8129 if test -n "$ac_ct_LIPO"; then
8130 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8134 do
8135 IFS=$as_save_IFS
8136 case $as_dir in #(((
8137 '') as_dir=./ ;;
8138 */) ;;
8139 *) as_dir=$as_dir/ ;;
8140 esac
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8143 ac_cv_prog_ac_ct_LIPO="lipo"
8144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8145 break 2
8146 fi
8147 done
8148 done
8149 IFS=$as_save_IFS
8150
8151 fi
8152 fi
8153 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8154 if test -n "$ac_ct_LIPO"; then
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8156 printf "%s\n" "$ac_ct_LIPO" >&6; }
8157 else
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 printf "%s\n" "no" >&6; }
8160 fi
8161
8162 if test "x$ac_ct_LIPO" = x; then
8163 LIPO=":"
8164 else
8165 case $cross_compiling:$ac_tool_warned in
8166 yes:)
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169 ac_tool_warned=yes ;;
8170 esac
8171 LIPO=$ac_ct_LIPO
8172 fi
8173 else
8174 LIPO="$ac_cv_prog_LIPO"
8175 fi
8176
8177 if test -n "$ac_tool_prefix"; then
8178 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8179 set dummy ${ac_tool_prefix}otool; ac_word=$2
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 printf %s "checking for $ac_word... " >&6; }
8182 if test ${ac_cv_prog_OTOOL+y}
8183 then :
8184 printf %s "(cached) " >&6
8185 else $as_nop
8186 if test -n "$OTOOL"; then
8187 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192 IFS=$as_save_IFS
8193 case $as_dir in #(((
8194 '') as_dir=./ ;;
8195 */) ;;
8196 *) as_dir=$as_dir/ ;;
8197 esac
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8200 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8202 break 2
8203 fi
8204 done
8205 done
8206 IFS=$as_save_IFS
8207
8208 fi
8209 fi
8210 OTOOL=$ac_cv_prog_OTOOL
8211 if test -n "$OTOOL"; then
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8213 printf "%s\n" "$OTOOL" >&6; }
8214 else
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 printf "%s\n" "no" >&6; }
8217 fi
8218
8219
8220 fi
8221 if test -z "$ac_cv_prog_OTOOL"; then
8222 ac_ct_OTOOL=$OTOOL
8223 # Extract the first word of "otool", so it can be a program name with args.
8224 set dummy otool; ac_word=$2
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 printf %s "checking for $ac_word... " >&6; }
8227 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8228 then :
8229 printf %s "(cached) " >&6
8230 else $as_nop
8231 if test -n "$ac_ct_OTOOL"; then
8232 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8233 else
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8236 do
8237 IFS=$as_save_IFS
8238 case $as_dir in #(((
8239 '') as_dir=./ ;;
8240 */) ;;
8241 *) as_dir=$as_dir/ ;;
8242 esac
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8245 ac_cv_prog_ac_ct_OTOOL="otool"
8246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8247 break 2
8248 fi
8249 done
8250 done
8251 IFS=$as_save_IFS
8252
8253 fi
8254 fi
8255 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8256 if test -n "$ac_ct_OTOOL"; then
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8258 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8259 else
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 printf "%s\n" "no" >&6; }
8262 fi
8263
8264 if test "x$ac_ct_OTOOL" = x; then
8265 OTOOL=":"
8266 else
8267 case $cross_compiling:$ac_tool_warned in
8268 yes:)
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8270 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8271 ac_tool_warned=yes ;;
8272 esac
8273 OTOOL=$ac_ct_OTOOL
8274 fi
8275 else
8276 OTOOL="$ac_cv_prog_OTOOL"
8277 fi
8278
8279 if test -n "$ac_tool_prefix"; then
8280 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8281 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 printf %s "checking for $ac_word... " >&6; }
8284 if test ${ac_cv_prog_OTOOL64+y}
8285 then :
8286 printf %s "(cached) " >&6
8287 else $as_nop
8288 if test -n "$OTOOL64"; then
8289 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8293 do
8294 IFS=$as_save_IFS
8295 case $as_dir in #(((
8296 '') as_dir=./ ;;
8297 */) ;;
8298 *) as_dir=$as_dir/ ;;
8299 esac
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8302 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8304 break 2
8305 fi
8306 done
8307 done
8308 IFS=$as_save_IFS
8309
8310 fi
8311 fi
8312 OTOOL64=$ac_cv_prog_OTOOL64
8313 if test -n "$OTOOL64"; then
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8315 printf "%s\n" "$OTOOL64" >&6; }
8316 else
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 printf "%s\n" "no" >&6; }
8319 fi
8320
8321
8322 fi
8323 if test -z "$ac_cv_prog_OTOOL64"; then
8324 ac_ct_OTOOL64=$OTOOL64
8325 # Extract the first word of "otool64", so it can be a program name with args.
8326 set dummy otool64; ac_word=$2
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 printf %s "checking for $ac_word... " >&6; }
8329 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8330 then :
8331 printf %s "(cached) " >&6
8332 else $as_nop
8333 if test -n "$ac_ct_OTOOL64"; then
8334 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8335 else
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337 for as_dir in $PATH
8338 do
8339 IFS=$as_save_IFS
8340 case $as_dir in #(((
8341 '') as_dir=./ ;;
8342 */) ;;
8343 *) as_dir=$as_dir/ ;;
8344 esac
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8347 ac_cv_prog_ac_ct_OTOOL64="otool64"
8348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8349 break 2
8350 fi
8351 done
8352 done
8353 IFS=$as_save_IFS
8354
8355 fi
8356 fi
8357 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8358 if test -n "$ac_ct_OTOOL64"; then
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8360 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8361 else
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 printf "%s\n" "no" >&6; }
8364 fi
8365
8366 if test "x$ac_ct_OTOOL64" = x; then
8367 OTOOL64=":"
8368 else
8369 case $cross_compiling:$ac_tool_warned in
8370 yes:)
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8372 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8373 ac_tool_warned=yes ;;
8374 esac
8375 OTOOL64=$ac_ct_OTOOL64
8376 fi
8377 else
8378 OTOOL64="$ac_cv_prog_OTOOL64"
8379 fi
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8408 printf %s "checking for -single_module linker flag... " >&6; }
8409 if test ${lt_cv_apple_cc_single_mod+y}
8410 then :
8411 printf %s "(cached) " >&6
8412 else $as_nop
8413 lt_cv_apple_cc_single_mod=no
8414 if test -z "$LT_MULTI_MODULE"; then
8415 # By default we will add the -single_module flag. You can override
8416 # by either setting the environment variable LT_MULTI_MODULE
8417 # non-empty at configure time, or by adding -multi_module to the
8418 # link flags.
8419 rm -rf libconftest.dylib*
8420 echo "int foo(void){return 1;}" > conftest.c
8421 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8422 -dynamiclib -Wl,-single_module conftest.c" >&5
8423 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8424 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8425 _lt_result=$?
8426 # If there is a non-empty error log, and "single_module"
8427 # appears in it, assume the flag caused a linker warning
8428 if test -s conftest.err && $GREP single_module conftest.err; then
8429 cat conftest.err >&5
8430 # Otherwise, if the output was created with a 0 exit code from
8431 # the compiler, it worked.
8432 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8433 lt_cv_apple_cc_single_mod=yes
8434 else
8435 cat conftest.err >&5
8436 fi
8437 rm -rf libconftest.dylib*
8438 rm -f conftest.*
8439 fi
8440 fi
8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8442 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8443
8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8445 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8446 if test ${lt_cv_ld_exported_symbols_list+y}
8447 then :
8448 printf %s "(cached) " >&6
8449 else $as_nop
8450 lt_cv_ld_exported_symbols_list=no
8451 save_LDFLAGS=$LDFLAGS
8452 echo "_main" > conftest.sym
8453 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456
8457 int
8458 main (void)
8459 {
8460
8461 ;
8462 return 0;
8463 }
8464 _ACEOF
8465 if ac_fn_c_try_link "$LINENO"
8466 then :
8467 lt_cv_ld_exported_symbols_list=yes
8468 else $as_nop
8469 lt_cv_ld_exported_symbols_list=no
8470 fi
8471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8472 conftest$ac_exeext conftest.$ac_ext
8473 LDFLAGS=$save_LDFLAGS
8474
8475 fi
8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8477 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8478
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8480 printf %s "checking for -force_load linker flag... " >&6; }
8481 if test ${lt_cv_ld_force_load+y}
8482 then :
8483 printf %s "(cached) " >&6
8484 else $as_nop
8485 lt_cv_ld_force_load=no
8486 cat > conftest.c << _LT_EOF
8487 int forced_loaded() { return 2;}
8488 _LT_EOF
8489 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8490 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8491 echo "$AR cr libconftest.a conftest.o" >&5
8492 $AR cr libconftest.a conftest.o 2>&5
8493 echo "$RANLIB libconftest.a" >&5
8494 $RANLIB libconftest.a 2>&5
8495 cat > conftest.c << _LT_EOF
8496 int main() { return 0;}
8497 _LT_EOF
8498 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8499 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8500 _lt_result=$?
8501 if test -s conftest.err && $GREP force_load conftest.err; then
8502 cat conftest.err >&5
8503 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8504 lt_cv_ld_force_load=yes
8505 else
8506 cat conftest.err >&5
8507 fi
8508 rm -f conftest.err libconftest.a conftest conftest.c
8509 rm -rf conftest.dSYM
8510
8511 fi
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8513 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8514 case $host_os in
8515 rhapsody* | darwin1.[012])
8516 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8517 darwin1.*)
8518 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8519 darwin*) # darwin 5.x on
8520 # if running on 10.5 or later, the deployment target defaults
8521 # to the OS version, if on x86, and 10.4, the deployment
8522 # target defaults to 10.4. Don't you love it?
8523 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8524 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
8525 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8526 10.[012][,.]*)
8527 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8528 10.*|11.*)
8529 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8530 esac
8531 ;;
8532 esac
8533 if test yes = "$lt_cv_apple_cc_single_mod"; then
8534 _lt_dar_single_mod='$single_module'
8535 fi
8536 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8537 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8538 else
8539 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8540 fi
8541 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8542 _lt_dsymutil='~$DSYMUTIL $lib || :'
8543 else
8544 _lt_dsymutil=
8545 fi
8546 ;;
8547 esac
8548
8549 # func_munge_path_list VARIABLE PATH
8550 # -----------------------------------
8551 # VARIABLE is name of variable containing _space_ separated list of
8552 # directories to be munged by the contents of PATH, which is string
8553 # having a format:
8554 # "DIR[:DIR]:"
8555 # string "DIR[ DIR]" will be prepended to VARIABLE
8556 # ":DIR[:DIR]"
8557 # string "DIR[ DIR]" will be appended to VARIABLE
8558 # "DIRP[:DIRP]::[DIRA:]DIRA"
8559 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8560 # "DIRA[ DIRA]" will be appended to VARIABLE
8561 # "DIR[:DIR]"
8562 # VARIABLE will be replaced by "DIR[ DIR]"
8563 func_munge_path_list ()
8564 {
8565 case x$2 in
8566 x)
8567 ;;
8568 *:)
8569 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8570 ;;
8571 x:*)
8572 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8573 ;;
8574 *::*)
8575 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8576 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8577 ;;
8578 *)
8579 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8580 ;;
8581 esac
8582 }
8583
8584 ac_header= ac_cache=
8585 for ac_item in $ac_header_c_list
8586 do
8587 if test $ac_cache; then
8588 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8589 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8590 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8591 fi
8592 ac_header= ac_cache=
8593 elif test $ac_header; then
8594 ac_cache=$ac_item
8595 else
8596 ac_header=$ac_item
8597 fi
8598 done
8599
8600
8601
8602
8603
8604
8605
8606
8607 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8608 then :
8609
8610 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8611
8612 fi
8613 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8614 "
8615 if test "x$ac_cv_header_dlfcn_h" = xyes
8616 then :
8617 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8618
8619 fi
8620
8621
8622
8623
8624
8625 # Set options
8626 # Check whether --enable-static was given.
8627 if test ${enable_static+y}
8628 then :
8629 enableval=$enable_static; p=${PACKAGE-default}
8630 case $enableval in
8631 yes) enable_static=yes ;;
8632 no) enable_static=no ;;
8633 *)
8634 enable_static=no
8635 # Look at the argument we got. We use all the common list separators.
8636 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8637 for pkg in $enableval; do
8638 IFS=$lt_save_ifs
8639 if test "X$pkg" = "X$p"; then
8640 enable_static=yes
8641 fi
8642 done
8643 IFS=$lt_save_ifs
8644 ;;
8645 esac
8646 else $as_nop
8647 enable_static=no
8648 fi
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659 enable_dlopen=no
8660
8661
8662 enable_win32_dll=no
8663
8664
8665 # Check whether --enable-shared was given.
8666 if test ${enable_shared+y}
8667 then :
8668 enableval=$enable_shared; p=${PACKAGE-default}
8669 case $enableval in
8670 yes) enable_shared=yes ;;
8671 no) enable_shared=no ;;
8672 *)
8673 enable_shared=no
8674 # Look at the argument we got. We use all the common list separators.
8675 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8676 for pkg in $enableval; do
8677 IFS=$lt_save_ifs
8678 if test "X$pkg" = "X$p"; then
8679 enable_shared=yes
8680 fi
8681 done
8682 IFS=$lt_save_ifs
8683 ;;
8684 esac
8685 else $as_nop
8686 enable_shared=yes
8687 fi
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699 # Check whether --with-pic was given.
8700 if test ${with_pic+y}
8701 then :
8702 withval=$with_pic; lt_p=${PACKAGE-default}
8703 case $withval in
8704 yes|no) pic_mode=$withval ;;
8705 *)
8706 pic_mode=default
8707 # Look at the argument we got. We use all the common list separators.
8708 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8709 for lt_pkg in $withval; do
8710 IFS=$lt_save_ifs
8711 if test "X$lt_pkg" = "X$lt_p"; then
8712 pic_mode=yes
8713 fi
8714 done
8715 IFS=$lt_save_ifs
8716 ;;
8717 esac
8718 else $as_nop
8719 pic_mode=default
8720 fi
8721
8722
8723
8724
8725
8726
8727
8728
8729 # Check whether --enable-fast-install was given.
8730 if test ${enable_fast_install+y}
8731 then :
8732 enableval=$enable_fast_install; p=${PACKAGE-default}
8733 case $enableval in
8734 yes) enable_fast_install=yes ;;
8735 no) enable_fast_install=no ;;
8736 *)
8737 enable_fast_install=no
8738 # Look at the argument we got. We use all the common list separators.
8739 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8740 for pkg in $enableval; do
8741 IFS=$lt_save_ifs
8742 if test "X$pkg" = "X$p"; then
8743 enable_fast_install=yes
8744 fi
8745 done
8746 IFS=$lt_save_ifs
8747 ;;
8748 esac
8749 else $as_nop
8750 enable_fast_install=yes
8751 fi
8752
8753
8754
8755
8756
8757
8758
8759
8760 shared_archive_member_spec=
8761 case $host,$enable_shared in
8762 power*-*-aix[5-9]*,yes)
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8764 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8765
8766 # Check whether --with-aix-soname was given.
8767 if test ${with_aix_soname+y}
8768 then :
8769 withval=$with_aix_soname; case $withval in
8770 aix|svr4|both)
8771 ;;
8772 *)
8773 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8774 ;;
8775 esac
8776 lt_cv_with_aix_soname=$with_aix_soname
8777 else $as_nop
8778 if test ${lt_cv_with_aix_soname+y}
8779 then :
8780 printf %s "(cached) " >&6
8781 else $as_nop
8782 lt_cv_with_aix_soname=aix
8783 fi
8784
8785 with_aix_soname=$lt_cv_with_aix_soname
8786 fi
8787
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8789 printf "%s\n" "$with_aix_soname" >&6; }
8790 if test aix != "$with_aix_soname"; then
8791 # For the AIX way of multilib, we name the shared archive member
8792 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8793 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8794 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8795 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8796 if test 64 = "${OBJECT_MODE-32}"; then
8797 shared_archive_member_spec=shr_64
8798 else
8799 shared_archive_member_spec=shr
8800 fi
8801 fi
8802 ;;
8803 *)
8804 with_aix_soname=aix
8805 ;;
8806 esac
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817 # This can be used to rebuild libtool when needed
8818 LIBTOOL_DEPS=$ltmain
8819
8820 # Always use our own libtool.
8821 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852 test -z "$LN_S" && LN_S="ln -s"
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867 if test -n "${ZSH_VERSION+set}"; then
8868 setopt NO_GLOB_SUBST
8869 fi
8870
8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8872 printf %s "checking for objdir... " >&6; }
8873 if test ${lt_cv_objdir+y}
8874 then :
8875 printf %s "(cached) " >&6
8876 else $as_nop
8877 rm -f .libs 2>/dev/null
8878 mkdir .libs 2>/dev/null
8879 if test -d .libs; then
8880 lt_cv_objdir=.libs
8881 else
8882 # MS-DOS does not allow filenames that begin with a dot.
8883 lt_cv_objdir=_libs
8884 fi
8885 rmdir .libs 2>/dev/null
8886 fi
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8888 printf "%s\n" "$lt_cv_objdir" >&6; }
8889 objdir=$lt_cv_objdir
8890
8891
8892
8893
8894
8895 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8896
8897
8898
8899
8900 case $host_os in
8901 aix3*)
8902 # AIX sometimes has problems with the GCC collect2 program. For some
8903 # reason, if we set the COLLECT_NAMES environment variable, the problems
8904 # vanish in a puff of smoke.
8905 if test set != "${COLLECT_NAMES+set}"; then
8906 COLLECT_NAMES=
8907 export COLLECT_NAMES
8908 fi
8909 ;;
8910 esac
8911
8912 # Global variables:
8913 ofile=libtool
8914 can_build_shared=yes
8915
8916 # All known linkers require a '.a' archive for static linking (except MSVC,
8917 # which needs '.lib').
8918 libext=a
8919
8920 with_gnu_ld=$lt_cv_prog_gnu_ld
8921
8922 old_CC=$CC
8923 old_CFLAGS=$CFLAGS
8924
8925 # Set sane defaults for various variables
8926 test -z "$CC" && CC=cc
8927 test -z "$LTCC" && LTCC=$CC
8928 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8929 test -z "$LD" && LD=ld
8930 test -z "$ac_objext" && ac_objext=o
8931
8932 func_cc_basename $compiler
8933 cc_basename=$func_cc_basename_result
8934
8935
8936 # Only perform the check for file, if the check method requires it
8937 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8938 case $deplibs_check_method in
8939 file_magic*)
8940 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8942 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8943 if test ${lt_cv_path_MAGIC_CMD+y}
8944 then :
8945 printf %s "(cached) " >&6
8946 else $as_nop
8947 case $MAGIC_CMD in
8948 [\\/*] | ?:[\\/]*)
8949 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8950 ;;
8951 *)
8952 lt_save_MAGIC_CMD=$MAGIC_CMD
8953 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8954 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8955 for ac_dir in $ac_dummy; do
8956 IFS=$lt_save_ifs
8957 test -z "$ac_dir" && ac_dir=.
8958 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8959 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8960 if test -n "$file_magic_test_file"; then
8961 case $deplibs_check_method in
8962 "file_magic "*)
8963 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8964 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8966 $EGREP "$file_magic_regex" > /dev/null; then
8967 :
8968 else
8969 cat <<_LT_EOF 1>&2
8970
8971 *** Warning: the command libtool uses to detect shared libraries,
8972 *** $file_magic_cmd, produces output that libtool cannot recognize.
8973 *** The result is that libtool may fail to recognize shared libraries
8974 *** as such. This will affect the creation of libtool libraries that
8975 *** depend on shared libraries, but programs linked with such libtool
8976 *** libraries will work regardless of this problem. Nevertheless, you
8977 *** may want to report the problem to your system manager and/or to
8978 *** [email protected]
8979
8980 _LT_EOF
8981 fi ;;
8982 esac
8983 fi
8984 break
8985 fi
8986 done
8987 IFS=$lt_save_ifs
8988 MAGIC_CMD=$lt_save_MAGIC_CMD
8989 ;;
8990 esac
8991 fi
8992
8993 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8994 if test -n "$MAGIC_CMD"; then
8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8996 printf "%s\n" "$MAGIC_CMD" >&6; }
8997 else
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 printf "%s\n" "no" >&6; }
9000 fi
9001
9002
9003
9004
9005
9006 if test -z "$lt_cv_path_MAGIC_CMD"; then
9007 if test -n "$ac_tool_prefix"; then
9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9009 printf %s "checking for file... " >&6; }
9010 if test ${lt_cv_path_MAGIC_CMD+y}
9011 then :
9012 printf %s "(cached) " >&6
9013 else $as_nop
9014 case $MAGIC_CMD in
9015 [\\/*] | ?:[\\/]*)
9016 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9017 ;;
9018 *)
9019 lt_save_MAGIC_CMD=$MAGIC_CMD
9020 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9022 for ac_dir in $ac_dummy; do
9023 IFS=$lt_save_ifs
9024 test -z "$ac_dir" && ac_dir=.
9025 if test -f "$ac_dir/file"; then
9026 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9027 if test -n "$file_magic_test_file"; then
9028 case $deplibs_check_method in
9029 "file_magic "*)
9030 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9031 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9033 $EGREP "$file_magic_regex" > /dev/null; then
9034 :
9035 else
9036 cat <<_LT_EOF 1>&2
9037
9038 *** Warning: the command libtool uses to detect shared libraries,
9039 *** $file_magic_cmd, produces output that libtool cannot recognize.
9040 *** The result is that libtool may fail to recognize shared libraries
9041 *** as such. This will affect the creation of libtool libraries that
9042 *** depend on shared libraries, but programs linked with such libtool
9043 *** libraries will work regardless of this problem. Nevertheless, you
9044 *** may want to report the problem to your system manager and/or to
9045 *** [email protected]
9046
9047 _LT_EOF
9048 fi ;;
9049 esac
9050 fi
9051 break
9052 fi
9053 done
9054 IFS=$lt_save_ifs
9055 MAGIC_CMD=$lt_save_MAGIC_CMD
9056 ;;
9057 esac
9058 fi
9059
9060 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9061 if test -n "$MAGIC_CMD"; then
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9063 printf "%s\n" "$MAGIC_CMD" >&6; }
9064 else
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 printf "%s\n" "no" >&6; }
9067 fi
9068
9069
9070 else
9071 MAGIC_CMD=:
9072 fi
9073 fi
9074
9075 fi
9076 ;;
9077 esac
9078
9079 # Use C for the default configuration in the libtool script
9080
9081 lt_save_CC=$CC
9082 ac_ext=c
9083 ac_cpp='$CPP $CPPFLAGS'
9084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9087
9088
9089 # Source file extension for C test sources.
9090 ac_ext=c
9091
9092 # Object file extension for compiled C test sources.
9093 objext=o
9094 objext=$objext
9095
9096 # Code to be used in simple compile tests
9097 lt_simple_compile_test_code="int some_variable = 0;"
9098
9099 # Code to be used in simple link tests
9100 lt_simple_link_test_code='int main(){return(0);}'
9101
9102
9103
9104
9105
9106
9107
9108 # If no C compiler was specified, use CC.
9109 LTCC=${LTCC-"$CC"}
9110
9111 # If no C compiler flags were specified, use CFLAGS.
9112 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9113
9114 # Allow CC to be a program name with arguments.
9115 compiler=$CC
9116
9117 # Save the default compiler, since it gets overwritten when the other
9118 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9119 compiler_DEFAULT=$CC
9120
9121 # save warnings/boilerplate of simple test code
9122 ac_outfile=conftest.$ac_objext
9123 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9124 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9125 _lt_compiler_boilerplate=`cat conftest.err`
9126 $RM conftest*
9127
9128 ac_outfile=conftest.$ac_objext
9129 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9130 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9131 _lt_linker_boilerplate=`cat conftest.err`
9132 $RM -r conftest*
9133
9134
9135 ## CAVEAT EMPTOR:
9136 ## There is no encapsulation within the following macros, do not change
9137 ## the running order or otherwise move them around unless you know exactly
9138 ## what you are doing...
9139 if test -n "$compiler"; then
9140
9141 lt_prog_compiler_no_builtin_flag=
9142
9143 if test yes = "$GCC"; then
9144 case $cc_basename in
9145 nvcc*)
9146 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9147 *)
9148 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9149 esac
9150
9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9152 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9153 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9154 then :
9155 printf %s "(cached) " >&6
9156 else $as_nop
9157 lt_cv_prog_compiler_rtti_exceptions=no
9158 ac_outfile=conftest.$ac_objext
9159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9160 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9161 # Insert the option either (1) after the last *FLAGS variable, or
9162 # (2) before a word containing "conftest.", or (3) at the end.
9163 # Note that $ac_compile itself does not contain backslashes and begins
9164 # with a dollar sign (not a hyphen), so the echo should work correctly.
9165 # The option is referenced via a variable to avoid confusing sed.
9166 lt_compile=`echo "$ac_compile" | $SED \
9167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9169 -e 's:$: $lt_compiler_flag:'`
9170 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9171 (eval "$lt_compile" 2>conftest.err)
9172 ac_status=$?
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 if (exit $ac_status) && test -s "$ac_outfile"; then
9176 # The compiler can only warn and ignore the option if not recognized
9177 # So say no if there are warnings other than the usual output.
9178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9180 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9181 lt_cv_prog_compiler_rtti_exceptions=yes
9182 fi
9183 fi
9184 $RM conftest*
9185
9186 fi
9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9188 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9189
9190 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9191 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9192 else
9193 :
9194 fi
9195
9196 fi
9197
9198
9199
9200
9201
9202
9203 lt_prog_compiler_wl=
9204 lt_prog_compiler_pic=
9205 lt_prog_compiler_static=
9206
9207
9208 if test yes = "$GCC"; then
9209 lt_prog_compiler_wl='-Wl,'
9210 lt_prog_compiler_static='-static'
9211
9212 case $host_os in
9213 aix*)
9214 # All AIX code is PIC.
9215 if test ia64 = "$host_cpu"; then
9216 # AIX 5 now supports IA64 processor
9217 lt_prog_compiler_static='-Bstatic'
9218 fi
9219 lt_prog_compiler_pic='-fPIC'
9220 ;;
9221
9222 amigaos*)
9223 case $host_cpu in
9224 powerpc)
9225 # see comment about AmigaOS4 .so support
9226 lt_prog_compiler_pic='-fPIC'
9227 ;;
9228 m68k)
9229 # FIXME: we need at least 68020 code to build shared libraries, but
9230 # adding the '-m68020' flag to GCC prevents building anything better,
9231 # like '-m68040'.
9232 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9233 ;;
9234 esac
9235 ;;
9236
9237 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9238 # PIC is the default for these OSes.
9239 ;;
9240
9241 mingw* | cygwin* | pw32* | os2* | cegcc*)
9242 # This hack is so that the source file can tell whether it is being
9243 # built for inclusion in a dll (and should export symbols for example).
9244 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9245 # (--disable-auto-import) libraries
9246 lt_prog_compiler_pic='-DDLL_EXPORT'
9247 case $host_os in
9248 os2*)
9249 lt_prog_compiler_static='$wl-static'
9250 ;;
9251 esac
9252 ;;
9253
9254 darwin* | rhapsody*)
9255 # PIC is the default on this platform
9256 # Common symbols not allowed in MH_DYLIB files
9257 lt_prog_compiler_pic='-fno-common'
9258 ;;
9259
9260 haiku*)
9261 # PIC is the default for Haiku.
9262 # The "-static" flag exists, but is broken.
9263 lt_prog_compiler_static=
9264 ;;
9265
9266 hpux*)
9267 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9268 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9269 # sets the default TLS model and affects inlining.
9270 case $host_cpu in
9271 hppa*64*)
9272 # +Z the default
9273 ;;
9274 *)
9275 lt_prog_compiler_pic='-fPIC'
9276 ;;
9277 esac
9278 ;;
9279
9280 interix[3-9]*)
9281 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9282 # Instead, we relocate shared libraries at runtime.
9283 ;;
9284
9285 msdosdjgpp*)
9286 # Just because we use GCC doesn't mean we suddenly get shared libraries
9287 # on systems that don't support them.
9288 lt_prog_compiler_can_build_shared=no
9289 enable_shared=no
9290 ;;
9291
9292 *nto* | *qnx*)
9293 # QNX uses GNU C++, but need to define -shared option too, otherwise
9294 # it will coredump.
9295 lt_prog_compiler_pic='-fPIC -shared'
9296 ;;
9297
9298 sysv4*MP*)
9299 if test -d /usr/nec; then
9300 lt_prog_compiler_pic=-Kconform_pic
9301 fi
9302 ;;
9303
9304 *)
9305 lt_prog_compiler_pic='-fPIC'
9306 ;;
9307 esac
9308
9309 case $cc_basename in
9310 nvcc*) # Cuda Compiler Driver 2.2
9311 lt_prog_compiler_wl='-Xlinker '
9312 if test -n "$lt_prog_compiler_pic"; then
9313 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9314 fi
9315 ;;
9316 esac
9317 else
9318 # PORTME Check for flag to pass linker flags through the system compiler.
9319 case $host_os in
9320 aix*)
9321 lt_prog_compiler_wl='-Wl,'
9322 if test ia64 = "$host_cpu"; then
9323 # AIX 5 now supports IA64 processor
9324 lt_prog_compiler_static='-Bstatic'
9325 else
9326 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9327 fi
9328 ;;
9329
9330 darwin* | rhapsody*)
9331 # PIC is the default on this platform
9332 # Common symbols not allowed in MH_DYLIB files
9333 lt_prog_compiler_pic='-fno-common'
9334 case $cc_basename in
9335 nagfor*)
9336 # NAG Fortran compiler
9337 lt_prog_compiler_wl='-Wl,-Wl,,'
9338 lt_prog_compiler_pic='-PIC'
9339 lt_prog_compiler_static='-Bstatic'
9340 ;;
9341 esac
9342 ;;
9343
9344 mingw* | cygwin* | pw32* | os2* | cegcc*)
9345 # This hack is so that the source file can tell whether it is being
9346 # built for inclusion in a dll (and should export symbols for example).
9347 lt_prog_compiler_pic='-DDLL_EXPORT'
9348 case $host_os in
9349 os2*)
9350 lt_prog_compiler_static='$wl-static'
9351 ;;
9352 esac
9353 ;;
9354
9355 hpux9* | hpux10* | hpux11*)
9356 lt_prog_compiler_wl='-Wl,'
9357 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9358 # not for PA HP-UX.
9359 case $host_cpu in
9360 hppa*64*|ia64*)
9361 # +Z the default
9362 ;;
9363 *)
9364 lt_prog_compiler_pic='+Z'
9365 ;;
9366 esac
9367 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9368 lt_prog_compiler_static='$wl-a ${wl}archive'
9369 ;;
9370
9371 irix5* | irix6* | nonstopux*)
9372 lt_prog_compiler_wl='-Wl,'
9373 # PIC (with -KPIC) is the default.
9374 lt_prog_compiler_static='-non_shared'
9375 ;;
9376
9377 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9378 case $cc_basename in
9379 # old Intel for x86_64, which still supported -KPIC.
9380 ecc*)
9381 lt_prog_compiler_wl='-Wl,'
9382 lt_prog_compiler_pic='-KPIC'
9383 lt_prog_compiler_static='-static'
9384 ;;
9385 # flang / f18. f95 an alias for gfortran or flang on Debian
9386 flang* | f18* | f95*)
9387 lt_prog_compiler_wl='-Wl,'
9388 lt_prog_compiler_pic='-fPIC'
9389 lt_prog_compiler_static='-static'
9390 ;;
9391 # icc used to be incompatible with GCC.
9392 # ICC 10 doesn't accept -KPIC any more.
9393 icc* | ifort*)
9394 lt_prog_compiler_wl='-Wl,'
9395 lt_prog_compiler_pic='-fPIC'
9396 lt_prog_compiler_static='-static'
9397 ;;
9398 # Lahey Fortran 8.1.
9399 lf95*)
9400 lt_prog_compiler_wl='-Wl,'
9401 lt_prog_compiler_pic='--shared'
9402 lt_prog_compiler_static='--static'
9403 ;;
9404 nagfor*)
9405 # NAG Fortran compiler
9406 lt_prog_compiler_wl='-Wl,-Wl,,'
9407 lt_prog_compiler_pic='-PIC'
9408 lt_prog_compiler_static='-Bstatic'
9409 ;;
9410 tcc*)
9411 # Fabrice Bellard et al's Tiny C Compiler
9412 lt_prog_compiler_wl='-Wl,'
9413 lt_prog_compiler_pic='-fPIC'
9414 lt_prog_compiler_static='-static'
9415 ;;
9416 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9417 # Portland Group compilers (*not* the Pentium gcc compiler,
9418 # which looks to be a dead project)
9419 lt_prog_compiler_wl='-Wl,'
9420 lt_prog_compiler_pic='-fpic'
9421 lt_prog_compiler_static='-Bstatic'
9422 ;;
9423 ccc*)
9424 lt_prog_compiler_wl='-Wl,'
9425 # All Alpha code is PIC.
9426 lt_prog_compiler_static='-non_shared'
9427 ;;
9428 xl* | bgxl* | bgf* | mpixl*)
9429 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9430 lt_prog_compiler_wl='-Wl,'
9431 lt_prog_compiler_pic='-qpic'
9432 lt_prog_compiler_static='-qstaticlink'
9433 ;;
9434 *)
9435 case `$CC -V 2>&1 | sed 5q` in
9436 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9437 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9438 lt_prog_compiler_pic='-KPIC'
9439 lt_prog_compiler_static='-Bstatic'
9440 lt_prog_compiler_wl=''
9441 ;;
9442 *Sun\ F* | *Sun*Fortran*)
9443 lt_prog_compiler_pic='-KPIC'
9444 lt_prog_compiler_static='-Bstatic'
9445 lt_prog_compiler_wl='-Qoption ld '
9446 ;;
9447 *Sun\ C*)
9448 # Sun C 5.9
9449 lt_prog_compiler_pic='-KPIC'
9450 lt_prog_compiler_static='-Bstatic'
9451 lt_prog_compiler_wl='-Wl,'
9452 ;;
9453 *Intel*\ [CF]*Compiler*)
9454 lt_prog_compiler_wl='-Wl,'
9455 lt_prog_compiler_pic='-fPIC'
9456 lt_prog_compiler_static='-static'
9457 ;;
9458 *Portland\ Group*)
9459 lt_prog_compiler_wl='-Wl,'
9460 lt_prog_compiler_pic='-fpic'
9461 lt_prog_compiler_static='-Bstatic'
9462 ;;
9463 esac
9464 ;;
9465 esac
9466 ;;
9467
9468 newsos6)
9469 lt_prog_compiler_pic='-KPIC'
9470 lt_prog_compiler_static='-Bstatic'
9471 ;;
9472
9473 *nto* | *qnx*)
9474 # QNX uses GNU C++, but need to define -shared option too, otherwise
9475 # it will coredump.
9476 lt_prog_compiler_pic='-fPIC -shared'
9477 ;;
9478
9479 osf3* | osf4* | osf5*)
9480 lt_prog_compiler_wl='-Wl,'
9481 # All OSF/1 code is PIC.
9482 lt_prog_compiler_static='-non_shared'
9483 ;;
9484
9485 rdos*)
9486 lt_prog_compiler_static='-non_shared'
9487 ;;
9488
9489 solaris*)
9490 lt_prog_compiler_pic='-KPIC'
9491 lt_prog_compiler_static='-Bstatic'
9492 case $cc_basename in
9493 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9494 lt_prog_compiler_wl='-Qoption ld ';;
9495 *)
9496 lt_prog_compiler_wl='-Wl,';;
9497 esac
9498 ;;
9499
9500 sunos4*)
9501 lt_prog_compiler_wl='-Qoption ld '
9502 lt_prog_compiler_pic='-PIC'
9503 lt_prog_compiler_static='-Bstatic'
9504 ;;
9505
9506 sysv4 | sysv4.2uw2* | sysv4.3*)
9507 lt_prog_compiler_wl='-Wl,'
9508 lt_prog_compiler_pic='-KPIC'
9509 lt_prog_compiler_static='-Bstatic'
9510 ;;
9511
9512 sysv4*MP*)
9513 if test -d /usr/nec; then
9514 lt_prog_compiler_pic='-Kconform_pic'
9515 lt_prog_compiler_static='-Bstatic'
9516 fi
9517 ;;
9518
9519 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9520 lt_prog_compiler_wl='-Wl,'
9521 lt_prog_compiler_pic='-KPIC'
9522 lt_prog_compiler_static='-Bstatic'
9523 ;;
9524
9525 unicos*)
9526 lt_prog_compiler_wl='-Wl,'
9527 lt_prog_compiler_can_build_shared=no
9528 ;;
9529
9530 uts4*)
9531 lt_prog_compiler_pic='-pic'
9532 lt_prog_compiler_static='-Bstatic'
9533 ;;
9534
9535 *)
9536 lt_prog_compiler_can_build_shared=no
9537 ;;
9538 esac
9539 fi
9540
9541 case $host_os in
9542 # For platforms that do not support PIC, -DPIC is meaningless:
9543 *djgpp*)
9544 lt_prog_compiler_pic=
9545 ;;
9546 *)
9547 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9548 ;;
9549 esac
9550
9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9552 printf %s "checking for $compiler option to produce PIC... " >&6; }
9553 if test ${lt_cv_prog_compiler_pic+y}
9554 then :
9555 printf %s "(cached) " >&6
9556 else $as_nop
9557 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9558 fi
9559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9560 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9561 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9562
9563 #
9564 # Check to make sure the PIC flag actually works.
9565 #
9566 if test -n "$lt_prog_compiler_pic"; then
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9568 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9569 if test ${lt_cv_prog_compiler_pic_works+y}
9570 then :
9571 printf %s "(cached) " >&6
9572 else $as_nop
9573 lt_cv_prog_compiler_pic_works=no
9574 ac_outfile=conftest.$ac_objext
9575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9576 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9577 # Insert the option either (1) after the last *FLAGS variable, or
9578 # (2) before a word containing "conftest.", or (3) at the end.
9579 # Note that $ac_compile itself does not contain backslashes and begins
9580 # with a dollar sign (not a hyphen), so the echo should work correctly.
9581 # The option is referenced via a variable to avoid confusing sed.
9582 lt_compile=`echo "$ac_compile" | $SED \
9583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9585 -e 's:$: $lt_compiler_flag:'`
9586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9587 (eval "$lt_compile" 2>conftest.err)
9588 ac_status=$?
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 if (exit $ac_status) && test -s "$ac_outfile"; then
9592 # The compiler can only warn and ignore the option if not recognized
9593 # So say no if there are warnings other than the usual output.
9594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9596 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9597 lt_cv_prog_compiler_pic_works=yes
9598 fi
9599 fi
9600 $RM conftest*
9601
9602 fi
9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9604 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9605
9606 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9607 case $lt_prog_compiler_pic in
9608 "" | " "*) ;;
9609 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9610 esac
9611 else
9612 lt_prog_compiler_pic=
9613 lt_prog_compiler_can_build_shared=no
9614 fi
9615
9616 fi
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628 #
9629 # Check to make sure the static flag actually works.
9630 #
9631 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9633 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9634 if test ${lt_cv_prog_compiler_static_works+y}
9635 then :
9636 printf %s "(cached) " >&6
9637 else $as_nop
9638 lt_cv_prog_compiler_static_works=no
9639 save_LDFLAGS=$LDFLAGS
9640 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9641 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9642 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9643 # The linker can only warn and ignore the option if not recognized
9644 # So say no if there are warnings
9645 if test -s conftest.err; then
9646 # Append any errors to the config.log.
9647 cat conftest.err 1>&5
9648 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9650 if diff conftest.exp conftest.er2 >/dev/null; then
9651 lt_cv_prog_compiler_static_works=yes
9652 fi
9653 else
9654 lt_cv_prog_compiler_static_works=yes
9655 fi
9656 fi
9657 $RM -r conftest*
9658 LDFLAGS=$save_LDFLAGS
9659
9660 fi
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9662 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9663
9664 if test yes = "$lt_cv_prog_compiler_static_works"; then
9665 :
9666 else
9667 lt_prog_compiler_static=
9668 fi
9669
9670
9671
9672
9673
9674
9675
9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9677 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9678 if test ${lt_cv_prog_compiler_c_o+y}
9679 then :
9680 printf %s "(cached) " >&6
9681 else $as_nop
9682 lt_cv_prog_compiler_c_o=no
9683 $RM -r conftest 2>/dev/null
9684 mkdir conftest
9685 cd conftest
9686 mkdir out
9687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9688
9689 lt_compiler_flag="-o out/conftest2.$ac_objext"
9690 # Insert the option either (1) after the last *FLAGS variable, or
9691 # (2) before a word containing "conftest.", or (3) at the end.
9692 # Note that $ac_compile itself does not contain backslashes and begins
9693 # with a dollar sign (not a hyphen), so the echo should work correctly.
9694 lt_compile=`echo "$ac_compile" | $SED \
9695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9697 -e 's:$: $lt_compiler_flag:'`
9698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9699 (eval "$lt_compile" 2>out/conftest.err)
9700 ac_status=$?
9701 cat out/conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9704 then
9705 # The compiler can only warn and ignore the option if not recognized
9706 # So say no if there are warnings
9707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9710 lt_cv_prog_compiler_c_o=yes
9711 fi
9712 fi
9713 chmod u+w . 2>&5
9714 $RM conftest*
9715 # SGI C++ compiler will create directory out/ii_files/ for
9716 # template instantiation
9717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9718 $RM out/* && rmdir out
9719 cd ..
9720 $RM -r conftest
9721 $RM conftest*
9722
9723 fi
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9725 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9726
9727
9728
9729
9730
9731
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9733 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9734 if test ${lt_cv_prog_compiler_c_o+y}
9735 then :
9736 printf %s "(cached) " >&6
9737 else $as_nop
9738 lt_cv_prog_compiler_c_o=no
9739 $RM -r conftest 2>/dev/null
9740 mkdir conftest
9741 cd conftest
9742 mkdir out
9743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9744
9745 lt_compiler_flag="-o out/conftest2.$ac_objext"
9746 # Insert the option either (1) after the last *FLAGS variable, or
9747 # (2) before a word containing "conftest.", or (3) at the end.
9748 # Note that $ac_compile itself does not contain backslashes and begins
9749 # with a dollar sign (not a hyphen), so the echo should work correctly.
9750 lt_compile=`echo "$ac_compile" | $SED \
9751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9753 -e 's:$: $lt_compiler_flag:'`
9754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9755 (eval "$lt_compile" 2>out/conftest.err)
9756 ac_status=$?
9757 cat out/conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9760 then
9761 # The compiler can only warn and ignore the option if not recognized
9762 # So say no if there are warnings
9763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9766 lt_cv_prog_compiler_c_o=yes
9767 fi
9768 fi
9769 chmod u+w . 2>&5
9770 $RM conftest*
9771 # SGI C++ compiler will create directory out/ii_files/ for
9772 # template instantiation
9773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9774 $RM out/* && rmdir out
9775 cd ..
9776 $RM -r conftest
9777 $RM conftest*
9778
9779 fi
9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9781 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9782
9783
9784
9785
9786 hard_links=nottested
9787 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9788 # do not overwrite the value of need_locks provided by the user
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9790 printf %s "checking if we can lock with hard links... " >&6; }
9791 hard_links=yes
9792 $RM conftest*
9793 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9794 touch conftest.a
9795 ln conftest.a conftest.b 2>&5 || hard_links=no
9796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9798 printf "%s\n" "$hard_links" >&6; }
9799 if test no = "$hard_links"; then
9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9801 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9802 need_locks=warn
9803 fi
9804 else
9805 need_locks=no
9806 fi
9807
9808
9809
9810
9811
9812
9813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9814 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9815
9816 runpath_var=
9817 allow_undefined_flag=
9818 always_export_symbols=no
9819 archive_cmds=
9820 archive_expsym_cmds=
9821 compiler_needs_object=no
9822 enable_shared_with_static_runtimes=no
9823 export_dynamic_flag_spec=
9824 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9825 hardcode_automatic=no
9826 hardcode_direct=no
9827 hardcode_direct_absolute=no
9828 hardcode_libdir_flag_spec=
9829 hardcode_libdir_separator=
9830 hardcode_minus_L=no
9831 hardcode_shlibpath_var=unsupported
9832 inherit_rpath=no
9833 link_all_deplibs=unknown
9834 module_cmds=
9835 module_expsym_cmds=
9836 old_archive_from_new_cmds=
9837 old_archive_from_expsyms_cmds=
9838 thread_safe_flag_spec=
9839 whole_archive_flag_spec=
9840 # include_expsyms should be a list of space-separated symbols to be *always*
9841 # included in the symbol list
9842 include_expsyms=
9843 # exclude_expsyms can be an extended regexp of symbols to exclude
9844 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9845 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9846 # as well as any symbol that contains 'd'.
9847 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9848 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9849 # platforms (ab)use it in PIC code, but their linkers get confused if
9850 # the symbol is explicitly referenced. Since portable code cannot
9851 # rely on this symbol name, it's probably fine to never include it in
9852 # preloaded symbol tables.
9853 # Exclude shared library initialization/finalization symbols.
9854 extract_expsyms_cmds=
9855
9856 case $host_os in
9857 cygwin* | mingw* | pw32* | cegcc*)
9858 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9859 # When not using gcc, we currently assume that we are using
9860 # Microsoft Visual C++.
9861 if test yes != "$GCC"; then
9862 with_gnu_ld=no
9863 fi
9864 ;;
9865 interix*)
9866 # we just hope/assume this is gcc and not c89 (= MSVC++)
9867 with_gnu_ld=yes
9868 ;;
9869 openbsd* | bitrig*)
9870 with_gnu_ld=no
9871 ;;
9872 linux* | k*bsd*-gnu | gnu*)
9873 link_all_deplibs=no
9874 ;;
9875 esac
9876
9877 ld_shlibs=yes
9878
9879 # On some targets, GNU ld is compatible enough with the native linker
9880 # that we're better off using the native interface for both.
9881 lt_use_gnu_ld_interface=no
9882 if test yes = "$with_gnu_ld"; then
9883 case $host_os in
9884 aix*)
9885 # The AIX port of GNU ld has always aspired to compatibility
9886 # with the native linker. However, as the warning in the GNU ld
9887 # block says, versions before 2.19.5* couldn't really create working
9888 # shared libraries, regardless of the interface used.
9889 case `$LD -v 2>&1` in
9890 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9891 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9892 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9893 *)
9894 lt_use_gnu_ld_interface=yes
9895 ;;
9896 esac
9897 ;;
9898 *)
9899 lt_use_gnu_ld_interface=yes
9900 ;;
9901 esac
9902 fi
9903
9904 if test yes = "$lt_use_gnu_ld_interface"; then
9905 # If archive_cmds runs LD, not CC, wlarc should be empty
9906 wlarc='$wl'
9907
9908 # Set some defaults for GNU ld with shared library support. These
9909 # are reset later if shared libraries are not supported. Putting them
9910 # here allows them to be overridden if necessary.
9911 runpath_var=LD_RUN_PATH
9912 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9913 export_dynamic_flag_spec='$wl--export-dynamic'
9914 # ancient GNU ld didn't support --whole-archive et. al.
9915 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9916 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9917 else
9918 whole_archive_flag_spec=
9919 fi
9920 supports_anon_versioning=no
9921 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9922 *GNU\ gold*) supports_anon_versioning=yes ;;
9923 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9924 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9925 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9926 *\ 2.11.*) ;; # other 2.11 versions
9927 *) supports_anon_versioning=yes ;;
9928 esac
9929
9930 # See if GNU ld supports shared libraries.
9931 case $host_os in
9932 aix[3-9]*)
9933 # On AIX/PPC, the GNU linker is very broken
9934 if test ia64 != "$host_cpu"; then
9935 ld_shlibs=no
9936 cat <<_LT_EOF 1>&2
9937
9938 *** Warning: the GNU linker, at least up to release 2.19, is reported
9939 *** to be unable to reliably create shared libraries on AIX.
9940 *** Therefore, libtool is disabling shared libraries support. If you
9941 *** really care for shared libraries, you may want to install binutils
9942 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9943 *** You will then need to restart the configuration process.
9944
9945 _LT_EOF
9946 fi
9947 ;;
9948
9949 amigaos*)
9950 case $host_cpu in
9951 powerpc)
9952 # see comment about AmigaOS4 .so support
9953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9954 archive_expsym_cmds=''
9955 ;;
9956 m68k)
9957 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)'
9958 hardcode_libdir_flag_spec='-L$libdir'
9959 hardcode_minus_L=yes
9960 ;;
9961 esac
9962 ;;
9963
9964 beos*)
9965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9966 allow_undefined_flag=unsupported
9967 # Joseph Beckenbach <[email protected]> says some releases of gcc
9968 # support --undefined. This deserves some investigation. FIXME
9969 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9970 else
9971 ld_shlibs=no
9972 fi
9973 ;;
9974
9975 cygwin* | mingw* | pw32* | cegcc*)
9976 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9977 # as there is no search path for DLLs.
9978 hardcode_libdir_flag_spec='-L$libdir'
9979 export_dynamic_flag_spec='$wl--export-all-symbols'
9980 allow_undefined_flag=unsupported
9981 always_export_symbols=no
9982 enable_shared_with_static_runtimes=yes
9983 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'
9984 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9985
9986 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9988 # If the export-symbols file already is a .def file, use it as
9989 # is; otherwise, prepend EXPORTS...
9990 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9991 cp $export_symbols $output_objdir/$soname.def;
9992 else
9993 echo EXPORTS > $output_objdir/$soname.def;
9994 cat $export_symbols >> $output_objdir/$soname.def;
9995 fi~
9996 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9997 else
9998 ld_shlibs=no
9999 fi
10000 ;;
10001
10002 haiku*)
10003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10004 link_all_deplibs=yes
10005 ;;
10006
10007 os2*)
10008 hardcode_libdir_flag_spec='-L$libdir'
10009 hardcode_minus_L=yes
10010 allow_undefined_flag=unsupported
10011 shrext_cmds=.dll
10012 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10013 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10014 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10015 $ECHO EXPORTS >> $output_objdir/$libname.def~
10016 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10017 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10018 emximp -o $lib $output_objdir/$libname.def'
10019 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10020 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10021 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10022 $ECHO EXPORTS >> $output_objdir/$libname.def~
10023 prefix_cmds="$SED"~
10024 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10025 prefix_cmds="$prefix_cmds -e 1d";
10026 fi~
10027 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10028 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10029 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10030 emximp -o $lib $output_objdir/$libname.def'
10031 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10032 enable_shared_with_static_runtimes=yes
10033 ;;
10034
10035 interix[3-9]*)
10036 hardcode_direct=no
10037 hardcode_shlibpath_var=no
10038 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10039 export_dynamic_flag_spec='$wl-E'
10040 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10041 # Instead, shared libraries are loaded at an image base (0x10000000 by
10042 # default) and relocated if they conflict, which is a slow very memory
10043 # consuming and fragmenting process. To avoid this, we pick a random,
10044 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10045 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10047 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'
10048 ;;
10049
10050 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10051 tmp_diet=no
10052 if test linux-dietlibc = "$host_os"; then
10053 case $cc_basename in
10054 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10055 esac
10056 fi
10057 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10058 && test no = "$tmp_diet"
10059 then
10060 tmp_addflag=' $pic_flag'
10061 tmp_sharedflag='-shared'
10062 case $cc_basename,$host_cpu in
10063 pgcc*) # Portland Group C compiler
10064 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'
10065 tmp_addflag=' $pic_flag'
10066 ;;
10067 pgf77* | pgf90* | pgf95* | pgfortran*)
10068 # Portland Group f77 and f90 compilers
10069 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'
10070 tmp_addflag=' $pic_flag -Mnomain' ;;
10071 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10072 tmp_addflag=' -i_dynamic' ;;
10073 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10074 tmp_addflag=' -i_dynamic -nofor_main' ;;
10075 ifc* | ifort*) # Intel Fortran compiler
10076 tmp_addflag=' -nofor_main' ;;
10077 lf95*) # Lahey Fortran 8.1
10078 whole_archive_flag_spec=
10079 tmp_sharedflag='--shared' ;;
10080 nagfor*) # NAGFOR 5.3
10081 tmp_sharedflag='-Wl,-shared' ;;
10082 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10083 tmp_sharedflag='-qmkshrobj'
10084 tmp_addflag= ;;
10085 nvcc*) # Cuda Compiler Driver 2.2
10086 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'
10087 compiler_needs_object=yes
10088 ;;
10089 esac
10090 case `$CC -V 2>&1 | sed 5q` in
10091 *Sun\ C*) # Sun C 5.9
10092 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'
10093 compiler_needs_object=yes
10094 tmp_sharedflag='-G' ;;
10095 *Sun\ F*) # Sun Fortran 8.3
10096 tmp_sharedflag='-G' ;;
10097 esac
10098 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10099
10100 if test yes = "$supports_anon_versioning"; then
10101 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10102 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10103 echo "local: *; };" >> $output_objdir/$libname.ver~
10104 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10105 fi
10106
10107 case $cc_basename in
10108 tcc*)
10109 export_dynamic_flag_spec='-rdynamic'
10110 ;;
10111 xlf* | bgf* | bgxlf* | mpixlf*)
10112 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10113 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10114 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10115 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10116 if test yes = "$supports_anon_versioning"; then
10117 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10119 echo "local: *; };" >> $output_objdir/$libname.ver~
10120 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10121 fi
10122 ;;
10123 esac
10124 else
10125 ld_shlibs=no
10126 fi
10127 ;;
10128
10129 netbsd* | netbsdelf*-gnu)
10130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10131 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10132 wlarc=
10133 else
10134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10135 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10136 fi
10137 ;;
10138
10139 solaris*)
10140 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10141 ld_shlibs=no
10142 cat <<_LT_EOF 1>&2
10143
10144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10145 *** create shared libraries on Solaris systems. Therefore, libtool
10146 *** is disabling shared libraries support. We urge you to upgrade GNU
10147 *** binutils to release 2.9.1 or newer. Another option is to modify
10148 *** your PATH or compiler configuration so that the native linker is
10149 *** used, and then restart.
10150
10151 _LT_EOF
10152 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10153 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10154 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10155 else
10156 ld_shlibs=no
10157 fi
10158 ;;
10159
10160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10161 case `$LD -v 2>&1` in
10162 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10163 ld_shlibs=no
10164 cat <<_LT_EOF 1>&2
10165
10166 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10167 *** reliably create shared libraries on SCO systems. Therefore, libtool
10168 *** is disabling shared libraries support. We urge you to upgrade GNU
10169 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10170 *** your PATH or compiler configuration so that the native linker is
10171 *** used, and then restart.
10172
10173 _LT_EOF
10174 ;;
10175 *)
10176 # For security reasons, it is highly recommended that you always
10177 # use absolute paths for naming shared libraries, and exclude the
10178 # DT_RUNPATH tag from executables and libraries. But doing so
10179 # requires that you compile everything twice, which is a pain.
10180 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10181 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10184 else
10185 ld_shlibs=no
10186 fi
10187 ;;
10188 esac
10189 ;;
10190
10191 sunos4*)
10192 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10193 wlarc=
10194 hardcode_direct=yes
10195 hardcode_shlibpath_var=no
10196 ;;
10197
10198 *)
10199 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10201 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10202 else
10203 ld_shlibs=no
10204 fi
10205 ;;
10206 esac
10207
10208 if test no = "$ld_shlibs"; then
10209 runpath_var=
10210 hardcode_libdir_flag_spec=
10211 export_dynamic_flag_spec=
10212 whole_archive_flag_spec=
10213 fi
10214 else
10215 # PORTME fill in a description of your system's linker (not GNU ld)
10216 case $host_os in
10217 aix3*)
10218 allow_undefined_flag=unsupported
10219 always_export_symbols=yes
10220 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'
10221 # Note: this linker hardcodes the directories in LIBPATH if there
10222 # are no directories specified by -L.
10223 hardcode_minus_L=yes
10224 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10225 # Neither direct hardcoding nor static linking is supported with a
10226 # broken collect2.
10227 hardcode_direct=unsupported
10228 fi
10229 ;;
10230
10231 aix[4-9]*)
10232 if test ia64 = "$host_cpu"; then
10233 # On IA64, the linker does run time linking by default, so we don't
10234 # have to do anything special.
10235 aix_use_runtimelinking=no
10236 exp_sym_flag='-Bexport'
10237 no_entry_flag=
10238 else
10239 # If we're using GNU nm, then we don't want the "-C" option.
10240 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10241 # Without the "-l" option, or with the "-B" option, AIX nm treats
10242 # weak defined symbols like other global defined symbols, whereas
10243 # GNU nm marks them as "W".
10244 # While the 'weak' keyword is ignored in the Export File, we need
10245 # it in the Import File for the 'aix-soname' feature, so we have
10246 # to replace the "-B" option with "-P" for AIX nm.
10247 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10248 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'
10249 else
10250 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'
10251 fi
10252 aix_use_runtimelinking=no
10253
10254 # Test if we are trying to use run time linking or normal
10255 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10256 # have runtime linking enabled, and use it for executables.
10257 # For shared libraries, we enable/disable runtime linking
10258 # depending on the kind of the shared library created -
10259 # when "with_aix_soname,aix_use_runtimelinking" is:
10260 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10261 # "aix,yes" lib.so shared, rtl:yes, for executables
10262 # lib.a static archive
10263 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10264 # lib.a(lib.so.V) shared, rtl:no, for executables
10265 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10266 # lib.a(lib.so.V) shared, rtl:no
10267 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10268 # lib.a static archive
10269 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10270 for ld_flag in $LDFLAGS; do
10271 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10272 aix_use_runtimelinking=yes
10273 break
10274 fi
10275 done
10276 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10277 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10278 # so we don't have lib.a shared libs to link our executables.
10279 # We have to force runtime linking in this case.
10280 aix_use_runtimelinking=yes
10281 LDFLAGS="$LDFLAGS -Wl,-brtl"
10282 fi
10283 ;;
10284 esac
10285
10286 exp_sym_flag='-bexport'
10287 no_entry_flag='-bnoentry'
10288 fi
10289
10290 # When large executables or shared objects are built, AIX ld can
10291 # have problems creating the table of contents. If linking a library
10292 # or program results in "error TOC overflow" add -mminimal-toc to
10293 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10294 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10295
10296 archive_cmds=''
10297 hardcode_direct=yes
10298 hardcode_direct_absolute=yes
10299 hardcode_libdir_separator=':'
10300 link_all_deplibs=yes
10301 file_list_spec='$wl-f,'
10302 case $with_aix_soname,$aix_use_runtimelinking in
10303 aix,*) ;; # traditional, no import file
10304 svr4,* | *,yes) # use import file
10305 # The Import File defines what to hardcode.
10306 hardcode_direct=no
10307 hardcode_direct_absolute=no
10308 ;;
10309 esac
10310
10311 if test yes = "$GCC"; then
10312 case $host_os in aix4.[012]|aix4.[012].*)
10313 # We only want to do this on AIX 4.2 and lower, the check
10314 # below for broken collect2 doesn't work under 4.3+
10315 collect2name=`$CC -print-prog-name=collect2`
10316 if test -f "$collect2name" &&
10317 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10318 then
10319 # We have reworked collect2
10320 :
10321 else
10322 # We have old collect2
10323 hardcode_direct=unsupported
10324 # It fails to find uninstalled libraries when the uninstalled
10325 # path is not listed in the libpath. Setting hardcode_minus_L
10326 # to unsupported forces relinking
10327 hardcode_minus_L=yes
10328 hardcode_libdir_flag_spec='-L$libdir'
10329 hardcode_libdir_separator=
10330 fi
10331 ;;
10332 esac
10333 shared_flag='-shared'
10334 if test yes = "$aix_use_runtimelinking"; then
10335 shared_flag="$shared_flag "'$wl-G'
10336 fi
10337 # Need to ensure runtime linking is disabled for the traditional
10338 # shared library, or the linker may eventually find shared libraries
10339 # /with/ Import File - we do not want to mix them.
10340 shared_flag_aix='-shared'
10341 shared_flag_svr4='-shared $wl-G'
10342 else
10343 # not using gcc
10344 if test ia64 = "$host_cpu"; then
10345 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10346 # chokes on -Wl,-G. The following line is correct:
10347 shared_flag='-G'
10348 else
10349 if test yes = "$aix_use_runtimelinking"; then
10350 shared_flag='$wl-G'
10351 else
10352 shared_flag='$wl-bM:SRE'
10353 fi
10354 shared_flag_aix='$wl-bM:SRE'
10355 shared_flag_svr4='$wl-G'
10356 fi
10357 fi
10358
10359 export_dynamic_flag_spec='$wl-bexpall'
10360 # It seems that -bexpall does not export symbols beginning with
10361 # underscore (_), so it is better to generate a list of symbols to export.
10362 always_export_symbols=yes
10363 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10364 # Warning - without using the other runtime loading flags (-brtl),
10365 # -berok will link without error, but may produce a broken library.
10366 allow_undefined_flag='-berok'
10367 # Determine the default libpath from the value encoded in an
10368 # empty executable.
10369 if test set = "${lt_cv_aix_libpath+set}"; then
10370 aix_libpath=$lt_cv_aix_libpath
10371 else
10372 if test ${lt_cv_aix_libpath_+y}
10373 then :
10374 printf %s "(cached) " >&6
10375 else $as_nop
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10378
10379 int
10380 main (void)
10381 {
10382
10383 ;
10384 return 0;
10385 }
10386 _ACEOF
10387 if ac_fn_c_try_link "$LINENO"
10388 then :
10389
10390 lt_aix_libpath_sed='
10391 /Import File Strings/,/^$/ {
10392 /^0/ {
10393 s/^0 *\([^ ]*\) *$/\1/
10394 p
10395 }
10396 }'
10397 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10398 # Check for a 64-bit object if we didn't find anything.
10399 if test -z "$lt_cv_aix_libpath_"; then
10400 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10401 fi
10402 fi
10403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10404 conftest$ac_exeext conftest.$ac_ext
10405 if test -z "$lt_cv_aix_libpath_"; then
10406 lt_cv_aix_libpath_=/usr/lib:/lib
10407 fi
10408
10409 fi
10410
10411 aix_libpath=$lt_cv_aix_libpath_
10412 fi
10413
10414 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10415 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
10416 else
10417 if test ia64 = "$host_cpu"; then
10418 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10419 allow_undefined_flag="-z nodefs"
10420 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"
10421 else
10422 # Determine the default libpath from the value encoded in an
10423 # empty executable.
10424 if test set = "${lt_cv_aix_libpath+set}"; then
10425 aix_libpath=$lt_cv_aix_libpath
10426 else
10427 if test ${lt_cv_aix_libpath_+y}
10428 then :
10429 printf %s "(cached) " >&6
10430 else $as_nop
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433
10434 int
10435 main (void)
10436 {
10437
10438 ;
10439 return 0;
10440 }
10441 _ACEOF
10442 if ac_fn_c_try_link "$LINENO"
10443 then :
10444
10445 lt_aix_libpath_sed='
10446 /Import File Strings/,/^$/ {
10447 /^0/ {
10448 s/^0 *\([^ ]*\) *$/\1/
10449 p
10450 }
10451 }'
10452 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10453 # Check for a 64-bit object if we didn't find anything.
10454 if test -z "$lt_cv_aix_libpath_"; then
10455 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10456 fi
10457 fi
10458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10459 conftest$ac_exeext conftest.$ac_ext
10460 if test -z "$lt_cv_aix_libpath_"; then
10461 lt_cv_aix_libpath_=/usr/lib:/lib
10462 fi
10463
10464 fi
10465
10466 aix_libpath=$lt_cv_aix_libpath_
10467 fi
10468
10469 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10470 # Warning - without using the other run time loading flags,
10471 # -berok will link without error, but may produce a broken library.
10472 no_undefined_flag=' $wl-bernotok'
10473 allow_undefined_flag=' $wl-berok'
10474 if test yes = "$with_gnu_ld"; then
10475 # We only use this code for GNU lds that support --whole-archive.
10476 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10477 else
10478 # Exported symbols can be pulled into shared objects from archives
10479 whole_archive_flag_spec='$convenience'
10480 fi
10481 archive_cmds_need_lc=yes
10482 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10483 # -brtl affects multiple linker settings, -berok does not and is overridden later
10484 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10485 if test svr4 != "$with_aix_soname"; then
10486 # This is similar to how AIX traditionally builds its shared libraries.
10487 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'
10488 fi
10489 if test aix != "$with_aix_soname"; then
10490 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'
10491 else
10492 # used by -dlpreopen to get the symbols
10493 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10494 fi
10495 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10496 fi
10497 fi
10498 ;;
10499
10500 amigaos*)
10501 case $host_cpu in
10502 powerpc)
10503 # see comment about AmigaOS4 .so support
10504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10505 archive_expsym_cmds=''
10506 ;;
10507 m68k)
10508 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)'
10509 hardcode_libdir_flag_spec='-L$libdir'
10510 hardcode_minus_L=yes
10511 ;;
10512 esac
10513 ;;
10514
10515 bsdi[45]*)
10516 export_dynamic_flag_spec=-rdynamic
10517 ;;
10518
10519 cygwin* | mingw* | pw32* | cegcc*)
10520 # When not using gcc, we currently assume that we are using
10521 # Microsoft Visual C++.
10522 # hardcode_libdir_flag_spec is actually meaningless, as there is
10523 # no search path for DLLs.
10524 case $cc_basename in
10525 cl*)
10526 # Native MSVC
10527 hardcode_libdir_flag_spec=' '
10528 allow_undefined_flag=unsupported
10529 always_export_symbols=yes
10530 file_list_spec='@'
10531 # Tell ltmain to make .lib files, not .a files.
10532 libext=lib
10533 # Tell ltmain to make .dll files, not .so files.
10534 shrext_cmds=.dll
10535 # FIXME: Setting linknames here is a bad hack.
10536 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10537 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10538 cp "$export_symbols" "$output_objdir/$soname.def";
10539 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10540 else
10541 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10542 fi~
10543 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10544 linknames='
10545 # The linker will not automatically build a static lib if we build a DLL.
10546 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10547 enable_shared_with_static_runtimes=yes
10548 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10549 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10550 # Don't use ranlib
10551 old_postinstall_cmds='chmod 644 $oldlib'
10552 postlink_cmds='lt_outputfile="@OUTPUT@"~
10553 lt_tool_outputfile="@TOOL_OUTPUT@"~
10554 case $lt_outputfile in
10555 *.exe|*.EXE) ;;
10556 *)
10557 lt_outputfile=$lt_outputfile.exe
10558 lt_tool_outputfile=$lt_tool_outputfile.exe
10559 ;;
10560 esac~
10561 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10562 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10563 $RM "$lt_outputfile.manifest";
10564 fi'
10565 ;;
10566 *)
10567 # Assume MSVC wrapper
10568 hardcode_libdir_flag_spec=' '
10569 allow_undefined_flag=unsupported
10570 # Tell ltmain to make .lib files, not .a files.
10571 libext=lib
10572 # Tell ltmain to make .dll files, not .so files.
10573 shrext_cmds=.dll
10574 # FIXME: Setting linknames here is a bad hack.
10575 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10576 # The linker will automatically build a .lib file if we build a DLL.
10577 old_archive_from_new_cmds='true'
10578 # FIXME: Should let the user specify the lib program.
10579 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10580 enable_shared_with_static_runtimes=yes
10581 ;;
10582 esac
10583 ;;
10584
10585 darwin* | rhapsody*)
10586
10587
10588 archive_cmds_need_lc=no
10589 hardcode_direct=no
10590 hardcode_automatic=yes
10591 hardcode_shlibpath_var=unsupported
10592 if test yes = "$lt_cv_ld_force_load"; then
10593 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\"`'
10594
10595 else
10596 whole_archive_flag_spec=''
10597 fi
10598 link_all_deplibs=yes
10599 allow_undefined_flag=$_lt_dar_allow_undefined
10600 case $cc_basename in
10601 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10602 *) _lt_dar_can_shared=$GCC ;;
10603 esac
10604 if test yes = "$_lt_dar_can_shared"; then
10605 output_verbose_link_cmd=func_echo_all
10606 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10607 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10608 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"
10609 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"
10610
10611 else
10612 ld_shlibs=no
10613 fi
10614
10615 ;;
10616
10617 dgux*)
10618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10619 hardcode_libdir_flag_spec='-L$libdir'
10620 hardcode_shlibpath_var=no
10621 ;;
10622
10623 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10624 # support. Future versions do this automatically, but an explicit c++rt0.o
10625 # does not break anything, and helps significantly (at the cost of a little
10626 # extra space).
10627 freebsd2.2*)
10628 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10629 hardcode_libdir_flag_spec='-R$libdir'
10630 hardcode_direct=yes
10631 hardcode_shlibpath_var=no
10632 ;;
10633
10634 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10635 freebsd2.*)
10636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10637 hardcode_direct=yes
10638 hardcode_minus_L=yes
10639 hardcode_shlibpath_var=no
10640 ;;
10641
10642 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10643 freebsd* | dragonfly*)
10644 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10645 hardcode_libdir_flag_spec='-R$libdir'
10646 hardcode_direct=yes
10647 hardcode_shlibpath_var=no
10648 ;;
10649
10650 hpux9*)
10651 if test yes = "$GCC"; then
10652 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'
10653 else
10654 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'
10655 fi
10656 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10657 hardcode_libdir_separator=:
10658 hardcode_direct=yes
10659
10660 # hardcode_minus_L: Not really in the search PATH,
10661 # but as the default location of the library.
10662 hardcode_minus_L=yes
10663 export_dynamic_flag_spec='$wl-E'
10664 ;;
10665
10666 hpux10*)
10667 if test yes,no = "$GCC,$with_gnu_ld"; then
10668 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10669 else
10670 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10671 fi
10672 if test no = "$with_gnu_ld"; then
10673 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10674 hardcode_libdir_separator=:
10675 hardcode_direct=yes
10676 hardcode_direct_absolute=yes
10677 export_dynamic_flag_spec='$wl-E'
10678 # hardcode_minus_L: Not really in the search PATH,
10679 # but as the default location of the library.
10680 hardcode_minus_L=yes
10681 fi
10682 ;;
10683
10684 hpux11*)
10685 if test yes,no = "$GCC,$with_gnu_ld"; then
10686 case $host_cpu in
10687 hppa*64*)
10688 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10689 ;;
10690 ia64*)
10691 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10692 ;;
10693 *)
10694 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10695 ;;
10696 esac
10697 else
10698 case $host_cpu in
10699 hppa*64*)
10700 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10701 ;;
10702 ia64*)
10703 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10704 ;;
10705 *)
10706
10707 # Older versions of the 11.00 compiler do not understand -b yet
10708 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10710 printf %s "checking if $CC understands -b... " >&6; }
10711 if test ${lt_cv_prog_compiler__b+y}
10712 then :
10713 printf %s "(cached) " >&6
10714 else $as_nop
10715 lt_cv_prog_compiler__b=no
10716 save_LDFLAGS=$LDFLAGS
10717 LDFLAGS="$LDFLAGS -b"
10718 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10719 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10720 # The linker can only warn and ignore the option if not recognized
10721 # So say no if there are warnings
10722 if test -s conftest.err; then
10723 # Append any errors to the config.log.
10724 cat conftest.err 1>&5
10725 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10727 if diff conftest.exp conftest.er2 >/dev/null; then
10728 lt_cv_prog_compiler__b=yes
10729 fi
10730 else
10731 lt_cv_prog_compiler__b=yes
10732 fi
10733 fi
10734 $RM -r conftest*
10735 LDFLAGS=$save_LDFLAGS
10736
10737 fi
10738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10739 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10740
10741 if test yes = "$lt_cv_prog_compiler__b"; then
10742 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10743 else
10744 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10745 fi
10746
10747 ;;
10748 esac
10749 fi
10750 if test no = "$with_gnu_ld"; then
10751 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10752 hardcode_libdir_separator=:
10753
10754 case $host_cpu in
10755 hppa*64*|ia64*)
10756 hardcode_direct=no
10757 hardcode_shlibpath_var=no
10758 ;;
10759 *)
10760 hardcode_direct=yes
10761 hardcode_direct_absolute=yes
10762 export_dynamic_flag_spec='$wl-E'
10763
10764 # hardcode_minus_L: Not really in the search PATH,
10765 # but as the default location of the library.
10766 hardcode_minus_L=yes
10767 ;;
10768 esac
10769 fi
10770 ;;
10771
10772 irix5* | irix6* | nonstopux*)
10773 if test yes = "$GCC"; then
10774 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'
10775 # Try to use the -exported_symbol ld option, if it does not
10776 # work, assume that -exports_file does not work either and
10777 # implicitly export all symbols.
10778 # This should be the same for all languages, so no per-tag cache variable.
10779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10780 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10781 if test ${lt_cv_irix_exported_symbol+y}
10782 then :
10783 printf %s "(cached) " >&6
10784 else $as_nop
10785 save_LDFLAGS=$LDFLAGS
10786 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10789 int foo (void) { return 0; }
10790 _ACEOF
10791 if ac_fn_c_try_link "$LINENO"
10792 then :
10793 lt_cv_irix_exported_symbol=yes
10794 else $as_nop
10795 lt_cv_irix_exported_symbol=no
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10798 conftest$ac_exeext conftest.$ac_ext
10799 LDFLAGS=$save_LDFLAGS
10800 fi
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10802 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10803 if test yes = "$lt_cv_irix_exported_symbol"; then
10804 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'
10805 fi
10806 link_all_deplibs=no
10807 else
10808 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'
10809 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'
10810 fi
10811 archive_cmds_need_lc='no'
10812 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10813 hardcode_libdir_separator=:
10814 inherit_rpath=yes
10815 link_all_deplibs=yes
10816 ;;
10817
10818 linux*)
10819 case $cc_basename in
10820 tcc*)
10821 # Fabrice Bellard et al's Tiny C Compiler
10822 ld_shlibs=yes
10823 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10824 ;;
10825 esac
10826 ;;
10827
10828 netbsd* | netbsdelf*-gnu)
10829 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10831 else
10832 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10833 fi
10834 hardcode_libdir_flag_spec='-R$libdir'
10835 hardcode_direct=yes
10836 hardcode_shlibpath_var=no
10837 ;;
10838
10839 newsos6)
10840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10841 hardcode_direct=yes
10842 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10843 hardcode_libdir_separator=:
10844 hardcode_shlibpath_var=no
10845 ;;
10846
10847 *nto* | *qnx*)
10848 ;;
10849
10850 openbsd* | bitrig*)
10851 if test -f /usr/libexec/ld.so; then
10852 hardcode_direct=yes
10853 hardcode_shlibpath_var=no
10854 hardcode_direct_absolute=yes
10855 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10857 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10858 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10859 export_dynamic_flag_spec='$wl-E'
10860 else
10861 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10862 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10863 fi
10864 else
10865 ld_shlibs=no
10866 fi
10867 ;;
10868
10869 os2*)
10870 hardcode_libdir_flag_spec='-L$libdir'
10871 hardcode_minus_L=yes
10872 allow_undefined_flag=unsupported
10873 shrext_cmds=.dll
10874 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10875 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10876 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10877 $ECHO EXPORTS >> $output_objdir/$libname.def~
10878 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10879 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10880 emximp -o $lib $output_objdir/$libname.def'
10881 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10882 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10883 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10884 $ECHO EXPORTS >> $output_objdir/$libname.def~
10885 prefix_cmds="$SED"~
10886 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10887 prefix_cmds="$prefix_cmds -e 1d";
10888 fi~
10889 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10890 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10891 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10892 emximp -o $lib $output_objdir/$libname.def'
10893 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10894 enable_shared_with_static_runtimes=yes
10895 ;;
10896
10897 osf3*)
10898 if test yes = "$GCC"; then
10899 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10900 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'
10901 else
10902 allow_undefined_flag=' -expect_unresolved \*'
10903 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'
10904 fi
10905 archive_cmds_need_lc='no'
10906 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10907 hardcode_libdir_separator=:
10908 ;;
10909
10910 osf4* | osf5*) # as osf3* with the addition of -msym flag
10911 if test yes = "$GCC"; then
10912 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10913 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'
10914 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10915 else
10916 allow_undefined_flag=' -expect_unresolved \*'
10917 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'
10918 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~
10919 $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'
10920
10921 # Both c and cxx compiler support -rpath directly
10922 hardcode_libdir_flag_spec='-rpath $libdir'
10923 fi
10924 archive_cmds_need_lc='no'
10925 hardcode_libdir_separator=:
10926 ;;
10927
10928 solaris*)
10929 no_undefined_flag=' -z defs'
10930 if test yes = "$GCC"; then
10931 wlarc='$wl'
10932 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10933 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10934 $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'
10935 else
10936 case `$CC -V 2>&1` in
10937 *"Compilers 5.0"*)
10938 wlarc=''
10939 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10940 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10941 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10942 ;;
10943 *)
10944 wlarc='$wl'
10945 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10947 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10948 ;;
10949 esac
10950 fi
10951 hardcode_libdir_flag_spec='-R$libdir'
10952 hardcode_shlibpath_var=no
10953 case $host_os in
10954 solaris2.[0-5] | solaris2.[0-5].*) ;;
10955 *)
10956 # The compiler driver will combine and reorder linker options,
10957 # but understands '-z linker_flag'. GCC discards it without '$wl',
10958 # but is careful enough not to reorder.
10959 # Supported since Solaris 2.6 (maybe 2.5.1?)
10960 if test yes = "$GCC"; then
10961 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10962 else
10963 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10964 fi
10965 ;;
10966 esac
10967 link_all_deplibs=yes
10968 ;;
10969
10970 sunos4*)
10971 if test sequent = "$host_vendor"; then
10972 # Use $CC to link under sequent, because it throws in some extra .o
10973 # files that make .init and .fini sections work.
10974 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10975 else
10976 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10977 fi
10978 hardcode_libdir_flag_spec='-L$libdir'
10979 hardcode_direct=yes
10980 hardcode_minus_L=yes
10981 hardcode_shlibpath_var=no
10982 ;;
10983
10984 sysv4)
10985 case $host_vendor in
10986 sni)
10987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988 hardcode_direct=yes # is this really true???
10989 ;;
10990 siemens)
10991 ## LD is ld it makes a PLAMLIB
10992 ## CC just makes a GrossModule.
10993 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10994 reload_cmds='$CC -r -o $output$reload_objs'
10995 hardcode_direct=no
10996 ;;
10997 motorola)
10998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11000 ;;
11001 esac
11002 runpath_var='LD_RUN_PATH'
11003 hardcode_shlibpath_var=no
11004 ;;
11005
11006 sysv4.3*)
11007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11008 hardcode_shlibpath_var=no
11009 export_dynamic_flag_spec='-Bexport'
11010 ;;
11011
11012 sysv4*MP*)
11013 if test -d /usr/nec; then
11014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11015 hardcode_shlibpath_var=no
11016 runpath_var=LD_RUN_PATH
11017 hardcode_runpath_var=yes
11018 ld_shlibs=yes
11019 fi
11020 ;;
11021
11022 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11023 no_undefined_flag='$wl-z,text'
11024 archive_cmds_need_lc=no
11025 hardcode_shlibpath_var=no
11026 runpath_var='LD_RUN_PATH'
11027
11028 if test yes = "$GCC"; then
11029 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 else
11032 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034 fi
11035 ;;
11036
11037 sysv5* | sco3.2v5* | sco5v6*)
11038 # Note: We CANNOT use -z defs as we might desire, because we do not
11039 # link with -lc, and that would cause any symbols used from libc to
11040 # always be unresolved, which means just about no library would
11041 # ever link correctly. If we're not using GNU ld we use -z text
11042 # though, which does catch some bad symbols but isn't as heavy-handed
11043 # as -z defs.
11044 no_undefined_flag='$wl-z,text'
11045 allow_undefined_flag='$wl-z,nodefs'
11046 archive_cmds_need_lc=no
11047 hardcode_shlibpath_var=no
11048 hardcode_libdir_flag_spec='$wl-R,$libdir'
11049 hardcode_libdir_separator=':'
11050 link_all_deplibs=yes
11051 export_dynamic_flag_spec='$wl-Bexport'
11052 runpath_var='LD_RUN_PATH'
11053
11054 if test yes = "$GCC"; then
11055 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11056 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11057 else
11058 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11060 fi
11061 ;;
11062
11063 uts4*)
11064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11065 hardcode_libdir_flag_spec='-L$libdir'
11066 hardcode_shlibpath_var=no
11067 ;;
11068
11069 *)
11070 ld_shlibs=no
11071 ;;
11072 esac
11073
11074 if test sni = "$host_vendor"; then
11075 case $host in
11076 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11077 export_dynamic_flag_spec='$wl-Blargedynsym'
11078 ;;
11079 esac
11080 fi
11081 fi
11082
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11084 printf "%s\n" "$ld_shlibs" >&6; }
11085 test no = "$ld_shlibs" && can_build_shared=no
11086
11087 with_gnu_ld=$with_gnu_ld
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103 #
11104 # Do we need to explicitly link libc?
11105 #
11106 case "x$archive_cmds_need_lc" in
11107 x|xyes)
11108 # Assume -lc should be added
11109 archive_cmds_need_lc=yes
11110
11111 if test yes,yes = "$GCC,$enable_shared"; then
11112 case $archive_cmds in
11113 *'~'*)
11114 # FIXME: we may have to deal with multi-command sequences.
11115 ;;
11116 '$CC '*)
11117 # Test whether the compiler implicitly links with -lc since on some
11118 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11119 # to ld, don't add -lc before -lgcc.
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11121 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11122 if test ${lt_cv_archive_cmds_need_lc+y}
11123 then :
11124 printf %s "(cached) " >&6
11125 else $as_nop
11126 $RM conftest*
11127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11128
11129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11130 (eval $ac_compile) 2>&5
11131 ac_status=$?
11132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11133 test $ac_status = 0; } 2>conftest.err; then
11134 soname=conftest
11135 lib=conftest
11136 libobjs=conftest.$ac_objext
11137 deplibs=
11138 wl=$lt_prog_compiler_wl
11139 pic_flag=$lt_prog_compiler_pic
11140 compiler_flags=-v
11141 linker_flags=-v
11142 verstring=
11143 output_objdir=.
11144 libname=conftest
11145 lt_save_allow_undefined_flag=$allow_undefined_flag
11146 allow_undefined_flag=
11147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11148 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11149 ac_status=$?
11150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151 test $ac_status = 0; }
11152 then
11153 lt_cv_archive_cmds_need_lc=no
11154 else
11155 lt_cv_archive_cmds_need_lc=yes
11156 fi
11157 allow_undefined_flag=$lt_save_allow_undefined_flag
11158 else
11159 cat conftest.err 1>&5
11160 fi
11161 $RM conftest*
11162
11163 fi
11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11165 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11166 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11167 ;;
11168 esac
11169 fi
11170 ;;
11171 esac
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11325 printf %s "checking dynamic linker characteristics... " >&6; }
11326
11327 if test yes = "$GCC"; then
11328 case $host_os in
11329 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11330 *) lt_awk_arg='/^libraries:/' ;;
11331 esac
11332 case $host_os in
11333 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11334 *) lt_sed_strip_eq='s|=/|/|g' ;;
11335 esac
11336 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11337 case $lt_search_path_spec in
11338 *\;*)
11339 # if the path contains ";" then we assume it to be the separator
11340 # otherwise default to the standard path separator (i.e. ":") - it is
11341 # assumed that no part of a normal pathname contains ";" but that should
11342 # okay in the real world where ";" in dirpaths is itself problematic.
11343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11344 ;;
11345 *)
11346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11347 ;;
11348 esac
11349 # Ok, now we have the path, separated by spaces, we can step through it
11350 # and add multilib dir if necessary...
11351 lt_tmp_lt_search_path_spec=
11352 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11353 # ...but if some path component already ends with the multilib dir we assume
11354 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11355 case "$lt_multi_os_dir; $lt_search_path_spec " in
11356 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11357 lt_multi_os_dir=
11358 ;;
11359 esac
11360 for lt_sys_path in $lt_search_path_spec; do
11361 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11363 elif test -n "$lt_multi_os_dir"; then
11364 test -d "$lt_sys_path" && \
11365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11366 fi
11367 done
11368 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11369 BEGIN {RS = " "; FS = "/|\n";} {
11370 lt_foo = "";
11371 lt_count = 0;
11372 for (lt_i = NF; lt_i > 0; lt_i--) {
11373 if ($lt_i != "" && $lt_i != ".") {
11374 if ($lt_i == "..") {
11375 lt_count++;
11376 } else {
11377 if (lt_count == 0) {
11378 lt_foo = "/" $lt_i lt_foo;
11379 } else {
11380 lt_count--;
11381 }
11382 }
11383 }
11384 }
11385 if (lt_foo != "") { lt_freq[lt_foo]++; }
11386 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11387 }'`
11388 # AWK program above erroneously prepends '/' to C:/dos/paths
11389 # for these hosts.
11390 case $host_os in
11391 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11392 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11393 esac
11394 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11395 else
11396 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11397 fi
11398 library_names_spec=
11399 libname_spec='lib$name'
11400 soname_spec=
11401 shrext_cmds=.so
11402 postinstall_cmds=
11403 postuninstall_cmds=
11404 finish_cmds=
11405 finish_eval=
11406 shlibpath_var=
11407 shlibpath_overrides_runpath=unknown
11408 version_type=none
11409 dynamic_linker="$host_os ld.so"
11410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11411 need_lib_prefix=unknown
11412 hardcode_into_libs=no
11413
11414 # when you set need_version to no, make sure it does not cause -set_version
11415 # flags to be left without arguments
11416 need_version=unknown
11417
11418
11419
11420 case $host_os in
11421 aix3*)
11422 version_type=linux # correct to gnu/linux during the next big refactor
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11424 shlibpath_var=LIBPATH
11425
11426 # AIX 3 has no versioning support, so we append a major version to the name.
11427 soname_spec='$libname$release$shared_ext$major'
11428 ;;
11429
11430 aix[4-9]*)
11431 version_type=linux # correct to gnu/linux during the next big refactor
11432 need_lib_prefix=no
11433 need_version=no
11434 hardcode_into_libs=yes
11435 if test ia64 = "$host_cpu"; then
11436 # AIX 5 supports IA64
11437 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11438 shlibpath_var=LD_LIBRARY_PATH
11439 else
11440 # With GCC up to 2.95.x, collect2 would create an import file
11441 # for dependence libraries. The import file would start with
11442 # the line '#! .'. This would cause the generated library to
11443 # depend on '.', always an invalid library. This was fixed in
11444 # development snapshots of GCC prior to 3.0.
11445 case $host_os in
11446 aix4 | aix4.[01] | aix4.[01].*)
11447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11448 echo ' yes '
11449 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11450 :
11451 else
11452 can_build_shared=no
11453 fi
11454 ;;
11455 esac
11456 # Using Import Files as archive members, it is possible to support
11457 # filename-based versioning of shared library archives on AIX. While
11458 # this would work for both with and without runtime linking, it will
11459 # prevent static linking of such archives. So we do filename-based
11460 # shared library versioning with .so extension only, which is used
11461 # when both runtime linking and shared linking is enabled.
11462 # Unfortunately, runtime linking may impact performance, so we do
11463 # not want this to be the default eventually. Also, we use the
11464 # versioned .so libs for executables only if there is the -brtl
11465 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11466 # To allow for filename-based versioning support, we need to create
11467 # libNAME.so.V as an archive file, containing:
11468 # *) an Import File, referring to the versioned filename of the
11469 # archive as well as the shared archive member, telling the
11470 # bitwidth (32 or 64) of that shared object, and providing the
11471 # list of exported symbols of that shared object, eventually
11472 # decorated with the 'weak' keyword
11473 # *) the shared object with the F_LOADONLY flag set, to really avoid
11474 # it being seen by the linker.
11475 # At run time we better use the real file rather than another symlink,
11476 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11477
11478 case $with_aix_soname,$aix_use_runtimelinking in
11479 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11480 # soname into executable. Probably we can add versioning support to
11481 # collect2, so additional links can be useful in future.
11482 aix,yes) # traditional libtool
11483 dynamic_linker='AIX unversionable lib.so'
11484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11485 # instead of lib<name>.a to let people know that these are not
11486 # typical AIX shared libraries.
11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11488 ;;
11489 aix,no) # traditional AIX only
11490 dynamic_linker='AIX lib.a(lib.so.V)'
11491 # We preserve .a as extension for shared libraries through AIX4.2
11492 # and later when we are not doing run time linking.
11493 library_names_spec='$libname$release.a $libname.a'
11494 soname_spec='$libname$release$shared_ext$major'
11495 ;;
11496 svr4,*) # full svr4 only
11497 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11498 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11499 # We do not specify a path in Import Files, so LIBPATH fires.
11500 shlibpath_overrides_runpath=yes
11501 ;;
11502 *,yes) # both, prefer svr4
11503 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11504 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11505 # unpreferred sharedlib libNAME.a needs extra handling
11506 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"'
11507 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"'
11508 # We do not specify a path in Import Files, so LIBPATH fires.
11509 shlibpath_overrides_runpath=yes
11510 ;;
11511 *,no) # both, prefer aix
11512 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11513 library_names_spec='$libname$release.a $libname.a'
11514 soname_spec='$libname$release$shared_ext$major'
11515 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11516 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)'
11517 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"'
11518 ;;
11519 esac
11520 shlibpath_var=LIBPATH
11521 fi
11522 ;;
11523
11524 amigaos*)
11525 case $host_cpu in
11526 powerpc)
11527 # Since July 2007 AmigaOS4 officially supports .so libraries.
11528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530 ;;
11531 m68k)
11532 library_names_spec='$libname.ixlibrary $libname.a'
11533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11534 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'
11535 ;;
11536 esac
11537 ;;
11538
11539 beos*)
11540 library_names_spec='$libname$shared_ext'
11541 dynamic_linker="$host_os ld.so"
11542 shlibpath_var=LIBRARY_PATH
11543 ;;
11544
11545 bsdi[45]*)
11546 version_type=linux # correct to gnu/linux during the next big refactor
11547 need_version=no
11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11549 soname_spec='$libname$release$shared_ext$major'
11550 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11553 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11554 # the default ld.so.conf also contains /usr/contrib/lib and
11555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11556 # libtool to hard-code these into programs
11557 ;;
11558
11559 cygwin* | mingw* | pw32* | cegcc*)
11560 version_type=windows
11561 shrext_cmds=.dll
11562 need_version=no
11563 need_lib_prefix=no
11564
11565 case $GCC,$cc_basename in
11566 yes,*)
11567 # gcc
11568 library_names_spec='$libname.dll.a'
11569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11570 postinstall_cmds='base_file=`basename \$file`~
11571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11572 dldir=$destdir/`dirname \$dlpath`~
11573 test -d \$dldir || mkdir -p \$dldir~
11574 $install_prog $dir/$dlname \$dldir/$dlname~
11575 chmod a+x \$dldir/$dlname~
11576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11578 fi'
11579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11580 dlpath=$dir/\$dldll~
11581 $RM \$dlpath'
11582 shlibpath_overrides_runpath=yes
11583
11584 case $host_os in
11585 cygwin*)
11586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11587 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11588
11589 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11590 ;;
11591 mingw* | cegcc*)
11592 # MinGW DLLs use traditional 'lib' prefix
11593 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11594 ;;
11595 pw32*)
11596 # pw32 DLLs use 'pw' prefix rather than 'lib'
11597 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11598 ;;
11599 esac
11600 dynamic_linker='Win32 ld.exe'
11601 ;;
11602
11603 *,cl*)
11604 # Native MSVC
11605 libname_spec='$name'
11606 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11607 library_names_spec='$libname.dll.lib'
11608
11609 case $build_os in
11610 mingw*)
11611 sys_lib_search_path_spec=
11612 lt_save_ifs=$IFS
11613 IFS=';'
11614 for lt_path in $LIB
11615 do
11616 IFS=$lt_save_ifs
11617 # Let DOS variable expansion print the short 8.3 style file name.
11618 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11619 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11620 done
11621 IFS=$lt_save_ifs
11622 # Convert to MSYS style.
11623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11624 ;;
11625 cygwin*)
11626 # Convert to unix form, then to dos form, then back to unix form
11627 # but this time dos style (no spaces!) so that the unix form looks
11628 # like /cygdrive/c/PROGRA~1:/cygdr...
11629 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11630 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11631 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11632 ;;
11633 *)
11634 sys_lib_search_path_spec=$LIB
11635 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11636 # It is most probably a Windows format PATH.
11637 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11638 else
11639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11640 fi
11641 # FIXME: find the short name or the path components, as spaces are
11642 # common. (e.g. "Program Files" -> "PROGRA~1")
11643 ;;
11644 esac
11645
11646 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11647 postinstall_cmds='base_file=`basename \$file`~
11648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11649 dldir=$destdir/`dirname \$dlpath`~
11650 test -d \$dldir || mkdir -p \$dldir~
11651 $install_prog $dir/$dlname \$dldir/$dlname'
11652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11653 dlpath=$dir/\$dldll~
11654 $RM \$dlpath'
11655 shlibpath_overrides_runpath=yes
11656 dynamic_linker='Win32 link.exe'
11657 ;;
11658
11659 *)
11660 # Assume MSVC wrapper
11661 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11662 dynamic_linker='Win32 ld.exe'
11663 ;;
11664 esac
11665 # FIXME: first we should search . and the directory the executable is in
11666 shlibpath_var=PATH
11667 ;;
11668
11669 darwin* | rhapsody*)
11670 dynamic_linker="$host_os dyld"
11671 version_type=darwin
11672 need_lib_prefix=no
11673 need_version=no
11674 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11675 soname_spec='$libname$release$major$shared_ext'
11676 shlibpath_overrides_runpath=yes
11677 shlibpath_var=DYLD_LIBRARY_PATH
11678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11679
11680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11682 ;;
11683
11684 dgux*)
11685 version_type=linux # correct to gnu/linux during the next big refactor
11686 need_lib_prefix=no
11687 need_version=no
11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11689 soname_spec='$libname$release$shared_ext$major'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 ;;
11692
11693 freebsd* | dragonfly*)
11694 # DragonFly does not have aout. When/if they implement a new
11695 # versioning mechanism, adjust this.
11696 if test -x /usr/bin/objformat; then
11697 objformat=`/usr/bin/objformat`
11698 else
11699 case $host_os in
11700 freebsd[23].*) objformat=aout ;;
11701 *) objformat=elf ;;
11702 esac
11703 fi
11704 version_type=freebsd-$objformat
11705 case $version_type in
11706 freebsd-elf*)
11707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11708 soname_spec='$libname$release$shared_ext$major'
11709 need_version=no
11710 need_lib_prefix=no
11711 ;;
11712 freebsd-*)
11713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11714 need_version=yes
11715 ;;
11716 esac
11717 shlibpath_var=LD_LIBRARY_PATH
11718 case $host_os in
11719 freebsd2.*)
11720 shlibpath_overrides_runpath=yes
11721 ;;
11722 freebsd3.[01]* | freebsdelf3.[01]*)
11723 shlibpath_overrides_runpath=yes
11724 hardcode_into_libs=yes
11725 ;;
11726 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11727 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11728 shlibpath_overrides_runpath=no
11729 hardcode_into_libs=yes
11730 ;;
11731 *) # from 4.6 on, and DragonFly
11732 shlibpath_overrides_runpath=yes
11733 hardcode_into_libs=yes
11734 ;;
11735 esac
11736 ;;
11737
11738 haiku*)
11739 version_type=linux # correct to gnu/linux during the next big refactor
11740 need_lib_prefix=no
11741 need_version=no
11742 dynamic_linker="$host_os runtime_loader"
11743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11744 soname_spec='$libname$release$shared_ext$major'
11745 shlibpath_var=LIBRARY_PATH
11746 shlibpath_overrides_runpath=no
11747 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11748 hardcode_into_libs=yes
11749 ;;
11750
11751 hpux9* | hpux10* | hpux11*)
11752 # Give a soname corresponding to the major version so that dld.sl refuses to
11753 # link against other versions.
11754 version_type=sunos
11755 need_lib_prefix=no
11756 need_version=no
11757 case $host_cpu in
11758 ia64*)
11759 shrext_cmds='.so'
11760 hardcode_into_libs=yes
11761 dynamic_linker="$host_os dld.so"
11762 shlibpath_var=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11765 soname_spec='$libname$release$shared_ext$major'
11766 if test 32 = "$HPUX_IA64_MODE"; then
11767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11768 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11769 else
11770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11771 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11772 fi
11773 ;;
11774 hppa*64*)
11775 shrext_cmds='.sl'
11776 hardcode_into_libs=yes
11777 dynamic_linker="$host_os dld.sl"
11778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781 soname_spec='$libname$release$shared_ext$major'
11782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11784 ;;
11785 *)
11786 shrext_cmds='.sl'
11787 dynamic_linker="$host_os dld.sl"
11788 shlibpath_var=SHLIB_PATH
11789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11791 soname_spec='$libname$release$shared_ext$major'
11792 ;;
11793 esac
11794 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11795 postinstall_cmds='chmod 555 $lib'
11796 # or fails outright, so override atomically:
11797 install_override_mode=555
11798 ;;
11799
11800 interix[3-9]*)
11801 version_type=linux # correct to gnu/linux during the next big refactor
11802 need_lib_prefix=no
11803 need_version=no
11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11805 soname_spec='$libname$release$shared_ext$major'
11806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11810 ;;
11811
11812 irix5* | irix6* | nonstopux*)
11813 case $host_os in
11814 nonstopux*) version_type=nonstopux ;;
11815 *)
11816 if test yes = "$lt_cv_prog_gnu_ld"; then
11817 version_type=linux # correct to gnu/linux during the next big refactor
11818 else
11819 version_type=irix
11820 fi ;;
11821 esac
11822 need_lib_prefix=no
11823 need_version=no
11824 soname_spec='$libname$release$shared_ext$major'
11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11826 case $host_os in
11827 irix5* | nonstopux*)
11828 libsuff= shlibsuff=
11829 ;;
11830 *)
11831 case $LD in # libtool.m4 will add one of these switches to LD
11832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11833 libsuff= shlibsuff= libmagic=32-bit;;
11834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11835 libsuff=32 shlibsuff=N32 libmagic=N32;;
11836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11838 *) libsuff= shlibsuff= libmagic=never-match;;
11839 esac
11840 ;;
11841 esac
11842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11843 shlibpath_overrides_runpath=no
11844 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11845 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11846 hardcode_into_libs=yes
11847 ;;
11848
11849 # No shared lib support for Linux oldld, aout, or coff.
11850 linux*oldld* | linux*aout* | linux*coff*)
11851 dynamic_linker=no
11852 ;;
11853
11854 linux*android*)
11855 version_type=none # Android doesn't support versioned libraries.
11856 need_lib_prefix=no
11857 need_version=no
11858 library_names_spec='$libname$release$shared_ext'
11859 soname_spec='$libname$release$shared_ext'
11860 finish_cmds=
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=yes
11863
11864 # This implies no fast_install, which is unacceptable.
11865 # Some rework will be needed to allow for fast_install
11866 # before this can be enabled.
11867 hardcode_into_libs=yes
11868
11869 dynamic_linker='Android linker'
11870 # Don't embed -rpath directories since the linker doesn't support them.
11871 hardcode_libdir_flag_spec='-L$libdir'
11872 ;;
11873
11874 # This must be glibc/ELF.
11875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11876 version_type=linux # correct to gnu/linux during the next big refactor
11877 need_lib_prefix=no
11878 need_version=no
11879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11880 soname_spec='$libname$release$shared_ext$major'
11881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=no
11884
11885 # Some binutils ld are patched to set DT_RUNPATH
11886 if test ${lt_cv_shlibpath_overrides_runpath+y}
11887 then :
11888 printf %s "(cached) " >&6
11889 else $as_nop
11890 lt_cv_shlibpath_overrides_runpath=no
11891 save_LDFLAGS=$LDFLAGS
11892 save_libdir=$libdir
11893 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11894 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11897
11898 int
11899 main (void)
11900 {
11901
11902 ;
11903 return 0;
11904 }
11905 _ACEOF
11906 if ac_fn_c_try_link "$LINENO"
11907 then :
11908 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11909 then :
11910 lt_cv_shlibpath_overrides_runpath=yes
11911 fi
11912 fi
11913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11914 conftest$ac_exeext conftest.$ac_ext
11915 LDFLAGS=$save_LDFLAGS
11916 libdir=$save_libdir
11917
11918 fi
11919
11920 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11921
11922 # This implies no fast_install, which is unacceptable.
11923 # Some rework will be needed to allow for fast_install
11924 # before this can be enabled.
11925 hardcode_into_libs=yes
11926
11927 # Ideally, we could use ldconfig to report *all* directores which are
11928 # searched for libraries, however this is still not possible. Aside from not
11929 # being certain /sbin/ldconfig is available, command
11930 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11931 # even though it is searched at run-time. Try to do the best guess by
11932 # appending ld.so.conf contents (and includes) to the search path.
11933 if test -f /etc/ld.so.conf; then
11934 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' ' '`
11935 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11936 fi
11937
11938 # We used to test for /lib/ld.so.1 and disable shared libraries on
11939 # powerpc, because MkLinux only supported shared libraries with the
11940 # GNU dynamic linker. Since this was broken with cross compilers,
11941 # most powerpc-linux boxes support dynamic linking these days and
11942 # people can always --disable-shared, the test was removed, and we
11943 # assume the GNU/Linux dynamic linker is in use.
11944 dynamic_linker='GNU/Linux ld.so'
11945 ;;
11946
11947 netbsdelf*-gnu)
11948 version_type=linux
11949 need_lib_prefix=no
11950 need_version=no
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11952 soname_spec='${libname}${release}${shared_ext}$major'
11953 shlibpath_var=LD_LIBRARY_PATH
11954 shlibpath_overrides_runpath=no
11955 hardcode_into_libs=yes
11956 dynamic_linker='NetBSD ld.elf_so'
11957 ;;
11958
11959 netbsd*)
11960 version_type=sunos
11961 need_lib_prefix=no
11962 need_version=no
11963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11966 dynamic_linker='NetBSD (a.out) ld.so'
11967 else
11968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11969 soname_spec='$libname$release$shared_ext$major'
11970 dynamic_linker='NetBSD ld.elf_so'
11971 fi
11972 shlibpath_var=LD_LIBRARY_PATH
11973 shlibpath_overrides_runpath=yes
11974 hardcode_into_libs=yes
11975 ;;
11976
11977 newsos6)
11978 version_type=linux # correct to gnu/linux during the next big refactor
11979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11980 shlibpath_var=LD_LIBRARY_PATH
11981 shlibpath_overrides_runpath=yes
11982 ;;
11983
11984 *nto* | *qnx*)
11985 version_type=qnx
11986 need_lib_prefix=no
11987 need_version=no
11988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11989 soname_spec='$libname$release$shared_ext$major'
11990 shlibpath_var=LD_LIBRARY_PATH
11991 shlibpath_overrides_runpath=no
11992 hardcode_into_libs=yes
11993 dynamic_linker='ldqnx.so'
11994 ;;
11995
11996 openbsd* | bitrig*)
11997 version_type=sunos
11998 sys_lib_dlsearch_path_spec=/usr/lib
11999 need_lib_prefix=no
12000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12001 need_version=no
12002 else
12003 need_version=yes
12004 fi
12005 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12007 shlibpath_var=LD_LIBRARY_PATH
12008 shlibpath_overrides_runpath=yes
12009 ;;
12010
12011 os2*)
12012 libname_spec='$name'
12013 version_type=windows
12014 shrext_cmds=.dll
12015 need_version=no
12016 need_lib_prefix=no
12017 # OS/2 can only load a DLL with a base name of 8 characters or less.
12018 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12019 v=$($ECHO $release$versuffix | tr -d .-);
12020 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12021 $ECHO $n$v`$shared_ext'
12022 library_names_spec='${libname}_dll.$libext'
12023 dynamic_linker='OS/2 ld.exe'
12024 shlibpath_var=BEGINLIBPATH
12025 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12027 postinstall_cmds='base_file=`basename \$file`~
12028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12029 dldir=$destdir/`dirname \$dlpath`~
12030 test -d \$dldir || mkdir -p \$dldir~
12031 $install_prog $dir/$dlname \$dldir/$dlname~
12032 chmod a+x \$dldir/$dlname~
12033 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12034 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12035 fi'
12036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12037 dlpath=$dir/\$dldll~
12038 $RM \$dlpath'
12039 ;;
12040
12041 osf3* | osf4* | osf5*)
12042 version_type=osf
12043 need_lib_prefix=no
12044 need_version=no
12045 soname_spec='$libname$release$shared_ext$major'
12046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12050 ;;
12051
12052 rdos*)
12053 dynamic_linker=no
12054 ;;
12055
12056 solaris*)
12057 version_type=linux # correct to gnu/linux during the next big refactor
12058 need_lib_prefix=no
12059 need_version=no
12060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12061 soname_spec='$libname$release$shared_ext$major'
12062 shlibpath_var=LD_LIBRARY_PATH
12063 shlibpath_overrides_runpath=yes
12064 hardcode_into_libs=yes
12065 # ldd complains unless libraries are executable
12066 postinstall_cmds='chmod +x $lib'
12067 ;;
12068
12069 sunos4*)
12070 version_type=sunos
12071 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12072 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12073 shlibpath_var=LD_LIBRARY_PATH
12074 shlibpath_overrides_runpath=yes
12075 if test yes = "$with_gnu_ld"; then
12076 need_lib_prefix=no
12077 fi
12078 need_version=yes
12079 ;;
12080
12081 sysv4 | sysv4.3*)
12082 version_type=linux # correct to gnu/linux during the next big refactor
12083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12084 soname_spec='$libname$release$shared_ext$major'
12085 shlibpath_var=LD_LIBRARY_PATH
12086 case $host_vendor in
12087 sni)
12088 shlibpath_overrides_runpath=no
12089 need_lib_prefix=no
12090 runpath_var=LD_RUN_PATH
12091 ;;
12092 siemens)
12093 need_lib_prefix=no
12094 ;;
12095 motorola)
12096 need_lib_prefix=no
12097 need_version=no
12098 shlibpath_overrides_runpath=no
12099 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12100 ;;
12101 esac
12102 ;;
12103
12104 sysv4*MP*)
12105 if test -d /usr/nec; then
12106 version_type=linux # correct to gnu/linux during the next big refactor
12107 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12108 soname_spec='$libname$shared_ext.$major'
12109 shlibpath_var=LD_LIBRARY_PATH
12110 fi
12111 ;;
12112
12113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12114 version_type=sco
12115 need_lib_prefix=no
12116 need_version=no
12117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12118 soname_spec='$libname$release$shared_ext$major'
12119 shlibpath_var=LD_LIBRARY_PATH
12120 shlibpath_overrides_runpath=yes
12121 hardcode_into_libs=yes
12122 if test yes = "$with_gnu_ld"; then
12123 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12124 else
12125 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12126 case $host_os in
12127 sco3.2v5*)
12128 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12129 ;;
12130 esac
12131 fi
12132 sys_lib_dlsearch_path_spec='/usr/lib'
12133 ;;
12134
12135 tpf*)
12136 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12137 version_type=linux # correct to gnu/linux during the next big refactor
12138 need_lib_prefix=no
12139 need_version=no
12140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12141 shlibpath_var=LD_LIBRARY_PATH
12142 shlibpath_overrides_runpath=no
12143 hardcode_into_libs=yes
12144 ;;
12145
12146 uts4*)
12147 version_type=linux # correct to gnu/linux during the next big refactor
12148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12149 soname_spec='$libname$release$shared_ext$major'
12150 shlibpath_var=LD_LIBRARY_PATH
12151 ;;
12152
12153 *)
12154 dynamic_linker=no
12155 ;;
12156 esac
12157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12158 printf "%s\n" "$dynamic_linker" >&6; }
12159 test no = "$dynamic_linker" && can_build_shared=no
12160
12161 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12162 if test yes = "$GCC"; then
12163 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12164 fi
12165
12166 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12167 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12168 fi
12169
12170 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12171 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12172 fi
12173
12174 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12175 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12176
12177 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12178 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12179
12180 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12181 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12280 printf %s "checking how to hardcode library paths into programs... " >&6; }
12281 hardcode_action=
12282 if test -n "$hardcode_libdir_flag_spec" ||
12283 test -n "$runpath_var" ||
12284 test yes = "$hardcode_automatic"; then
12285
12286 # We can hardcode non-existent directories.
12287 if test no != "$hardcode_direct" &&
12288 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12289 # have to relink, otherwise we might link with an installed library
12290 # when we should be linking with a yet-to-be-installed one
12291 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12292 test no != "$hardcode_minus_L"; then
12293 # Linking always hardcodes the temporary library directory.
12294 hardcode_action=relink
12295 else
12296 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12297 hardcode_action=immediate
12298 fi
12299 else
12300 # We cannot hardcode anything, or else we can only hardcode existing
12301 # directories.
12302 hardcode_action=unsupported
12303 fi
12304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12305 printf "%s\n" "$hardcode_action" >&6; }
12306
12307 if test relink = "$hardcode_action" ||
12308 test yes = "$inherit_rpath"; then
12309 # Fast installation is not supported
12310 enable_fast_install=no
12311 elif test yes = "$shlibpath_overrides_runpath" ||
12312 test no = "$enable_shared"; then
12313 # Fast installation is not necessary
12314 enable_fast_install=needless
12315 fi
12316
12317
12318
12319
12320
12321
12322 if test yes != "$enable_dlopen"; then
12323 enable_dlopen=unknown
12324 enable_dlopen_self=unknown
12325 enable_dlopen_self_static=unknown
12326 else
12327 lt_cv_dlopen=no
12328 lt_cv_dlopen_libs=
12329
12330 case $host_os in
12331 beos*)
12332 lt_cv_dlopen=load_add_on
12333 lt_cv_dlopen_libs=
12334 lt_cv_dlopen_self=yes
12335 ;;
12336
12337 mingw* | pw32* | cegcc*)
12338 lt_cv_dlopen=LoadLibrary
12339 lt_cv_dlopen_libs=
12340 ;;
12341
12342 cygwin*)
12343 lt_cv_dlopen=dlopen
12344 lt_cv_dlopen_libs=
12345 ;;
12346
12347 darwin*)
12348 # if libdl is installed we need to link against it
12349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12350 printf %s "checking for dlopen in -ldl... " >&6; }
12351 if test ${ac_cv_lib_dl_dlopen+y}
12352 then :
12353 printf %s "(cached) " >&6
12354 else $as_nop
12355 ac_check_lib_save_LIBS=$LIBS
12356 LIBS="-ldl $LIBS"
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359
12360 /* Override any GCC internal prototype to avoid an error.
12361 Use char because int might match the return type of a GCC
12362 builtin and then its argument prototype would still apply. */
12363 char dlopen ();
12364 int
12365 main (void)
12366 {
12367 return dlopen ();
12368 ;
12369 return 0;
12370 }
12371 _ACEOF
12372 if ac_fn_c_try_link "$LINENO"
12373 then :
12374 ac_cv_lib_dl_dlopen=yes
12375 else $as_nop
12376 ac_cv_lib_dl_dlopen=no
12377 fi
12378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12379 conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12381 fi
12382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12383 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12384 if test "x$ac_cv_lib_dl_dlopen" = xyes
12385 then :
12386 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12387 else $as_nop
12388
12389 lt_cv_dlopen=dyld
12390 lt_cv_dlopen_libs=
12391 lt_cv_dlopen_self=yes
12392
12393 fi
12394
12395 ;;
12396
12397 tpf*)
12398 # Don't try to run any link tests for TPF. We know it's impossible
12399 # because TPF is a cross-compiler, and we know how we open DSOs.
12400 lt_cv_dlopen=dlopen
12401 lt_cv_dlopen_libs=
12402 lt_cv_dlopen_self=no
12403 ;;
12404
12405 *)
12406 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12407 if test "x$ac_cv_func_shl_load" = xyes
12408 then :
12409 lt_cv_dlopen=shl_load
12410 else $as_nop
12411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12412 printf %s "checking for shl_load in -ldld... " >&6; }
12413 if test ${ac_cv_lib_dld_shl_load+y}
12414 then :
12415 printf %s "(cached) " >&6
12416 else $as_nop
12417 ac_check_lib_save_LIBS=$LIBS
12418 LIBS="-ldld $LIBS"
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421
12422 /* Override any GCC internal prototype to avoid an error.
12423 Use char because int might match the return type of a GCC
12424 builtin and then its argument prototype would still apply. */
12425 char shl_load ();
12426 int
12427 main (void)
12428 {
12429 return shl_load ();
12430 ;
12431 return 0;
12432 }
12433 _ACEOF
12434 if ac_fn_c_try_link "$LINENO"
12435 then :
12436 ac_cv_lib_dld_shl_load=yes
12437 else $as_nop
12438 ac_cv_lib_dld_shl_load=no
12439 fi
12440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12441 conftest$ac_exeext conftest.$ac_ext
12442 LIBS=$ac_check_lib_save_LIBS
12443 fi
12444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12445 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12446 if test "x$ac_cv_lib_dld_shl_load" = xyes
12447 then :
12448 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12449 else $as_nop
12450 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12451 if test "x$ac_cv_func_dlopen" = xyes
12452 then :
12453 lt_cv_dlopen=dlopen
12454 else $as_nop
12455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12456 printf %s "checking for dlopen in -ldl... " >&6; }
12457 if test ${ac_cv_lib_dl_dlopen+y}
12458 then :
12459 printf %s "(cached) " >&6
12460 else $as_nop
12461 ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-ldl $LIBS"
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465
12466 /* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12469 char dlopen ();
12470 int
12471 main (void)
12472 {
12473 return dlopen ();
12474 ;
12475 return 0;
12476 }
12477 _ACEOF
12478 if ac_fn_c_try_link "$LINENO"
12479 then :
12480 ac_cv_lib_dl_dlopen=yes
12481 else $as_nop
12482 ac_cv_lib_dl_dlopen=no
12483 fi
12484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12485 conftest$ac_exeext conftest.$ac_ext
12486 LIBS=$ac_check_lib_save_LIBS
12487 fi
12488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12489 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12490 if test "x$ac_cv_lib_dl_dlopen" = xyes
12491 then :
12492 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12493 else $as_nop
12494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12495 printf %s "checking for dlopen in -lsvld... " >&6; }
12496 if test ${ac_cv_lib_svld_dlopen+y}
12497 then :
12498 printf %s "(cached) " >&6
12499 else $as_nop
12500 ac_check_lib_save_LIBS=$LIBS
12501 LIBS="-lsvld $LIBS"
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12504
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12508 char dlopen ();
12509 int
12510 main (void)
12511 {
12512 return dlopen ();
12513 ;
12514 return 0;
12515 }
12516 _ACEOF
12517 if ac_fn_c_try_link "$LINENO"
12518 then :
12519 ac_cv_lib_svld_dlopen=yes
12520 else $as_nop
12521 ac_cv_lib_svld_dlopen=no
12522 fi
12523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12524 conftest$ac_exeext conftest.$ac_ext
12525 LIBS=$ac_check_lib_save_LIBS
12526 fi
12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12528 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12529 if test "x$ac_cv_lib_svld_dlopen" = xyes
12530 then :
12531 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12532 else $as_nop
12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12534 printf %s "checking for dld_link in -ldld... " >&6; }
12535 if test ${ac_cv_lib_dld_dld_link+y}
12536 then :
12537 printf %s "(cached) " >&6
12538 else $as_nop
12539 ac_check_lib_save_LIBS=$LIBS
12540 LIBS="-ldld $LIBS"
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12543
12544 /* Override any GCC internal prototype to avoid an error.
12545 Use char because int might match the return type of a GCC
12546 builtin and then its argument prototype would still apply. */
12547 char dld_link ();
12548 int
12549 main (void)
12550 {
12551 return dld_link ();
12552 ;
12553 return 0;
12554 }
12555 _ACEOF
12556 if ac_fn_c_try_link "$LINENO"
12557 then :
12558 ac_cv_lib_dld_dld_link=yes
12559 else $as_nop
12560 ac_cv_lib_dld_dld_link=no
12561 fi
12562 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12563 conftest$ac_exeext conftest.$ac_ext
12564 LIBS=$ac_check_lib_save_LIBS
12565 fi
12566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12567 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12568 if test "x$ac_cv_lib_dld_dld_link" = xyes
12569 then :
12570 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12571 fi
12572
12573
12574 fi
12575
12576
12577 fi
12578
12579
12580 fi
12581
12582
12583 fi
12584
12585
12586 fi
12587
12588 ;;
12589 esac
12590
12591 if test no = "$lt_cv_dlopen"; then
12592 enable_dlopen=no
12593 else
12594 enable_dlopen=yes
12595 fi
12596
12597 case $lt_cv_dlopen in
12598 dlopen)
12599 save_CPPFLAGS=$CPPFLAGS
12600 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12601
12602 save_LDFLAGS=$LDFLAGS
12603 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12604
12605 save_LIBS=$LIBS
12606 LIBS="$lt_cv_dlopen_libs $LIBS"
12607
12608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12609 printf %s "checking whether a program can dlopen itself... " >&6; }
12610 if test ${lt_cv_dlopen_self+y}
12611 then :
12612 printf %s "(cached) " >&6
12613 else $as_nop
12614 if test yes = "$cross_compiling"; then :
12615 lt_cv_dlopen_self=cross
12616 else
12617 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12618 lt_status=$lt_dlunknown
12619 cat > conftest.$ac_ext <<_LT_EOF
12620 #line $LINENO "configure"
12621 #include "confdefs.h"
12622
12623 #if HAVE_DLFCN_H
12624 #include <dlfcn.h>
12625 #endif
12626
12627 #include <stdio.h>
12628
12629 #ifdef RTLD_GLOBAL
12630 # define LT_DLGLOBAL RTLD_GLOBAL
12631 #else
12632 # ifdef DL_GLOBAL
12633 # define LT_DLGLOBAL DL_GLOBAL
12634 # else
12635 # define LT_DLGLOBAL 0
12636 # endif
12637 #endif
12638
12639 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12640 find out it does not work in some platform. */
12641 #ifndef LT_DLLAZY_OR_NOW
12642 # ifdef RTLD_LAZY
12643 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12644 # else
12645 # ifdef DL_LAZY
12646 # define LT_DLLAZY_OR_NOW DL_LAZY
12647 # else
12648 # ifdef RTLD_NOW
12649 # define LT_DLLAZY_OR_NOW RTLD_NOW
12650 # else
12651 # ifdef DL_NOW
12652 # define LT_DLLAZY_OR_NOW DL_NOW
12653 # else
12654 # define LT_DLLAZY_OR_NOW 0
12655 # endif
12656 # endif
12657 # endif
12658 # endif
12659 #endif
12660
12661 /* When -fvisibility=hidden is used, assume the code has been annotated
12662 correspondingly for the symbols needed. */
12663 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12664 int fnord () __attribute__((visibility("default")));
12665 #endif
12666
12667 int fnord () { return 42; }
12668 int main ()
12669 {
12670 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12671 int status = $lt_dlunknown;
12672
12673 if (self)
12674 {
12675 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12676 else
12677 {
12678 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12679 else puts (dlerror ());
12680 }
12681 /* dlclose (self); */
12682 }
12683 else
12684 puts (dlerror ());
12685
12686 return status;
12687 }
12688 _LT_EOF
12689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12690 (eval $ac_link) 2>&5
12691 ac_status=$?
12692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12693 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12694 (./conftest; exit; ) >&5 2>/dev/null
12695 lt_status=$?
12696 case x$lt_status in
12697 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12698 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12699 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12700 esac
12701 else :
12702 # compilation failed
12703 lt_cv_dlopen_self=no
12704 fi
12705 fi
12706 rm -fr conftest*
12707
12708
12709 fi
12710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12711 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12712
12713 if test yes = "$lt_cv_dlopen_self"; then
12714 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12716 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12717 if test ${lt_cv_dlopen_self_static+y}
12718 then :
12719 printf %s "(cached) " >&6
12720 else $as_nop
12721 if test yes = "$cross_compiling"; then :
12722 lt_cv_dlopen_self_static=cross
12723 else
12724 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12725 lt_status=$lt_dlunknown
12726 cat > conftest.$ac_ext <<_LT_EOF
12727 #line $LINENO "configure"
12728 #include "confdefs.h"
12729
12730 #if HAVE_DLFCN_H
12731 #include <dlfcn.h>
12732 #endif
12733
12734 #include <stdio.h>
12735
12736 #ifdef RTLD_GLOBAL
12737 # define LT_DLGLOBAL RTLD_GLOBAL
12738 #else
12739 # ifdef DL_GLOBAL
12740 # define LT_DLGLOBAL DL_GLOBAL
12741 # else
12742 # define LT_DLGLOBAL 0
12743 # endif
12744 #endif
12745
12746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12747 find out it does not work in some platform. */
12748 #ifndef LT_DLLAZY_OR_NOW
12749 # ifdef RTLD_LAZY
12750 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12751 # else
12752 # ifdef DL_LAZY
12753 # define LT_DLLAZY_OR_NOW DL_LAZY
12754 # else
12755 # ifdef RTLD_NOW
12756 # define LT_DLLAZY_OR_NOW RTLD_NOW
12757 # else
12758 # ifdef DL_NOW
12759 # define LT_DLLAZY_OR_NOW DL_NOW
12760 # else
12761 # define LT_DLLAZY_OR_NOW 0
12762 # endif
12763 # endif
12764 # endif
12765 # endif
12766 #endif
12767
12768 /* When -fvisibility=hidden is used, assume the code has been annotated
12769 correspondingly for the symbols needed. */
12770 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12771 int fnord () __attribute__((visibility("default")));
12772 #endif
12773
12774 int fnord () { return 42; }
12775 int main ()
12776 {
12777 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12778 int status = $lt_dlunknown;
12779
12780 if (self)
12781 {
12782 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12783 else
12784 {
12785 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12786 else puts (dlerror ());
12787 }
12788 /* dlclose (self); */
12789 }
12790 else
12791 puts (dlerror ());
12792
12793 return status;
12794 }
12795 _LT_EOF
12796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12797 (eval $ac_link) 2>&5
12798 ac_status=$?
12799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12800 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12801 (./conftest; exit; ) >&5 2>/dev/null
12802 lt_status=$?
12803 case x$lt_status in
12804 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12805 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12806 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12807 esac
12808 else :
12809 # compilation failed
12810 lt_cv_dlopen_self_static=no
12811 fi
12812 fi
12813 rm -fr conftest*
12814
12815
12816 fi
12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12818 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12819 fi
12820
12821 CPPFLAGS=$save_CPPFLAGS
12822 LDFLAGS=$save_LDFLAGS
12823 LIBS=$save_LIBS
12824 ;;
12825 esac
12826
12827 case $lt_cv_dlopen_self in
12828 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12829 *) enable_dlopen_self=unknown ;;
12830 esac
12831
12832 case $lt_cv_dlopen_self_static in
12833 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12834 *) enable_dlopen_self_static=unknown ;;
12835 esac
12836 fi
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854 striplib=
12855 old_striplib=
12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12857 printf %s "checking whether stripping libraries is possible... " >&6; }
12858 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12859 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12860 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12862 printf "%s\n" "yes" >&6; }
12863 else
12864 # FIXME - insert some real tests, host_os isn't really good enough
12865 case $host_os in
12866 darwin*)
12867 if test -n "$STRIP"; then
12868 striplib="$STRIP -x"
12869 old_striplib="$STRIP -S"
12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12871 printf "%s\n" "yes" >&6; }
12872 else
12873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 printf "%s\n" "no" >&6; }
12875 fi
12876 ;;
12877 *)
12878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 printf "%s\n" "no" >&6; }
12880 ;;
12881 esac
12882 fi
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895 # Report what library types will actually be built
12896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12897 printf %s "checking if libtool supports shared libraries... " >&6; }
12898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12899 printf "%s\n" "$can_build_shared" >&6; }
12900
12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12902 printf %s "checking whether to build shared libraries... " >&6; }
12903 test no = "$can_build_shared" && enable_shared=no
12904
12905 # On AIX, shared libraries and static libraries use the same namespace, and
12906 # are all built from PIC.
12907 case $host_os in
12908 aix3*)
12909 test yes = "$enable_shared" && enable_static=no
12910 if test -n "$RANLIB"; then
12911 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12912 postinstall_cmds='$RANLIB $lib'
12913 fi
12914 ;;
12915
12916 aix[4-9]*)
12917 if test ia64 != "$host_cpu"; then
12918 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12919 yes,aix,yes) ;; # shared object as lib.so file only
12920 yes,svr4,*) ;; # shared object as lib.so archive member only
12921 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12922 esac
12923 fi
12924 ;;
12925 esac
12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12927 printf "%s\n" "$enable_shared" >&6; }
12928
12929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12930 printf %s "checking whether to build static libraries... " >&6; }
12931 # Make sure either enable_shared or enable_static is yes.
12932 test yes = "$enable_shared" || enable_static=yes
12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12934 printf "%s\n" "$enable_static" >&6; }
12935
12936
12937
12938
12939 fi
12940 ac_ext=c
12941 ac_cpp='$CPP $CPPFLAGS'
12942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12945
12946 CC=$lt_save_CC
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962 ac_config_commands="$ac_config_commands libtool"
12963
12964
12965
12966
12967 # Only expand once:
12968
12969
12970
12971 FRIBIDI_MAJOR_VERSION=1
12972 FRIBIDI_MINOR_VERSION=0
12973 FRIBIDI_MICRO_VERSION=16
12974 FRIBIDI_VERSION=1.0.16
12975 FRIBIDI_INTERFACE_VERSION=4
12976 FRIBIDI_INTERFACE_AGE=0
12977 FRIBIDI_BINARY_AGE=4
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987 FRIBIDI_MSVC_BUILD_PLACEHOLDER="#undef FRIBIDI_BUILT_WITH_MSVC"
12988
12989
12990 LT_VERSION_INFO=4:0:4
12991 LT_CURRENT_MINUS_AGE=0
12992
12993
12994
12995
12996
12997 # Checks for programs.
12998 ac_ext=c
12999 ac_cpp='$CPP $CPPFLAGS'
13000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13003 if test -n "$ac_tool_prefix"; then
13004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 printf %s "checking for $ac_word... " >&6; }
13008 if test ${ac_cv_prog_CC+y}
13009 then :
13010 printf %s "(cached) " >&6
13011 else $as_nop
13012 if test -n "$CC"; then
13013 ac_cv_prog_CC="$CC" # Let the user override the test.
13014 else
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13017 do
13018 IFS=$as_save_IFS
13019 case $as_dir in #(((
13020 '') as_dir=./ ;;
13021 */) ;;
13022 *) as_dir=$as_dir/ ;;
13023 esac
13024 for ac_exec_ext in '' $ac_executable_extensions; do
13025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13028 break 2
13029 fi
13030 done
13031 done
13032 IFS=$as_save_IFS
13033
13034 fi
13035 fi
13036 CC=$ac_cv_prog_CC
13037 if test -n "$CC"; then
13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13039 printf "%s\n" "$CC" >&6; }
13040 else
13041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042 printf "%s\n" "no" >&6; }
13043 fi
13044
13045
13046 fi
13047 if test -z "$ac_cv_prog_CC"; then
13048 ac_ct_CC=$CC
13049 # Extract the first word of "gcc", so it can be a program name with args.
13050 set dummy gcc; ac_word=$2
13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052 printf %s "checking for $ac_word... " >&6; }
13053 if test ${ac_cv_prog_ac_ct_CC+y}
13054 then :
13055 printf %s "(cached) " >&6
13056 else $as_nop
13057 if test -n "$ac_ct_CC"; then
13058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13059 else
13060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061 for as_dir in $PATH
13062 do
13063 IFS=$as_save_IFS
13064 case $as_dir in #(((
13065 '') as_dir=./ ;;
13066 */) ;;
13067 *) as_dir=$as_dir/ ;;
13068 esac
13069 for ac_exec_ext in '' $ac_executable_extensions; do
13070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13071 ac_cv_prog_ac_ct_CC="gcc"
13072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13073 break 2
13074 fi
13075 done
13076 done
13077 IFS=$as_save_IFS
13078
13079 fi
13080 fi
13081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13082 if test -n "$ac_ct_CC"; then
13083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13084 printf "%s\n" "$ac_ct_CC" >&6; }
13085 else
13086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 printf "%s\n" "no" >&6; }
13088 fi
13089
13090 if test "x$ac_ct_CC" = x; then
13091 CC=""
13092 else
13093 case $cross_compiling:$ac_tool_warned in
13094 yes:)
13095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13096 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13097 ac_tool_warned=yes ;;
13098 esac
13099 CC=$ac_ct_CC
13100 fi
13101 else
13102 CC="$ac_cv_prog_CC"
13103 fi
13104
13105 if test -z "$CC"; then
13106 if test -n "$ac_tool_prefix"; then
13107 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13108 set dummy ${ac_tool_prefix}cc; ac_word=$2
13109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13110 printf %s "checking for $ac_word... " >&6; }
13111 if test ${ac_cv_prog_CC+y}
13112 then :
13113 printf %s "(cached) " >&6
13114 else $as_nop
13115 if test -n "$CC"; then
13116 ac_cv_prog_CC="$CC" # Let the user override the test.
13117 else
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13120 do
13121 IFS=$as_save_IFS
13122 case $as_dir in #(((
13123 '') as_dir=./ ;;
13124 */) ;;
13125 *) as_dir=$as_dir/ ;;
13126 esac
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13129 ac_cv_prog_CC="${ac_tool_prefix}cc"
13130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13131 break 2
13132 fi
13133 done
13134 done
13135 IFS=$as_save_IFS
13136
13137 fi
13138 fi
13139 CC=$ac_cv_prog_CC
13140 if test -n "$CC"; then
13141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13142 printf "%s\n" "$CC" >&6; }
13143 else
13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145 printf "%s\n" "no" >&6; }
13146 fi
13147
13148
13149 fi
13150 fi
13151 if test -z "$CC"; then
13152 # Extract the first word of "cc", so it can be a program name with args.
13153 set dummy cc; ac_word=$2
13154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13155 printf %s "checking for $ac_word... " >&6; }
13156 if test ${ac_cv_prog_CC+y}
13157 then :
13158 printf %s "(cached) " >&6
13159 else $as_nop
13160 if test -n "$CC"; then
13161 ac_cv_prog_CC="$CC" # Let the user override the test.
13162 else
13163 ac_prog_rejected=no
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13166 do
13167 IFS=$as_save_IFS
13168 case $as_dir in #(((
13169 '') as_dir=./ ;;
13170 */) ;;
13171 *) as_dir=$as_dir/ ;;
13172 esac
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13175 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13176 ac_prog_rejected=yes
13177 continue
13178 fi
13179 ac_cv_prog_CC="cc"
13180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13181 break 2
13182 fi
13183 done
13184 done
13185 IFS=$as_save_IFS
13186
13187 if test $ac_prog_rejected = yes; then
13188 # We found a bogon in the path, so make sure we never use it.
13189 set dummy $ac_cv_prog_CC
13190 shift
13191 if test $# != 0; then
13192 # We chose a different compiler from the bogus one.
13193 # However, it has the same basename, so the bogon will be chosen
13194 # first if we set CC to just the basename; use the full file name.
13195 shift
13196 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13197 fi
13198 fi
13199 fi
13200 fi
13201 CC=$ac_cv_prog_CC
13202 if test -n "$CC"; then
13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13204 printf "%s\n" "$CC" >&6; }
13205 else
13206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 printf "%s\n" "no" >&6; }
13208 fi
13209
13210
13211 fi
13212 if test -z "$CC"; then
13213 if test -n "$ac_tool_prefix"; then
13214 for ac_prog in cl.exe
13215 do
13216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219 printf %s "checking for $ac_word... " >&6; }
13220 if test ${ac_cv_prog_CC+y}
13221 then :
13222 printf %s "(cached) " >&6
13223 else $as_nop
13224 if test -n "$CC"; then
13225 ac_cv_prog_CC="$CC" # Let the user override the test.
13226 else
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13229 do
13230 IFS=$as_save_IFS
13231 case $as_dir in #(((
13232 '') as_dir=./ ;;
13233 */) ;;
13234 *) as_dir=$as_dir/ ;;
13235 esac
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13238 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13240 break 2
13241 fi
13242 done
13243 done
13244 IFS=$as_save_IFS
13245
13246 fi
13247 fi
13248 CC=$ac_cv_prog_CC
13249 if test -n "$CC"; then
13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13251 printf "%s\n" "$CC" >&6; }
13252 else
13253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 printf "%s\n" "no" >&6; }
13255 fi
13256
13257
13258 test -n "$CC" && break
13259 done
13260 fi
13261 if test -z "$CC"; then
13262 ac_ct_CC=$CC
13263 for ac_prog in cl.exe
13264 do
13265 # Extract the first word of "$ac_prog", so it can be a program name with args.
13266 set dummy $ac_prog; ac_word=$2
13267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268 printf %s "checking for $ac_word... " >&6; }
13269 if test ${ac_cv_prog_ac_ct_CC+y}
13270 then :
13271 printf %s "(cached) " >&6
13272 else $as_nop
13273 if test -n "$ac_ct_CC"; then
13274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13275 else
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13278 do
13279 IFS=$as_save_IFS
13280 case $as_dir in #(((
13281 '') as_dir=./ ;;
13282 */) ;;
13283 *) as_dir=$as_dir/ ;;
13284 esac
13285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13287 ac_cv_prog_ac_ct_CC="$ac_prog"
13288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13289 break 2
13290 fi
13291 done
13292 done
13293 IFS=$as_save_IFS
13294
13295 fi
13296 fi
13297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13298 if test -n "$ac_ct_CC"; then
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13300 printf "%s\n" "$ac_ct_CC" >&6; }
13301 else
13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303 printf "%s\n" "no" >&6; }
13304 fi
13305
13306
13307 test -n "$ac_ct_CC" && break
13308 done
13309
13310 if test "x$ac_ct_CC" = x; then
13311 CC=""
13312 else
13313 case $cross_compiling:$ac_tool_warned in
13314 yes:)
13315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13316 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13317 ac_tool_warned=yes ;;
13318 esac
13319 CC=$ac_ct_CC
13320 fi
13321 fi
13322
13323 fi
13324 if test -z "$CC"; then
13325 if test -n "$ac_tool_prefix"; then
13326 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13327 set dummy ${ac_tool_prefix}clang; ac_word=$2
13328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13329 printf %s "checking for $ac_word... " >&6; }
13330 if test ${ac_cv_prog_CC+y}
13331 then :
13332 printf %s "(cached) " >&6
13333 else $as_nop
13334 if test -n "$CC"; then
13335 ac_cv_prog_CC="$CC" # Let the user override the test.
13336 else
13337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338 for as_dir in $PATH
13339 do
13340 IFS=$as_save_IFS
13341 case $as_dir in #(((
13342 '') as_dir=./ ;;
13343 */) ;;
13344 *) as_dir=$as_dir/ ;;
13345 esac
13346 for ac_exec_ext in '' $ac_executable_extensions; do
13347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13348 ac_cv_prog_CC="${ac_tool_prefix}clang"
13349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13350 break 2
13351 fi
13352 done
13353 done
13354 IFS=$as_save_IFS
13355
13356 fi
13357 fi
13358 CC=$ac_cv_prog_CC
13359 if test -n "$CC"; then
13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13361 printf "%s\n" "$CC" >&6; }
13362 else
13363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 printf "%s\n" "no" >&6; }
13365 fi
13366
13367
13368 fi
13369 if test -z "$ac_cv_prog_CC"; then
13370 ac_ct_CC=$CC
13371 # Extract the first word of "clang", so it can be a program name with args.
13372 set dummy clang; ac_word=$2
13373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13374 printf %s "checking for $ac_word... " >&6; }
13375 if test ${ac_cv_prog_ac_ct_CC+y}
13376 then :
13377 printf %s "(cached) " >&6
13378 else $as_nop
13379 if test -n "$ac_ct_CC"; then
13380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13381 else
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13384 do
13385 IFS=$as_save_IFS
13386 case $as_dir in #(((
13387 '') as_dir=./ ;;
13388 */) ;;
13389 *) as_dir=$as_dir/ ;;
13390 esac
13391 for ac_exec_ext in '' $ac_executable_extensions; do
13392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13393 ac_cv_prog_ac_ct_CC="clang"
13394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13395 break 2
13396 fi
13397 done
13398 done
13399 IFS=$as_save_IFS
13400
13401 fi
13402 fi
13403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13404 if test -n "$ac_ct_CC"; then
13405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13406 printf "%s\n" "$ac_ct_CC" >&6; }
13407 else
13408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409 printf "%s\n" "no" >&6; }
13410 fi
13411
13412 if test "x$ac_ct_CC" = x; then
13413 CC=""
13414 else
13415 case $cross_compiling:$ac_tool_warned in
13416 yes:)
13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13418 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13419 ac_tool_warned=yes ;;
13420 esac
13421 CC=$ac_ct_CC
13422 fi
13423 else
13424 CC="$ac_cv_prog_CC"
13425 fi
13426
13427 fi
13428
13429
13430 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13431 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13432 as_fn_error $? "no acceptable C compiler found in \$PATH
13433 See \`config.log' for more details" "$LINENO" 5; }
13434
13435 # Provide some information about the compiler.
13436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13437 set X $ac_compile
13438 ac_compiler=$2
13439 for ac_option in --version -v -V -qversion -version; do
13440 { { ac_try="$ac_compiler $ac_option >&5"
13441 case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13444 esac
13445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13446 printf "%s\n" "$ac_try_echo"; } >&5
13447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13448 ac_status=$?
13449 if test -s conftest.err; then
13450 sed '10a\
13451 ... rest of stderr output deleted ...
13452 10q' conftest.err >conftest.er1
13453 cat conftest.er1 >&5
13454 fi
13455 rm -f conftest.er1 conftest.err
13456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13457 test $ac_status = 0; }
13458 done
13459
13460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13461 printf %s "checking whether the compiler supports GNU C... " >&6; }
13462 if test ${ac_cv_c_compiler_gnu+y}
13463 then :
13464 printf %s "(cached) " >&6
13465 else $as_nop
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13468
13469 int
13470 main (void)
13471 {
13472 #ifndef __GNUC__
13473 choke me
13474 #endif
13475
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_compile "$LINENO"
13481 then :
13482 ac_compiler_gnu=yes
13483 else $as_nop
13484 ac_compiler_gnu=no
13485 fi
13486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13488
13489 fi
13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13491 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13493
13494 if test $ac_compiler_gnu = yes; then
13495 GCC=yes
13496 else
13497 GCC=
13498 fi
13499 ac_test_CFLAGS=${CFLAGS+y}
13500 ac_save_CFLAGS=$CFLAGS
13501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13502 printf %s "checking whether $CC accepts -g... " >&6; }
13503 if test ${ac_cv_prog_cc_g+y}
13504 then :
13505 printf %s "(cached) " >&6
13506 else $as_nop
13507 ac_save_c_werror_flag=$ac_c_werror_flag
13508 ac_c_werror_flag=yes
13509 ac_cv_prog_cc_g=no
13510 CFLAGS="-g"
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513
13514 int
13515 main (void)
13516 {
13517
13518 ;
13519 return 0;
13520 }
13521 _ACEOF
13522 if ac_fn_c_try_compile "$LINENO"
13523 then :
13524 ac_cv_prog_cc_g=yes
13525 else $as_nop
13526 CFLAGS=""
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13529
13530 int
13531 main (void)
13532 {
13533
13534 ;
13535 return 0;
13536 }
13537 _ACEOF
13538 if ac_fn_c_try_compile "$LINENO"
13539 then :
13540
13541 else $as_nop
13542 ac_c_werror_flag=$ac_save_c_werror_flag
13543 CFLAGS="-g"
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13546
13547 int
13548 main (void)
13549 {
13550
13551 ;
13552 return 0;
13553 }
13554 _ACEOF
13555 if ac_fn_c_try_compile "$LINENO"
13556 then :
13557 ac_cv_prog_cc_g=yes
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13560 fi
13561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13564 ac_c_werror_flag=$ac_save_c_werror_flag
13565 fi
13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13567 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13568 if test $ac_test_CFLAGS; then
13569 CFLAGS=$ac_save_CFLAGS
13570 elif test $ac_cv_prog_cc_g = yes; then
13571 if test "$GCC" = yes; then
13572 CFLAGS="-g -O2"
13573 else
13574 CFLAGS="-g"
13575 fi
13576 else
13577 if test "$GCC" = yes; then
13578 CFLAGS="-O2"
13579 else
13580 CFLAGS=
13581 fi
13582 fi
13583 ac_prog_cc_stdc=no
13584 if test x$ac_prog_cc_stdc = xno
13585 then :
13586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13587 printf %s "checking for $CC option to enable C11 features... " >&6; }
13588 if test ${ac_cv_prog_cc_c11+y}
13589 then :
13590 printf %s "(cached) " >&6
13591 else $as_nop
13592 ac_cv_prog_cc_c11=no
13593 ac_save_CC=$CC
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 $ac_c_conftest_c11_program
13597 _ACEOF
13598 for ac_arg in '' -std=gnu11
13599 do
13600 CC="$ac_save_CC $ac_arg"
13601 if ac_fn_c_try_compile "$LINENO"
13602 then :
13603 ac_cv_prog_cc_c11=$ac_arg
13604 fi
13605 rm -f core conftest.err conftest.$ac_objext conftest.beam
13606 test "x$ac_cv_prog_cc_c11" != "xno" && break
13607 done
13608 rm -f conftest.$ac_ext
13609 CC=$ac_save_CC
13610 fi
13611
13612 if test "x$ac_cv_prog_cc_c11" = xno
13613 then :
13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13615 printf "%s\n" "unsupported" >&6; }
13616 else $as_nop
13617 if test "x$ac_cv_prog_cc_c11" = x
13618 then :
13619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13620 printf "%s\n" "none needed" >&6; }
13621 else $as_nop
13622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13623 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13624 CC="$CC $ac_cv_prog_cc_c11"
13625 fi
13626 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13627 ac_prog_cc_stdc=c11
13628 fi
13629 fi
13630 if test x$ac_prog_cc_stdc = xno
13631 then :
13632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13633 printf %s "checking for $CC option to enable C99 features... " >&6; }
13634 if test ${ac_cv_prog_cc_c99+y}
13635 then :
13636 printf %s "(cached) " >&6
13637 else $as_nop
13638 ac_cv_prog_cc_c99=no
13639 ac_save_CC=$CC
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 $ac_c_conftest_c99_program
13643 _ACEOF
13644 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13645 do
13646 CC="$ac_save_CC $ac_arg"
13647 if ac_fn_c_try_compile "$LINENO"
13648 then :
13649 ac_cv_prog_cc_c99=$ac_arg
13650 fi
13651 rm -f core conftest.err conftest.$ac_objext conftest.beam
13652 test "x$ac_cv_prog_cc_c99" != "xno" && break
13653 done
13654 rm -f conftest.$ac_ext
13655 CC=$ac_save_CC
13656 fi
13657
13658 if test "x$ac_cv_prog_cc_c99" = xno
13659 then :
13660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13661 printf "%s\n" "unsupported" >&6; }
13662 else $as_nop
13663 if test "x$ac_cv_prog_cc_c99" = x
13664 then :
13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13666 printf "%s\n" "none needed" >&6; }
13667 else $as_nop
13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13669 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13670 CC="$CC $ac_cv_prog_cc_c99"
13671 fi
13672 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13673 ac_prog_cc_stdc=c99
13674 fi
13675 fi
13676 if test x$ac_prog_cc_stdc = xno
13677 then :
13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13679 printf %s "checking for $CC option to enable C89 features... " >&6; }
13680 if test ${ac_cv_prog_cc_c89+y}
13681 then :
13682 printf %s "(cached) " >&6
13683 else $as_nop
13684 ac_cv_prog_cc_c89=no
13685 ac_save_CC=$CC
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13688 $ac_c_conftest_c89_program
13689 _ACEOF
13690 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13691 do
13692 CC="$ac_save_CC $ac_arg"
13693 if ac_fn_c_try_compile "$LINENO"
13694 then :
13695 ac_cv_prog_cc_c89=$ac_arg
13696 fi
13697 rm -f core conftest.err conftest.$ac_objext conftest.beam
13698 test "x$ac_cv_prog_cc_c89" != "xno" && break
13699 done
13700 rm -f conftest.$ac_ext
13701 CC=$ac_save_CC
13702 fi
13703
13704 if test "x$ac_cv_prog_cc_c89" = xno
13705 then :
13706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13707 printf "%s\n" "unsupported" >&6; }
13708 else $as_nop
13709 if test "x$ac_cv_prog_cc_c89" = x
13710 then :
13711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13712 printf "%s\n" "none needed" >&6; }
13713 else $as_nop
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13715 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13716 CC="$CC $ac_cv_prog_cc_c89"
13717 fi
13718 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13719 ac_prog_cc_stdc=c89
13720 fi
13721 fi
13722
13723 ac_ext=c
13724 ac_cpp='$CPP $CPPFLAGS'
13725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13728
13729
13730 ac_ext=c
13731 ac_cpp='$CPP $CPPFLAGS'
13732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13736 printf %s "checking whether $CC understands -c and -o together... " >&6; }
13737 if test ${am_cv_prog_cc_c_o+y}
13738 then :
13739 printf %s "(cached) " >&6
13740 else $as_nop
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743
13744 int
13745 main (void)
13746 {
13747
13748 ;
13749 return 0;
13750 }
13751 _ACEOF
13752 # Make sure it works both with $CC and with simple cc.
13753 # Following AC_PROG_CC_C_O, we do the test twice because some
13754 # compilers refuse to overwrite an existing .o file with -o,
13755 # though they will create one.
13756 am_cv_prog_cc_c_o=yes
13757 for am_i in 1 2; do
13758 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13759 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } \
13763 && test -f conftest2.$ac_objext; then
13764 : OK
13765 else
13766 am_cv_prog_cc_c_o=no
13767 break
13768 fi
13769 done
13770 rm -f core conftest*
13771 unset am_i
13772 fi
13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13774 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13775 if test "$am_cv_prog_cc_c_o" != yes; then
13776 # Losing compiler, so override with the script.
13777 # FIXME: It is wrong to rewrite CC.
13778 # But if we don't then we get into trouble of one sort or another.
13779 # A longer-term fix would be to have automake use am__CC in this case,
13780 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13781 CC="$am_aux_dir/compile $CC"
13782 fi
13783 ac_ext=c
13784 ac_cpp='$CPP $CPPFLAGS'
13785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13788
13789
13790 depcc="$CC" am_compiler_list=
13791
13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13793 printf %s "checking dependency style of $depcc... " >&6; }
13794 if test ${am_cv_CC_dependencies_compiler_type+y}
13795 then :
13796 printf %s "(cached) " >&6
13797 else $as_nop
13798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13799 # We make a subdir and do the tests there. Otherwise we can end up
13800 # making bogus files that we don't know about and never remove. For
13801 # instance it was reported that on HP-UX the gcc test will end up
13802 # making a dummy file named 'D' -- because '-MD' means "put the output
13803 # in D".
13804 rm -rf conftest.dir
13805 mkdir conftest.dir
13806 # Copy depcomp to subdir because otherwise we won't find it if we're
13807 # using a relative directory.
13808 cp "$am_depcomp" conftest.dir
13809 cd conftest.dir
13810 # We will build objects and dependencies in a subdirectory because
13811 # it helps to detect inapplicable dependency modes. For instance
13812 # both Tru64's cc and ICC support -MD to output dependencies as a
13813 # side effect of compilation, but ICC will put the dependencies in
13814 # the current directory while Tru64 will put them in the object
13815 # directory.
13816 mkdir sub
13817
13818 am_cv_CC_dependencies_compiler_type=none
13819 if test "$am_compiler_list" = ""; then
13820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13821 fi
13822 am__universal=false
13823 case " $depcc " in #(
13824 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13825 esac
13826
13827 for depmode in $am_compiler_list; do
13828 # Setup a source with many dependencies, because some compilers
13829 # like to wrap large dependency lists on column 80 (with \), and
13830 # we should not choose a depcomp mode which is confused by this.
13831 #
13832 # We need to recreate these files for each test, as the compiler may
13833 # overwrite some of them when testing with obscure command lines.
13834 # This happens at least with the AIX C compiler.
13835 : > sub/conftest.c
13836 for i in 1 2 3 4 5 6; do
13837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13838 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13839 # Solaris 10 /bin/sh.
13840 echo '/* dummy */' > sub/conftst$i.h
13841 done
13842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13843
13844 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13845 # mode. It turns out that the SunPro C++ compiler does not properly
13846 # handle '-M -o', and we need to detect this. Also, some Intel
13847 # versions had trouble with output in subdirs.
13848 am__obj=sub/conftest.${OBJEXT-o}
13849 am__minus_obj="-o $am__obj"
13850 case $depmode in
13851 gcc)
13852 # This depmode causes a compiler race in universal mode.
13853 test "$am__universal" = false || continue
13854 ;;
13855 nosideeffect)
13856 # After this tag, mechanisms are not by side-effect, so they'll
13857 # only be used when explicitly requested.
13858 if test "x$enable_dependency_tracking" = xyes; then
13859 continue
13860 else
13861 break
13862 fi
13863 ;;
13864 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13865 # This compiler won't grok '-c -o', but also, the minuso test has
13866 # not run yet. These depmodes are late enough in the game, and
13867 # so weak that their functioning should not be impacted.
13868 am__obj=conftest.${OBJEXT-o}
13869 am__minus_obj=
13870 ;;
13871 none) break ;;
13872 esac
13873 if depmode=$depmode \
13874 source=sub/conftest.c object=$am__obj \
13875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13877 >/dev/null 2>conftest.err &&
13878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13882 # icc doesn't choke on unknown options, it will just issue warnings
13883 # or remarks (even with -Werror). So we grep stderr for any message
13884 # that says an option was ignored or not supported.
13885 # When given -MP, icc 7.0 and 7.1 complain thusly:
13886 # icc: Command line warning: ignoring option '-M'; no argument required
13887 # The diagnosis changed in icc 8.0:
13888 # icc: Command line remark: option '-MP' not supported
13889 if (grep 'ignoring option' conftest.err ||
13890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13891 am_cv_CC_dependencies_compiler_type=$depmode
13892 break
13893 fi
13894 fi
13895 done
13896
13897 cd ..
13898 rm -rf conftest.dir
13899 else
13900 am_cv_CC_dependencies_compiler_type=none
13901 fi
13902
13903 fi
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13905 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
13906 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13907
13908 if
13909 test "x$enable_dependency_tracking" != xno \
13910 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13911 am__fastdepCC_TRUE=
13912 am__fastdepCC_FALSE='#'
13913 else
13914 am__fastdepCC_TRUE='#'
13915 am__fastdepCC_FALSE=
13916 fi
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13928 if test -n "$ac_tool_prefix"; then
13929 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13930 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13932 printf %s "checking for $ac_word... " >&6; }
13933 if test ${ac_cv_path_PKG_CONFIG+y}
13934 then :
13935 printf %s "(cached) " >&6
13936 else $as_nop
13937 case $PKG_CONFIG in
13938 [\\/]* | ?:[\\/]*)
13939 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13940 ;;
13941 *)
13942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13943 for as_dir in $PATH
13944 do
13945 IFS=$as_save_IFS
13946 case $as_dir in #(((
13947 '') as_dir=./ ;;
13948 */) ;;
13949 *) as_dir=$as_dir/ ;;
13950 esac
13951 for ac_exec_ext in '' $ac_executable_extensions; do
13952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13953 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13955 break 2
13956 fi
13957 done
13958 done
13959 IFS=$as_save_IFS
13960
13961 ;;
13962 esac
13963 fi
13964 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13965 if test -n "$PKG_CONFIG"; then
13966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13967 printf "%s\n" "$PKG_CONFIG" >&6; }
13968 else
13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970 printf "%s\n" "no" >&6; }
13971 fi
13972
13973
13974 fi
13975 if test -z "$ac_cv_path_PKG_CONFIG"; then
13976 ac_pt_PKG_CONFIG=$PKG_CONFIG
13977 # Extract the first word of "pkg-config", so it can be a program name with args.
13978 set dummy pkg-config; ac_word=$2
13979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13980 printf %s "checking for $ac_word... " >&6; }
13981 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13982 then :
13983 printf %s "(cached) " >&6
13984 else $as_nop
13985 case $ac_pt_PKG_CONFIG in
13986 [\\/]* | ?:[\\/]*)
13987 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13988 ;;
13989 *)
13990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991 for as_dir in $PATH
13992 do
13993 IFS=$as_save_IFS
13994 case $as_dir in #(((
13995 '') as_dir=./ ;;
13996 */) ;;
13997 *) as_dir=$as_dir/ ;;
13998 esac
13999 for ac_exec_ext in '' $ac_executable_extensions; do
14000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14001 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14003 break 2
14004 fi
14005 done
14006 done
14007 IFS=$as_save_IFS
14008
14009 ;;
14010 esac
14011 fi
14012 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14013 if test -n "$ac_pt_PKG_CONFIG"; then
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14015 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14016 else
14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018 printf "%s\n" "no" >&6; }
14019 fi
14020
14021 if test "x$ac_pt_PKG_CONFIG" = x; then
14022 PKG_CONFIG=""
14023 else
14024 case $cross_compiling:$ac_tool_warned in
14025 yes:)
14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14027 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14028 ac_tool_warned=yes ;;
14029 esac
14030 PKG_CONFIG=$ac_pt_PKG_CONFIG
14031 fi
14032 else
14033 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14034 fi
14035
14036 fi
14037 if test -n "$PKG_CONFIG"; then
14038 _pkg_min_version=0.9.0
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14040 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14041 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14043 printf "%s\n" "yes" >&6; }
14044 else
14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 printf "%s\n" "no" >&6; }
14047 PKG_CONFIG=""
14048 fi
14049 fi
14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
14051 printf %s "checking for native Win32... " >&6; }
14052 case $build_os in
14053 mingw*) os_win32=yes ;;
14054 *) os_win32=no ;;
14055 esac
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
14057 printf "%s\n" "$os_win32" >&6; }
14058 if test "$os_win32" = "yes"; then
14059 OS_WIN32_TRUE=
14060 OS_WIN32_FALSE='#'
14061 else
14062 OS_WIN32_TRUE='#'
14063 OS_WIN32_FALSE=
14064 fi
14065
14066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
14067 printf %s "checking for some Win32 platform... " >&6; }
14068 case $build_os in
14069 mingw*|cygwin*) platform_win32=yes ;;
14070 *) platform_win32=no ;;
14071 esac
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
14073 printf "%s\n" "$platform_win32" >&6; }
14074 if test "$platform_win32" = "yes"; then
14075 PLATFORM_WIN32_TRUE=
14076 PLATFORM_WIN32_FALSE='#'
14077 else
14078 PLATFORM_WIN32_TRUE='#'
14079 PLATFORM_WIN32_FALSE=
14080 fi
14081
14082
14083
14084 # Checks for header files.
14085 # Autoupdate added the next two lines to ensure that your configure
14086 # script's behavior did not change. They are probably safe to remove.
14087
14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
14089 printf %s "checking for egrep... " >&6; }
14090 if test ${ac_cv_path_EGREP+y}
14091 then :
14092 printf %s "(cached) " >&6
14093 else $as_nop
14094 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
14095 then ac_cv_path_EGREP="$GREP -E"
14096 else
14097 if test -z "$EGREP"; then
14098 ac_path_EGREP_found=false
14099 # Loop through the user's path and test for each of PROGNAME-LIST
14100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14102 do
14103 IFS=$as_save_IFS
14104 case $as_dir in #(((
14105 '') as_dir=./ ;;
14106 */) ;;
14107 *) as_dir=$as_dir/ ;;
14108 esac
14109 for ac_prog in egrep
14110 do
14111 for ac_exec_ext in '' $ac_executable_extensions; do
14112 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
14113 as_fn_executable_p "$ac_path_EGREP" || continue
14114 # Check for GNU ac_path_EGREP and select it if it is found.
14115 # Check for GNU $ac_path_EGREP
14116 case `"$ac_path_EGREP" --version 2>&1` in
14117 *GNU*)
14118 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
14119 *)
14120 ac_count=0
14121 printf %s 0123456789 >"conftest.in"
14122 while :
14123 do
14124 cat "conftest.in" "conftest.in" >"conftest.tmp"
14125 mv "conftest.tmp" "conftest.in"
14126 cp "conftest.in" "conftest.nl"
14127 printf "%s\n" 'EGREP' >> "conftest.nl"
14128 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
14129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14130 as_fn_arith $ac_count + 1 && ac_count=$as_val
14131 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
14132 # Best one so far, save it but keep looking for a better one
14133 ac_cv_path_EGREP="$ac_path_EGREP"
14134 ac_path_EGREP_max=$ac_count
14135 fi
14136 # 10*(2^10) chars as input seems more than enough
14137 test $ac_count -gt 10 && break
14138 done
14139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14140 esac
14141
14142 $ac_path_EGREP_found && break 3
14143 done
14144 done
14145 done
14146 IFS=$as_save_IFS
14147 if test -z "$ac_cv_path_EGREP"; then
14148 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14149 fi
14150 else
14151 ac_cv_path_EGREP=$EGREP
14152 fi
14153
14154 fi
14155 fi
14156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
14157 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
14158 EGREP="$ac_cv_path_EGREP"
14159
14160
14161
14162 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14163 if test "x$ac_cv_header_stdlib_h" = xyes
14164 then :
14165 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
14166
14167 fi
14168 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14169 if test "x$ac_cv_header_string_h" = xyes
14170 then :
14171 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
14172
14173 fi
14174 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
14175 if test "x$ac_cv_header_strings_h" = xyes
14176 then :
14177 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
14178
14179 fi
14180 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
14181 if test "x$ac_cv_header_wchar_h" = xyes
14182 then :
14183 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
14184
14185 fi
14186 ac_fn_c_check_header_compile "$LINENO" "asm/page.h" "ac_cv_header_asm_page_h" "$ac_includes_default"
14187 if test "x$ac_cv_header_asm_page_h" = xyes
14188 then :
14189 printf "%s\n" "#define HAVE_ASM_PAGE_H 1" >>confdefs.h
14190
14191 fi
14192 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
14193 if test "x$ac_cv_header_sys_times_h" = xyes
14194 then :
14195 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
14196
14197 fi
14198
14199
14200 # Checks for typedefs and structures.
14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14202 printf %s "checking for an ANSI C-conforming const... " >&6; }
14203 if test ${ac_cv_c_const+y}
14204 then :
14205 printf %s "(cached) " >&6
14206 else $as_nop
14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14209
14210 int
14211 main (void)
14212 {
14213
14214 #ifndef __cplusplus
14215 /* Ultrix mips cc rejects this sort of thing. */
14216 typedef int charset[2];
14217 const charset cs = { 0, 0 };
14218 /* SunOS 4.1.1 cc rejects this. */
14219 char const *const *pcpcc;
14220 char **ppc;
14221 /* NEC SVR4.0.2 mips cc rejects this. */
14222 struct point {int x, y;};
14223 static struct point const zero = {0,0};
14224 /* IBM XL C 1.02.0.0 rejects this.
14225 It does not let you subtract one const X* pointer from another in
14226 an arm of an if-expression whose if-part is not a constant
14227 expression */
14228 const char *g = "string";
14229 pcpcc = &g + (g ? g-g : 0);
14230 /* HPUX 7.0 cc rejects these. */
14231 ++pcpcc;
14232 ppc = (char**) pcpcc;
14233 pcpcc = (char const *const *) ppc;
14234 { /* SCO 3.2v4 cc rejects this sort of thing. */
14235 char tx;
14236 char *t = &tx;
14237 char const *s = 0 ? (char *) 0 : (char const *) 0;
14238
14239 *t++ = 0;
14240 if (s) return 0;
14241 }
14242 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14243 int x[] = {25, 17};
14244 const int *foo = &x[0];
14245 ++foo;
14246 }
14247 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14248 typedef const int *iptr;
14249 iptr p = 0;
14250 ++p;
14251 }
14252 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14253 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14254 struct s { int j; const int *ap[3]; } bx;
14255 struct s *b = &bx; b->j = 5;
14256 }
14257 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14258 const int foo = 10;
14259 if (!foo) return 0;
14260 }
14261 return !cs[0] && !zero.x;
14262 #endif
14263
14264 ;
14265 return 0;
14266 }
14267 _ACEOF
14268 if ac_fn_c_try_compile "$LINENO"
14269 then :
14270 ac_cv_c_const=yes
14271 else $as_nop
14272 ac_cv_c_const=no
14273 fi
14274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14275 fi
14276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14277 printf "%s\n" "$ac_cv_c_const" >&6; }
14278 if test $ac_cv_c_const = no; then
14279
14280 printf "%s\n" "#define const /**/" >>confdefs.h
14281
14282 fi
14283
14284 ac_ext=c
14285 ac_cpp='$CPP $CPPFLAGS'
14286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14290 printf %s "checking how to run the C preprocessor... " >&6; }
14291 # On Suns, sometimes $CPP names a directory.
14292 if test -n "$CPP" && test -d "$CPP"; then
14293 CPP=
14294 fi
14295 if test -z "$CPP"; then
14296 if test ${ac_cv_prog_CPP+y}
14297 then :
14298 printf %s "(cached) " >&6
14299 else $as_nop
14300 # Double quotes because $CC needs to be expanded
14301 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14302 do
14303 ac_preproc_ok=false
14304 for ac_c_preproc_warn_flag in '' yes
14305 do
14306 # Use a header file that comes with gcc, so configuring glibc
14307 # with a fresh cross-compiler works.
14308 # On the NeXT, cc -E runs the code through the compiler's parser,
14309 # not just through cpp. "Syntax error" is here to catch this case.
14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h. */
14312 #include <limits.h>
14313 Syntax error
14314 _ACEOF
14315 if ac_fn_c_try_cpp "$LINENO"
14316 then :
14317
14318 else $as_nop
14319 # Broken: fails on valid input.
14320 continue
14321 fi
14322 rm -f conftest.err conftest.i conftest.$ac_ext
14323
14324 # OK, works on sane cases. Now check whether nonexistent headers
14325 # can be detected and how.
14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327 /* end confdefs.h. */
14328 #include <ac_nonexistent.h>
14329 _ACEOF
14330 if ac_fn_c_try_cpp "$LINENO"
14331 then :
14332 # Broken: success on invalid input.
14333 continue
14334 else $as_nop
14335 # Passes both tests.
14336 ac_preproc_ok=:
14337 break
14338 fi
14339 rm -f conftest.err conftest.i conftest.$ac_ext
14340
14341 done
14342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14343 rm -f conftest.i conftest.err conftest.$ac_ext
14344 if $ac_preproc_ok
14345 then :
14346 break
14347 fi
14348
14349 done
14350 ac_cv_prog_CPP=$CPP
14351
14352 fi
14353 CPP=$ac_cv_prog_CPP
14354 else
14355 ac_cv_prog_CPP=$CPP
14356 fi
14357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14358 printf "%s\n" "$CPP" >&6; }
14359 ac_preproc_ok=false
14360 for ac_c_preproc_warn_flag in '' yes
14361 do
14362 # Use a header file that comes with gcc, so configuring glibc
14363 # with a fresh cross-compiler works.
14364 # On the NeXT, cc -E runs the code through the compiler's parser,
14365 # not just through cpp. "Syntax error" is here to catch this case.
14366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h. */
14368 #include <limits.h>
14369 Syntax error
14370 _ACEOF
14371 if ac_fn_c_try_cpp "$LINENO"
14372 then :
14373
14374 else $as_nop
14375 # Broken: fails on valid input.
14376 continue
14377 fi
14378 rm -f conftest.err conftest.i conftest.$ac_ext
14379
14380 # OK, works on sane cases. Now check whether nonexistent headers
14381 # can be detected and how.
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14384 #include <ac_nonexistent.h>
14385 _ACEOF
14386 if ac_fn_c_try_cpp "$LINENO"
14387 then :
14388 # Broken: success on invalid input.
14389 continue
14390 else $as_nop
14391 # Passes both tests.
14392 ac_preproc_ok=:
14393 break
14394 fi
14395 rm -f conftest.err conftest.i conftest.$ac_ext
14396
14397 done
14398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14399 rm -f conftest.i conftest.err conftest.$ac_ext
14400 if $ac_preproc_ok
14401 then :
14402
14403 else $as_nop
14404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14405 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14406 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14407 See \`config.log' for more details" "$LINENO" 5; }
14408 fi
14409
14410 ac_ext=c
14411 ac_cpp='$CPP $CPPFLAGS'
14412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14415
14416
14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
14418 printf %s "checking for preprocessor stringizing operator... " >&6; }
14419 if test ${ac_cv_c_stringize+y}
14420 then :
14421 printf %s "(cached) " >&6
14422 else $as_nop
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14425 #define x(y) #y
14426
14427 char *s = x(teststring);
14428 _ACEOF
14429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14430 $EGREP "#teststring" >/dev/null 2>&1
14431 then :
14432 ac_cv_c_stringize=no
14433 else $as_nop
14434 ac_cv_c_stringize=yes
14435 fi
14436 rm -rf conftest*
14437
14438 fi
14439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
14440 printf "%s\n" "$ac_cv_c_stringize" >&6; }
14441 if test $ac_cv_c_stringize = yes; then
14442
14443 printf "%s\n" "#define HAVE_STRINGIZE 1" >>confdefs.h
14444
14445 fi
14446
14447 # The cast to long int works around a bug in the HP C Compiler
14448 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14449 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14450 # This bug is HP SR number 8606223364.
14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14452 printf %s "checking size of int... " >&6; }
14453 if test ${ac_cv_sizeof_int+y}
14454 then :
14455 printf %s "(cached) " >&6
14456 else $as_nop
14457 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
14458 then :
14459
14460 else $as_nop
14461 if test "$ac_cv_type_int" = yes; then
14462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14463 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14464 as_fn_error 77 "cannot compute sizeof (int)
14465 See \`config.log' for more details" "$LINENO" 5; }
14466 else
14467 ac_cv_sizeof_int=0
14468 fi
14469 fi
14470
14471 fi
14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14473 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
14474
14475
14476
14477 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
14478
14479
14480 SIZEOF_INT=$ac_cv_sizeof_int
14481
14482 # The cast to long int works around a bug in the HP C Compiler
14483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14485 # This bug is HP SR number 8606223364.
14486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14487 printf %s "checking size of short... " >&6; }
14488 if test ${ac_cv_sizeof_short+y}
14489 then :
14490 printf %s "(cached) " >&6
14491 else $as_nop
14492 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
14493 then :
14494
14495 else $as_nop
14496 if test "$ac_cv_type_short" = yes; then
14497 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14498 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14499 as_fn_error 77 "cannot compute sizeof (short)
14500 See \`config.log' for more details" "$LINENO" 5; }
14501 else
14502 ac_cv_sizeof_short=0
14503 fi
14504 fi
14505
14506 fi
14507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14508 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
14509
14510
14511
14512 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
14513
14514
14515 # The cast to long int works around a bug in the HP C Compiler
14516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14518 # This bug is HP SR number 8606223364.
14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14520 printf %s "checking size of void *... " >&6; }
14521 if test ${ac_cv_sizeof_void_p+y}
14522 then :
14523 printf %s "(cached) " >&6
14524 else $as_nop
14525 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
14526 then :
14527
14528 else $as_nop
14529 if test "$ac_cv_type_void_p" = yes; then
14530 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14531 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14532 as_fn_error 77 "cannot compute sizeof (void *)
14533 See \`config.log' for more details" "$LINENO" 5; }
14534 else
14535 ac_cv_sizeof_void_p=0
14536 fi
14537 fi
14538
14539 fi
14540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14541 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
14542
14543
14544
14545 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
14546
14547
14548 # The cast to long int works around a bug in the HP C Compiler
14549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14551 # This bug is HP SR number 8606223364.
14552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
14553 printf %s "checking size of wchar_t... " >&6; }
14554 if test ${ac_cv_sizeof_wchar_t+y}
14555 then :
14556 printf %s "(cached) " >&6
14557 else $as_nop
14558 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"
14559 then :
14560
14561 else $as_nop
14562 if test "$ac_cv_type_wchar_t" = yes; then
14563 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14564 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14565 as_fn_error 77 "cannot compute sizeof (wchar_t)
14566 See \`config.log' for more details" "$LINENO" 5; }
14567 else
14568 ac_cv_sizeof_wchar_t=0
14569 fi
14570 fi
14571
14572 fi
14573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
14574 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
14575
14576
14577
14578 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
14579
14580
14581
14582
14583
14584 save_cross_compiling=$cross_compiling
14585 save_ac_tool_prefix=$ac_tool_prefix
14586 cross_compiling=no
14587 ac_tool_prefix=
14588
14589 ac_ext=c
14590 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14591 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14592 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14594 if test -n "$ac_tool_prefix"; then
14595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14596 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14598 printf %s "checking for $ac_word... " >&6; }
14599 if test ${ac_cv_prog_CC_FOR_BUILD+y}
14600 then :
14601 printf %s "(cached) " >&6
14602 else $as_nop
14603 if test -n "$CC_FOR_BUILD"; then
14604 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14605 else
14606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14607 for as_dir in $PATH
14608 do
14609 IFS=$as_save_IFS
14610 case $as_dir in #(((
14611 '') as_dir=./ ;;
14612 */) ;;
14613 *) as_dir=$as_dir/ ;;
14614 esac
14615 for ac_exec_ext in '' $ac_executable_extensions; do
14616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14617 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
14618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14619 break 2
14620 fi
14621 done
14622 done
14623 IFS=$as_save_IFS
14624
14625 fi
14626 fi
14627 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14628 if test -n "$CC_FOR_BUILD"; then
14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14630 printf "%s\n" "$CC_FOR_BUILD" >&6; }
14631 else
14632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14633 printf "%s\n" "no" >&6; }
14634 fi
14635
14636
14637 fi
14638 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
14639 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
14640 # Extract the first word of "gcc", so it can be a program name with args.
14641 set dummy gcc; ac_word=$2
14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14643 printf %s "checking for $ac_word... " >&6; }
14644 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
14645 then :
14646 printf %s "(cached) " >&6
14647 else $as_nop
14648 if test -n "$ac_ct_CC_FOR_BUILD"; then
14649 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
14650 else
14651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14652 for as_dir in $PATH
14653 do
14654 IFS=$as_save_IFS
14655 case $as_dir in #(((
14656 '') as_dir=./ ;;
14657 */) ;;
14658 *) as_dir=$as_dir/ ;;
14659 esac
14660 for ac_exec_ext in '' $ac_executable_extensions; do
14661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14662 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
14663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14664 break 2
14665 fi
14666 done
14667 done
14668 IFS=$as_save_IFS
14669
14670 fi
14671 fi
14672 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
14673 if test -n "$ac_ct_CC_FOR_BUILD"; then
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
14675 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
14676 else
14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14678 printf "%s\n" "no" >&6; }
14679 fi
14680
14681 if test "x$ac_ct_CC_FOR_BUILD" = x; then
14682 CC_FOR_BUILD=""
14683 else
14684 case $cross_compiling:$ac_tool_warned in
14685 yes:)
14686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
14687 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
14688 ac_tool_warned=yes ;;
14689 esac
14690 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
14691 fi
14692 else
14693 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
14694 fi
14695
14696 if test -z "$CC_FOR_BUILD"; then
14697 if test -n "$ac_tool_prefix"; then
14698 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14699 set dummy ${ac_tool_prefix}cc; ac_word=$2
14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14701 printf %s "checking for $ac_word... " >&6; }
14702 if test ${ac_cv_prog_CC_FOR_BUILD+y}
14703 then :
14704 printf %s "(cached) " >&6
14705 else $as_nop
14706 if test -n "$CC_FOR_BUILD"; then
14707 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14708 else
14709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710 for as_dir in $PATH
14711 do
14712 IFS=$as_save_IFS
14713 case $as_dir in #(((
14714 '') as_dir=./ ;;
14715 */) ;;
14716 *) as_dir=$as_dir/ ;;
14717 esac
14718 for ac_exec_ext in '' $ac_executable_extensions; do
14719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14720 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
14721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14722 break 2
14723 fi
14724 done
14725 done
14726 IFS=$as_save_IFS
14727
14728 fi
14729 fi
14730 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14731 if test -n "$CC_FOR_BUILD"; then
14732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14733 printf "%s\n" "$CC_FOR_BUILD" >&6; }
14734 else
14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 printf "%s\n" "no" >&6; }
14737 fi
14738
14739
14740 fi
14741 fi
14742 if test -z "$CC_FOR_BUILD"; then
14743 # Extract the first word of "cc", so it can be a program name with args.
14744 set dummy cc; ac_word=$2
14745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14746 printf %s "checking for $ac_word... " >&6; }
14747 if test ${ac_cv_prog_CC_FOR_BUILD+y}
14748 then :
14749 printf %s "(cached) " >&6
14750 else $as_nop
14751 if test -n "$CC_FOR_BUILD"; then
14752 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14753 else
14754 ac_prog_rejected=no
14755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14756 for as_dir in $PATH
14757 do
14758 IFS=$as_save_IFS
14759 case $as_dir in #(((
14760 '') as_dir=./ ;;
14761 */) ;;
14762 *) as_dir=$as_dir/ ;;
14763 esac
14764 for ac_exec_ext in '' $ac_executable_extensions; do
14765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14766 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14767 ac_prog_rejected=yes
14768 continue
14769 fi
14770 ac_cv_prog_CC_FOR_BUILD="cc"
14771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14772 break 2
14773 fi
14774 done
14775 done
14776 IFS=$as_save_IFS
14777
14778 if test $ac_prog_rejected = yes; then
14779 # We found a bogon in the path, so make sure we never use it.
14780 set dummy $ac_cv_prog_CC_FOR_BUILD
14781 shift
14782 if test $# != 0; then
14783 # We chose a different compiler from the bogus one.
14784 # However, it has the same basename, so the bogon will be chosen
14785 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
14786 shift
14787 ac_cv_prog_CC_FOR_BUILD="$as_dir$ac_word${1+' '}$@"
14788 fi
14789 fi
14790 fi
14791 fi
14792 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14793 if test -n "$CC_FOR_BUILD"; then
14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14795 printf "%s\n" "$CC_FOR_BUILD" >&6; }
14796 else
14797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798 printf "%s\n" "no" >&6; }
14799 fi
14800
14801
14802 fi
14803 if test -z "$CC_FOR_BUILD"; then
14804 if test -n "$ac_tool_prefix"; then
14805 for ac_prog in cl.exe
14806 do
14807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14810 printf %s "checking for $ac_word... " >&6; }
14811 if test ${ac_cv_prog_CC_FOR_BUILD+y}
14812 then :
14813 printf %s "(cached) " >&6
14814 else $as_nop
14815 if test -n "$CC_FOR_BUILD"; then
14816 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14817 else
14818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14819 for as_dir in $PATH
14820 do
14821 IFS=$as_save_IFS
14822 case $as_dir in #(((
14823 '') as_dir=./ ;;
14824 */) ;;
14825 *) as_dir=$as_dir/ ;;
14826 esac
14827 for ac_exec_ext in '' $ac_executable_extensions; do
14828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14829 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
14830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14831 break 2
14832 fi
14833 done
14834 done
14835 IFS=$as_save_IFS
14836
14837 fi
14838 fi
14839 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14840 if test -n "$CC_FOR_BUILD"; then
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14842 printf "%s\n" "$CC_FOR_BUILD" >&6; }
14843 else
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14845 printf "%s\n" "no" >&6; }
14846 fi
14847
14848
14849 test -n "$CC_FOR_BUILD" && break
14850 done
14851 fi
14852 if test -z "$CC_FOR_BUILD"; then
14853 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
14854 for ac_prog in cl.exe
14855 do
14856 # Extract the first word of "$ac_prog", so it can be a program name with args.
14857 set dummy $ac_prog; ac_word=$2
14858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14859 printf %s "checking for $ac_word... " >&6; }
14860 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
14861 then :
14862 printf %s "(cached) " >&6
14863 else $as_nop
14864 if test -n "$ac_ct_CC_FOR_BUILD"; then
14865 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
14866 else
14867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14868 for as_dir in $PATH
14869 do
14870 IFS=$as_save_IFS
14871 case $as_dir in #(((
14872 '') as_dir=./ ;;
14873 */) ;;
14874 *) as_dir=$as_dir/ ;;
14875 esac
14876 for ac_exec_ext in '' $ac_executable_extensions; do
14877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14878 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
14879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14880 break 2
14881 fi
14882 done
14883 done
14884 IFS=$as_save_IFS
14885
14886 fi
14887 fi
14888 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
14889 if test -n "$ac_ct_CC_FOR_BUILD"; then
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
14891 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
14892 else
14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14894 printf "%s\n" "no" >&6; }
14895 fi
14896
14897
14898 test -n "$ac_ct_CC_FOR_BUILD" && break
14899 done
14900
14901 if test "x$ac_ct_CC_FOR_BUILD" = x; then
14902 CC_FOR_BUILD=""
14903 else
14904 case $cross_compiling:$ac_tool_warned in
14905 yes:)
14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
14907 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
14908 ac_tool_warned=yes ;;
14909 esac
14910 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
14911 fi
14912 fi
14913
14914 fi
14915 if test -z "$CC_FOR_BUILD"; then
14916 if test -n "$ac_tool_prefix"; then
14917 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14918 set dummy ${ac_tool_prefix}clang; ac_word=$2
14919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14920 printf %s "checking for $ac_word... " >&6; }
14921 if test ${ac_cv_prog_CC_FOR_BUILD+y}
14922 then :
14923 printf %s "(cached) " >&6
14924 else $as_nop
14925 if test -n "$CC_FOR_BUILD"; then
14926 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14927 else
14928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14929 for as_dir in $PATH
14930 do
14931 IFS=$as_save_IFS
14932 case $as_dir in #(((
14933 '') as_dir=./ ;;
14934 */) ;;
14935 *) as_dir=$as_dir/ ;;
14936 esac
14937 for ac_exec_ext in '' $ac_executable_extensions; do
14938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14939 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}clang"
14940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14941 break 2
14942 fi
14943 done
14944 done
14945 IFS=$as_save_IFS
14946
14947 fi
14948 fi
14949 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14950 if test -n "$CC_FOR_BUILD"; then
14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14952 printf "%s\n" "$CC_FOR_BUILD" >&6; }
14953 else
14954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14955 printf "%s\n" "no" >&6; }
14956 fi
14957
14958
14959 fi
14960 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
14961 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
14962 # Extract the first word of "clang", so it can be a program name with args.
14963 set dummy clang; ac_word=$2
14964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14965 printf %s "checking for $ac_word... " >&6; }
14966 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
14967 then :
14968 printf %s "(cached) " >&6
14969 else $as_nop
14970 if test -n "$ac_ct_CC_FOR_BUILD"; then
14971 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
14972 else
14973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14974 for as_dir in $PATH
14975 do
14976 IFS=$as_save_IFS
14977 case $as_dir in #(((
14978 '') as_dir=./ ;;
14979 */) ;;
14980 *) as_dir=$as_dir/ ;;
14981 esac
14982 for ac_exec_ext in '' $ac_executable_extensions; do
14983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14984 ac_cv_prog_ac_ct_CC_FOR_BUILD="clang"
14985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14986 break 2
14987 fi
14988 done
14989 done
14990 IFS=$as_save_IFS
14991
14992 fi
14993 fi
14994 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
14995 if test -n "$ac_ct_CC_FOR_BUILD"; then
14996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
14997 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
14998 else
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000 printf "%s\n" "no" >&6; }
15001 fi
15002
15003 if test "x$ac_ct_CC_FOR_BUILD" = x; then
15004 CC_FOR_BUILD=""
15005 else
15006 case $cross_compiling:$ac_tool_warned in
15007 yes:)
15008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
15009 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
15010 ac_tool_warned=yes ;;
15011 esac
15012 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
15013 fi
15014 else
15015 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
15016 fi
15017
15018 fi
15019
15020
15021 test -z "$CC_FOR_BUILD" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15022 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15023 as_fn_error $? "no acceptable C compiler found in \$PATH
15024 See \`config.log' for more details" "$LINENO" 5; }
15025
15026 # Provide some information about the compiler.
15027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
15028 set X $ac_build_compile
15029 ac_compiler=$2
15030 for ac_option in --version -v -V -qversion -version; do
15031 { { ac_try="$ac_compiler $ac_option >&5"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15035 esac
15036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15037 printf "%s\n" "$ac_try_echo"; } >&5
15038 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15039 ac_status=$?
15040 if test -s conftest.err; then
15041 sed '10a\
15042 ... rest of stderr output deleted ...
15043 10q' conftest.err >conftest.er1
15044 cat conftest.er1 >&5
15045 fi
15046 rm -f conftest.er1 conftest.err
15047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15048 test $ac_status = 0; }
15049 done
15050
15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
15052 printf %s "checking whether the compiler supports GNU C... " >&6; }
15053 if test ${ac_cv_c_compiler_gnu+y}
15054 then :
15055 printf %s "(cached) " >&6
15056 else $as_nop
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15059
15060 int
15061 main (void)
15062 {
15063 #ifndef __GNUC__
15064 choke me
15065 #endif
15066
15067 ;
15068 return 0;
15069 }
15070 _ACEOF
15071 if ac_fn_c_try_compile "$LINENO"
15072 then :
15073 ac_compiler_gnu=yes
15074 else $as_nop
15075 ac_compiler_gnu=no
15076 fi
15077 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
15078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15079
15080 fi
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
15082 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
15083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15084
15085 if test $ac_compiler_gnu = yes; then
15086 GCC=yes
15087 else
15088 GCC=
15089 fi
15090 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+y}
15091 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
15093 printf %s "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
15094 if test ${ac_cv_build_prog_cc_g+y}
15095 then :
15096 printf %s "(cached) " >&6
15097 else $as_nop
15098 ac_save_c_werror_flag=$ac_c_werror_flag
15099 ac_c_werror_flag=yes
15100 ac_cv_build_prog_cc_g=no
15101 CFLAGS_FOR_BUILD="-g"
15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15104
15105 int
15106 main (void)
15107 {
15108
15109 ;
15110 return 0;
15111 }
15112 _ACEOF
15113 if ac_fn_c_try_compile "$LINENO"
15114 then :
15115 ac_cv_build_prog_cc_g=yes
15116 else $as_nop
15117 CFLAGS_FOR_BUILD=""
15118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15119 /* end confdefs.h. */
15120
15121 int
15122 main (void)
15123 {
15124
15125 ;
15126 return 0;
15127 }
15128 _ACEOF
15129 if ac_fn_c_try_compile "$LINENO"
15130 then :
15131
15132 else $as_nop
15133 ac_c_werror_flag=$ac_save_c_werror_flag
15134 CFLAGS_FOR_BUILD="-g"
15135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136 /* end confdefs.h. */
15137
15138 int
15139 main (void)
15140 {
15141
15142 ;
15143 return 0;
15144 }
15145 _ACEOF
15146 if ac_fn_c_try_compile "$LINENO"
15147 then :
15148 ac_cv_build_prog_cc_g=yes
15149 fi
15150 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
15151 fi
15152 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
15153 fi
15154 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
15155 ac_c_werror_flag=$ac_save_c_werror_flag
15156 fi
15157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
15158 printf "%s\n" "$ac_cv_build_prog_cc_g" >&6; }
15159 if test $ac_test_CFLAGS; then
15160 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
15161 elif test $ac_cv_build_prog_cc_g = yes; then
15162 if test "$GCC" = yes; then
15163 CFLAGS_FOR_BUILD="-g -O2"
15164 else
15165 CFLAGS_FOR_BUILD="-g"
15166 fi
15167 else
15168 if test "$GCC" = yes; then
15169 CFLAGS_FOR_BUILD="-O2"
15170 else
15171 CFLAGS_FOR_BUILD=
15172 fi
15173 fi
15174 ac_prog_cc_stdc=no
15175 if test x$ac_prog_cc_stdc = xno
15176 then :
15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C11 features" >&5
15178 printf %s "checking for $CC_FOR_BUILD option to enable C11 features... " >&6; }
15179 if test ${ac_cv_prog_cc_c11+y}
15180 then :
15181 printf %s "(cached) " >&6
15182 else $as_nop
15183 ac_cv_prog_cc_c11=no
15184 ac_save_CC=$CC_FOR_BUILD
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15187 $ac_c_conftest_c11_program
15188 _ACEOF
15189 for ac_arg in '' -std=gnu11
15190 do
15191 CC_FOR_BUILD="$ac_save_CC $ac_arg"
15192 if ac_fn_c_try_compile "$LINENO"
15193 then :
15194 ac_cv_prog_cc_c11=$ac_arg
15195 fi
15196 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
15197 test "x$ac_cv_prog_cc_c11" != "xno" && break
15198 done
15199 rm -f conftest.$ac_ext
15200 CC_FOR_BUILD=$ac_save_CC
15201 fi
15202
15203 if test "x$ac_cv_prog_cc_c11" = xno
15204 then :
15205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15206 printf "%s\n" "unsupported" >&6; }
15207 else $as_nop
15208 if test "x$ac_cv_prog_cc_c11" = x
15209 then :
15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15211 printf "%s\n" "none needed" >&6; }
15212 else $as_nop
15213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
15214 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
15215 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c11"
15216 fi
15217 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
15218 ac_prog_cc_stdc=c11
15219 fi
15220 fi
15221 if test x$ac_prog_cc_stdc = xno
15222 then :
15223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C99 features" >&5
15224 printf %s "checking for $CC_FOR_BUILD option to enable C99 features... " >&6; }
15225 if test ${ac_cv_prog_cc_c99+y}
15226 then :
15227 printf %s "(cached) " >&6
15228 else $as_nop
15229 ac_cv_prog_cc_c99=no
15230 ac_save_CC=$CC_FOR_BUILD
15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15233 $ac_c_conftest_c99_program
15234 _ACEOF
15235 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
15236 do
15237 CC_FOR_BUILD="$ac_save_CC $ac_arg"
15238 if ac_fn_c_try_compile "$LINENO"
15239 then :
15240 ac_cv_prog_cc_c99=$ac_arg
15241 fi
15242 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
15243 test "x$ac_cv_prog_cc_c99" != "xno" && break
15244 done
15245 rm -f conftest.$ac_ext
15246 CC_FOR_BUILD=$ac_save_CC
15247 fi
15248
15249 if test "x$ac_cv_prog_cc_c99" = xno
15250 then :
15251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15252 printf "%s\n" "unsupported" >&6; }
15253 else $as_nop
15254 if test "x$ac_cv_prog_cc_c99" = x
15255 then :
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15257 printf "%s\n" "none needed" >&6; }
15258 else $as_nop
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15260 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
15261 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c99"
15262 fi
15263 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15264 ac_prog_cc_stdc=c99
15265 fi
15266 fi
15267 if test x$ac_prog_cc_stdc = xno
15268 then :
15269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C89 features" >&5
15270 printf %s "checking for $CC_FOR_BUILD option to enable C89 features... " >&6; }
15271 if test ${ac_cv_prog_cc_c89+y}
15272 then :
15273 printf %s "(cached) " >&6
15274 else $as_nop
15275 ac_cv_prog_cc_c89=no
15276 ac_save_CC=$CC_FOR_BUILD
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15279 $ac_c_conftest_c89_program
15280 _ACEOF
15281 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15282 do
15283 CC_FOR_BUILD="$ac_save_CC $ac_arg"
15284 if ac_fn_c_try_compile "$LINENO"
15285 then :
15286 ac_cv_prog_cc_c89=$ac_arg
15287 fi
15288 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
15289 test "x$ac_cv_prog_cc_c89" != "xno" && break
15290 done
15291 rm -f conftest.$ac_ext
15292 CC_FOR_BUILD=$ac_save_CC
15293 fi
15294
15295 if test "x$ac_cv_prog_cc_c89" = xno
15296 then :
15297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15298 printf "%s\n" "unsupported" >&6; }
15299 else $as_nop
15300 if test "x$ac_cv_prog_cc_c89" = x
15301 then :
15302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15303 printf "%s\n" "none needed" >&6; }
15304 else $as_nop
15305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15306 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
15307 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
15308 fi
15309 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15310 ac_prog_cc_stdc=c89
15311 fi
15312 fi
15313
15314 ac_ext=c
15315 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15316 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15317 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15319
15320
15321 ac_ext=c
15322 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15323 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15324 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
15327 printf %s "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
15328 if test ${am_cv_prog_cc_c_o+y}
15329 then :
15330 printf %s "(cached) " >&6
15331 else $as_nop
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334
15335 int
15336 main (void)
15337 {
15338
15339 ;
15340 return 0;
15341 }
15342 _ACEOF
15343 # Make sure it works both with $CC and with simple cc.
15344 # Following AC_PROG_CC_C_O, we do the test twice because some
15345 # compilers refuse to overwrite an existing .o file with -o,
15346 # though they will create one.
15347 am_cv_prog_cc_c_o=yes
15348 for am_i in 1 2; do
15349 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
15350 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } \
15354 && test -f conftest2.$ac_build_objext; then
15355 : OK
15356 else
15357 am_cv_prog_cc_c_o=no
15358 break
15359 fi
15360 done
15361 rm -f core conftest*
15362 unset am_i
15363 fi
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15365 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
15366 if test "$am_cv_prog_cc_c_o" != yes; then
15367 # Losing compiler, so override with the script.
15368 # FIXME: It is wrong to rewrite CC.
15369 # But if we don't then we get into trouble of one sort or another.
15370 # A longer-term fix would be to have automake use am__CC in this case,
15371 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15372 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
15373 fi
15374 ac_ext=c
15375 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15376 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15377 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15379
15380
15381 depcc="$CC_FOR_BUILD" am_compiler_list=
15382
15383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15384 printf %s "checking dependency style of $depcc... " >&6; }
15385 if test ${am_cv_CC_dependencies_compiler_type+y}
15386 then :
15387 printf %s "(cached) " >&6
15388 else $as_nop
15389 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15390 # We make a subdir and do the tests there. Otherwise we can end up
15391 # making bogus files that we don't know about and never remove. For
15392 # instance it was reported that on HP-UX the gcc test will end up
15393 # making a dummy file named 'D' -- because '-MD' means "put the output
15394 # in D".
15395 rm -rf conftest.dir
15396 mkdir conftest.dir
15397 # Copy depcomp to subdir because otherwise we won't find it if we're
15398 # using a relative directory.
15399 cp "$am_depcomp" conftest.dir
15400 cd conftest.dir
15401 # We will build objects and dependencies in a subdirectory because
15402 # it helps to detect inapplicable dependency modes. For instance
15403 # both Tru64's cc and ICC support -MD to output dependencies as a
15404 # side effect of compilation, but ICC will put the dependencies in
15405 # the current directory while Tru64 will put them in the object
15406 # directory.
15407 mkdir sub
15408
15409 am_cv_CC_dependencies_compiler_type=none
15410 if test "$am_compiler_list" = ""; then
15411 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15412 fi
15413 am__universal=false
15414 case " $depcc " in #(
15415 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15416 esac
15417
15418 for depmode in $am_compiler_list; do
15419 # Setup a source with many dependencies, because some compilers
15420 # like to wrap large dependency lists on column 80 (with \), and
15421 # we should not choose a depcomp mode which is confused by this.
15422 #
15423 # We need to recreate these files for each test, as the compiler may
15424 # overwrite some of them when testing with obscure command lines.
15425 # This happens at least with the AIX C compiler.
15426 : > sub/conftest.c
15427 for i in 1 2 3 4 5 6; do
15428 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15429 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15430 # Solaris 10 /bin/sh.
15431 echo '/* dummy */' > sub/conftst$i.h
15432 done
15433 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15434
15435 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15436 # mode. It turns out that the SunPro C++ compiler does not properly
15437 # handle '-M -o', and we need to detect this. Also, some Intel
15438 # versions had trouble with output in subdirs.
15439 am__obj=sub/conftest.${OBJEXT-o}
15440 am__minus_obj="-o $am__obj"
15441 case $depmode in
15442 gcc)
15443 # This depmode causes a compiler race in universal mode.
15444 test "$am__universal" = false || continue
15445 ;;
15446 nosideeffect)
15447 # After this tag, mechanisms are not by side-effect, so they'll
15448 # only be used when explicitly requested.
15449 if test "x$enable_dependency_tracking" = xyes; then
15450 continue
15451 else
15452 break
15453 fi
15454 ;;
15455 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15456 # This compiler won't grok '-c -o', but also, the minuso test has
15457 # not run yet. These depmodes are late enough in the game, and
15458 # so weak that their functioning should not be impacted.
15459 am__obj=conftest.${OBJEXT-o}
15460 am__minus_obj=
15461 ;;
15462 none) break ;;
15463 esac
15464 if depmode=$depmode \
15465 source=sub/conftest.c object=$am__obj \
15466 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15467 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15468 >/dev/null 2>conftest.err &&
15469 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15470 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15471 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15472 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15473 # icc doesn't choke on unknown options, it will just issue warnings
15474 # or remarks (even with -Werror). So we grep stderr for any message
15475 # that says an option was ignored or not supported.
15476 # When given -MP, icc 7.0 and 7.1 complain thusly:
15477 # icc: Command line warning: ignoring option '-M'; no argument required
15478 # The diagnosis changed in icc 8.0:
15479 # icc: Command line remark: option '-MP' not supported
15480 if (grep 'ignoring option' conftest.err ||
15481 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15482 am_cv_CC_dependencies_compiler_type=$depmode
15483 break
15484 fi
15485 fi
15486 done
15487
15488 cd ..
15489 rm -rf conftest.dir
15490 else
15491 am_cv_CC_dependencies_compiler_type=none
15492 fi
15493
15494 fi
15495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15496 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
15497 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15498
15499 if
15500 test "x$enable_dependency_tracking" != xno \
15501 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15502 am__fastdepCC_TRUE=
15503 am__fastdepCC_FALSE='#'
15504 else
15505 am__fastdepCC_TRUE='#'
15506 am__fastdepCC_FALSE=
15507 fi
15508
15509
15510 ac_ext=c
15511 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15512 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15513 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15516 printf %s "checking how to run the C preprocessor... " >&6; }
15517 # On Suns, sometimes $CPP names a directory.
15518 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
15519 CPP_FOR_BUILD=
15520 fi
15521 if test -z "$CPP_FOR_BUILD"; then
15522 if test ${ac_cv_build_prog_CPP+y}
15523 then :
15524 printf %s "(cached) " >&6
15525 else $as_nop
15526 # Double quotes because $CC needs to be expanded
15527 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" cpp /lib/cpp
15528 do
15529 ac_preproc_ok=false
15530 for ac_c_preproc_warn_flag in '' yes
15531 do
15532 # Use a header file that comes with gcc, so configuring glibc
15533 # with a fresh cross-compiler works.
15534 # On the NeXT, cc -E runs the code through the compiler's parser,
15535 # not just through cpp. "Syntax error" is here to catch this case.
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538 #include <limits.h>
15539 Syntax error
15540 _ACEOF
15541 if ac_fn_c_try_cpp "$LINENO"
15542 then :
15543
15544 else $as_nop
15545 # Broken: fails on valid input.
15546 continue
15547 fi
15548 rm -f conftest.err conftest.i conftest.$ac_ext
15549
15550 # OK, works on sane cases. Now check whether nonexistent headers
15551 # can be detected and how.
15552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15553 /* end confdefs.h. */
15554 #include <ac_nonexistent.h>
15555 _ACEOF
15556 if ac_fn_c_try_cpp "$LINENO"
15557 then :
15558 # Broken: success on invalid input.
15559 continue
15560 else $as_nop
15561 # Passes both tests.
15562 ac_preproc_ok=:
15563 break
15564 fi
15565 rm -f conftest.err conftest.i conftest.$ac_ext
15566
15567 done
15568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15569 rm -f conftest.i conftest.err conftest.$ac_ext
15570 if $ac_preproc_ok
15571 then :
15572 break
15573 fi
15574
15575 done
15576 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
15577
15578 fi
15579 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
15580 else
15581 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
15582 fi
15583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
15584 printf "%s\n" "$CPP_FOR_BUILD" >&6; }
15585 ac_preproc_ok=false
15586 for ac_c_preproc_warn_flag in '' yes
15587 do
15588 # Use a header file that comes with gcc, so configuring glibc
15589 # with a fresh cross-compiler works.
15590 # On the NeXT, cc -E runs the code through the compiler's parser,
15591 # not just through cpp. "Syntax error" is here to catch this case.
15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15594 #include <limits.h>
15595 Syntax error
15596 _ACEOF
15597 if ac_fn_c_try_cpp "$LINENO"
15598 then :
15599
15600 else $as_nop
15601 # Broken: fails on valid input.
15602 continue
15603 fi
15604 rm -f conftest.err conftest.i conftest.$ac_ext
15605
15606 # OK, works on sane cases. Now check whether nonexistent headers
15607 # can be detected and how.
15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h. */
15610 #include <ac_nonexistent.h>
15611 _ACEOF
15612 if ac_fn_c_try_cpp "$LINENO"
15613 then :
15614 # Broken: success on invalid input.
15615 continue
15616 else $as_nop
15617 # Passes both tests.
15618 ac_preproc_ok=:
15619 break
15620 fi
15621 rm -f conftest.err conftest.i conftest.$ac_ext
15622
15623 done
15624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15625 rm -f conftest.i conftest.err conftest.$ac_ext
15626 if $ac_preproc_ok
15627 then :
15628
15629 else $as_nop
15630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15631 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15632 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
15633 See \`config.log' for more details" "$LINENO" 5; }
15634 fi
15635
15636 ac_ext=c
15637 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15638 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15639 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15641
15642
15643
15644 ac_tool_prefix=$save_ac_tool_prefix
15645 cross_compiling=$save_cross_compiling
15646
15647
15648 BUILD_EXEEXT=$ac_build_exeext
15649 BUILD_OBJEXT=$ac_build_objext
15650
15651
15652 # Checks for compiler characteristics.
15653 if test "x$GCC" = "xyes"; then
15654 CFLAGS="$CFLAGS -Wall -ansi "
15655 fi
15656
15657 # Checks for library functions.
15658 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
15659 if test "x$ac_cv_func_memmove" = xyes
15660 then :
15661 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
15662
15663 fi
15664 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
15665 if test "x$ac_cv_func_memset" = xyes
15666 then :
15667 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
15668
15669 fi
15670 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
15671 if test "x$ac_cv_func_strdup" = xyes
15672 then :
15673 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
15674
15675 fi
15676
15677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15678 printf %s "checking return type of signal handlers... " >&6; }
15679 if test ${ac_cv_type_signal+y}
15680 then :
15681 printf %s "(cached) " >&6
15682 else $as_nop
15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h. */
15685 #include <sys/types.h>
15686 #include <signal.h>
15687
15688 int
15689 main (void)
15690 {
15691 return *(signal (0, 0)) (0) == 1;
15692 ;
15693 return 0;
15694 }
15695 _ACEOF
15696 if ac_fn_c_try_compile "$LINENO"
15697 then :
15698 ac_cv_type_signal=int
15699 else $as_nop
15700 ac_cv_type_signal=void
15701 fi
15702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15703 fi
15704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15705 printf "%s\n" "$ac_cv_type_signal" >&6; }
15706
15707 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
15708
15709
15710
15711 # Checks for configure options
15712
15713 # --enable-debug
15714
15715 # Check whether --enable-debug was given.
15716 if test ${enable_debug+y}
15717 then :
15718 enableval=$enable_debug;
15719 else $as_nop
15720 enable_debug=no
15721 fi
15722
15723 if test x$enable_debug = xyes; then
15724
15725 printf "%s\n" "#define DEBUG 1" >>confdefs.h
15726
15727 fi
15728
15729 # --disable-deprecated
15730 # Check whether --enable-deprecated was given.
15731 if test ${enable_deprecated+y}
15732 then :
15733 enableval=$enable_deprecated;
15734 fi
15735
15736 if test x$enable_deprecated = xno; then
15737
15738 printf "%s\n" "#define FRIBIDI_NO_DEPRECATED 1" >>confdefs.h
15739
15740 fi
15741
15742 # define FRIBIDI_LIB_STATIC if in static mode
15743 if test "$enable_static" = "yes" ; then
15744 FRIBIDI_CPPFLAGS="-DFRIBIDI_LIB_STATIC"
15745 fi
15746
15747
15748 if test x$enable_shared = xyes; then
15749 ENABLE_SHARED_TRUE=
15750 ENABLE_SHARED_FALSE="#"
15751 else
15752 ENABLE_SHARED_TRUE="#"
15753 ENABLE_SHARED_FALSE=
15754 fi
15755
15756
15757
15758
15759 # Generate output
15760 ac_config_files="$ac_config_files fribidi.pc lib/fribidi-config.h Makefile gen.tab/Makefile lib/Makefile bin/Makefile doc/Makefile test/Makefile test/unicode-conformance/Makefile"
15761
15762 cat >confcache <<\_ACEOF
15763 # This file is a shell script that caches the results of configure
15764 # tests run on this system so they can be shared between configure
15765 # scripts and configure runs, see configure's option --config-cache.
15766 # It is not useful on other systems. If it contains results you don't
15767 # want to keep, you may remove or edit it.
15768 #
15769 # config.status only pays attention to the cache file if you give it
15770 # the --recheck option to rerun configure.
15771 #
15772 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15773 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15774 # following values.
15775
15776 _ACEOF
15777
15778 # The following way of writing the cache mishandles newlines in values,
15779 # but we know of no workaround that is simple, portable, and efficient.
15780 # So, we kill variables containing newlines.
15781 # Ultrix sh set writes to stderr and can't be redirected directly,
15782 # and sets the high bit in the cache file unless we assign to the vars.
15783 (
15784 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15785 eval ac_val=\$$ac_var
15786 case $ac_val in #(
15787 *${as_nl}*)
15788 case $ac_var in #(
15789 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15790 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15791 esac
15792 case $ac_var in #(
15793 _ | IFS | as_nl) ;; #(
15794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15795 *) { eval $ac_var=; unset $ac_var;} ;;
15796 esac ;;
15797 esac
15798 done
15799
15800 (set) 2>&1 |
15801 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15802 *${as_nl}ac_space=\ *)
15803 # `set' does not quote correctly, so add quotes: double-quote
15804 # substitution turns \\\\ into \\, and sed turns \\ into \.
15805 sed -n \
15806 "s/'/'\\\\''/g;
15807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15808 ;; #(
15809 *)
15810 # `set' quotes correctly as required by POSIX, so do not add quotes.
15811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15812 ;;
15813 esac |
15814 sort
15815 ) |
15816 sed '
15817 /^ac_cv_env_/b end
15818 t clear
15819 :clear
15820 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15821 t end
15822 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15823 :end' >>confcache
15824 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15825 if test -w "$cache_file"; then
15826 if test "x$cache_file" != "x/dev/null"; then
15827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15828 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15829 if test ! -f "$cache_file" || test -h "$cache_file"; then
15830 cat confcache >"$cache_file"
15831 else
15832 case $cache_file in #(
15833 */* | ?:*)
15834 mv -f confcache "$cache_file"$$ &&
15835 mv -f "$cache_file"$$ "$cache_file" ;; #(
15836 *)
15837 mv -f confcache "$cache_file" ;;
15838 esac
15839 fi
15840 fi
15841 else
15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15843 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15844 fi
15845 fi
15846 rm -f confcache
15847
15848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15849 # Let make expand exec_prefix.
15850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15851
15852 DEFS=-DHAVE_CONFIG_H
15853
15854 ac_libobjs=
15855 ac_ltlibobjs=
15856 U=
15857 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15858 # 1. Remove the extension, and $U if already installed.
15859 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15860 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15861 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15862 # will be set to the directory where LIBOBJS objects are built.
15863 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15864 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15865 done
15866 LIBOBJS=$ac_libobjs
15867
15868 LTLIBOBJS=$ac_ltlibobjs
15869
15870
15871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15872 printf %s "checking that generated files are newer than configure... " >&6; }
15873 if test -n "$am_sleep_pid"; then
15874 # Hide warnings about reused PIDs.
15875 wait $am_sleep_pid 2>/dev/null
15876 fi
15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15878 printf "%s\n" "done" >&6; }
15879 if test -n "$EXEEXT"; then
15880 am__EXEEXT_TRUE=
15881 am__EXEEXT_FALSE='#'
15882 else
15883 am__EXEEXT_TRUE='#'
15884 am__EXEEXT_FALSE=
15885 fi
15886
15887 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15888 as_fn_error $? "conditional \"AMDEP\" was never defined.
15889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15890 fi
15891 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15892 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15894 fi
15895 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15896 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15898 fi
15899 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15900 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15902 fi
15903 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
15904 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
15905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15906 fi
15907 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15908 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15910 fi
15911
15912 : "${CONFIG_STATUS=./config.status}"
15913 ac_write_fail=0
15914 ac_clean_files_save=$ac_clean_files
15915 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15917 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15918 as_write_fail=0
15919 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15920 #! $SHELL
15921 # Generated by $as_me.
15922 # Run this file to recreate the current configuration.
15923 # Compiler output produced by configure, useful for debugging
15924 # configure, is in config.log if it exists.
15925
15926 debug=false
15927 ac_cs_recheck=false
15928 ac_cs_silent=false
15929
15930 SHELL=\${CONFIG_SHELL-$SHELL}
15931 export SHELL
15932 _ASEOF
15933 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15934 ## -------------------- ##
15935 ## M4sh Initialization. ##
15936 ## -------------------- ##
15937
15938 # Be more Bourne compatible
15939 DUALCASE=1; export DUALCASE # for MKS sh
15940 as_nop=:
15941 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15942 then :
15943 emulate sh
15944 NULLCMD=:
15945 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15946 # is contrary to our usage. Disable this feature.
15947 alias -g '${1+"$@"}'='"$@"'
15948 setopt NO_GLOB_SUBST
15949 else $as_nop
15950 case `(set -o) 2>/dev/null` in #(
15951 *posix*) :
15952 set -o posix ;; #(
15953 *) :
15954 ;;
15955 esac
15956 fi
15957
15958
15959
15960 # Reset variables that may have inherited troublesome values from
15961 # the environment.
15962
15963 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15964 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15965 # side effect of setting IFS to empty, thus disabling word splitting.)
15966 # Quoting is to prevent editors from complaining about space-tab.
15967 as_nl='
15968 '
15969 export as_nl
15970 IFS=" "" $as_nl"
15971
15972 PS1='$ '
15973 PS2='> '
15974 PS4='+ '
15975
15976 # Ensure predictable behavior from utilities with locale-dependent output.
15977 LC_ALL=C
15978 export LC_ALL
15979 LANGUAGE=C
15980 export LANGUAGE
15981
15982 # We cannot yet rely on "unset" to work, but we need these variables
15983 # to be unset--not just set to an empty or harmless value--now, to
15984 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15985 # also avoids known problems related to "unset" and subshell syntax
15986 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15987 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15988 do eval test \${$as_var+y} \
15989 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15990 done
15991
15992 # Ensure that fds 0, 1, and 2 are open.
15993 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15994 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15995 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15996
15997 # The user is always right.
15998 if ${PATH_SEPARATOR+false} :; then
15999 PATH_SEPARATOR=:
16000 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16001 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16002 PATH_SEPARATOR=';'
16003 }
16004 fi
16005
16006
16007 # Find who we are. Look in the path if we contain no directory separator.
16008 as_myself=
16009 case $0 in #((
16010 *[\\/]* ) as_myself=$0 ;;
16011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16012 for as_dir in $PATH
16013 do
16014 IFS=$as_save_IFS
16015 case $as_dir in #(((
16016 '') as_dir=./ ;;
16017 */) ;;
16018 *) as_dir=$as_dir/ ;;
16019 esac
16020 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16021 done
16022 IFS=$as_save_IFS
16023
16024 ;;
16025 esac
16026 # We did not find ourselves, most probably we were run as `sh COMMAND'
16027 # in which case we are not to be found in the path.
16028 if test "x$as_myself" = x; then
16029 as_myself=$0
16030 fi
16031 if test ! -f "$as_myself"; then
16032 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16033 exit 1
16034 fi
16035
16036
16037
16038 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16039 # ----------------------------------------
16040 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16041 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16042 # script with STATUS, using 1 if that was 0.
16043 as_fn_error ()
16044 {
16045 as_status=$1; test $as_status -eq 0 && as_status=1
16046 if test "$4"; then
16047 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16049 fi
16050 printf "%s\n" "$as_me: error: $2" >&2
16051 as_fn_exit $as_status
16052 } # as_fn_error
16053
16054
16055
16056 # as_fn_set_status STATUS
16057 # -----------------------
16058 # Set $? to STATUS, without forking.
16059 as_fn_set_status ()
16060 {
16061 return $1
16062 } # as_fn_set_status
16063
16064 # as_fn_exit STATUS
16065 # -----------------
16066 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16067 as_fn_exit ()
16068 {
16069 set +e
16070 as_fn_set_status $1
16071 exit $1
16072 } # as_fn_exit
16073
16074 # as_fn_unset VAR
16075 # ---------------
16076 # Portably unset VAR.
16077 as_fn_unset ()
16078 {
16079 { eval $1=; unset $1;}
16080 }
16081 as_unset=as_fn_unset
16082
16083 # as_fn_append VAR VALUE
16084 # ----------------------
16085 # Append the text in VALUE to the end of the definition contained in VAR. Take
16086 # advantage of any shell optimizations that allow amortized linear growth over
16087 # repeated appends, instead of the typical quadratic growth present in naive
16088 # implementations.
16089 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16090 then :
16091 eval 'as_fn_append ()
16092 {
16093 eval $1+=\$2
16094 }'
16095 else $as_nop
16096 as_fn_append ()
16097 {
16098 eval $1=\$$1\$2
16099 }
16100 fi # as_fn_append
16101
16102 # as_fn_arith ARG...
16103 # ------------------
16104 # Perform arithmetic evaluation on the ARGs, and store the result in the
16105 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16106 # must be portable across $(()) and expr.
16107 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16108 then :
16109 eval 'as_fn_arith ()
16110 {
16111 as_val=$(( $* ))
16112 }'
16113 else $as_nop
16114 as_fn_arith ()
16115 {
16116 as_val=`expr "$@" || test $? -eq 1`
16117 }
16118 fi # as_fn_arith
16119
16120
16121 if expr a : '\(a\)' >/dev/null 2>&1 &&
16122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16123 as_expr=expr
16124 else
16125 as_expr=false
16126 fi
16127
16128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16129 as_basename=basename
16130 else
16131 as_basename=false
16132 fi
16133
16134 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16135 as_dirname=dirname
16136 else
16137 as_dirname=false
16138 fi
16139
16140 as_me=`$as_basename -- "$0" ||
16141 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16142 X"$0" : 'X\(//\)$' \| \
16143 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16144 printf "%s\n" X/"$0" |
16145 sed '/^.*\/\([^/][^/]*\)\/*$/{
16146 s//\1/
16147 q
16148 }
16149 /^X\/\(\/\/\)$/{
16150 s//\1/
16151 q
16152 }
16153 /^X\/\(\/\).*/{
16154 s//\1/
16155 q
16156 }
16157 s/.*/./; q'`
16158
16159 # Avoid depending upon Character Ranges.
16160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16162 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16163 as_cr_digits='0123456789'
16164 as_cr_alnum=$as_cr_Letters$as_cr_digits
16165
16166
16167 # Determine whether it's possible to make 'echo' print without a newline.
16168 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16169 # for compatibility with existing Makefiles.
16170 ECHO_C= ECHO_N= ECHO_T=
16171 case `echo -n x` in #(((((
16172 -n*)
16173 case `echo 'xy\c'` in
16174 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16175 xy) ECHO_C='\c';;
16176 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16177 ECHO_T=' ';;
16178 esac;;
16179 *)
16180 ECHO_N='-n';;
16181 esac
16182
16183 # For backward compatibility with old third-party macros, we provide
16184 # the shell variables $as_echo and $as_echo_n. New code should use
16185 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16186 as_echo='printf %s\n'
16187 as_echo_n='printf %s'
16188
16189 rm -f conf$$ conf$$.exe conf$$.file
16190 if test -d conf$$.dir; then
16191 rm -f conf$$.dir/conf$$.file
16192 else
16193 rm -f conf$$.dir
16194 mkdir conf$$.dir 2>/dev/null
16195 fi
16196 if (echo >conf$$.file) 2>/dev/null; then
16197 if ln -s conf$$.file conf$$ 2>/dev/null; then
16198 as_ln_s='ln -s'
16199 # ... but there are two gotchas:
16200 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16201 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16202 # In both cases, we have to default to `cp -pR'.
16203 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16204 as_ln_s='cp -pR'
16205 elif ln conf$$.file conf$$ 2>/dev/null; then
16206 as_ln_s=ln
16207 else
16208 as_ln_s='cp -pR'
16209 fi
16210 else
16211 as_ln_s='cp -pR'
16212 fi
16213 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16214 rmdir conf$$.dir 2>/dev/null
16215
16216
16217 # as_fn_mkdir_p
16218 # -------------
16219 # Create "$as_dir" as a directory, including parents if necessary.
16220 as_fn_mkdir_p ()
16221 {
16222
16223 case $as_dir in #(
16224 -*) as_dir=./$as_dir;;
16225 esac
16226 test -d "$as_dir" || eval $as_mkdir_p || {
16227 as_dirs=
16228 while :; do
16229 case $as_dir in #(
16230 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16231 *) as_qdir=$as_dir;;
16232 esac
16233 as_dirs="'$as_qdir' $as_dirs"
16234 as_dir=`$as_dirname -- "$as_dir" ||
16235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16236 X"$as_dir" : 'X\(//\)[^/]' \| \
16237 X"$as_dir" : 'X\(//\)$' \| \
16238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16239 printf "%s\n" X"$as_dir" |
16240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16241 s//\1/
16242 q
16243 }
16244 /^X\(\/\/\)[^/].*/{
16245 s//\1/
16246 q
16247 }
16248 /^X\(\/\/\)$/{
16249 s//\1/
16250 q
16251 }
16252 /^X\(\/\).*/{
16253 s//\1/
16254 q
16255 }
16256 s/.*/./; q'`
16257 test -d "$as_dir" && break
16258 done
16259 test -z "$as_dirs" || eval "mkdir $as_dirs"
16260 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16261
16262
16263 } # as_fn_mkdir_p
16264 if mkdir -p . 2>/dev/null; then
16265 as_mkdir_p='mkdir -p "$as_dir"'
16266 else
16267 test -d ./-p && rmdir ./-p
16268 as_mkdir_p=false
16269 fi
16270
16271
16272 # as_fn_executable_p FILE
16273 # -----------------------
16274 # Test if FILE is an executable regular file.
16275 as_fn_executable_p ()
16276 {
16277 test -f "$1" && test -x "$1"
16278 } # as_fn_executable_p
16279 as_test_x='test -x'
16280 as_executable_p=as_fn_executable_p
16281
16282 # Sed expression to map a string onto a valid CPP name.
16283 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16284
16285 # Sed expression to map a string onto a valid variable name.
16286 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16287
16288
16289 exec 6>&1
16290 ## ----------------------------------- ##
16291 ## Main body of $CONFIG_STATUS script. ##
16292 ## ----------------------------------- ##
16293 _ASEOF
16294 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16295
16296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16297 # Save the log message, to keep $0 and so on meaningful, and to
16298 # report actual input values of CONFIG_FILES etc. instead of their
16299 # values after options handling.
16300 ac_log="
16301 This file was extended by GNU FriBidi $as_me 1.0.16, which was
16302 generated by GNU Autoconf 2.71. Invocation command line was
16303
16304 CONFIG_FILES = $CONFIG_FILES
16305 CONFIG_HEADERS = $CONFIG_HEADERS
16306 CONFIG_LINKS = $CONFIG_LINKS
16307 CONFIG_COMMANDS = $CONFIG_COMMANDS
16308 $ $0 $@
16309
16310 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16311 "
16312
16313 _ACEOF
16314
16315 case $ac_config_files in *"
16316 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16317 esac
16318
16319 case $ac_config_headers in *"
16320 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16321 esac
16322
16323
16324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16325 # Files that config.status was made for.
16326 config_files="$ac_config_files"
16327 config_headers="$ac_config_headers"
16328 config_commands="$ac_config_commands"
16329
16330 _ACEOF
16331
16332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16333 ac_cs_usage="\
16334 \`$as_me' instantiates files and other configuration actions
16335 from templates according to the current configuration. Unless the files
16336 and actions are specified as TAGs, all are instantiated by default.
16337
16338 Usage: $0 [OPTION]... [TAG]...
16339
16340 -h, --help print this help, then exit
16341 -V, --version print version number and configuration settings, then exit
16342 --config print configuration, then exit
16343 -q, --quiet, --silent
16344 do not print progress messages
16345 -d, --debug don't remove temporary files
16346 --recheck update $as_me by reconfiguring in the same conditions
16347 --file=FILE[:TEMPLATE]
16348 instantiate the configuration file FILE
16349 --header=FILE[:TEMPLATE]
16350 instantiate the configuration header FILE
16351
16352 Configuration files:
16353 $config_files
16354
16355 Configuration headers:
16356 $config_headers
16357
16358 Configuration commands:
16359 $config_commands
16360
16361 Report bugs to <https://github.com/fribidi/fribidi/issues/new>.
16362 GNU FriBidi home page: <http://fribidi.org/>.
16363 General help using GNU software: <https://www.gnu.org/gethelp/>."
16364
16365 _ACEOF
16366 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16367 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16369 ac_cs_config='$ac_cs_config_escaped'
16370 ac_cs_version="\\
16371 GNU FriBidi config.status 1.0.16
16372 configured by $0, generated by GNU Autoconf 2.71,
16373 with options \\"\$ac_cs_config\\"
16374
16375 Copyright (C) 2021 Free Software Foundation, Inc.
16376 This config.status script is free software; the Free Software Foundation
16377 gives unlimited permission to copy, distribute and modify it."
16378
16379 ac_pwd='$ac_pwd'
16380 srcdir='$srcdir'
16381 INSTALL='$INSTALL'
16382 MKDIR_P='$MKDIR_P'
16383 AWK='$AWK'
16384 test -n "\$AWK" || AWK=awk
16385 _ACEOF
16386
16387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16388 # The default lists apply if the user does not specify any file.
16389 ac_need_defaults=:
16390 while test $# != 0
16391 do
16392 case $1 in
16393 --*=?*)
16394 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16395 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16396 ac_shift=:
16397 ;;
16398 --*=)
16399 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16400 ac_optarg=
16401 ac_shift=:
16402 ;;
16403 *)
16404 ac_option=$1
16405 ac_optarg=$2
16406 ac_shift=shift
16407 ;;
16408 esac
16409
16410 case $ac_option in
16411 # Handling of the options.
16412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16413 ac_cs_recheck=: ;;
16414 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16415 printf "%s\n" "$ac_cs_version"; exit ;;
16416 --config | --confi | --conf | --con | --co | --c )
16417 printf "%s\n" "$ac_cs_config"; exit ;;
16418 --debug | --debu | --deb | --de | --d | -d )
16419 debug=: ;;
16420 --file | --fil | --fi | --f )
16421 $ac_shift
16422 case $ac_optarg in
16423 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16424 '') as_fn_error $? "missing file argument" ;;
16425 esac
16426 as_fn_append CONFIG_FILES " '$ac_optarg'"
16427 ac_need_defaults=false;;
16428 --header | --heade | --head | --hea )
16429 $ac_shift
16430 case $ac_optarg in
16431 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16432 esac
16433 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16434 ac_need_defaults=false;;
16435 --he | --h)
16436 # Conflict between --help and --header
16437 as_fn_error $? "ambiguous option: \`$1'
16438 Try \`$0 --help' for more information.";;
16439 --help | --hel | -h )
16440 printf "%s\n" "$ac_cs_usage"; exit ;;
16441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16442 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16443 ac_cs_silent=: ;;
16444
16445 # This is an error.
16446 -*) as_fn_error $? "unrecognized option: \`$1'
16447 Try \`$0 --help' for more information." ;;
16448
16449 *) as_fn_append ac_config_targets " $1"
16450 ac_need_defaults=false ;;
16451
16452 esac
16453 shift
16454 done
16455
16456 ac_configure_extra_args=
16457
16458 if $ac_cs_silent; then
16459 exec 6>/dev/null
16460 ac_configure_extra_args="$ac_configure_extra_args --silent"
16461 fi
16462
16463 _ACEOF
16464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16465 if \$ac_cs_recheck; then
16466 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16467 shift
16468 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16469 CONFIG_SHELL='$SHELL'
16470 export CONFIG_SHELL
16471 exec "\$@"
16472 fi
16473
16474 _ACEOF
16475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16476 exec 5>>config.log
16477 {
16478 echo
16479 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16480 ## Running $as_me. ##
16481 _ASBOX
16482 printf "%s\n" "$ac_log"
16483 } >&5
16484
16485 _ACEOF
16486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16487 #
16488 # INIT-COMMANDS
16489 #
16490 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16491
16492
16493 # The HP-UX ksh and POSIX shell print the target directory to stdout
16494 # if CDPATH is set.
16495 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16496
16497 sed_quote_subst='$sed_quote_subst'
16498 double_quote_subst='$double_quote_subst'
16499 delay_variable_subst='$delay_variable_subst'
16500 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16501 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16502 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16503 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16504 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16505 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16506 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16507 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16508 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16509 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16510 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16511 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16512 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16513 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16514 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16515 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16516 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16517 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16518 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16519 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16520 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16521 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16522 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16523 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16524 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16525 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16526 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16527 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16528 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16529 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16530 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16531 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16532 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16533 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16534 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16535 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16536 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16537 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16538 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16539 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16540 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16541 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16542 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16543 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16544 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16545 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16546 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16547 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16548 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16549 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16550 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16551 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16552 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16553 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16554 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16555 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16556 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16557 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16558 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"`'
16559 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16560 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16561 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16562 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16563 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16564 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16565 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16566 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16567 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16568 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16569 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16570 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16571 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16572 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16573 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16574 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16575 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16576 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16577 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16578 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16579 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16580 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16581 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16582 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16583 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16584 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16585 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16586 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16587 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16588 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16589 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16590 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16591 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16592 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16593 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16594 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16595 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16596 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16597 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16598 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16599 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16600 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16601 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16602 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16603 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16604 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16605 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16606 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16607 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16608 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16609 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16610 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16611 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16612 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16613 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16614 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16615 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16616 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16617 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16618 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16619 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16620 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16621 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16622 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16623 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16624 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16625 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16626 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16627 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16628 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16629 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16630 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16631 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16632 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16633 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16634 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16635
16636 LTCC='$LTCC'
16637 LTCFLAGS='$LTCFLAGS'
16638 compiler='$compiler_DEFAULT'
16639
16640 # A function that is used when there is no print builtin or printf.
16641 func_fallback_echo ()
16642 {
16643 eval 'cat <<_LTECHO_EOF
16644 \$1
16645 _LTECHO_EOF'
16646 }
16647
16648 # Quote evaled strings.
16649 for var in SHELL \
16650 ECHO \
16651 PATH_SEPARATOR \
16652 SED \
16653 GREP \
16654 EGREP \
16655 FGREP \
16656 LD \
16657 NM \
16658 LN_S \
16659 lt_SP2NL \
16660 lt_NL2SP \
16661 reload_flag \
16662 OBJDUMP \
16663 deplibs_check_method \
16664 file_magic_cmd \
16665 file_magic_glob \
16666 want_nocaseglob \
16667 DLLTOOL \
16668 sharedlib_from_linklib_cmd \
16669 AR \
16670 AR_FLAGS \
16671 archiver_list_spec \
16672 STRIP \
16673 RANLIB \
16674 CC \
16675 CFLAGS \
16676 compiler \
16677 lt_cv_sys_global_symbol_pipe \
16678 lt_cv_sys_global_symbol_to_cdecl \
16679 lt_cv_sys_global_symbol_to_import \
16680 lt_cv_sys_global_symbol_to_c_name_address \
16681 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16682 lt_cv_nm_interface \
16683 nm_file_list_spec \
16684 lt_cv_truncate_bin \
16685 lt_prog_compiler_no_builtin_flag \
16686 lt_prog_compiler_pic \
16687 lt_prog_compiler_wl \
16688 lt_prog_compiler_static \
16689 lt_cv_prog_compiler_c_o \
16690 need_locks \
16691 MANIFEST_TOOL \
16692 DSYMUTIL \
16693 NMEDIT \
16694 LIPO \
16695 OTOOL \
16696 OTOOL64 \
16697 shrext_cmds \
16698 export_dynamic_flag_spec \
16699 whole_archive_flag_spec \
16700 compiler_needs_object \
16701 with_gnu_ld \
16702 allow_undefined_flag \
16703 no_undefined_flag \
16704 hardcode_libdir_flag_spec \
16705 hardcode_libdir_separator \
16706 exclude_expsyms \
16707 include_expsyms \
16708 file_list_spec \
16709 variables_saved_for_relink \
16710 libname_spec \
16711 library_names_spec \
16712 soname_spec \
16713 install_override_mode \
16714 finish_eval \
16715 old_striplib \
16716 striplib; do
16717 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16718 *[\\\\\\\`\\"\\\$]*)
16719 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16720 ;;
16721 *)
16722 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16723 ;;
16724 esac
16725 done
16726
16727 # Double-quote double-evaled strings.
16728 for var in reload_cmds \
16729 old_postinstall_cmds \
16730 old_postuninstall_cmds \
16731 old_archive_cmds \
16732 extract_expsyms_cmds \
16733 old_archive_from_new_cmds \
16734 old_archive_from_expsyms_cmds \
16735 archive_cmds \
16736 archive_expsym_cmds \
16737 module_cmds \
16738 module_expsym_cmds \
16739 export_symbols_cmds \
16740 prelink_cmds \
16741 postlink_cmds \
16742 postinstall_cmds \
16743 postuninstall_cmds \
16744 finish_cmds \
16745 sys_lib_search_path_spec \
16746 configure_time_dlsearch_path \
16747 configure_time_lt_sys_library_path; do
16748 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16749 *[\\\\\\\`\\"\\\$]*)
16750 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16751 ;;
16752 *)
16753 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16754 ;;
16755 esac
16756 done
16757
16758 ac_aux_dir='$ac_aux_dir'
16759
16760 # See if we are running on zsh, and set the options that allow our
16761 # commands through without removal of \ escapes INIT.
16762 if test -n "\${ZSH_VERSION+set}"; then
16763 setopt NO_GLOB_SUBST
16764 fi
16765
16766
16767 PACKAGE='$PACKAGE'
16768 VERSION='$VERSION'
16769 RM='$RM'
16770 ofile='$ofile'
16771
16772
16773
16774
16775 _ACEOF
16776
16777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16778
16779 # Handling of arguments.
16780 for ac_config_target in $ac_config_targets
16781 do
16782 case $ac_config_target in
16783 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16784 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16785 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16786 "fribidi.pc") CONFIG_FILES="$CONFIG_FILES fribidi.pc" ;;
16787 "lib/fribidi-config.h") CONFIG_FILES="$CONFIG_FILES lib/fribidi-config.h" ;;
16788 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16789 "gen.tab/Makefile") CONFIG_FILES="$CONFIG_FILES gen.tab/Makefile" ;;
16790 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16791 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
16792 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16793 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16794 "test/unicode-conformance/Makefile") CONFIG_FILES="$CONFIG_FILES test/unicode-conformance/Makefile" ;;
16795
16796 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16797 esac
16798 done
16799
16800
16801 # If the user did not use the arguments to specify the items to instantiate,
16802 # then the envvar interface is used. Set only those that are not.
16803 # We use the long form for the default assignment because of an extremely
16804 # bizarre bug on SunOS 4.1.3.
16805 if $ac_need_defaults; then
16806 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16807 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16808 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16809 fi
16810
16811 # Have a temporary directory for convenience. Make it in the build tree
16812 # simply because there is no reason against having it here, and in addition,
16813 # creating and moving files from /tmp can sometimes cause problems.
16814 # Hook for its removal unless debugging.
16815 # Note that there is a small window in which the directory will not be cleaned:
16816 # after its creation but before its name has been assigned to `$tmp'.
16817 $debug ||
16818 {
16819 tmp= ac_tmp=
16820 trap 'exit_status=$?
16821 : "${ac_tmp:=$tmp}"
16822 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16823 ' 0
16824 trap 'as_fn_exit 1' 1 2 13 15
16825 }
16826 # Create a (secure) tmp directory for tmp files.
16827
16828 {
16829 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16830 test -d "$tmp"
16831 } ||
16832 {
16833 tmp=./conf$$-$RANDOM
16834 (umask 077 && mkdir "$tmp")
16835 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16836 ac_tmp=$tmp
16837
16838 # Set up the scripts for CONFIG_FILES section.
16839 # No need to generate them if there are no CONFIG_FILES.
16840 # This happens for instance with `./config.status config.h'.
16841 if test -n "$CONFIG_FILES"; then
16842
16843
16844 ac_cr=`echo X | tr X '\015'`
16845 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16846 # But we know of no other shell where ac_cr would be empty at this
16847 # point, so we can use a bashism as a fallback.
16848 if test "x$ac_cr" = x; then
16849 eval ac_cr=\$\'\\r\'
16850 fi
16851 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16852 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16853 ac_cs_awk_cr='\\r'
16854 else
16855 ac_cs_awk_cr=$ac_cr
16856 fi
16857
16858 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16859 _ACEOF
16860
16861
16862 {
16863 echo "cat >conf$$subs.awk <<_ACEOF" &&
16864 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16865 echo "_ACEOF"
16866 } >conf$$subs.sh ||
16867 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16868 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16869 ac_delim='%!_!# '
16870 for ac_last_try in false false false false false :; do
16871 . ./conf$$subs.sh ||
16872 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16873
16874 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16875 if test $ac_delim_n = $ac_delim_num; then
16876 break
16877 elif $ac_last_try; then
16878 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16879 else
16880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16881 fi
16882 done
16883 rm -f conf$$subs.sh
16884
16885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16886 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16887 _ACEOF
16888 sed -n '
16889 h
16890 s/^/S["/; s/!.*/"]=/
16891 p
16892 g
16893 s/^[^!]*!//
16894 :repl
16895 t repl
16896 s/'"$ac_delim"'$//
16897 t delim
16898 :nl
16899 h
16900 s/\(.\{148\}\)..*/\1/
16901 t more1
16902 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16903 p
16904 n
16905 b repl
16906 :more1
16907 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16908 p
16909 g
16910 s/.\{148\}//
16911 t nl
16912 :delim
16913 h
16914 s/\(.\{148\}\)..*/\1/
16915 t more2
16916 s/["\\]/\\&/g; s/^/"/; s/$/"/
16917 p
16918 b
16919 :more2
16920 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16921 p
16922 g
16923 s/.\{148\}//
16924 t delim
16925 ' <conf$$subs.awk | sed '
16926 /^[^""]/{
16927 N
16928 s/\n//
16929 }
16930 ' >>$CONFIG_STATUS || ac_write_fail=1
16931 rm -f conf$$subs.awk
16932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16933 _ACAWK
16934 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16935 for (key in S) S_is_set[key] = 1
16936 FS = ""
16937
16938 }
16939 {
16940 line = $ 0
16941 nfields = split(line, field, "@")
16942 substed = 0
16943 len = length(field[1])
16944 for (i = 2; i < nfields; i++) {
16945 key = field[i]
16946 keylen = length(key)
16947 if (S_is_set[key]) {
16948 value = S[key]
16949 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16950 len += length(value) + length(field[++i])
16951 substed = 1
16952 } else
16953 len += 1 + keylen
16954 }
16955
16956 print line
16957 }
16958
16959 _ACAWK
16960 _ACEOF
16961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16962 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16963 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16964 else
16965 cat
16966 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16967 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16968 _ACEOF
16969
16970 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16971 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16972 # trailing colons and then remove the whole line if VPATH becomes empty
16973 # (actually we leave an empty line to preserve line numbers).
16974 if test "x$srcdir" = x.; then
16975 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16976 h
16977 s///
16978 s/^/:/
16979 s/[ ]*$/:/
16980 s/:\$(srcdir):/:/g
16981 s/:\${srcdir}:/:/g
16982 s/:@srcdir@:/:/g
16983 s/^:*//
16984 s/:*$//
16985 x
16986 s/\(=[ ]*\).*/\1/
16987 G
16988 s/\n//
16989 s/^[^=]*=[ ]*$//
16990 }'
16991 fi
16992
16993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16994 fi # test -n "$CONFIG_FILES"
16995
16996 # Set up the scripts for CONFIG_HEADERS section.
16997 # No need to generate them if there are no CONFIG_HEADERS.
16998 # This happens for instance with `./config.status Makefile'.
16999 if test -n "$CONFIG_HEADERS"; then
17000 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17001 BEGIN {
17002 _ACEOF
17003
17004 # Transform confdefs.h into an awk script `defines.awk', embedded as
17005 # here-document in config.status, that substitutes the proper values into
17006 # config.h.in to produce config.h.
17007
17008 # Create a delimiter string that does not exist in confdefs.h, to ease
17009 # handling of long lines.
17010 ac_delim='%!_!# '
17011 for ac_last_try in false false :; do
17012 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17013 if test -z "$ac_tt"; then
17014 break
17015 elif $ac_last_try; then
17016 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17017 else
17018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17019 fi
17020 done
17021
17022 # For the awk script, D is an array of macro values keyed by name,
17023 # likewise P contains macro parameters if any. Preserve backslash
17024 # newline sequences.
17025
17026 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17027 sed -n '
17028 s/.\{148\}/&'"$ac_delim"'/g
17029 t rset
17030 :rset
17031 s/^[ ]*#[ ]*define[ ][ ]*/ /
17032 t def
17033 d
17034 :def
17035 s/\\$//
17036 t bsnl
17037 s/["\\]/\\&/g
17038 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17039 D["\1"]=" \3"/p
17040 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17041 d
17042 :bsnl
17043 s/["\\]/\\&/g
17044 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17045 D["\1"]=" \3\\\\\\n"\\/p
17046 t cont
17047 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17048 t cont
17049 d
17050 :cont
17051 n
17052 s/.\{148\}/&'"$ac_delim"'/g
17053 t clear
17054 :clear
17055 s/\\$//
17056 t bsnlc
17057 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17058 d
17059 :bsnlc
17060 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17061 b cont
17062 ' <confdefs.h | sed '
17063 s/'"$ac_delim"'/"\\\
17064 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17065
17066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17067 for (key in D) D_is_set[key] = 1
17068 FS = ""
17069 }
17070 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17071 line = \$ 0
17072 split(line, arg, " ")
17073 if (arg[1] == "#") {
17074 defundef = arg[2]
17075 mac1 = arg[3]
17076 } else {
17077 defundef = substr(arg[1], 2)
17078 mac1 = arg[2]
17079 }
17080 split(mac1, mac2, "(") #)
17081 macro = mac2[1]
17082 prefix = substr(line, 1, index(line, defundef) - 1)
17083 if (D_is_set[macro]) {
17084 # Preserve the white space surrounding the "#".
17085 print prefix "define", macro P[macro] D[macro]
17086 next
17087 } else {
17088 # Replace #undef with comments. This is necessary, for example,
17089 # in the case of _POSIX_SOURCE, which is predefined and required
17090 # on some systems where configure will not decide to define it.
17091 if (defundef == "undef") {
17092 print "/*", prefix defundef, macro, "*/"
17093 next
17094 }
17095 }
17096 }
17097 { print }
17098 _ACAWK
17099 _ACEOF
17100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17101 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17102 fi # test -n "$CONFIG_HEADERS"
17103
17104
17105 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17106 shift
17107 for ac_tag
17108 do
17109 case $ac_tag in
17110 :[FHLC]) ac_mode=$ac_tag; continue;;
17111 esac
17112 case $ac_mode$ac_tag in
17113 :[FHL]*:*);;
17114 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17115 :[FH]-) ac_tag=-:-;;
17116 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17117 esac
17118 ac_save_IFS=$IFS
17119 IFS=:
17120 set x $ac_tag
17121 IFS=$ac_save_IFS
17122 shift
17123 ac_file=$1
17124 shift
17125
17126 case $ac_mode in
17127 :L) ac_source=$1;;
17128 :[FH])
17129 ac_file_inputs=
17130 for ac_f
17131 do
17132 case $ac_f in
17133 -) ac_f="$ac_tmp/stdin";;
17134 *) # Look for the file first in the build tree, then in the source tree
17135 # (if the path is not absolute). The absolute path cannot be DOS-style,
17136 # because $ac_f cannot contain `:'.
17137 test -f "$ac_f" ||
17138 case $ac_f in
17139 [\\/$]*) false;;
17140 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17141 esac ||
17142 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17143 esac
17144 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17145 as_fn_append ac_file_inputs " '$ac_f'"
17146 done
17147
17148 # Let's still pretend it is `configure' which instantiates (i.e., don't
17149 # use $as_me), people would be surprised to read:
17150 # /* config.h. Generated by config.status. */
17151 configure_input='Generated from '`
17152 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17153 `' by configure.'
17154 if test x"$ac_file" != x-; then
17155 configure_input="$ac_file. $configure_input"
17156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17157 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17158 fi
17159 # Neutralize special characters interpreted by sed in replacement strings.
17160 case $configure_input in #(
17161 *\&* | *\|* | *\\* )
17162 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17163 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17164 *) ac_sed_conf_input=$configure_input;;
17165 esac
17166
17167 case $ac_tag in
17168 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17170 esac
17171 ;;
17172 esac
17173
17174 ac_dir=`$as_dirname -- "$ac_file" ||
17175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17176 X"$ac_file" : 'X\(//\)[^/]' \| \
17177 X"$ac_file" : 'X\(//\)$' \| \
17178 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17179 printf "%s\n" X"$ac_file" |
17180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17181 s//\1/
17182 q
17183 }
17184 /^X\(\/\/\)[^/].*/{
17185 s//\1/
17186 q
17187 }
17188 /^X\(\/\/\)$/{
17189 s//\1/
17190 q
17191 }
17192 /^X\(\/\).*/{
17193 s//\1/
17194 q
17195 }
17196 s/.*/./; q'`
17197 as_dir="$ac_dir"; as_fn_mkdir_p
17198 ac_builddir=.
17199
17200 case "$ac_dir" in
17201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17202 *)
17203 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17204 # A ".." for each directory in $ac_dir_suffix.
17205 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17206 case $ac_top_builddir_sub in
17207 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17208 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17209 esac ;;
17210 esac
17211 ac_abs_top_builddir=$ac_pwd
17212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17213 # for backward compatibility:
17214 ac_top_builddir=$ac_top_build_prefix
17215
17216 case $srcdir in
17217 .) # We are building in place.
17218 ac_srcdir=.
17219 ac_top_srcdir=$ac_top_builddir_sub
17220 ac_abs_top_srcdir=$ac_pwd ;;
17221 [\\/]* | ?:[\\/]* ) # Absolute name.
17222 ac_srcdir=$srcdir$ac_dir_suffix;
17223 ac_top_srcdir=$srcdir
17224 ac_abs_top_srcdir=$srcdir ;;
17225 *) # Relative name.
17226 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17227 ac_top_srcdir=$ac_top_build_prefix$srcdir
17228 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17229 esac
17230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17231
17232
17233 case $ac_mode in
17234 :F)
17235 #
17236 # CONFIG_FILE
17237 #
17238
17239 case $INSTALL in
17240 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17241 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17242 esac
17243 ac_MKDIR_P=$MKDIR_P
17244 case $MKDIR_P in
17245 [\\/$]* | ?:[\\/]* ) ;;
17246 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17247 esac
17248 _ACEOF
17249
17250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17251 # If the template does not know about datarootdir, expand it.
17252 # FIXME: This hack should be removed a few years after 2.60.
17253 ac_datarootdir_hack=; ac_datarootdir_seen=
17254 ac_sed_dataroot='
17255 /datarootdir/ {
17256 p
17257 q
17258 }
17259 /@datadir@/p
17260 /@docdir@/p
17261 /@infodir@/p
17262 /@localedir@/p
17263 /@mandir@/p'
17264 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17265 *datarootdir*) ac_datarootdir_seen=yes;;
17266 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17268 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17269 _ACEOF
17270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17271 ac_datarootdir_hack='
17272 s&@datadir@&$datadir&g
17273 s&@docdir@&$docdir&g
17274 s&@infodir@&$infodir&g
17275 s&@localedir@&$localedir&g
17276 s&@mandir@&$mandir&g
17277 s&\\\${datarootdir}&$datarootdir&g' ;;
17278 esac
17279 _ACEOF
17280
17281 # Neutralize VPATH when `$srcdir' = `.'.
17282 # Shell code in configure.ac might set extrasub.
17283 # FIXME: do we really want to maintain this feature?
17284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17285 ac_sed_extra="$ac_vpsub
17286 $extrasub
17287 _ACEOF
17288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17289 :t
17290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17291 s|@configure_input@|$ac_sed_conf_input|;t t
17292 s&@top_builddir@&$ac_top_builddir_sub&;t t
17293 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17294 s&@srcdir@&$ac_srcdir&;t t
17295 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17296 s&@top_srcdir@&$ac_top_srcdir&;t t
17297 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17298 s&@builddir@&$ac_builddir&;t t
17299 s&@abs_builddir@&$ac_abs_builddir&;t t
17300 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17301 s&@INSTALL@&$ac_INSTALL&;t t
17302 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17303 $ac_datarootdir_hack
17304 "
17305 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17306 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17307
17308 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17309 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17310 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17311 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17313 which seems to be undefined. Please make sure it is defined" >&5
17314 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17315 which seems to be undefined. Please make sure it is defined" >&2;}
17316
17317 rm -f "$ac_tmp/stdin"
17318 case $ac_file in
17319 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17320 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17321 esac \
17322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17323 ;;
17324 :H)
17325 #
17326 # CONFIG_HEADER
17327 #
17328 if test x"$ac_file" != x-; then
17329 {
17330 printf "%s\n" "/* $configure_input */" >&1 \
17331 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17332 } >"$ac_tmp/config.h" \
17333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17334 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17336 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17337 else
17338 rm -f "$ac_file"
17339 mv "$ac_tmp/config.h" "$ac_file" \
17340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17341 fi
17342 else
17343 printf "%s\n" "/* $configure_input */" >&1 \
17344 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17345 || as_fn_error $? "could not create -" "$LINENO" 5
17346 fi
17347 # Compute "$ac_file"'s index in $config_headers.
17348 _am_arg="$ac_file"
17349 _am_stamp_count=1
17350 for _am_header in $config_headers :; do
17351 case $_am_header in
17352 $_am_arg | $_am_arg:* )
17353 break ;;
17354 * )
17355 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17356 esac
17357 done
17358 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17359 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17360 X"$_am_arg" : 'X\(//\)[^/]' \| \
17361 X"$_am_arg" : 'X\(//\)$' \| \
17362 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17363 printf "%s\n" X"$_am_arg" |
17364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17365 s//\1/
17366 q
17367 }
17368 /^X\(\/\/\)[^/].*/{
17369 s//\1/
17370 q
17371 }
17372 /^X\(\/\/\)$/{
17373 s//\1/
17374 q
17375 }
17376 /^X\(\/\).*/{
17377 s//\1/
17378 q
17379 }
17380 s/.*/./; q'`/stamp-h$_am_stamp_count
17381 ;;
17382
17383 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17384 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17385 ;;
17386 esac
17387
17388
17389 case $ac_file$ac_mode in
17390 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17391 # Older Autoconf quotes --file arguments for eval, but not when files
17392 # are listed without --file. Let's play safe and only enable the eval
17393 # if we detect the quoting.
17394 # TODO: see whether this extra hack can be removed once we start
17395 # requiring Autoconf 2.70 or later.
17396 case $CONFIG_FILES in #(
17397 *\'*) :
17398 eval set x "$CONFIG_FILES" ;; #(
17399 *) :
17400 set x $CONFIG_FILES ;; #(
17401 *) :
17402 ;;
17403 esac
17404 shift
17405 # Used to flag and report bootstrapping failures.
17406 am_rc=0
17407 for am_mf
17408 do
17409 # Strip MF so we end up with the name of the file.
17410 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17411 # Check whether this is an Automake generated Makefile which includes
17412 # dependency-tracking related rules and includes.
17413 # Grep'ing the whole file directly is not great: AIX grep has a line
17414 # limit of 2048, but all sed's we know have understand at least 4000.
17415 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17416 || continue
17417 am_dirpart=`$as_dirname -- "$am_mf" ||
17418 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17419 X"$am_mf" : 'X\(//\)[^/]' \| \
17420 X"$am_mf" : 'X\(//\)$' \| \
17421 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17422 printf "%s\n" X"$am_mf" |
17423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17424 s//\1/
17425 q
17426 }
17427 /^X\(\/\/\)[^/].*/{
17428 s//\1/
17429 q
17430 }
17431 /^X\(\/\/\)$/{
17432 s//\1/
17433 q
17434 }
17435 /^X\(\/\).*/{
17436 s//\1/
17437 q
17438 }
17439 s/.*/./; q'`
17440 am_filepart=`$as_basename -- "$am_mf" ||
17441 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17442 X"$am_mf" : 'X\(//\)$' \| \
17443 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17444 printf "%s\n" X/"$am_mf" |
17445 sed '/^.*\/\([^/][^/]*\)\/*$/{
17446 s//\1/
17447 q
17448 }
17449 /^X\/\(\/\/\)$/{
17450 s//\1/
17451 q
17452 }
17453 /^X\/\(\/\).*/{
17454 s//\1/
17455 q
17456 }
17457 s/.*/./; q'`
17458 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17459 && sed -e '/# am--include-marker/d' "$am_filepart" \
17460 | $MAKE -f - am--depfiles" >&5
17461 (cd "$am_dirpart" \
17462 && sed -e '/# am--include-marker/d' "$am_filepart" \
17463 | $MAKE -f - am--depfiles) >&5 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } || am_rc=$?
17467 done
17468 if test $am_rc -ne 0; then
17469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17470 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17471 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17472 for automatic dependency tracking. If GNU make was not used, consider
17473 re-running the configure script with MAKE=\"gmake\" (or whatever is
17474 necessary). You can also try re-running configure with the
17475 '--disable-dependency-tracking' option to at least be able to build
17476 the package (albeit without support for automatic dependency tracking).
17477 See \`config.log' for more details" "$LINENO" 5; }
17478 fi
17479 { am_dirpart=; unset am_dirpart;}
17480 { am_filepart=; unset am_filepart;}
17481 { am_mf=; unset am_mf;}
17482 { am_rc=; unset am_rc;}
17483 rm -f conftest-deps.mk
17484 }
17485 ;;
17486 "libtool":C)
17487
17488 # See if we are running on zsh, and set the options that allow our
17489 # commands through without removal of \ escapes.
17490 if test -n "${ZSH_VERSION+set}"; then
17491 setopt NO_GLOB_SUBST
17492 fi
17493
17494 cfgfile=${ofile}T
17495 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17496 $RM "$cfgfile"
17497
17498 cat <<_LT_EOF >> "$cfgfile"
17499 #! $SHELL
17500 # Generated automatically by $as_me ($PACKAGE) $VERSION
17501 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17502
17503 # Provide generalized library-building support services.
17504 # Written by Gordon Matzigkeit, 1996
17505
17506 # Copyright (C) 2014 Free Software Foundation, Inc.
17507 # This is free software; see the source for copying conditions. There is NO
17508 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17509
17510 # GNU Libtool is free software; you can redistribute it and/or modify
17511 # it under the terms of the GNU General Public License as published by
17512 # the Free Software Foundation; either version 2 of of the License, or
17513 # (at your option) any later version.
17514 #
17515 # As a special exception to the GNU General Public License, if you
17516 # distribute this file as part of a program or library that is built
17517 # using GNU Libtool, you may include this file under the same
17518 # distribution terms that you use for the rest of that program.
17519 #
17520 # GNU Libtool is distributed in the hope that it will be useful, but
17521 # WITHOUT ANY WARRANTY; without even the implied warranty of
17522 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17523 # GNU General Public License for more details.
17524 #
17525 # You should have received a copy of the GNU General Public License
17526 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17527
17528
17529 # The names of the tagged configurations supported by this script.
17530 available_tags=''
17531
17532 # Configured defaults for sys_lib_dlsearch_path munging.
17533 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17534
17535 # ### BEGIN LIBTOOL CONFIG
17536
17537 # Which release of libtool.m4 was used?
17538 macro_version=$macro_version
17539 macro_revision=$macro_revision
17540
17541 # Whether or not to build static libraries.
17542 build_old_libs=$enable_static
17543
17544 # Whether or not to build shared libraries.
17545 build_libtool_libs=$enable_shared
17546
17547 # What type of objects to build.
17548 pic_mode=$pic_mode
17549
17550 # Whether or not to optimize for fast installation.
17551 fast_install=$enable_fast_install
17552
17553 # Shared archive member basename,for filename based shared library versioning on AIX.
17554 shared_archive_member_spec=$shared_archive_member_spec
17555
17556 # Shell to use when invoking shell scripts.
17557 SHELL=$lt_SHELL
17558
17559 # An echo program that protects backslashes.
17560 ECHO=$lt_ECHO
17561
17562 # The PATH separator for the build system.
17563 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17564
17565 # The host system.
17566 host_alias=$host_alias
17567 host=$host
17568 host_os=$host_os
17569
17570 # The build system.
17571 build_alias=$build_alias
17572 build=$build
17573 build_os=$build_os
17574
17575 # A sed program that does not truncate output.
17576 SED=$lt_SED
17577
17578 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17579 Xsed="\$SED -e 1s/^X//"
17580
17581 # A grep program that handles long lines.
17582 GREP=$lt_GREP
17583
17584 # An ERE matcher.
17585 EGREP=$lt_EGREP
17586
17587 # A literal string matcher.
17588 FGREP=$lt_FGREP
17589
17590 # A BSD- or MS-compatible name lister.
17591 NM=$lt_NM
17592
17593 # Whether we need soft or hard links.
17594 LN_S=$lt_LN_S
17595
17596 # What is the maximum length of a command?
17597 max_cmd_len=$max_cmd_len
17598
17599 # Object file suffix (normally "o").
17600 objext=$ac_objext
17601
17602 # Executable file suffix (normally "").
17603 exeext=$exeext
17604
17605 # whether the shell understands "unset".
17606 lt_unset=$lt_unset
17607
17608 # turn spaces into newlines.
17609 SP2NL=$lt_lt_SP2NL
17610
17611 # turn newlines into spaces.
17612 NL2SP=$lt_lt_NL2SP
17613
17614 # convert \$build file names to \$host format.
17615 to_host_file_cmd=$lt_cv_to_host_file_cmd
17616
17617 # convert \$build files to toolchain format.
17618 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17619
17620 # An object symbol dumper.
17621 OBJDUMP=$lt_OBJDUMP
17622
17623 # Method to check whether dependent libraries are shared objects.
17624 deplibs_check_method=$lt_deplibs_check_method
17625
17626 # Command to use when deplibs_check_method = "file_magic".
17627 file_magic_cmd=$lt_file_magic_cmd
17628
17629 # How to find potential files when deplibs_check_method = "file_magic".
17630 file_magic_glob=$lt_file_magic_glob
17631
17632 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17633 want_nocaseglob=$lt_want_nocaseglob
17634
17635 # DLL creation program.
17636 DLLTOOL=$lt_DLLTOOL
17637
17638 # Command to associate shared and link libraries.
17639 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17640
17641 # The archiver.
17642 AR=$lt_AR
17643
17644 # Flags to create an archive.
17645 AR_FLAGS=$lt_AR_FLAGS
17646
17647 # How to feed a file listing to the archiver.
17648 archiver_list_spec=$lt_archiver_list_spec
17649
17650 # A symbol stripping program.
17651 STRIP=$lt_STRIP
17652
17653 # Commands used to install an old-style archive.
17654 RANLIB=$lt_RANLIB
17655 old_postinstall_cmds=$lt_old_postinstall_cmds
17656 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17657
17658 # Whether to use a lock for old archive extraction.
17659 lock_old_archive_extraction=$lock_old_archive_extraction
17660
17661 # A C compiler.
17662 LTCC=$lt_CC
17663
17664 # LTCC compiler flags.
17665 LTCFLAGS=$lt_CFLAGS
17666
17667 # Take the output of nm and produce a listing of raw symbols and C names.
17668 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17669
17670 # Transform the output of nm in a proper C declaration.
17671 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17672
17673 # Transform the output of nm into a list of symbols to manually relocate.
17674 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17675
17676 # Transform the output of nm in a C name address pair.
17677 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17678
17679 # Transform the output of nm in a C name address pair when lib prefix is needed.
17680 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17681
17682 # The name lister interface.
17683 nm_interface=$lt_lt_cv_nm_interface
17684
17685 # Specify filename containing input files for \$NM.
17686 nm_file_list_spec=$lt_nm_file_list_spec
17687
17688 # The root where to search for dependent libraries,and where our libraries should be installed.
17689 lt_sysroot=$lt_sysroot
17690
17691 # Command to truncate a binary pipe.
17692 lt_truncate_bin=$lt_lt_cv_truncate_bin
17693
17694 # The name of the directory that contains temporary libtool files.
17695 objdir=$objdir
17696
17697 # Used to examine libraries when file_magic_cmd begins with "file".
17698 MAGIC_CMD=$MAGIC_CMD
17699
17700 # Must we lock files when doing compilation?
17701 need_locks=$lt_need_locks
17702
17703 # Manifest tool.
17704 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17705
17706 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17707 DSYMUTIL=$lt_DSYMUTIL
17708
17709 # Tool to change global to local symbols on Mac OS X.
17710 NMEDIT=$lt_NMEDIT
17711
17712 # Tool to manipulate fat objects and archives on Mac OS X.
17713 LIPO=$lt_LIPO
17714
17715 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17716 OTOOL=$lt_OTOOL
17717
17718 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17719 OTOOL64=$lt_OTOOL64
17720
17721 # Old archive suffix (normally "a").
17722 libext=$libext
17723
17724 # Shared library suffix (normally ".so").
17725 shrext_cmds=$lt_shrext_cmds
17726
17727 # The commands to extract the exported symbol list from a shared archive.
17728 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17729
17730 # Variables whose values should be saved in libtool wrapper scripts and
17731 # restored at link time.
17732 variables_saved_for_relink=$lt_variables_saved_for_relink
17733
17734 # Do we need the "lib" prefix for modules?
17735 need_lib_prefix=$need_lib_prefix
17736
17737 # Do we need a version for libraries?
17738 need_version=$need_version
17739
17740 # Library versioning type.
17741 version_type=$version_type
17742
17743 # Shared library runtime path variable.
17744 runpath_var=$runpath_var
17745
17746 # Shared library path variable.
17747 shlibpath_var=$shlibpath_var
17748
17749 # Is shlibpath searched before the hard-coded library search path?
17750 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17751
17752 # Format of library name prefix.
17753 libname_spec=$lt_libname_spec
17754
17755 # List of archive names. First name is the real one, the rest are links.
17756 # The last name is the one that the linker finds with -lNAME
17757 library_names_spec=$lt_library_names_spec
17758
17759 # The coded name of the library, if different from the real name.
17760 soname_spec=$lt_soname_spec
17761
17762 # Permission mode override for installation of shared libraries.
17763 install_override_mode=$lt_install_override_mode
17764
17765 # Command to use after installation of a shared archive.
17766 postinstall_cmds=$lt_postinstall_cmds
17767
17768 # Command to use after uninstallation of a shared archive.
17769 postuninstall_cmds=$lt_postuninstall_cmds
17770
17771 # Commands used to finish a libtool library installation in a directory.
17772 finish_cmds=$lt_finish_cmds
17773
17774 # As "finish_cmds", except a single script fragment to be evaled but
17775 # not shown.
17776 finish_eval=$lt_finish_eval
17777
17778 # Whether we should hardcode library paths into libraries.
17779 hardcode_into_libs=$hardcode_into_libs
17780
17781 # Compile-time system search path for libraries.
17782 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17783
17784 # Detected run-time system search path for libraries.
17785 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17786
17787 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17788 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17789
17790 # Whether dlopen is supported.
17791 dlopen_support=$enable_dlopen
17792
17793 # Whether dlopen of programs is supported.
17794 dlopen_self=$enable_dlopen_self
17795
17796 # Whether dlopen of statically linked programs is supported.
17797 dlopen_self_static=$enable_dlopen_self_static
17798
17799 # Commands to strip libraries.
17800 old_striplib=$lt_old_striplib
17801 striplib=$lt_striplib
17802
17803
17804 # The linker used to build libraries.
17805 LD=$lt_LD
17806
17807 # How to create reloadable object files.
17808 reload_flag=$lt_reload_flag
17809 reload_cmds=$lt_reload_cmds
17810
17811 # Commands used to build an old-style archive.
17812 old_archive_cmds=$lt_old_archive_cmds
17813
17814 # A language specific compiler.
17815 CC=$lt_compiler
17816
17817 # Is the compiler the GNU compiler?
17818 with_gcc=$GCC
17819
17820 # Compiler flag to turn off builtin functions.
17821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17822
17823 # Additional compiler flags for building library objects.
17824 pic_flag=$lt_lt_prog_compiler_pic
17825
17826 # How to pass a linker flag through the compiler.
17827 wl=$lt_lt_prog_compiler_wl
17828
17829 # Compiler flag to prevent dynamic linking.
17830 link_static_flag=$lt_lt_prog_compiler_static
17831
17832 # Does compiler simultaneously support -c and -o options?
17833 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17834
17835 # Whether or not to add -lc for building shared libraries.
17836 build_libtool_need_lc=$archive_cmds_need_lc
17837
17838 # Whether or not to disallow shared libs when runtime libs are static.
17839 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17840
17841 # Compiler flag to allow reflexive dlopens.
17842 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17843
17844 # Compiler flag to generate shared objects directly from archives.
17845 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17846
17847 # Whether the compiler copes with passing no objects directly.
17848 compiler_needs_object=$lt_compiler_needs_object
17849
17850 # Create an old-style archive from a shared archive.
17851 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17852
17853 # Create a temporary old-style archive to link instead of a shared archive.
17854 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17855
17856 # Commands used to build a shared archive.
17857 archive_cmds=$lt_archive_cmds
17858 archive_expsym_cmds=$lt_archive_expsym_cmds
17859
17860 # Commands used to build a loadable module if different from building
17861 # a shared archive.
17862 module_cmds=$lt_module_cmds
17863 module_expsym_cmds=$lt_module_expsym_cmds
17864
17865 # Whether we are building with GNU ld or not.
17866 with_gnu_ld=$lt_with_gnu_ld
17867
17868 # Flag that allows shared libraries with undefined symbols to be built.
17869 allow_undefined_flag=$lt_allow_undefined_flag
17870
17871 # Flag that enforces no undefined symbols.
17872 no_undefined_flag=$lt_no_undefined_flag
17873
17874 # Flag to hardcode \$libdir into a binary during linking.
17875 # This must work even if \$libdir does not exist
17876 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17877
17878 # Whether we need a single "-rpath" flag with a separated argument.
17879 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17880
17881 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17882 # DIR into the resulting binary.
17883 hardcode_direct=$hardcode_direct
17884
17885 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17886 # DIR into the resulting binary and the resulting library dependency is
17887 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17888 # library is relocated.
17889 hardcode_direct_absolute=$hardcode_direct_absolute
17890
17891 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17892 # into the resulting binary.
17893 hardcode_minus_L=$hardcode_minus_L
17894
17895 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17896 # into the resulting binary.
17897 hardcode_shlibpath_var=$hardcode_shlibpath_var
17898
17899 # Set to "yes" if building a shared library automatically hardcodes DIR
17900 # into the library and all subsequent libraries and executables linked
17901 # against it.
17902 hardcode_automatic=$hardcode_automatic
17903
17904 # Set to yes if linker adds runtime paths of dependent libraries
17905 # to runtime path list.
17906 inherit_rpath=$inherit_rpath
17907
17908 # Whether libtool must link a program against all its dependency libraries.
17909 link_all_deplibs=$link_all_deplibs
17910
17911 # Set to "yes" if exported symbols are required.
17912 always_export_symbols=$always_export_symbols
17913
17914 # The commands to list exported symbols.
17915 export_symbols_cmds=$lt_export_symbols_cmds
17916
17917 # Symbols that should not be listed in the preloaded symbols.
17918 exclude_expsyms=$lt_exclude_expsyms
17919
17920 # Symbols that must always be exported.
17921 include_expsyms=$lt_include_expsyms
17922
17923 # Commands necessary for linking programs (against libraries) with templates.
17924 prelink_cmds=$lt_prelink_cmds
17925
17926 # Commands necessary for finishing linking programs.
17927 postlink_cmds=$lt_postlink_cmds
17928
17929 # Specify filename containing input files.
17930 file_list_spec=$lt_file_list_spec
17931
17932 # How to hardcode a shared library path into an executable.
17933 hardcode_action=$hardcode_action
17934
17935 # ### END LIBTOOL CONFIG
17936
17937 _LT_EOF
17938
17939 cat <<'_LT_EOF' >> "$cfgfile"
17940
17941 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17942
17943 # func_munge_path_list VARIABLE PATH
17944 # -----------------------------------
17945 # VARIABLE is name of variable containing _space_ separated list of
17946 # directories to be munged by the contents of PATH, which is string
17947 # having a format:
17948 # "DIR[:DIR]:"
17949 # string "DIR[ DIR]" will be prepended to VARIABLE
17950 # ":DIR[:DIR]"
17951 # string "DIR[ DIR]" will be appended to VARIABLE
17952 # "DIRP[:DIRP]::[DIRA:]DIRA"
17953 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17954 # "DIRA[ DIRA]" will be appended to VARIABLE
17955 # "DIR[:DIR]"
17956 # VARIABLE will be replaced by "DIR[ DIR]"
17957 func_munge_path_list ()
17958 {
17959 case x$2 in
17960 x)
17961 ;;
17962 *:)
17963 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17964 ;;
17965 x:*)
17966 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17967 ;;
17968 *::*)
17969 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17970 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17971 ;;
17972 *)
17973 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17974 ;;
17975 esac
17976 }
17977
17978
17979 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17980 func_cc_basename ()
17981 {
17982 for cc_temp in $*""; do
17983 case $cc_temp in
17984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17986 \-*) ;;
17987 *) break;;
17988 esac
17989 done
17990 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17991 }
17992
17993
17994 # ### END FUNCTIONS SHARED WITH CONFIGURE
17995
17996 _LT_EOF
17997
17998 case $host_os in
17999 aix3*)
18000 cat <<\_LT_EOF >> "$cfgfile"
18001 # AIX sometimes has problems with the GCC collect2 program. For some
18002 # reason, if we set the COLLECT_NAMES environment variable, the problems
18003 # vanish in a puff of smoke.
18004 if test set != "${COLLECT_NAMES+set}"; then
18005 COLLECT_NAMES=
18006 export COLLECT_NAMES
18007 fi
18008 _LT_EOF
18009 ;;
18010 esac
18011
18012
18013
18014 ltmain=$ac_aux_dir/ltmain.sh
18015
18016
18017 # We use sed instead of cat because bash on DJGPP gets confused if
18018 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18019 # text mode, it properly converts lines to CR/LF. This bash problem
18020 # is reportedly fixed, but why not run on old versions too?
18021 sed '$q' "$ltmain" >> "$cfgfile" \
18022 || (rm -f "$cfgfile"; exit 1)
18023
18024 mv -f "$cfgfile" "$ofile" ||
18025 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18026 chmod +x "$ofile"
18027
18028 ;;
18029
18030 esac
18031 done # for ac_tag
18032
18033
18034 as_fn_exit 0
18035 _ACEOF
18036 ac_clean_files=$ac_clean_files_save
18037
18038 test $ac_write_fail = 0 ||
18039 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18040
18041
18042 # configure is writing to config.log, and then calls config.status.
18043 # config.status does its own redirection, appending to config.log.
18044 # Unfortunately, on DOS this fails, as config.log is still kept open
18045 # by configure, so config.status won't be able to write to it; its
18046 # output is simply discarded. So we exec the FD to /dev/null,
18047 # effectively closing config.log, so it can be properly (re)opened and
18048 # appended to by config.status. When coming back to configure, we
18049 # need to make the FD available again.
18050 if test "$no_create" != yes; then
18051 ac_cs_success=:
18052 ac_config_status_args=
18053 test "$silent" = yes &&
18054 ac_config_status_args="$ac_config_status_args --quiet"
18055 exec 5>/dev/null
18056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18057 exec 5>>config.log
18058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18059 # would make configure fail if this is the last instruction.
18060 $ac_cs_success || as_fn_exit 1
18061 fi
18062 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18064 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18065 fi
18066
18067