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 libusb-1.0 1.0.30.
4 #
5 # Report bugs to <[email protected]>.
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: [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: 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='libusb-1.0'
623 PACKAGE_TARNAME='libusb-1.0'
624 PACKAGE_VERSION='1.0.30'
625 PACKAGE_STRING='libusb-1.0 1.0.30'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL='https://libusb.info'
628
629 ac_unique_file="libusb/core.c"
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 DOXYGEN_HTMLDIR
667 EXTRA_LDFLAGS
668 AM_LDFLAGS
669 LT_LDFLAGS
670 AM_CXXFLAGS
671 AM_CFLAGS
672 AM_CPPFLAGS
673 LIBUSB_WINDOWS_HOTPLUG_FALSE
674 LIBUSB_WINDOWS_HOTPLUG_TRUE
675 USE_UDEV_FALSE
676 USE_UDEV_TRUE
677 PLATFORM_WINDOWS_FALSE
678 PLATFORM_WINDOWS_TRUE
679 PLATFORM_POSIX_FALSE
680 PLATFORM_POSIX_TRUE
681 OS_EMSCRIPTEN_FALSE
682 OS_EMSCRIPTEN_TRUE
683 OS_WINDOWS_FALSE
684 OS_WINDOWS_TRUE
685 OS_SUNOS_FALSE
686 OS_SUNOS_TRUE
687 OS_OPENBSD_FALSE
688 OS_OPENBSD_TRUE
689 OS_NULL_FALSE
690 OS_NULL_TRUE
691 OS_NETBSD_FALSE
692 OS_NETBSD_TRUE
693 OS_LINUX_FALSE
694 OS_LINUX_TRUE
695 OS_HAIKU_FALSE
696 OS_HAIKU_TRUE
697 OS_DARWIN_FALSE
698 OS_DARWIN_TRUE
699 CREATE_IMPORT_LIB_FALSE
700 CREATE_IMPORT_LIB_TRUE
701 BUILD_UMOCKDEV_TEST_FALSE
702 BUILD_UMOCKDEV_TEST_TRUE
703 BUILD_TESTS_FALSE
704 BUILD_TESTS_TRUE
705 BUILD_EXAMPLES_FALSE
706 BUILD_EXAMPLES_TRUE
707 UMOCKDEV_HOTPLUG_LIBS
708 UMOCKDEV_HOTPLUG_CFLAGS
709 UMOCKDEV_LIBS
710 UMOCKDEV_CFLAGS
711 PKG_CONFIG_LIBDIR
712 PKG_CONFIG_PATH
713 PKG_CONFIG
714 THREAD_LIBS
715 THREAD_CFLAGS
716 RC
717 CXXCPP
718 LT_SYS_LIBRARY_PATH
719 OTOOL64
720 OTOOL
721 LIPO
722 NMEDIT
723 DSYMUTIL
724 MANIFEST_TOOL
725 RANLIB
726 ac_ct_AR
727 AR
728 DLLTOOL
729 OBJDUMP
730 FILECMD
731 LN_S
732 NM
733 ac_ct_DUMPBIN
734 DUMPBIN
735 LD
736 FGREP
737 EGREP
738 GREP
739 SED
740 host_os
741 host_vendor
742 host_cpu
743 host
744 build_os
745 build_vendor
746 build_cpu
747 build
748 LIBTOOL
749 AM_BACKSLASH
750 AM_DEFAULT_VERBOSITY
751 AM_DEFAULT_V
752 AM_V
753 CSCOPE
754 ETAGS
755 CTAGS
756 am__fastdepCXX_FALSE
757 am__fastdepCXX_TRUE
758 CXXDEPMODE
759 am__fastdepCC_FALSE
760 am__fastdepCC_TRUE
761 CCDEPMODE
762 am__nodep
763 AMDEPBACKSLASH
764 AMDEP_FALSE
765 AMDEP_TRUE
766 am__include
767 DEPDIR
768 am__untar
769 am__tar
770 AMTAR
771 am__leading_dot
772 SET_MAKE
773 AWK
774 mkdir_p
775 MKDIR_P
776 INSTALL_STRIP_PROGRAM
777 STRIP
778 install_sh
779 MAKEINFO
780 AUTOHEADER
781 AUTOMAKE
782 AUTOCONF
783 ACLOCAL
784 VERSION
785 PACKAGE
786 CYGPATH_W
787 am__isrc
788 INSTALL_DATA
789 INSTALL_SCRIPT
790 INSTALL_PROGRAM
791 ac_ct_CXX
792 CXXFLAGS
793 CXX
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 target_alias
802 host_alias
803 build_alias
804 LIBS
805 ECHO_T
806 ECHO_N
807 ECHO_C
808 DEFS
809 mandir
810 localedir
811 libdir
812 psdir
813 pdfdir
814 dvidir
815 htmldir
816 infodir
817 docdir
818 oldincludedir
819 includedir
820 runstatedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL
840 am__quote'
841 ac_subst_files=''
842 ac_user_opts='
843 enable_option_checking
844 enable_dependency_tracking
845 enable_silent_rules
846 enable_shared
847 enable_static
848 with_pic
849 enable_fast_install
850 with_aix_soname
851 with_gnu_ld
852 with_sysroot
853 enable_libtool_lock
854 enable_udev
855 enable_eventfd
856 enable_timerfd
857 enable_log
858 enable_debug_log
859 enable_system_log
860 enable_examples_build
861 enable_tests_build
862 enable_windows_hotplug
863 '
864 ac_precious_vars='build_alias
865 host_alias
866 target_alias
867 CC
868 CFLAGS
869 LDFLAGS
870 LIBS
871 CPPFLAGS
872 CXX
873 CXXFLAGS
874 CCC
875 LT_SYS_LIBRARY_PATH
876 CXXCPP
877 PKG_CONFIG
878 PKG_CONFIG_PATH
879 PKG_CONFIG_LIBDIR
880 UMOCKDEV_CFLAGS
881 UMOCKDEV_LIBS
882 UMOCKDEV_HOTPLUG_CFLAGS
883 UMOCKDEV_HOTPLUG_LIBS'
884
885
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
907
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 runstatedir='${localstatedir}/run'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
944 fi
945
946 case $ac_option in
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
950 esac
951
952 case $ac_dashdash$ac_option in
953 --)
954 ac_dashdash=yes ;;
955
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 bindir=$ac_optarg ;;
960
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
965
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
972
973 --config-cache | -C)
974 cache_file=config.cache ;;
975
976 -datadir | --datadir | --datadi | --datad)
977 ac_prev=datadir ;;
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
980
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
987
988 -disable-* | --disable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: \`$ac_useropt'"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997 "enable_$ac_useropt"
998 "*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=no ;;
1003
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1008
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1013
1014 -enable-* | --enable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=\$ac_optarg ;;
1029
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1038
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1042
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1049
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1054
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1060
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1067
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1072
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1077
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1084
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1089
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1096
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1101
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1105
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1109
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1113
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1122
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1127
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1134
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1141
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1158
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1163
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1168
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1172
1173 -runstatedir | --runstatedir | --runstatedi | --runstated \
1174 | --runstate | --runstat | --runsta | --runst | --runs \
1175 | --run | --ru | --r)
1176 ac_prev=runstatedir ;;
1177 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1178 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1179 | --run=* | --ru=* | --r=*)
1180 runstatedir=$ac_optarg ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1226
1227 -with-* | --with-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: \`$ac_useropt'"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=\$ac_optarg ;;
1242
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: \`$ac_useropt'"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
1258
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1262
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1269
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1276
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1279 ;;
1280
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287 esac
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1290
1291 *)
1292 # FIXME: should be removed in autoconf 3.0.
1293 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297 ;;
1298
1299 esac
1300 done
1301
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $? "missing argument to $ac_option"
1305 fi
1306
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 esac
1313 fi
1314
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir runstatedir
1320 do
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 done
1335
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1342
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1349 fi
1350 fi
1351
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355 test "$silent" = yes && exec 6>/dev/null
1356
1357
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $? "pwd does not report name of working directory"
1364
1365
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 printf "%s\n" X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)$/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\).*/{
1389 s//\1/
1390 q
1391 }
1392 s/.*/./; q'`
1393 srcdir=$ac_confdir
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1396 fi
1397 else
1398 ac_srcdir_defaulted=no
1399 fi
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1403 fi
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407 pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 srcdir=.
1411 fi
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1424
1425 #
1426 # Report the --help message.
1427 #
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432 \`configure' configures libusb-1.0 1.0.30 to adapt to many kinds of systems.
1433
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439 Defaults for the options are specified in brackets.
1440
1441 Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 [PREFIX]
1457
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1462
1463 For better control, use the options below.
1464
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/libusb-1.0]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1486 _ACEOF
1487
1488 cat <<\_ACEOF
1489
1490 Program names:
1491 --program-prefix=PREFIX prepend PREFIX to installed program names
1492 --program-suffix=SUFFIX append SUFFIX to installed program names
1493 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1494
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 _ACEOF
1499 fi
1500
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive ) echo "Configuration of libusb-1.0 1.0.30:";;
1504 esac
1505 cat <<\_ACEOF
1506
1507 Optional Features:
1508 --disable-option-checking ignore unrecognized --enable/--with options
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1511 --enable-dependency-tracking
1512 do not reject slow dependency extractors
1513 --disable-dependency-tracking
1514 speeds up one-time build
1515 --enable-silent-rules less verbose build output (undo: "make V=1")
1516 --disable-silent-rules verbose build output (undo: "make V=0")
1517 --enable-shared[=PKGS] build shared libraries [default=yes]
1518 --enable-static[=PKGS] build static libraries [default=yes]
1519 --enable-fast-install[=PKGS]
1520 optimize for fast installation [default=yes]
1521 --disable-libtool-lock avoid locking (might break parallel builds)
1522 --enable-udev use udev for device enumeration and hotplug support
1523 (recommended) [default=yes]
1524 --enable-eventfd use eventfd for signalling [default=auto]
1525 --enable-timerfd use timerfd for timing [default=auto]
1526 --disable-log disable all logging
1527 --enable-debug-log start with debug message logging enabled
1528 [default=no]
1529 --enable-system-log output logging messages to the systemwide log, if
1530 supported by the OS [default=no]
1531 --enable-examples-build build example applications [default=no]
1532 --enable-tests-build build test applications [default=no]
1533 --enable-windows-hotplug
1534 Enable Windows hotplug support
1535
1536 Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1540 both]
1541 --with-aix-soname=aix|svr4|both
1542 shared library versioning (aka "SONAME") variant to
1543 provide on AIX, [default=aix].
1544 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1546 compiler's sysroot if not specified).
1547
1548 Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1556 CXX C++ compiler command
1557 CXXFLAGS C++ compiler flags
1558 LT_SYS_LIBRARY_PATH
1559 User-defined run-time library search path.
1560 CXXCPP C++ preprocessor
1561 PKG_CONFIG path to pkg-config utility
1562 PKG_CONFIG_PATH
1563 directories to add to pkg-config's search path
1564 PKG_CONFIG_LIBDIR
1565 path overriding pkg-config's built-in search path
1566 UMOCKDEV_CFLAGS
1567 C compiler flags for UMOCKDEV, overriding pkg-config
1568 UMOCKDEV_LIBS
1569 linker flags for UMOCKDEV, overriding pkg-config
1570 UMOCKDEV_HOTPLUG_CFLAGS
1571 C compiler flags for UMOCKDEV_HOTPLUG, overriding pkg-config
1572 UMOCKDEV_HOTPLUG_LIBS
1573 linker flags for UMOCKDEV_HOTPLUG, overriding pkg-config
1574
1575 Use these variables to override the choices made by `configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1577
1578 Report bugs to <[email protected]>.
1579 libusb-1.0 home page: <https://libusb.info>.
1580 _ACEOF
1581 ac_status=$?
1582 fi
1583
1584 if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587 test -d "$ac_dir" ||
1588 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589 continue
1590 ac_builddir=.
1591
1592 case "$ac_dir" in
1593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *)
1595 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1596 # A ".." for each directory in $ac_dir_suffix.
1597 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601 esac ;;
1602 esac
1603 ac_abs_top_builddir=$ac_pwd
1604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605 # for backward compatibility:
1606 ac_top_builddir=$ac_top_build_prefix
1607
1608 case $srcdir in
1609 .) # We are building in place.
1610 ac_srcdir=.
1611 ac_top_srcdir=$ac_top_builddir_sub
1612 ac_abs_top_srcdir=$ac_pwd ;;
1613 [\\/]* | ?:[\\/]* ) # Absolute name.
1614 ac_srcdir=$srcdir$ac_dir_suffix;
1615 ac_top_srcdir=$srcdir
1616 ac_abs_top_srcdir=$srcdir ;;
1617 *) # Relative name.
1618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 esac
1622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623
1624 cd "$ac_dir" || { ac_status=$?; continue; }
1625 # Check for configure.gnu first; this name is used for a wrapper for
1626 # Metaconfig's "Configure" on case-insensitive file systems.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
1633 else
1634 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
1637 done
1638 fi
1639
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1642 cat <<\_ACEOF
1643 libusb-1.0 configure 1.0.30
1644 generated by GNU Autoconf 2.71
1645
1646 Copyright (C) 2021 Free Software Foundation, Inc.
1647 This configure script is free software; the Free Software Foundation
1648 gives unlimited permission to copy, distribute and modify it.
1649 _ACEOF
1650 exit
1651 fi
1652
1653 ## ------------------------ ##
1654 ## Autoconf initialization. ##
1655 ## ------------------------ ##
1656
1657 # ac_fn_c_try_compile LINENO
1658 # --------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_compile ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext conftest.beam
1664 if { { ac_try="$ac_compile"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 printf "%s\n" "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext
1683 then :
1684 ac_retval=0
1685 else $as_nop
1686 printf "%s\n" "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_compile
1695
1696 # ac_fn_cxx_try_compile LINENO
1697 # ----------------------------
1698 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_cxx_try_compile ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 rm -f conftest.$ac_objext conftest.beam
1703 if { { ac_try="$ac_compile"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 printf "%s\n" "$ac_try_echo"; } >&5
1710 (eval "$ac_compile") 2>conftest.err
1711 ac_status=$?
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1716 fi
1717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && {
1719 test -z "$ac_cxx_werror_flag" ||
1720 test ! -s conftest.err
1721 } && test -s conftest.$ac_objext
1722 then :
1723 ac_retval=0
1724 else $as_nop
1725 printf "%s\n" "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729 fi
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_cxx_try_compile
1734
1735 # ac_fn_c_try_link LINENO
1736 # -----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_link ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 printf "%s\n" "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 test -x conftest$ac_exeext
1763 }
1764 then :
1765 ac_retval=0
1766 else $as_nop
1767 printf "%s\n" "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1
1771 fi
1772 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1773 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1774 # interfere with the next link command; also delete a directory that is
1775 # left behind by Apple's compiler. We do this before executing the actions.
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_link
1781
1782 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1783 # -------------------------------------------------------
1784 # Tests whether HEADER exists and can be compiled using the include files in
1785 # INCLUDES, setting the cache variable VAR accordingly.
1786 ac_fn_c_check_header_compile ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 printf %s "checking for $2... " >&6; }
1791 if eval test \${$3+y}
1792 then :
1793 printf %s "(cached) " >&6
1794 else $as_nop
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 $4
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"
1801 then :
1802 eval "$3=yes"
1803 else $as_nop
1804 eval "$3=no"
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1807 fi
1808 eval ac_res=\$$3
1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 printf "%s\n" "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813 } # ac_fn_c_check_header_compile
1814
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 printf %s "checking for $2... " >&6; }
1823 if eval test \${$3+y}
1824 then :
1825 printf %s "(cached) " >&6
1826 else $as_nop
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831 #define $2 innocuous_$2
1832
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below. */
1835
1836 #include <limits.h>
1837 #undef $2
1838
1839 /* Override any GCC internal prototype to avoid an error.
1840 Use char because int might match the return type of a GCC
1841 builtin and then its argument prototype would still apply. */
1842 #ifdef __cplusplus
1843 extern "C"
1844 #endif
1845 char $2 ();
1846 /* The GNU C library defines this for functions which it implements
1847 to always fail with ENOSYS. Some functions are actually named
1848 something starting with __ and the normal name is an alias. */
1849 #if defined __stub_$2 || defined __stub___$2
1850 choke me
1851 #endif
1852
1853 int
1854 main (void)
1855 {
1856 return $2 ();
1857 ;
1858 return 0;
1859 }
1860 _ACEOF
1861 if ac_fn_c_try_link "$LINENO"
1862 then :
1863 eval "$3=yes"
1864 else $as_nop
1865 eval "$3=no"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1868 conftest$ac_exeext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 printf "%s\n" "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875 } # ac_fn_c_check_func
1876
1877 # ac_fn_cxx_try_cpp LINENO
1878 # ------------------------
1879 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_cxx_try_cpp ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { { ac_try="$ac_cpp conftest.$ac_ext"
1884 case "(($ac_try" in
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 printf "%s\n" "$ac_try_echo"; } >&5
1890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1891 ac_status=$?
1892 if test -s conftest.err; then
1893 grep -v '^ *+' conftest.err >conftest.er1
1894 cat conftest.er1 >&5
1895 mv -f conftest.er1 conftest.err
1896 fi
1897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } > conftest.i && {
1899 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1900 test ! -s conftest.err
1901 }
1902 then :
1903 ac_retval=0
1904 else $as_nop
1905 printf "%s\n" "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909 fi
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911 as_fn_set_status $ac_retval
1912
1913 } # ac_fn_cxx_try_cpp
1914
1915 # ac_fn_cxx_try_link LINENO
1916 # -------------------------
1917 # Try to link conftest.$ac_ext, and return whether this succeeded.
1918 ac_fn_cxx_try_link ()
1919 {
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1922 if { { ac_try="$ac_link"
1923 case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 printf "%s\n" "$ac_try_echo"; } >&5
1929 (eval "$ac_link") 2>conftest.err
1930 ac_status=$?
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1935 fi
1936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } && {
1938 test -z "$ac_cxx_werror_flag" ||
1939 test ! -s conftest.err
1940 } && test -s conftest$ac_exeext && {
1941 test "$cross_compiling" = yes ||
1942 test -x conftest$ac_exeext
1943 }
1944 then :
1945 ac_retval=0
1946 else $as_nop
1947 printf "%s\n" "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 ac_retval=1
1951 fi
1952 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1953 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1954 # interfere with the next link command; also delete a directory that is
1955 # left behind by Apple's compiler. We do this before executing the actions.
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 as_fn_set_status $ac_retval
1959
1960 } # ac_fn_cxx_try_link
1961
1962 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1963 # -------------------------------------------
1964 # Tests whether TYPE exists after having included INCLUDES, setting cache
1965 # variable VAR accordingly.
1966 ac_fn_c_check_type ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 printf %s "checking for $2... " >&6; }
1971 if eval test \${$3+y}
1972 then :
1973 printf %s "(cached) " >&6
1974 else $as_nop
1975 eval "$3=no"
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 $4
1979 int
1980 main (void)
1981 {
1982 if (sizeof ($2))
1983 return 0;
1984 ;
1985 return 0;
1986 }
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"
1989 then :
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 $4
1993 int
1994 main (void)
1995 {
1996 if (sizeof (($2)))
1997 return 0;
1998 ;
1999 return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"
2003 then :
2004
2005 else $as_nop
2006 eval "$3=yes"
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2011 fi
2012 eval ac_res=\$$3
2013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 printf "%s\n" "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017 } # ac_fn_c_check_type
2018
2019 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2020 # ------------------------------------------------------------------
2021 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2022 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2023 ac_fn_check_decl ()
2024 {
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 as_decl_name=`echo $2|sed 's/ *(.*//'`
2027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2028 printf %s "checking whether $as_decl_name is declared... " >&6; }
2029 if eval test \${$3+y}
2030 then :
2031 printf %s "(cached) " >&6
2032 else $as_nop
2033 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2034 eval ac_save_FLAGS=\$$6
2035 as_fn_append $6 " $5"
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2038 $4
2039 int
2040 main (void)
2041 {
2042 #ifndef $as_decl_name
2043 #ifdef __cplusplus
2044 (void) $as_decl_use;
2045 #else
2046 (void) $as_decl_name;
2047 #endif
2048 #endif
2049
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"
2055 then :
2056 eval "$3=yes"
2057 else $as_nop
2058 eval "$3=no"
2059 fi
2060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2061 eval $6=\$ac_save_FLAGS
2062
2063 fi
2064 eval ac_res=\$$3
2065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 printf "%s\n" "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068
2069 } # ac_fn_check_decl
2070 ac_configure_args_raw=
2071 for ac_arg
2072 do
2073 case $ac_arg in
2074 *\'*)
2075 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2076 esac
2077 as_fn_append ac_configure_args_raw " '$ac_arg'"
2078 done
2079
2080 case $ac_configure_args_raw in
2081 *$as_nl*)
2082 ac_safe_unquote= ;;
2083 *)
2084 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2085 ac_unsafe_a="$ac_unsafe_z#~"
2086 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2087 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2088 esac
2089
2090 cat >config.log <<_ACEOF
2091 This file contains any messages produced by compilers while
2092 running configure, to aid debugging if configure makes a mistake.
2093
2094 It was created by libusb-1.0 $as_me 1.0.30, which was
2095 generated by GNU Autoconf 2.71. Invocation command line was
2096
2097 $ $0$ac_configure_args_raw
2098
2099 _ACEOF
2100 exec 5>>config.log
2101 {
2102 cat <<_ASUNAME
2103 ## --------- ##
2104 ## Platform. ##
2105 ## --------- ##
2106
2107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2112
2113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2115
2116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2123
2124 _ASUNAME
2125
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129 IFS=$as_save_IFS
2130 case $as_dir in #(((
2131 '') as_dir=./ ;;
2132 */) ;;
2133 *) as_dir=$as_dir/ ;;
2134 esac
2135 printf "%s\n" "PATH: $as_dir"
2136 done
2137 IFS=$as_save_IFS
2138
2139 } >&5
2140
2141 cat >&5 <<_ACEOF
2142
2143
2144 ## ----------- ##
2145 ## Core tests. ##
2146 ## ----------- ##
2147
2148 _ACEOF
2149
2150
2151 # Keep a trace of the command line.
2152 # Strip out --no-create and --no-recursion so they do not pile up.
2153 # Strip out --silent because we don't want to record it for future runs.
2154 # Also quote any args containing shell meta-characters.
2155 # Make two passes to allow for proper duplicate-argument suppression.
2156 ac_configure_args=
2157 ac_configure_args0=
2158 ac_configure_args1=
2159 ac_must_keep_next=false
2160 for ac_pass in 1 2
2161 do
2162 for ac_arg
2163 do
2164 case $ac_arg in
2165 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2167 | -silent | --silent | --silen | --sile | --sil)
2168 continue ;;
2169 *\'*)
2170 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2171 esac
2172 case $ac_pass in
2173 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2174 2)
2175 as_fn_append ac_configure_args1 " '$ac_arg'"
2176 if test $ac_must_keep_next = true; then
2177 ac_must_keep_next=false # Got value, back to normal.
2178 else
2179 case $ac_arg in
2180 *=* | --config-cache | -C | -disable-* | --disable-* \
2181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2183 | -with-* | --with-* | -without-* | --without-* | --x)
2184 case "$ac_configure_args0 " in
2185 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2186 esac
2187 ;;
2188 -* ) ac_must_keep_next=true ;;
2189 esac
2190 fi
2191 as_fn_append ac_configure_args " '$ac_arg'"
2192 ;;
2193 esac
2194 done
2195 done
2196 { ac_configure_args0=; unset ac_configure_args0;}
2197 { ac_configure_args1=; unset ac_configure_args1;}
2198
2199 # When interrupted or exit'd, cleanup temporary files, and complete
2200 # config.log. We remove comments because anyway the quotes in there
2201 # would cause problems or look ugly.
2202 # WARNING: Use '\'' to represent an apostrophe within the trap.
2203 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2204 trap 'exit_status=$?
2205 # Sanitize IFS.
2206 IFS=" "" $as_nl"
2207 # Save into config.log some information that might help in debugging.
2208 {
2209 echo
2210
2211 printf "%s\n" "## ---------------- ##
2212 ## Cache variables. ##
2213 ## ---------------- ##"
2214 echo
2215 # The following way of writing the cache mishandles newlines in values,
2216 (
2217 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2218 eval ac_val=\$$ac_var
2219 case $ac_val in #(
2220 *${as_nl}*)
2221 case $ac_var in #(
2222 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2223 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2224 esac
2225 case $ac_var in #(
2226 _ | IFS | as_nl) ;; #(
2227 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2228 *) { eval $ac_var=; unset $ac_var;} ;;
2229 esac ;;
2230 esac
2231 done
2232 (set) 2>&1 |
2233 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2234 *${as_nl}ac_space=\ *)
2235 sed -n \
2236 "s/'\''/'\''\\\\'\'''\''/g;
2237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2238 ;; #(
2239 *)
2240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2241 ;;
2242 esac |
2243 sort
2244 )
2245 echo
2246
2247 printf "%s\n" "## ----------------- ##
2248 ## Output variables. ##
2249 ## ----------------- ##"
2250 echo
2251 for ac_var in $ac_subst_vars
2252 do
2253 eval ac_val=\$$ac_var
2254 case $ac_val in
2255 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 esac
2257 printf "%s\n" "$ac_var='\''$ac_val'\''"
2258 done | sort
2259 echo
2260
2261 if test -n "$ac_subst_files"; then
2262 printf "%s\n" "## ------------------- ##
2263 ## File substitutions. ##
2264 ## ------------------- ##"
2265 echo
2266 for ac_var in $ac_subst_files
2267 do
2268 eval ac_val=\$$ac_var
2269 case $ac_val in
2270 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 esac
2272 printf "%s\n" "$ac_var='\''$ac_val'\''"
2273 done | sort
2274 echo
2275 fi
2276
2277 if test -s confdefs.h; then
2278 printf "%s\n" "## ----------- ##
2279 ## confdefs.h. ##
2280 ## ----------- ##"
2281 echo
2282 cat confdefs.h
2283 echo
2284 fi
2285 test "$ac_signal" != 0 &&
2286 printf "%s\n" "$as_me: caught signal $ac_signal"
2287 printf "%s\n" "$as_me: exit $exit_status"
2288 } >&5
2289 rm -f core *.core core.conftest.* &&
2290 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2291 exit $exit_status
2292 ' 0
2293 for ac_signal in 1 2 13 15; do
2294 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2295 done
2296 ac_signal=0
2297
2298 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2299 rm -f -r conftest* confdefs.h
2300
2301 printf "%s\n" "/* confdefs.h */" > confdefs.h
2302
2303 # Predefined preprocessor variables.
2304
2305 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2306
2307 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2308
2309 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2310
2311 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2312
2313 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2314
2315 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2316
2317
2318 # Let the site file select an alternate cache file if it wants to.
2319 # Prefer an explicitly selected file to automatically selected ones.
2320 if test -n "$CONFIG_SITE"; then
2321 ac_site_files="$CONFIG_SITE"
2322 elif test "x$prefix" != xNONE; then
2323 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2324 else
2325 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2326 fi
2327
2328 for ac_site_file in $ac_site_files
2329 do
2330 case $ac_site_file in #(
2331 */*) :
2332 ;; #(
2333 *) :
2334 ac_site_file=./$ac_site_file ;;
2335 esac
2336 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2338 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2339 sed 's/^/| /' "$ac_site_file" >&5
2340 . "$ac_site_file" \
2341 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2342 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2343 as_fn_error $? "failed to load site script $ac_site_file
2344 See \`config.log' for more details" "$LINENO" 5; }
2345 fi
2346 done
2347
2348 if test -r "$cache_file"; then
2349 # Some versions of bash will fail to source /dev/null (special files
2350 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2351 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2353 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2354 case $cache_file in
2355 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2356 *) . "./$cache_file";;
2357 esac
2358 fi
2359 else
2360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2361 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2362 >$cache_file
2363 fi
2364
2365 # Test code for whether the C compiler supports C89 (global declarations)
2366 ac_c_conftest_c89_globals='
2367 /* Does the compiler advertise C89 conformance?
2368 Do not test the value of __STDC__, because some compilers set it to 0
2369 while being otherwise adequately conformant. */
2370 #if !defined __STDC__
2371 # error "Compiler does not advertise C89 conformance"
2372 #endif
2373
2374 #include <stddef.h>
2375 #include <stdarg.h>
2376 struct stat;
2377 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2378 struct buf { int x; };
2379 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2380 static char *e (p, i)
2381 char **p;
2382 int i;
2383 {
2384 return p[i];
2385 }
2386 static char *f (char * (*g) (char **, int), char **p, ...)
2387 {
2388 char *s;
2389 va_list v;
2390 va_start (v,p);
2391 s = g (p, va_arg (v,int));
2392 va_end (v);
2393 return s;
2394 }
2395
2396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2397 function prototypes and stuff, but not \xHH hex character constants.
2398 These do not provoke an error unfortunately, instead are silently treated
2399 as an "x". The following induces an error, until -std is added to get
2400 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2401 array size at least. It is necessary to write \x00 == 0 to get something
2402 that is true only with -std. */
2403 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2404
2405 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2406 inside strings and character constants. */
2407 #define FOO(x) '\''x'\''
2408 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2409
2410 int test (int i, double x);
2411 struct s1 {int (*f) (int a);};
2412 struct s2 {int (*f) (double a);};
2413 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2414 int, int);'
2415
2416 # Test code for whether the C compiler supports C89 (body of main).
2417 ac_c_conftest_c89_main='
2418 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2419 '
2420
2421 # Test code for whether the C compiler supports C99 (global declarations)
2422 ac_c_conftest_c99_globals='
2423 // Does the compiler advertise C99 conformance?
2424 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2425 # error "Compiler does not advertise C99 conformance"
2426 #endif
2427
2428 #include <stdbool.h>
2429 extern int puts (const char *);
2430 extern int printf (const char *, ...);
2431 extern int dprintf (int, const char *, ...);
2432 extern void *malloc (size_t);
2433
2434 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2435 // dprintf is used instead of fprintf to avoid needing to declare
2436 // FILE and stderr.
2437 #define debug(...) dprintf (2, __VA_ARGS__)
2438 #define showlist(...) puts (#__VA_ARGS__)
2439 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2440 static void
2441 test_varargs_macros (void)
2442 {
2443 int x = 1234;
2444 int y = 5678;
2445 debug ("Flag");
2446 debug ("X = %d\n", x);
2447 showlist (The first, second, and third items.);
2448 report (x>y, "x is %d but y is %d", x, y);
2449 }
2450
2451 // Check long long types.
2452 #define BIG64 18446744073709551615ull
2453 #define BIG32 4294967295ul
2454 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2455 #if !BIG_OK
2456 #error "your preprocessor is broken"
2457 #endif
2458 #if BIG_OK
2459 #else
2460 #error "your preprocessor is broken"
2461 #endif
2462 static long long int bignum = -9223372036854775807LL;
2463 static unsigned long long int ubignum = BIG64;
2464
2465 struct incomplete_array
2466 {
2467 int datasize;
2468 double data[];
2469 };
2470
2471 struct named_init {
2472 int number;
2473 const wchar_t *name;
2474 double average;
2475 };
2476
2477 typedef const char *ccp;
2478
2479 static inline int
2480 test_restrict (ccp restrict text)
2481 {
2482 // See if C++-style comments work.
2483 // Iterate through items via the restricted pointer.
2484 // Also check for declarations in for loops.
2485 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2486 continue;
2487 return 0;
2488 }
2489
2490 // Check varargs and va_copy.
2491 static bool
2492 test_varargs (const char *format, ...)
2493 {
2494 va_list args;
2495 va_start (args, format);
2496 va_list args_copy;
2497 va_copy (args_copy, args);
2498
2499 const char *str = "";
2500 int number = 0;
2501 float fnumber = 0;
2502
2503 while (*format)
2504 {
2505 switch (*format++)
2506 {
2507 case '\''s'\'': // string
2508 str = va_arg (args_copy, const char *);
2509 break;
2510 case '\''d'\'': // int
2511 number = va_arg (args_copy, int);
2512 break;
2513 case '\''f'\'': // float
2514 fnumber = va_arg (args_copy, double);
2515 break;
2516 default:
2517 break;
2518 }
2519 }
2520 va_end (args_copy);
2521 va_end (args);
2522
2523 return *str && number && fnumber;
2524 }
2525 '
2526
2527 # Test code for whether the C compiler supports C99 (body of main).
2528 ac_c_conftest_c99_main='
2529 // Check bool.
2530 _Bool success = false;
2531 success |= (argc != 0);
2532
2533 // Check restrict.
2534 if (test_restrict ("String literal") == 0)
2535 success = true;
2536 char *restrict newvar = "Another string";
2537
2538 // Check varargs.
2539 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2540 test_varargs_macros ();
2541
2542 // Check flexible array members.
2543 struct incomplete_array *ia =
2544 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2545 ia->datasize = 10;
2546 for (int i = 0; i < ia->datasize; ++i)
2547 ia->data[i] = i * 1.234;
2548
2549 // Check named initializers.
2550 struct named_init ni = {
2551 .number = 34,
2552 .name = L"Test wide string",
2553 .average = 543.34343,
2554 };
2555
2556 ni.number = 58;
2557
2558 int dynamic_array[ni.number];
2559 dynamic_array[0] = argv[0][0];
2560 dynamic_array[ni.number - 1] = 543;
2561
2562 // work around unused variable warnings
2563 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2564 || dynamic_array[ni.number - 1] != 543);
2565 '
2566
2567 # Test code for whether the C compiler supports C11 (global declarations)
2568 ac_c_conftest_c11_globals='
2569 // Does the compiler advertise C11 conformance?
2570 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2571 # error "Compiler does not advertise C11 conformance"
2572 #endif
2573
2574 // Check _Alignas.
2575 char _Alignas (double) aligned_as_double;
2576 char _Alignas (0) no_special_alignment;
2577 extern char aligned_as_int;
2578 char _Alignas (0) _Alignas (int) aligned_as_int;
2579
2580 // Check _Alignof.
2581 enum
2582 {
2583 int_alignment = _Alignof (int),
2584 int_array_alignment = _Alignof (int[100]),
2585 char_alignment = _Alignof (char)
2586 };
2587 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2588
2589 // Check _Noreturn.
2590 int _Noreturn does_not_return (void) { for (;;) continue; }
2591
2592 // Check _Static_assert.
2593 struct test_static_assert
2594 {
2595 int x;
2596 _Static_assert (sizeof (int) <= sizeof (long int),
2597 "_Static_assert does not work in struct");
2598 long int y;
2599 };
2600
2601 // Check UTF-8 literals.
2602 #define u8 syntax error!
2603 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2604
2605 // Check duplicate typedefs.
2606 typedef long *long_ptr;
2607 typedef long int *long_ptr;
2608 typedef long_ptr long_ptr;
2609
2610 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2611 struct anonymous
2612 {
2613 union {
2614 struct { int i; int j; };
2615 struct { int k; long int l; } w;
2616 };
2617 int m;
2618 } v1;
2619 '
2620
2621 # Test code for whether the C compiler supports C11 (body of main).
2622 ac_c_conftest_c11_main='
2623 _Static_assert ((offsetof (struct anonymous, i)
2624 == offsetof (struct anonymous, w.k)),
2625 "Anonymous union alignment botch");
2626 v1.i = 2;
2627 v1.w.k = 5;
2628 ok |= v1.i != 5;
2629 '
2630
2631 # Test code for whether the C compiler supports C11 (complete).
2632 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2633 ${ac_c_conftest_c99_globals}
2634 ${ac_c_conftest_c11_globals}
2635
2636 int
2637 main (int argc, char **argv)
2638 {
2639 int ok = 0;
2640 ${ac_c_conftest_c89_main}
2641 ${ac_c_conftest_c99_main}
2642 ${ac_c_conftest_c11_main}
2643 return ok;
2644 }
2645 "
2646
2647 # Test code for whether the C compiler supports C99 (complete).
2648 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2649 ${ac_c_conftest_c99_globals}
2650
2651 int
2652 main (int argc, char **argv)
2653 {
2654 int ok = 0;
2655 ${ac_c_conftest_c89_main}
2656 ${ac_c_conftest_c99_main}
2657 return ok;
2658 }
2659 "
2660
2661 # Test code for whether the C compiler supports C89 (complete).
2662 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2663
2664 int
2665 main (int argc, char **argv)
2666 {
2667 int ok = 0;
2668 ${ac_c_conftest_c89_main}
2669 return ok;
2670 }
2671 "
2672
2673 # Test code for whether the C++ compiler supports C++98 (global declarations)
2674 ac_cxx_conftest_cxx98_globals='
2675 // Does the compiler advertise C++98 conformance?
2676 #if !defined __cplusplus || __cplusplus < 199711L
2677 # error "Compiler does not advertise C++98 conformance"
2678 #endif
2679
2680 // These inclusions are to reject old compilers that
2681 // lack the unsuffixed header files.
2682 #include <cstdlib>
2683 #include <exception>
2684
2685 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2686 extern void assert (int);
2687 namespace std {
2688 extern int strcmp (const char *, const char *);
2689 }
2690
2691 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2692 using std::exception;
2693 using std::strcmp;
2694
2695 namespace {
2696
2697 void test_exception_syntax()
2698 {
2699 try {
2700 throw "test";
2701 } catch (const char *s) {
2702 // Extra parentheses suppress a warning when building autoconf itself,
2703 // due to lint rules shared with more typical C programs.
2704 assert (!(strcmp) (s, "test"));
2705 }
2706 }
2707
2708 template <typename T> struct test_template
2709 {
2710 T const val;
2711 explicit test_template(T t) : val(t) {}
2712 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2713 };
2714
2715 } // anonymous namespace
2716 '
2717
2718 # Test code for whether the C++ compiler supports C++98 (body of main)
2719 ac_cxx_conftest_cxx98_main='
2720 assert (argc);
2721 assert (! argv[0]);
2722 {
2723 test_exception_syntax ();
2724 test_template<double> tt (2.0);
2725 assert (tt.add (4) == 6.0);
2726 assert (true && !false);
2727 }
2728 '
2729
2730 # Test code for whether the C++ compiler supports C++11 (global declarations)
2731 ac_cxx_conftest_cxx11_globals='
2732 // Does the compiler advertise C++ 2011 conformance?
2733 #if !defined __cplusplus || __cplusplus < 201103L
2734 # error "Compiler does not advertise C++11 conformance"
2735 #endif
2736
2737 namespace cxx11test
2738 {
2739 constexpr int get_val() { return 20; }
2740
2741 struct testinit
2742 {
2743 int i;
2744 double d;
2745 };
2746
2747 class delegate
2748 {
2749 public:
2750 delegate(int n) : n(n) {}
2751 delegate(): delegate(2354) {}
2752
2753 virtual int getval() { return this->n; };
2754 protected:
2755 int n;
2756 };
2757
2758 class overridden : public delegate
2759 {
2760 public:
2761 overridden(int n): delegate(n) {}
2762 virtual int getval() override final { return this->n * 2; }
2763 };
2764
2765 class nocopy
2766 {
2767 public:
2768 nocopy(int i): i(i) {}
2769 nocopy() = default;
2770 nocopy(const nocopy&) = delete;
2771 nocopy & operator=(const nocopy&) = delete;
2772 private:
2773 int i;
2774 };
2775
2776 // for testing lambda expressions
2777 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2778 {
2779 return f(v);
2780 }
2781
2782 // for testing variadic templates and trailing return types
2783 template <typename V> auto sum(V first) -> V
2784 {
2785 return first;
2786 }
2787 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2788 {
2789 return first + sum(rest...);
2790 }
2791 }
2792 '
2793
2794 # Test code for whether the C++ compiler supports C++11 (body of main)
2795 ac_cxx_conftest_cxx11_main='
2796 {
2797 // Test auto and decltype
2798 auto a1 = 6538;
2799 auto a2 = 48573953.4;
2800 auto a3 = "String literal";
2801
2802 int total = 0;
2803 for (auto i = a3; *i; ++i) { total += *i; }
2804
2805 decltype(a2) a4 = 34895.034;
2806 }
2807 {
2808 // Test constexpr
2809 short sa[cxx11test::get_val()] = { 0 };
2810 }
2811 {
2812 // Test initializer lists
2813 cxx11test::testinit il = { 4323, 435234.23544 };
2814 }
2815 {
2816 // Test range-based for
2817 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2818 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2819 for (auto &x : array) { x += 23; }
2820 }
2821 {
2822 // Test lambda expressions
2823 using cxx11test::eval;
2824 assert (eval ([](int x) { return x*2; }, 21) == 42);
2825 double d = 2.0;
2826 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2827 assert (d == 5.0);
2828 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2829 assert (d == 5.0);
2830 }
2831 {
2832 // Test use of variadic templates
2833 using cxx11test::sum;
2834 auto a = sum(1);
2835 auto b = sum(1, 2);
2836 auto c = sum(1.0, 2.0, 3.0);
2837 }
2838 {
2839 // Test constructor delegation
2840 cxx11test::delegate d1;
2841 cxx11test::delegate d2();
2842 cxx11test::delegate d3(45);
2843 }
2844 {
2845 // Test override and final
2846 cxx11test::overridden o1(55464);
2847 }
2848 {
2849 // Test nullptr
2850 char *c = nullptr;
2851 }
2852 {
2853 // Test template brackets
2854 test_template<::test_template<int>> v(test_template<int>(12));
2855 }
2856 {
2857 // Unicode literals
2858 char const *utf8 = u8"UTF-8 string \u2500";
2859 char16_t const *utf16 = u"UTF-8 string \u2500";
2860 char32_t const *utf32 = U"UTF-32 string \u2500";
2861 }
2862 '
2863
2864 # Test code for whether the C compiler supports C++11 (complete).
2865 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2866 ${ac_cxx_conftest_cxx11_globals}
2867
2868 int
2869 main (int argc, char **argv)
2870 {
2871 int ok = 0;
2872 ${ac_cxx_conftest_cxx98_main}
2873 ${ac_cxx_conftest_cxx11_main}
2874 return ok;
2875 }
2876 "
2877
2878 # Test code for whether the C compiler supports C++98 (complete).
2879 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2880 int
2881 main (int argc, char **argv)
2882 {
2883 int ok = 0;
2884 ${ac_cxx_conftest_cxx98_main}
2885 return ok;
2886 }
2887 "
2888
2889 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2890 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2891 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2892 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2893 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2894 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2895 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2896 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2897 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2898
2899 # Auxiliary files required by this configure script.
2900 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2901
2902 # Locations in which to look for auxiliary files.
2903 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2904
2905 # Search for a directory containing all of the required auxiliary files,
2906 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2907 # If we don't find one directory that contains all the files we need,
2908 # we report the set of missing files from the *first* directory in
2909 # $ac_aux_dir_candidates and give up.
2910 ac_missing_aux_files=""
2911 ac_first_candidate=:
2912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 as_found=false
2915 for as_dir in $ac_aux_dir_candidates
2916 do
2917 IFS=$as_save_IFS
2918 case $as_dir in #(((
2919 '') as_dir=./ ;;
2920 */) ;;
2921 *) as_dir=$as_dir/ ;;
2922 esac
2923 as_found=:
2924
2925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2926 ac_aux_dir_found=yes
2927 ac_install_sh=
2928 for ac_aux in $ac_aux_files
2929 do
2930 # As a special case, if "install-sh" is required, that requirement
2931 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2932 # and $ac_install_sh is set appropriately for whichever one is found.
2933 if test x"$ac_aux" = x"install-sh"
2934 then
2935 if test -f "${as_dir}install-sh"; then
2936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2937 ac_install_sh="${as_dir}install-sh -c"
2938 elif test -f "${as_dir}install.sh"; then
2939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2940 ac_install_sh="${as_dir}install.sh -c"
2941 elif test -f "${as_dir}shtool"; then
2942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2943 ac_install_sh="${as_dir}shtool install -c"
2944 else
2945 ac_aux_dir_found=no
2946 if $ac_first_candidate; then
2947 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2948 else
2949 break
2950 fi
2951 fi
2952 else
2953 if test -f "${as_dir}${ac_aux}"; then
2954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2955 else
2956 ac_aux_dir_found=no
2957 if $ac_first_candidate; then
2958 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2959 else
2960 break
2961 fi
2962 fi
2963 fi
2964 done
2965 if test "$ac_aux_dir_found" = yes; then
2966 ac_aux_dir="$as_dir"
2967 break
2968 fi
2969 ac_first_candidate=false
2970
2971 as_found=false
2972 done
2973 IFS=$as_save_IFS
2974 if $as_found
2975 then :
2976
2977 else $as_nop
2978 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2979 fi
2980
2981
2982 # These three variables are undocumented and unsupported,
2983 # and are intended to be withdrawn in a future Autoconf release.
2984 # They can cause serious problems if a builder's source tree is in a directory
2985 # whose full name contains unusual characters.
2986 if test -f "${ac_aux_dir}config.guess"; then
2987 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2988 fi
2989 if test -f "${ac_aux_dir}config.sub"; then
2990 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2991 fi
2992 if test -f "$ac_aux_dir/configure"; then
2993 ac_configure="$SHELL ${ac_aux_dir}configure"
2994 fi
2995
2996 # Check that the precious variables saved in the cache have kept the same
2997 # value.
2998 ac_cache_corrupted=false
2999 for ac_var in $ac_precious_vars; do
3000 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3001 eval ac_new_set=\$ac_env_${ac_var}_set
3002 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3003 eval ac_new_val=\$ac_env_${ac_var}_value
3004 case $ac_old_set,$ac_new_set in
3005 set,)
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3007 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3008 ac_cache_corrupted=: ;;
3009 ,set)
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3011 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3012 ac_cache_corrupted=: ;;
3013 ,);;
3014 *)
3015 if test "x$ac_old_val" != "x$ac_new_val"; then
3016 # differences in whitespace do not lead to failure.
3017 ac_old_val_w=`echo x $ac_old_val`
3018 ac_new_val_w=`echo x $ac_new_val`
3019 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3021 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3022 ac_cache_corrupted=:
3023 else
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3025 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3026 eval $ac_var=\$ac_old_val
3027 fi
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3029 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3031 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3032 fi;;
3033 esac
3034 # Pass precious variables to config.status.
3035 if test "$ac_new_set" = set; then
3036 case $ac_new_val in
3037 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3038 *) ac_arg=$ac_var=$ac_new_val ;;
3039 esac
3040 case " $ac_configure_args " in
3041 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3042 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3043 esac
3044 fi
3045 done
3046 if $ac_cache_corrupted; then
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3050 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3051 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3052 and start over" "$LINENO" 5
3053 fi
3054 ## -------------------- ##
3055 ## Main body of script. ##
3056 ## -------------------- ##
3057
3058 ac_ext=c
3059 ac_cpp='$CPP $CPPFLAGS'
3060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3063
3064
3065 ac_config_headers="$ac_config_headers config.h"
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078 ac_ext=c
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 if test -n "$ac_tool_prefix"; then
3084 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3085 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 printf %s "checking for $ac_word... " >&6; }
3088 if test ${ac_cv_prog_CC+y}
3089 then :
3090 printf %s "(cached) " >&6
3091 else $as_nop
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC="$CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098 IFS=$as_save_IFS
3099 case $as_dir in #(((
3100 '') as_dir=./ ;;
3101 */) ;;
3102 *) as_dir=$as_dir/ ;;
3103 esac
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 printf "%s\n" "$CC" >&6; }
3120 else
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 printf "%s\n" "no" >&6; }
3123 fi
3124
3125
3126 fi
3127 if test -z "$ac_cv_prog_CC"; then
3128 ac_ct_CC=$CC
3129 # Extract the first word of "gcc", so it can be a program name with args.
3130 set dummy gcc; ac_word=$2
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 printf %s "checking for $ac_word... " >&6; }
3133 if test ${ac_cv_prog_ac_ct_CC+y}
3134 then :
3135 printf %s "(cached) " >&6
3136 else $as_nop
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143 IFS=$as_save_IFS
3144 case $as_dir in #(((
3145 '') as_dir=./ ;;
3146 */) ;;
3147 *) as_dir=$as_dir/ ;;
3148 esac
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3151 ac_cv_prog_ac_ct_CC="gcc"
3152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3153 break 2
3154 fi
3155 done
3156 done
3157 IFS=$as_save_IFS
3158
3159 fi
3160 fi
3161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3162 if test -n "$ac_ct_CC"; then
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3164 printf "%s\n" "$ac_ct_CC" >&6; }
3165 else
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 printf "%s\n" "no" >&6; }
3168 fi
3169
3170 if test "x$ac_ct_CC" = x; then
3171 CC=""
3172 else
3173 case $cross_compiling:$ac_tool_warned in
3174 yes:)
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3178 esac
3179 CC=$ac_ct_CC
3180 fi
3181 else
3182 CC="$ac_cv_prog_CC"
3183 fi
3184
3185 if test -z "$CC"; then
3186 if test -n "$ac_tool_prefix"; then
3187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}cc; ac_word=$2
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 printf %s "checking for $ac_word... " >&6; }
3191 if test ${ac_cv_prog_CC+y}
3192 then :
3193 printf %s "(cached) " >&6
3194 else $as_nop
3195 if test -n "$CC"; then
3196 ac_cv_prog_CC="$CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201 IFS=$as_save_IFS
3202 case $as_dir in #(((
3203 '') as_dir=./ ;;
3204 */) ;;
3205 *) as_dir=$as_dir/ ;;
3206 esac
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_CC="${ac_tool_prefix}cc"
3210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215 IFS=$as_save_IFS
3216
3217 fi
3218 fi
3219 CC=$ac_cv_prog_CC
3220 if test -n "$CC"; then
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 printf "%s\n" "$CC" >&6; }
3223 else
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 printf "%s\n" "no" >&6; }
3226 fi
3227
3228
3229 fi
3230 fi
3231 if test -z "$CC"; then
3232 # Extract the first word of "cc", so it can be a program name with args.
3233 set dummy cc; ac_word=$2
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 printf %s "checking for $ac_word... " >&6; }
3236 if test ${ac_cv_prog_CC+y}
3237 then :
3238 printf %s "(cached) " >&6
3239 else $as_nop
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 ac_prog_rejected=no
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247 IFS=$as_save_IFS
3248 case $as_dir in #(((
3249 '') as_dir=./ ;;
3250 */) ;;
3251 *) as_dir=$as_dir/ ;;
3252 esac
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3255 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3256 ac_prog_rejected=yes
3257 continue
3258 fi
3259 ac_cv_prog_CC="cc"
3260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3261 break 2
3262 fi
3263 done
3264 done
3265 IFS=$as_save_IFS
3266
3267 if test $ac_prog_rejected = yes; then
3268 # We found a bogon in the path, so make sure we never use it.
3269 set dummy $ac_cv_prog_CC
3270 shift
3271 if test $# != 0; then
3272 # We chose a different compiler from the bogus one.
3273 # However, it has the same basename, so the bogon will be chosen
3274 # first if we set CC to just the basename; use the full file name.
3275 shift
3276 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3277 fi
3278 fi
3279 fi
3280 fi
3281 CC=$ac_cv_prog_CC
3282 if test -n "$CC"; then
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 printf "%s\n" "$CC" >&6; }
3285 else
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 printf "%s\n" "no" >&6; }
3288 fi
3289
3290
3291 fi
3292 if test -z "$CC"; then
3293 if test -n "$ac_tool_prefix"; then
3294 for ac_prog in cl.exe
3295 do
3296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 printf %s "checking for $ac_word... " >&6; }
3300 if test ${ac_cv_prog_CC+y}
3301 then :
3302 printf %s "(cached) " >&6
3303 else $as_nop
3304 if test -n "$CC"; then
3305 ac_cv_prog_CC="$CC" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310 IFS=$as_save_IFS
3311 case $as_dir in #(((
3312 '') as_dir=./ ;;
3313 */) ;;
3314 *) as_dir=$as_dir/ ;;
3315 esac
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3318 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3320 break 2
3321 fi
3322 done
3323 done
3324 IFS=$as_save_IFS
3325
3326 fi
3327 fi
3328 CC=$ac_cv_prog_CC
3329 if test -n "$CC"; then
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331 printf "%s\n" "$CC" >&6; }
3332 else
3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 printf "%s\n" "no" >&6; }
3335 fi
3336
3337
3338 test -n "$CC" && break
3339 done
3340 fi
3341 if test -z "$CC"; then
3342 ac_ct_CC=$CC
3343 for ac_prog in cl.exe
3344 do
3345 # Extract the first word of "$ac_prog", so it can be a program name with args.
3346 set dummy $ac_prog; ac_word=$2
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 printf %s "checking for $ac_word... " >&6; }
3349 if test ${ac_cv_prog_ac_ct_CC+y}
3350 then :
3351 printf %s "(cached) " >&6
3352 else $as_nop
3353 if test -n "$ac_ct_CC"; then
3354 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359 IFS=$as_save_IFS
3360 case $as_dir in #(((
3361 '') as_dir=./ ;;
3362 */) ;;
3363 *) as_dir=$as_dir/ ;;
3364 esac
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_ac_ct_CC="$ac_prog"
3368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371 done
3372 done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3378 if test -n "$ac_ct_CC"; then
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3380 printf "%s\n" "$ac_ct_CC" >&6; }
3381 else
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 printf "%s\n" "no" >&6; }
3384 fi
3385
3386
3387 test -n "$ac_ct_CC" && break
3388 done
3389
3390 if test "x$ac_ct_CC" = x; then
3391 CC=""
3392 else
3393 case $cross_compiling:$ac_tool_warned in
3394 yes:)
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3396 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3397 ac_tool_warned=yes ;;
3398 esac
3399 CC=$ac_ct_CC
3400 fi
3401 fi
3402
3403 fi
3404 if test -z "$CC"; then
3405 if test -n "$ac_tool_prefix"; then
3406 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3407 set dummy ${ac_tool_prefix}clang; ac_word=$2
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 printf %s "checking for $ac_word... " >&6; }
3410 if test ${ac_cv_prog_CC+y}
3411 then :
3412 printf %s "(cached) " >&6
3413 else $as_nop
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420 IFS=$as_save_IFS
3421 case $as_dir in #(((
3422 '') as_dir=./ ;;
3423 */) ;;
3424 *) as_dir=$as_dir/ ;;
3425 esac
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_CC="${ac_tool_prefix}clang"
3429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432 done
3433 done
3434 IFS=$as_save_IFS
3435
3436 fi
3437 fi
3438 CC=$ac_cv_prog_CC
3439 if test -n "$CC"; then
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441 printf "%s\n" "$CC" >&6; }
3442 else
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 printf "%s\n" "no" >&6; }
3445 fi
3446
3447
3448 fi
3449 if test -z "$ac_cv_prog_CC"; then
3450 ac_ct_CC=$CC
3451 # Extract the first word of "clang", so it can be a program name with args.
3452 set dummy clang; ac_word=$2
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 printf %s "checking for $ac_word... " >&6; }
3455 if test ${ac_cv_prog_ac_ct_CC+y}
3456 then :
3457 printf %s "(cached) " >&6
3458 else $as_nop
3459 if test -n "$ac_ct_CC"; then
3460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465 IFS=$as_save_IFS
3466 case $as_dir in #(((
3467 '') as_dir=./ ;;
3468 */) ;;
3469 *) as_dir=$as_dir/ ;;
3470 esac
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_ac_ct_CC="clang"
3474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477 done
3478 done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3484 if test -n "$ac_ct_CC"; then
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3486 printf "%s\n" "$ac_ct_CC" >&6; }
3487 else
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 printf "%s\n" "no" >&6; }
3490 fi
3491
3492 if test "x$ac_ct_CC" = x; then
3493 CC=""
3494 else
3495 case $cross_compiling:$ac_tool_warned in
3496 yes:)
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3498 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3499 ac_tool_warned=yes ;;
3500 esac
3501 CC=$ac_ct_CC
3502 fi
3503 else
3504 CC="$ac_cv_prog_CC"
3505 fi
3506
3507 fi
3508
3509
3510 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3512 as_fn_error $? "no acceptable C compiler found in \$PATH
3513 See \`config.log' for more details" "$LINENO" 5; }
3514
3515 # Provide some information about the compiler.
3516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3517 set X $ac_compile
3518 ac_compiler=$2
3519 for ac_option in --version -v -V -qversion -version; do
3520 { { ac_try="$ac_compiler $ac_option >&5"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 printf "%s\n" "$ac_try_echo"; } >&5
3527 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3528 ac_status=$?
3529 if test -s conftest.err; then
3530 sed '10a\
3531 ... rest of stderr output deleted ...
3532 10q' conftest.err >conftest.er1
3533 cat conftest.er1 >&5
3534 fi
3535 rm -f conftest.er1 conftest.err
3536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }
3538 done
3539
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3542
3543 int
3544 main (void)
3545 {
3546
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 ac_clean_files_save=$ac_clean_files
3552 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3553 # Try to create an executable without -o first, disregard a.out.
3554 # It will help us diagnose broken compilers, and finding out an intuition
3555 # of exeext.
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3557 printf %s "checking whether the C compiler works... " >&6; }
3558 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3559
3560 # The possible output files:
3561 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3562
3563 ac_rmfiles=
3564 for ac_file in $ac_files
3565 do
3566 case $ac_file in
3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3568 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3569 esac
3570 done
3571 rm -f $ac_rmfiles
3572
3573 if { { ac_try="$ac_link_default"
3574 case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 printf "%s\n" "$ac_try_echo"; } >&5
3580 (eval "$ac_link_default") 2>&5
3581 ac_status=$?
3582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }
3584 then :
3585 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3586 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3587 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3588 # so that the user can short-circuit this test for compilers unknown to
3589 # Autoconf.
3590 for ac_file in $ac_files ''
3591 do
3592 test -f "$ac_file" || continue
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3595 ;;
3596 [ab].out )
3597 # We found the default executable, but exeext='' is most
3598 # certainly right.
3599 break;;
3600 *.* )
3601 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3602 then :; else
3603 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3604 fi
3605 # We set ac_cv_exeext here because the later test for it is not
3606 # safe: cross compilers may not add the suffix if given an `-o'
3607 # argument, so we may need to know it at that point already.
3608 # Even if this section looks crufty: it has the advantage of
3609 # actually working.
3610 break;;
3611 * )
3612 break;;
3613 esac
3614 done
3615 test "$ac_cv_exeext" = no && ac_cv_exeext=
3616
3617 else $as_nop
3618 ac_file=''
3619 fi
3620 if test -z "$ac_file"
3621 then :
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 printf "%s\n" "no" >&6; }
3624 printf "%s\n" "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error 77 "C compiler cannot create executables
3630 See \`config.log' for more details" "$LINENO" 5; }
3631 else $as_nop
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3633 printf "%s\n" "yes" >&6; }
3634 fi
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3636 printf %s "checking for C compiler default output file name... " >&6; }
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3638 printf "%s\n" "$ac_file" >&6; }
3639 ac_exeext=$ac_cv_exeext
3640
3641 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3642 ac_clean_files=$ac_clean_files_save
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3644 printf %s "checking for suffix of executables... " >&6; }
3645 if { { ac_try="$ac_link"
3646 case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 printf "%s\n" "$ac_try_echo"; } >&5
3652 (eval "$ac_link") 2>&5
3653 ac_status=$?
3654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }
3656 then :
3657 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3658 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3659 # work properly (i.e., refer to `conftest.exe'), while it won't with
3660 # `rm'.
3661 for ac_file in conftest.exe conftest conftest.*; do
3662 test -f "$ac_file" || continue
3663 case $ac_file in
3664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3665 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3666 break;;
3667 * ) break;;
3668 esac
3669 done
3670 else $as_nop
3671 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3673 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3674 See \`config.log' for more details" "$LINENO" 5; }
3675 fi
3676 rm -f conftest conftest$ac_cv_exeext
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3678 printf "%s\n" "$ac_cv_exeext" >&6; }
3679
3680 rm -f conftest.$ac_ext
3681 EXEEXT=$ac_cv_exeext
3682 ac_exeext=$EXEEXT
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685 #include <stdio.h>
3686 int
3687 main (void)
3688 {
3689 FILE *f = fopen ("conftest.out", "w");
3690 return ferror (f) || fclose (f) != 0;
3691
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 ac_clean_files="$ac_clean_files conftest.out"
3697 # Check that the compiler produces executables we can run. If not, either
3698 # the compiler is broken, or we cross compile.
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3700 printf %s "checking whether we are cross compiling... " >&6; }
3701 if test "$cross_compiling" != yes; then
3702 { { ac_try="$ac_link"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708 printf "%s\n" "$ac_try_echo"; } >&5
3709 (eval "$ac_link") 2>&5
3710 ac_status=$?
3711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712 test $ac_status = 0; }
3713 if { ac_try='./conftest$ac_cv_exeext'
3714 { { case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717 esac
3718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719 printf "%s\n" "$ac_try_echo"; } >&5
3720 (eval "$ac_try") 2>&5
3721 ac_status=$?
3722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723 test $ac_status = 0; }; }; then
3724 cross_compiling=no
3725 else
3726 if test "$cross_compiling" = maybe; then
3727 cross_compiling=yes
3728 else
3729 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3730 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3731 as_fn_error 77 "cannot run C compiled programs.
3732 If you meant to cross compile, use \`--host'.
3733 See \`config.log' for more details" "$LINENO" 5; }
3734 fi
3735 fi
3736 fi
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3738 printf "%s\n" "$cross_compiling" >&6; }
3739
3740 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3741 ac_clean_files=$ac_clean_files_save
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3743 printf %s "checking for suffix of object files... " >&6; }
3744 if test ${ac_cv_objext+y}
3745 then :
3746 printf %s "(cached) " >&6
3747 else $as_nop
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750
3751 int
3752 main (void)
3753 {
3754
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 rm -f conftest.o conftest.obj
3760 if { { ac_try="$ac_compile"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 printf "%s\n" "$ac_try_echo"; } >&5
3767 (eval "$ac_compile") 2>&5
3768 ac_status=$?
3769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3770 test $ac_status = 0; }
3771 then :
3772 for ac_file in conftest.o conftest.obj conftest.*; do
3773 test -f "$ac_file" || continue;
3774 case $ac_file in
3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3776 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3777 break;;
3778 esac
3779 done
3780 else $as_nop
3781 printf "%s\n" "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3786 as_fn_error $? "cannot compute suffix of object files: cannot compile
3787 See \`config.log' for more details" "$LINENO" 5; }
3788 fi
3789 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3790 fi
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3792 printf "%s\n" "$ac_cv_objext" >&6; }
3793 OBJEXT=$ac_cv_objext
3794 ac_objext=$OBJEXT
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3796 printf %s "checking whether the compiler supports GNU C... " >&6; }
3797 if test ${ac_cv_c_compiler_gnu+y}
3798 then :
3799 printf %s "(cached) " >&6
3800 else $as_nop
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3803
3804 int
3805 main (void)
3806 {
3807 #ifndef __GNUC__
3808 choke me
3809 #endif
3810
3811 ;
3812 return 0;
3813 }
3814 _ACEOF
3815 if ac_fn_c_try_compile "$LINENO"
3816 then :
3817 ac_compiler_gnu=yes
3818 else $as_nop
3819 ac_compiler_gnu=no
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3822 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3823
3824 fi
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3826 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828
3829 if test $ac_compiler_gnu = yes; then
3830 GCC=yes
3831 else
3832 GCC=
3833 fi
3834 ac_test_CFLAGS=${CFLAGS+y}
3835 ac_save_CFLAGS=$CFLAGS
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3837 printf %s "checking whether $CC accepts -g... " >&6; }
3838 if test ${ac_cv_prog_cc_g+y}
3839 then :
3840 printf %s "(cached) " >&6
3841 else $as_nop
3842 ac_save_c_werror_flag=$ac_c_werror_flag
3843 ac_c_werror_flag=yes
3844 ac_cv_prog_cc_g=no
3845 CFLAGS="-g"
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848
3849 int
3850 main (void)
3851 {
3852
3853 ;
3854 return 0;
3855 }
3856 _ACEOF
3857 if ac_fn_c_try_compile "$LINENO"
3858 then :
3859 ac_cv_prog_cc_g=yes
3860 else $as_nop
3861 CFLAGS=""
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3864
3865 int
3866 main (void)
3867 {
3868
3869 ;
3870 return 0;
3871 }
3872 _ACEOF
3873 if ac_fn_c_try_compile "$LINENO"
3874 then :
3875
3876 else $as_nop
3877 ac_c_werror_flag=$ac_save_c_werror_flag
3878 CFLAGS="-g"
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881
3882 int
3883 main (void)
3884 {
3885
3886 ;
3887 return 0;
3888 }
3889 _ACEOF
3890 if ac_fn_c_try_compile "$LINENO"
3891 then :
3892 ac_cv_prog_cc_g=yes
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3895 fi
3896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3899 ac_c_werror_flag=$ac_save_c_werror_flag
3900 fi
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3902 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3903 if test $ac_test_CFLAGS; then
3904 CFLAGS=$ac_save_CFLAGS
3905 elif test $ac_cv_prog_cc_g = yes; then
3906 if test "$GCC" = yes; then
3907 CFLAGS="-g -O2"
3908 else
3909 CFLAGS="-g"
3910 fi
3911 else
3912 if test "$GCC" = yes; then
3913 CFLAGS="-O2"
3914 else
3915 CFLAGS=
3916 fi
3917 fi
3918 ac_prog_cc_stdc=no
3919 if test x$ac_prog_cc_stdc = xno
3920 then :
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3922 printf %s "checking for $CC option to enable C11 features... " >&6; }
3923 if test ${ac_cv_prog_cc_c11+y}
3924 then :
3925 printf %s "(cached) " >&6
3926 else $as_nop
3927 ac_cv_prog_cc_c11=no
3928 ac_save_CC=$CC
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931 $ac_c_conftest_c11_program
3932 _ACEOF
3933 for ac_arg in '' -std=gnu11
3934 do
3935 CC="$ac_save_CC $ac_arg"
3936 if ac_fn_c_try_compile "$LINENO"
3937 then :
3938 ac_cv_prog_cc_c11=$ac_arg
3939 fi
3940 rm -f core conftest.err conftest.$ac_objext conftest.beam
3941 test "x$ac_cv_prog_cc_c11" != "xno" && break
3942 done
3943 rm -f conftest.$ac_ext
3944 CC=$ac_save_CC
3945 fi
3946
3947 if test "x$ac_cv_prog_cc_c11" = xno
3948 then :
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3950 printf "%s\n" "unsupported" >&6; }
3951 else $as_nop
3952 if test "x$ac_cv_prog_cc_c11" = x
3953 then :
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3955 printf "%s\n" "none needed" >&6; }
3956 else $as_nop
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3958 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3959 CC="$CC $ac_cv_prog_cc_c11"
3960 fi
3961 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3962 ac_prog_cc_stdc=c11
3963 fi
3964 fi
3965 if test x$ac_prog_cc_stdc = xno
3966 then :
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3968 printf %s "checking for $CC option to enable C99 features... " >&6; }
3969 if test ${ac_cv_prog_cc_c99+y}
3970 then :
3971 printf %s "(cached) " >&6
3972 else $as_nop
3973 ac_cv_prog_cc_c99=no
3974 ac_save_CC=$CC
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977 $ac_c_conftest_c99_program
3978 _ACEOF
3979 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3980 do
3981 CC="$ac_save_CC $ac_arg"
3982 if ac_fn_c_try_compile "$LINENO"
3983 then :
3984 ac_cv_prog_cc_c99=$ac_arg
3985 fi
3986 rm -f core conftest.err conftest.$ac_objext conftest.beam
3987 test "x$ac_cv_prog_cc_c99" != "xno" && break
3988 done
3989 rm -f conftest.$ac_ext
3990 CC=$ac_save_CC
3991 fi
3992
3993 if test "x$ac_cv_prog_cc_c99" = xno
3994 then :
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3996 printf "%s\n" "unsupported" >&6; }
3997 else $as_nop
3998 if test "x$ac_cv_prog_cc_c99" = x
3999 then :
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4001 printf "%s\n" "none needed" >&6; }
4002 else $as_nop
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4004 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4005 CC="$CC $ac_cv_prog_cc_c99"
4006 fi
4007 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4008 ac_prog_cc_stdc=c99
4009 fi
4010 fi
4011 if test x$ac_prog_cc_stdc = xno
4012 then :
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4014 printf %s "checking for $CC option to enable C89 features... " >&6; }
4015 if test ${ac_cv_prog_cc_c89+y}
4016 then :
4017 printf %s "(cached) " >&6
4018 else $as_nop
4019 ac_cv_prog_cc_c89=no
4020 ac_save_CC=$CC
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 $ac_c_conftest_c89_program
4024 _ACEOF
4025 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4026 do
4027 CC="$ac_save_CC $ac_arg"
4028 if ac_fn_c_try_compile "$LINENO"
4029 then :
4030 ac_cv_prog_cc_c89=$ac_arg
4031 fi
4032 rm -f core conftest.err conftest.$ac_objext conftest.beam
4033 test "x$ac_cv_prog_cc_c89" != "xno" && break
4034 done
4035 rm -f conftest.$ac_ext
4036 CC=$ac_save_CC
4037 fi
4038
4039 if test "x$ac_cv_prog_cc_c89" = xno
4040 then :
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4042 printf "%s\n" "unsupported" >&6; }
4043 else $as_nop
4044 if test "x$ac_cv_prog_cc_c89" = x
4045 then :
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4047 printf "%s\n" "none needed" >&6; }
4048 else $as_nop
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4050 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4051 CC="$CC $ac_cv_prog_cc_c89"
4052 fi
4053 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4054 ac_prog_cc_stdc=c89
4055 fi
4056 fi
4057
4058 ac_ext=c
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063
4064
4065
4066 # Expand $ac_aux_dir to an absolute path.
4067 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4068
4069
4070 ac_ext=c
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4076 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4077 if test ${am_cv_prog_cc_c_o+y}
4078 then :
4079 printf %s "(cached) " >&6
4080 else $as_nop
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083
4084 int
4085 main (void)
4086 {
4087
4088 ;
4089 return 0;
4090 }
4091 _ACEOF
4092 # Make sure it works both with $CC and with simple cc.
4093 # Following AC_PROG_CC_C_O, we do the test twice because some
4094 # compilers refuse to overwrite an existing .o file with -o,
4095 # though they will create one.
4096 am_cv_prog_cc_c_o=yes
4097 for am_i in 1 2; do
4098 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4099 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } \
4103 && test -f conftest2.$ac_objext; then
4104 : OK
4105 else
4106 am_cv_prog_cc_c_o=no
4107 break
4108 fi
4109 done
4110 rm -f core conftest*
4111 unset am_i
4112 fi
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4114 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4115 if test "$am_cv_prog_cc_c_o" != yes; then
4116 # Losing compiler, so override with the script.
4117 # FIXME: It is wrong to rewrite CC.
4118 # But if we don't then we get into trouble of one sort or another.
4119 # A longer-term fix would be to have automake use am__CC in this case,
4120 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4121 CC="$am_aux_dir/compile $CC"
4122 fi
4123 ac_ext=c
4124 ac_cpp='$CPP $CPPFLAGS'
4125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128
4129
4130
4131
4132
4133
4134
4135
4136 ac_ext=cpp
4137 ac_cpp='$CXXCPP $CPPFLAGS'
4138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4141 if test -z "$CXX"; then
4142 if test -n "$CCC"; then
4143 CXX=$CCC
4144 else
4145 if test -n "$ac_tool_prefix"; then
4146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4147 do
4148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151 printf %s "checking for $ac_word... " >&6; }
4152 if test ${ac_cv_prog_CXX+y}
4153 then :
4154 printf %s "(cached) " >&6
4155 else $as_nop
4156 if test -n "$CXX"; then
4157 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162 IFS=$as_save_IFS
4163 case $as_dir in #(((
4164 '') as_dir=./ ;;
4165 */) ;;
4166 *) as_dir=$as_dir/ ;;
4167 esac
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4170 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4172 break 2
4173 fi
4174 done
4175 done
4176 IFS=$as_save_IFS
4177
4178 fi
4179 fi
4180 CXX=$ac_cv_prog_CXX
4181 if test -n "$CXX"; then
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4183 printf "%s\n" "$CXX" >&6; }
4184 else
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 printf "%s\n" "no" >&6; }
4187 fi
4188
4189
4190 test -n "$CXX" && break
4191 done
4192 fi
4193 if test -z "$CXX"; then
4194 ac_ct_CXX=$CXX
4195 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4196 do
4197 # Extract the first word of "$ac_prog", so it can be a program name with args.
4198 set dummy $ac_prog; ac_word=$2
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 printf %s "checking for $ac_word... " >&6; }
4201 if test ${ac_cv_prog_ac_ct_CXX+y}
4202 then :
4203 printf %s "(cached) " >&6
4204 else $as_nop
4205 if test -n "$ac_ct_CXX"; then
4206 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211 IFS=$as_save_IFS
4212 case $as_dir in #(((
4213 '') as_dir=./ ;;
4214 */) ;;
4215 *) as_dir=$as_dir/ ;;
4216 esac
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_ac_ct_CXX="$ac_prog"
4220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223 done
4224 done
4225 IFS=$as_save_IFS
4226
4227 fi
4228 fi
4229 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4230 if test -n "$ac_ct_CXX"; then
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4232 printf "%s\n" "$ac_ct_CXX" >&6; }
4233 else
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 printf "%s\n" "no" >&6; }
4236 fi
4237
4238
4239 test -n "$ac_ct_CXX" && break
4240 done
4241
4242 if test "x$ac_ct_CXX" = x; then
4243 CXX="g++"
4244 else
4245 case $cross_compiling:$ac_tool_warned in
4246 yes:)
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4248 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4249 ac_tool_warned=yes ;;
4250 esac
4251 CXX=$ac_ct_CXX
4252 fi
4253 fi
4254
4255 fi
4256 fi
4257 # Provide some information about the compiler.
4258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4259 set X $ac_compile
4260 ac_compiler=$2
4261 for ac_option in --version -v -V -qversion; do
4262 { { ac_try="$ac_compiler $ac_option >&5"
4263 case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266 esac
4267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4268 printf "%s\n" "$ac_try_echo"; } >&5
4269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4270 ac_status=$?
4271 if test -s conftest.err; then
4272 sed '10a\
4273 ... rest of stderr output deleted ...
4274 10q' conftest.err >conftest.er1
4275 cat conftest.er1 >&5
4276 fi
4277 rm -f conftest.er1 conftest.err
4278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }
4280 done
4281
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4283 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4284 if test ${ac_cv_cxx_compiler_gnu+y}
4285 then :
4286 printf %s "(cached) " >&6
4287 else $as_nop
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290
4291 int
4292 main (void)
4293 {
4294 #ifndef __GNUC__
4295 choke me
4296 #endif
4297
4298 ;
4299 return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_cxx_try_compile "$LINENO"
4303 then :
4304 ac_compiler_gnu=yes
4305 else $as_nop
4306 ac_compiler_gnu=no
4307 fi
4308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4309 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4310
4311 fi
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4313 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4315
4316 if test $ac_compiler_gnu = yes; then
4317 GXX=yes
4318 else
4319 GXX=
4320 fi
4321 ac_test_CXXFLAGS=${CXXFLAGS+y}
4322 ac_save_CXXFLAGS=$CXXFLAGS
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4324 printf %s "checking whether $CXX accepts -g... " >&6; }
4325 if test ${ac_cv_prog_cxx_g+y}
4326 then :
4327 printf %s "(cached) " >&6
4328 else $as_nop
4329 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4330 ac_cxx_werror_flag=yes
4331 ac_cv_prog_cxx_g=no
4332 CXXFLAGS="-g"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335
4336 int
4337 main (void)
4338 {
4339
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 if ac_fn_cxx_try_compile "$LINENO"
4345 then :
4346 ac_cv_prog_cxx_g=yes
4347 else $as_nop
4348 CXXFLAGS=""
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351
4352 int
4353 main (void)
4354 {
4355
4356 ;
4357 return 0;
4358 }
4359 _ACEOF
4360 if ac_fn_cxx_try_compile "$LINENO"
4361 then :
4362
4363 else $as_nop
4364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4365 CXXFLAGS="-g"
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4368
4369 int
4370 main (void)
4371 {
4372
4373 ;
4374 return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_cxx_try_compile "$LINENO"
4378 then :
4379 ac_cv_prog_cxx_g=yes
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4386 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4387 fi
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4389 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4390 if test $ac_test_CXXFLAGS; then
4391 CXXFLAGS=$ac_save_CXXFLAGS
4392 elif test $ac_cv_prog_cxx_g = yes; then
4393 if test "$GXX" = yes; then
4394 CXXFLAGS="-g -O2"
4395 else
4396 CXXFLAGS="-g"
4397 fi
4398 else
4399 if test "$GXX" = yes; then
4400 CXXFLAGS="-O2"
4401 else
4402 CXXFLAGS=
4403 fi
4404 fi
4405 ac_prog_cxx_stdcxx=no
4406 if test x$ac_prog_cxx_stdcxx = xno
4407 then :
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4409 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4410 if test ${ac_cv_prog_cxx_cxx11+y}
4411 then :
4412 printf %s "(cached) " >&6
4413 else $as_nop
4414 ac_cv_prog_cxx_cxx11=no
4415 ac_save_CXX=$CXX
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 $ac_cxx_conftest_cxx11_program
4419 _ACEOF
4420 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4421 do
4422 CXX="$ac_save_CXX $ac_arg"
4423 if ac_fn_cxx_try_compile "$LINENO"
4424 then :
4425 ac_cv_prog_cxx_cxx11=$ac_arg
4426 fi
4427 rm -f core conftest.err conftest.$ac_objext conftest.beam
4428 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4429 done
4430 rm -f conftest.$ac_ext
4431 CXX=$ac_save_CXX
4432 fi
4433
4434 if test "x$ac_cv_prog_cxx_cxx11" = xno
4435 then :
4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4437 printf "%s\n" "unsupported" >&6; }
4438 else $as_nop
4439 if test "x$ac_cv_prog_cxx_cxx11" = x
4440 then :
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4442 printf "%s\n" "none needed" >&6; }
4443 else $as_nop
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4445 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4446 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4447 fi
4448 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4449 ac_prog_cxx_stdcxx=cxx11
4450 fi
4451 fi
4452 if test x$ac_prog_cxx_stdcxx = xno
4453 then :
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4455 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4456 if test ${ac_cv_prog_cxx_cxx98+y}
4457 then :
4458 printf %s "(cached) " >&6
4459 else $as_nop
4460 ac_cv_prog_cxx_cxx98=no
4461 ac_save_CXX=$CXX
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464 $ac_cxx_conftest_cxx98_program
4465 _ACEOF
4466 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4467 do
4468 CXX="$ac_save_CXX $ac_arg"
4469 if ac_fn_cxx_try_compile "$LINENO"
4470 then :
4471 ac_cv_prog_cxx_cxx98=$ac_arg
4472 fi
4473 rm -f core conftest.err conftest.$ac_objext conftest.beam
4474 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4475 done
4476 rm -f conftest.$ac_ext
4477 CXX=$ac_save_CXX
4478 fi
4479
4480 if test "x$ac_cv_prog_cxx_cxx98" = xno
4481 then :
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483 printf "%s\n" "unsupported" >&6; }
4484 else $as_nop
4485 if test "x$ac_cv_prog_cxx_cxx98" = x
4486 then :
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4488 printf "%s\n" "none needed" >&6; }
4489 else $as_nop
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4491 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4492 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4493 fi
4494 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4495 ac_prog_cxx_stdcxx=cxx98
4496 fi
4497 fi
4498
4499 ac_ext=c
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504
4505
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4507 printf %s "checking for inline... " >&6; }
4508 if test ${ac_cv_c_inline+y}
4509 then :
4510 printf %s "(cached) " >&6
4511 else $as_nop
4512 ac_cv_c_inline=no
4513 for ac_kw in inline __inline__ __inline; do
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516 #ifndef __cplusplus
4517 typedef int foo_t;
4518 static $ac_kw foo_t static_foo (void) {return 0; }
4519 $ac_kw foo_t foo (void) {return 0; }
4520 #endif
4521
4522 _ACEOF
4523 if ac_fn_c_try_compile "$LINENO"
4524 then :
4525 ac_cv_c_inline=$ac_kw
4526 fi
4527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4528 test "$ac_cv_c_inline" != no && break
4529 done
4530
4531 fi
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4533 printf "%s\n" "$ac_cv_c_inline" >&6; }
4534
4535 case $ac_cv_c_inline in
4536 inline | yes) ;;
4537 *)
4538 case $ac_cv_c_inline in
4539 no) ac_val=;;
4540 *) ac_val=$ac_cv_c_inline;;
4541 esac
4542 cat >>confdefs.h <<_ACEOF
4543 #ifndef __cplusplus
4544 #define inline $ac_val
4545 #endif
4546 _ACEOF
4547 ;;
4548 esac
4549
4550 am__api_version='1.16'
4551
4552
4553 # Find a good install program. We prefer a C program (faster),
4554 # so one script is as good as another. But avoid the broken or
4555 # incompatible versions:
4556 # SysV /etc/install, /usr/sbin/install
4557 # SunOS /usr/etc/install
4558 # IRIX /sbin/install
4559 # AIX /bin/install
4560 # AmigaOS /C/install, which installs bootblocks on floppy discs
4561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4564 # OS/2's system install, which has a completely different semantic
4565 # ./install, which can be erroneously created by make from ./install.sh.
4566 # Reject install programs that cannot install multiple files.
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4568 printf %s "checking for a BSD-compatible install... " >&6; }
4569 if test -z "$INSTALL"; then
4570 if test ${ac_cv_path_install+y}
4571 then :
4572 printf %s "(cached) " >&6
4573 else $as_nop
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577 IFS=$as_save_IFS
4578 case $as_dir in #(((
4579 '') as_dir=./ ;;
4580 */) ;;
4581 *) as_dir=$as_dir/ ;;
4582 esac
4583 # Account for fact that we put trailing slashes in our PATH walk.
4584 case $as_dir in #((
4585 ./ | /[cC]/* | \
4586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4587 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4588 /usr/ucb/* ) ;;
4589 *)
4590 # OSF1 and SCO ODT 3.0 have their own names for install.
4591 # Don't use installbsd from OSF since it installs stuff as root
4592 # by default.
4593 for ac_prog in ginstall scoinst install; do
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4596 if test $ac_prog = install &&
4597 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4598 # AIX install. It has an incompatible calling convention.
4599 :
4600 elif test $ac_prog = install &&
4601 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4602 # program-specific install script used by HP pwplus--don't use.
4603 :
4604 else
4605 rm -rf conftest.one conftest.two conftest.dir
4606 echo one > conftest.one
4607 echo two > conftest.two
4608 mkdir conftest.dir
4609 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4610 test -s conftest.one && test -s conftest.two &&
4611 test -s conftest.dir/conftest.one &&
4612 test -s conftest.dir/conftest.two
4613 then
4614 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4615 break 3
4616 fi
4617 fi
4618 fi
4619 done
4620 done
4621 ;;
4622 esac
4623
4624 done
4625 IFS=$as_save_IFS
4626
4627 rm -rf conftest.one conftest.two conftest.dir
4628
4629 fi
4630 if test ${ac_cv_path_install+y}; then
4631 INSTALL=$ac_cv_path_install
4632 else
4633 # As a last resort, use the slow shell script. Don't cache a
4634 # value for INSTALL within a source directory, because that will
4635 # break other packages using the cache if that directory is
4636 # removed, or if the value is a relative name.
4637 INSTALL=$ac_install_sh
4638 fi
4639 fi
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4641 printf "%s\n" "$INSTALL" >&6; }
4642
4643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4644 # It thinks the first close brace ends the variable substitution.
4645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4646
4647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4648
4649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4650
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4652 printf %s "checking whether build environment is sane... " >&6; }
4653 # Reject unsafe characters in $srcdir or the absolute working directory
4654 # name. Accept space and tab only in the latter.
4655 am_lf='
4656 '
4657 case `pwd` in
4658 *[\\\"\#\$\&\'\`$am_lf]*)
4659 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4660 esac
4661 case $srcdir in
4662 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4663 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4664 esac
4665
4666 # Do 'set' in a subshell so we don't clobber the current shell's
4667 # arguments. Must try -L first in case configure is actually a
4668 # symlink; some systems play weird games with the mod time of symlinks
4669 # (eg FreeBSD returns the mod time of the symlink's containing
4670 # directory).
4671 if (
4672 am_has_slept=no
4673 for am_try in 1 2; do
4674 echo "timestamp, slept: $am_has_slept" > conftest.file
4675 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4676 if test "$*" = "X"; then
4677 # -L didn't work.
4678 set X `ls -t "$srcdir/configure" conftest.file`
4679 fi
4680 if test "$*" != "X $srcdir/configure conftest.file" \
4681 && test "$*" != "X conftest.file $srcdir/configure"; then
4682
4683 # If neither matched, then we have a broken ls. This can happen
4684 # if, for instance, CONFIG_SHELL is bash and it inherits a
4685 # broken ls alias from the environment. This has actually
4686 # happened. Such a system could not be considered "sane".
4687 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4688 alias in your environment" "$LINENO" 5
4689 fi
4690 if test "$2" = conftest.file || test $am_try -eq 2; then
4691 break
4692 fi
4693 # Just in case.
4694 sleep 1
4695 am_has_slept=yes
4696 done
4697 test "$2" = conftest.file
4698 )
4699 then
4700 # Ok.
4701 :
4702 else
4703 as_fn_error $? "newly created file is older than distributed files!
4704 Check your system clock" "$LINENO" 5
4705 fi
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4707 printf "%s\n" "yes" >&6; }
4708 # If we didn't sleep, we still need to ensure time stamps of config.status and
4709 # generated files are strictly newer.
4710 am_sleep_pid=
4711 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4712 ( sleep 1 ) &
4713 am_sleep_pid=$!
4714 fi
4715
4716 rm -f conftest.file
4717
4718 test "$program_prefix" != NONE &&
4719 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4720 # Use a double $ so make ignores it.
4721 test "$program_suffix" != NONE &&
4722 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4723 # Double any \ or $.
4724 # By default was `s,x,x', remove it if useless.
4725 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4726 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4727
4728
4729 if test x"${MISSING+set}" != xset; then
4730 MISSING="\${SHELL} '$am_aux_dir/missing'"
4731 fi
4732 # Use eval to expand $SHELL
4733 if eval "$MISSING --is-lightweight"; then
4734 am_missing_run="$MISSING "
4735 else
4736 am_missing_run=
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4738 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4739 fi
4740
4741 if test x"${install_sh+set}" != xset; then
4742 case $am_aux_dir in
4743 *\ * | *\ *)
4744 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4745 *)
4746 install_sh="\${SHELL} $am_aux_dir/install-sh"
4747 esac
4748 fi
4749
4750 # Installed binaries are usually stripped using 'strip' when the user
4751 # run "make install-strip". However 'strip' might not be the right
4752 # tool to use in cross-compilation environments, therefore Automake
4753 # will honor the 'STRIP' environment variable to overrule this program.
4754 if test "$cross_compiling" != no; then
4755 if test -n "$ac_tool_prefix"; then
4756 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4757 set dummy ${ac_tool_prefix}strip; ac_word=$2
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 printf %s "checking for $ac_word... " >&6; }
4760 if test ${ac_cv_prog_STRIP+y}
4761 then :
4762 printf %s "(cached) " >&6
4763 else $as_nop
4764 if test -n "$STRIP"; then
4765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770 IFS=$as_save_IFS
4771 case $as_dir in #(((
4772 '') as_dir=./ ;;
4773 */) ;;
4774 *) as_dir=$as_dir/ ;;
4775 esac
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4778 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4780 break 2
4781 fi
4782 done
4783 done
4784 IFS=$as_save_IFS
4785
4786 fi
4787 fi
4788 STRIP=$ac_cv_prog_STRIP
4789 if test -n "$STRIP"; then
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4791 printf "%s\n" "$STRIP" >&6; }
4792 else
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 printf "%s\n" "no" >&6; }
4795 fi
4796
4797
4798 fi
4799 if test -z "$ac_cv_prog_STRIP"; then
4800 ac_ct_STRIP=$STRIP
4801 # Extract the first word of "strip", so it can be a program name with args.
4802 set dummy strip; ac_word=$2
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 printf %s "checking for $ac_word... " >&6; }
4805 if test ${ac_cv_prog_ac_ct_STRIP+y}
4806 then :
4807 printf %s "(cached) " >&6
4808 else $as_nop
4809 if test -n "$ac_ct_STRIP"; then
4810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815 IFS=$as_save_IFS
4816 case $as_dir in #(((
4817 '') as_dir=./ ;;
4818 */) ;;
4819 *) as_dir=$as_dir/ ;;
4820 esac
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4823 ac_cv_prog_ac_ct_STRIP="strip"
4824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 fi
4832 fi
4833 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4834 if test -n "$ac_ct_STRIP"; then
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4836 printf "%s\n" "$ac_ct_STRIP" >&6; }
4837 else
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 printf "%s\n" "no" >&6; }
4840 fi
4841
4842 if test "x$ac_ct_STRIP" = x; then
4843 STRIP=":"
4844 else
4845 case $cross_compiling:$ac_tool_warned in
4846 yes:)
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4848 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4849 ac_tool_warned=yes ;;
4850 esac
4851 STRIP=$ac_ct_STRIP
4852 fi
4853 else
4854 STRIP="$ac_cv_prog_STRIP"
4855 fi
4856
4857 fi
4858 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4859
4860
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4862 printf %s "checking for a race-free mkdir -p... " >&6; }
4863 if test -z "$MKDIR_P"; then
4864 if test ${ac_cv_path_mkdir+y}
4865 then :
4866 printf %s "(cached) " >&6
4867 else $as_nop
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4870 do
4871 IFS=$as_save_IFS
4872 case $as_dir in #(((
4873 '') as_dir=./ ;;
4874 */) ;;
4875 *) as_dir=$as_dir/ ;;
4876 esac
4877 for ac_prog in mkdir gmkdir; do
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4880 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4881 'mkdir ('*'coreutils) '* | \
4882 'BusyBox '* | \
4883 'mkdir (fileutils) '4.1*)
4884 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4885 break 3;;
4886 esac
4887 done
4888 done
4889 done
4890 IFS=$as_save_IFS
4891
4892 fi
4893
4894 test -d ./--version && rmdir ./--version
4895 if test ${ac_cv_path_mkdir+y}; then
4896 MKDIR_P="$ac_cv_path_mkdir -p"
4897 else
4898 # As a last resort, use the slow shell script. Don't cache a
4899 # value for MKDIR_P within a source directory, because that will
4900 # break other packages using the cache if that directory is
4901 # removed, or if the value is a relative name.
4902 MKDIR_P="$ac_install_sh -d"
4903 fi
4904 fi
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4906 printf "%s\n" "$MKDIR_P" >&6; }
4907
4908 for ac_prog in gawk mawk nawk awk
4909 do
4910 # Extract the first word of "$ac_prog", so it can be a program name with args.
4911 set dummy $ac_prog; ac_word=$2
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 printf %s "checking for $ac_word... " >&6; }
4914 if test ${ac_cv_prog_AWK+y}
4915 then :
4916 printf %s "(cached) " >&6
4917 else $as_nop
4918 if test -n "$AWK"; then
4919 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924 IFS=$as_save_IFS
4925 case $as_dir in #(((
4926 '') as_dir=./ ;;
4927 */) ;;
4928 *) as_dir=$as_dir/ ;;
4929 esac
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4932 ac_cv_prog_AWK="$ac_prog"
4933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4934 break 2
4935 fi
4936 done
4937 done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 AWK=$ac_cv_prog_AWK
4943 if test -n "$AWK"; then
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4945 printf "%s\n" "$AWK" >&6; }
4946 else
4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 printf "%s\n" "no" >&6; }
4949 fi
4950
4951
4952 test -n "$AWK" && break
4953 done
4954
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4956 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4957 set x ${MAKE-make}
4958 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4959 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4960 then :
4961 printf %s "(cached) " >&6
4962 else $as_nop
4963 cat >conftest.make <<\_ACEOF
4964 SHELL = /bin/sh
4965 all:
4966 @echo '@@@%%%=$(MAKE)=@@@%%%'
4967 _ACEOF
4968 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4969 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4970 *@@@%%%=?*=@@@%%%*)
4971 eval ac_cv_prog_make_${ac_make}_set=yes;;
4972 *)
4973 eval ac_cv_prog_make_${ac_make}_set=no;;
4974 esac
4975 rm -f conftest.make
4976 fi
4977 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4979 printf "%s\n" "yes" >&6; }
4980 SET_MAKE=
4981 else
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 printf "%s\n" "no" >&6; }
4984 SET_MAKE="MAKE=${MAKE-make}"
4985 fi
4986
4987 rm -rf .tst 2>/dev/null
4988 mkdir .tst 2>/dev/null
4989 if test -d .tst; then
4990 am__leading_dot=.
4991 else
4992 am__leading_dot=_
4993 fi
4994 rmdir .tst 2>/dev/null
4995
4996 DEPDIR="${am__leading_dot}deps"
4997
4998 ac_config_commands="$ac_config_commands depfiles"
4999
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5001 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5002 cat > confinc.mk << 'END'
5003 am__doit:
5004 @echo this is the am__doit target >confinc.out
5005 .PHONY: am__doit
5006 END
5007 am__include="#"
5008 am__quote=
5009 # BSD make does it like this.
5010 echo '.include "confinc.mk" # ignored' > confmf.BSD
5011 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5012 echo 'include confinc.mk # ignored' > confmf.GNU
5013 _am_result=no
5014 for s in GNU BSD; do
5015 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5016 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }
5020 case $?:`cat confinc.out 2>/dev/null` in #(
5021 '0:this is the am__doit target') :
5022 case $s in #(
5023 BSD) :
5024 am__include='.include' am__quote='"' ;; #(
5025 *) :
5026 am__include='include' am__quote='' ;;
5027 esac ;; #(
5028 *) :
5029 ;;
5030 esac
5031 if test "$am__include" != "#"; then
5032 _am_result="yes ($s style)"
5033 break
5034 fi
5035 done
5036 rm -f confinc.* confmf.*
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5038 printf "%s\n" "${_am_result}" >&6; }
5039
5040 # Check whether --enable-dependency-tracking was given.
5041 if test ${enable_dependency_tracking+y}
5042 then :
5043 enableval=$enable_dependency_tracking;
5044 fi
5045
5046 if test "x$enable_dependency_tracking" != xno; then
5047 am_depcomp="$ac_aux_dir/depcomp"
5048 AMDEPBACKSLASH='\'
5049 am__nodep='_no'
5050 fi
5051 if test "x$enable_dependency_tracking" != xno; then
5052 AMDEP_TRUE=
5053 AMDEP_FALSE='#'
5054 else
5055 AMDEP_TRUE='#'
5056 AMDEP_FALSE=
5057 fi
5058
5059
5060 # Check whether --enable-silent-rules was given.
5061 if test ${enable_silent_rules+y}
5062 then :
5063 enableval=$enable_silent_rules;
5064 fi
5065
5066 case $enable_silent_rules in # (((
5067 yes) AM_DEFAULT_VERBOSITY=0;;
5068 no) AM_DEFAULT_VERBOSITY=1;;
5069 *) AM_DEFAULT_VERBOSITY=1;;
5070 esac
5071 am_make=${MAKE-make}
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5073 printf %s "checking whether $am_make supports nested variables... " >&6; }
5074 if test ${am_cv_make_support_nested_variables+y}
5075 then :
5076 printf %s "(cached) " >&6
5077 else $as_nop
5078 if printf "%s\n" 'TRUE=$(BAR$(V))
5079 BAR0=false
5080 BAR1=true
5081 V=1
5082 am__doit:
5083 @$(TRUE)
5084 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5085 am_cv_make_support_nested_variables=yes
5086 else
5087 am_cv_make_support_nested_variables=no
5088 fi
5089 fi
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5091 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
5092 if test $am_cv_make_support_nested_variables = yes; then
5093 AM_V='$(V)'
5094 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5095 else
5096 AM_V=$AM_DEFAULT_VERBOSITY
5097 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5098 fi
5099 AM_BACKSLASH='\'
5100
5101 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5102 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5103 # is not polluted with repeated "-I."
5104 am__isrc=' -I$(srcdir)'
5105 # test to see if srcdir already configured
5106 if test -f $srcdir/config.status; then
5107 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5108 fi
5109 fi
5110
5111 # test whether we have cygpath
5112 if test -z "$CYGPATH_W"; then
5113 if (cygpath --version) >/dev/null 2>/dev/null; then
5114 CYGPATH_W='cygpath -w'
5115 else
5116 CYGPATH_W=echo
5117 fi
5118 fi
5119
5120
5121 # Define the identity of the package.
5122 PACKAGE='libusb-1.0'
5123 VERSION='1.0.30'
5124
5125
5126 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5127
5128
5129 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
5130
5131 # Some tools Automake needs.
5132
5133 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5134
5135
5136 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5137
5138
5139 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5140
5141
5142 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5143
5144
5145 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5146
5147 # For better backward compatibility. To be removed once Automake 1.9.x
5148 # dies out for good. For more background, see:
5149 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5150 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5151 mkdir_p='$(MKDIR_P)'
5152
5153 # We need awk for the "check" target (and possibly the TAP driver). The
5154 # system "awk" is bad on some platforms.
5155 # Always define AMTAR for backward compatibility. Yes, it's still used
5156 # in the wild :-( We should find a proper way to deprecate it ...
5157 AMTAR='$${TAR-tar}'
5158
5159
5160 # We'll loop over all known methods to create a tar archive until one works.
5161 _am_tools='gnutar pax cpio none'
5162
5163 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5164
5165
5166
5167
5168
5169 depcc="$CC" am_compiler_list=
5170
5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5172 printf %s "checking dependency style of $depcc... " >&6; }
5173 if test ${am_cv_CC_dependencies_compiler_type+y}
5174 then :
5175 printf %s "(cached) " >&6
5176 else $as_nop
5177 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5178 # We make a subdir and do the tests there. Otherwise we can end up
5179 # making bogus files that we don't know about and never remove. For
5180 # instance it was reported that on HP-UX the gcc test will end up
5181 # making a dummy file named 'D' -- because '-MD' means "put the output
5182 # in D".
5183 rm -rf conftest.dir
5184 mkdir conftest.dir
5185 # Copy depcomp to subdir because otherwise we won't find it if we're
5186 # using a relative directory.
5187 cp "$am_depcomp" conftest.dir
5188 cd conftest.dir
5189 # We will build objects and dependencies in a subdirectory because
5190 # it helps to detect inapplicable dependency modes. For instance
5191 # both Tru64's cc and ICC support -MD to output dependencies as a
5192 # side effect of compilation, but ICC will put the dependencies in
5193 # the current directory while Tru64 will put them in the object
5194 # directory.
5195 mkdir sub
5196
5197 am_cv_CC_dependencies_compiler_type=none
5198 if test "$am_compiler_list" = ""; then
5199 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5200 fi
5201 am__universal=false
5202 case " $depcc " in #(
5203 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5204 esac
5205
5206 for depmode in $am_compiler_list; do
5207 # Setup a source with many dependencies, because some compilers
5208 # like to wrap large dependency lists on column 80 (with \), and
5209 # we should not choose a depcomp mode which is confused by this.
5210 #
5211 # We need to recreate these files for each test, as the compiler may
5212 # overwrite some of them when testing with obscure command lines.
5213 # This happens at least with the AIX C compiler.
5214 : > sub/conftest.c
5215 for i in 1 2 3 4 5 6; do
5216 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5217 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5218 # Solaris 10 /bin/sh.
5219 echo '/* dummy */' > sub/conftst$i.h
5220 done
5221 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5222
5223 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5224 # mode. It turns out that the SunPro C++ compiler does not properly
5225 # handle '-M -o', and we need to detect this. Also, some Intel
5226 # versions had trouble with output in subdirs.
5227 am__obj=sub/conftest.${OBJEXT-o}
5228 am__minus_obj="-o $am__obj"
5229 case $depmode in
5230 gcc)
5231 # This depmode causes a compiler race in universal mode.
5232 test "$am__universal" = false || continue
5233 ;;
5234 nosideeffect)
5235 # After this tag, mechanisms are not by side-effect, so they'll
5236 # only be used when explicitly requested.
5237 if test "x$enable_dependency_tracking" = xyes; then
5238 continue
5239 else
5240 break
5241 fi
5242 ;;
5243 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5244 # This compiler won't grok '-c -o', but also, the minuso test has
5245 # not run yet. These depmodes are late enough in the game, and
5246 # so weak that their functioning should not be impacted.
5247 am__obj=conftest.${OBJEXT-o}
5248 am__minus_obj=
5249 ;;
5250 none) break ;;
5251 esac
5252 if depmode=$depmode \
5253 source=sub/conftest.c object=$am__obj \
5254 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5255 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5256 >/dev/null 2>conftest.err &&
5257 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5258 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5259 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5260 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5261 # icc doesn't choke on unknown options, it will just issue warnings
5262 # or remarks (even with -Werror). So we grep stderr for any message
5263 # that says an option was ignored or not supported.
5264 # When given -MP, icc 7.0 and 7.1 complain thusly:
5265 # icc: Command line warning: ignoring option '-M'; no argument required
5266 # The diagnosis changed in icc 8.0:
5267 # icc: Command line remark: option '-MP' not supported
5268 if (grep 'ignoring option' conftest.err ||
5269 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5270 am_cv_CC_dependencies_compiler_type=$depmode
5271 break
5272 fi
5273 fi
5274 done
5275
5276 cd ..
5277 rm -rf conftest.dir
5278 else
5279 am_cv_CC_dependencies_compiler_type=none
5280 fi
5281
5282 fi
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5284 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5285 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5286
5287 if
5288 test "x$enable_dependency_tracking" != xno \
5289 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5290 am__fastdepCC_TRUE=
5291 am__fastdepCC_FALSE='#'
5292 else
5293 am__fastdepCC_TRUE='#'
5294 am__fastdepCC_FALSE=
5295 fi
5296
5297
5298 depcc="$CXX" am_compiler_list=
5299
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5301 printf %s "checking dependency style of $depcc... " >&6; }
5302 if test ${am_cv_CXX_dependencies_compiler_type+y}
5303 then :
5304 printf %s "(cached) " >&6
5305 else $as_nop
5306 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5307 # We make a subdir and do the tests there. Otherwise we can end up
5308 # making bogus files that we don't know about and never remove. For
5309 # instance it was reported that on HP-UX the gcc test will end up
5310 # making a dummy file named 'D' -- because '-MD' means "put the output
5311 # in D".
5312 rm -rf conftest.dir
5313 mkdir conftest.dir
5314 # Copy depcomp to subdir because otherwise we won't find it if we're
5315 # using a relative directory.
5316 cp "$am_depcomp" conftest.dir
5317 cd conftest.dir
5318 # We will build objects and dependencies in a subdirectory because
5319 # it helps to detect inapplicable dependency modes. For instance
5320 # both Tru64's cc and ICC support -MD to output dependencies as a
5321 # side effect of compilation, but ICC will put the dependencies in
5322 # the current directory while Tru64 will put them in the object
5323 # directory.
5324 mkdir sub
5325
5326 am_cv_CXX_dependencies_compiler_type=none
5327 if test "$am_compiler_list" = ""; then
5328 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5329 fi
5330 am__universal=false
5331 case " $depcc " in #(
5332 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5333 esac
5334
5335 for depmode in $am_compiler_list; do
5336 # Setup a source with many dependencies, because some compilers
5337 # like to wrap large dependency lists on column 80 (with \), and
5338 # we should not choose a depcomp mode which is confused by this.
5339 #
5340 # We need to recreate these files for each test, as the compiler may
5341 # overwrite some of them when testing with obscure command lines.
5342 # This happens at least with the AIX C compiler.
5343 : > sub/conftest.c
5344 for i in 1 2 3 4 5 6; do
5345 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5346 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5347 # Solaris 10 /bin/sh.
5348 echo '/* dummy */' > sub/conftst$i.h
5349 done
5350 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5351
5352 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5353 # mode. It turns out that the SunPro C++ compiler does not properly
5354 # handle '-M -o', and we need to detect this. Also, some Intel
5355 # versions had trouble with output in subdirs.
5356 am__obj=sub/conftest.${OBJEXT-o}
5357 am__minus_obj="-o $am__obj"
5358 case $depmode in
5359 gcc)
5360 # This depmode causes a compiler race in universal mode.
5361 test "$am__universal" = false || continue
5362 ;;
5363 nosideeffect)
5364 # After this tag, mechanisms are not by side-effect, so they'll
5365 # only be used when explicitly requested.
5366 if test "x$enable_dependency_tracking" = xyes; then
5367 continue
5368 else
5369 break
5370 fi
5371 ;;
5372 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5373 # This compiler won't grok '-c -o', but also, the minuso test has
5374 # not run yet. These depmodes are late enough in the game, and
5375 # so weak that their functioning should not be impacted.
5376 am__obj=conftest.${OBJEXT-o}
5377 am__minus_obj=
5378 ;;
5379 none) break ;;
5380 esac
5381 if depmode=$depmode \
5382 source=sub/conftest.c object=$am__obj \
5383 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5384 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5385 >/dev/null 2>conftest.err &&
5386 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5387 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5388 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5389 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5390 # icc doesn't choke on unknown options, it will just issue warnings
5391 # or remarks (even with -Werror). So we grep stderr for any message
5392 # that says an option was ignored or not supported.
5393 # When given -MP, icc 7.0 and 7.1 complain thusly:
5394 # icc: Command line warning: ignoring option '-M'; no argument required
5395 # The diagnosis changed in icc 8.0:
5396 # icc: Command line remark: option '-MP' not supported
5397 if (grep 'ignoring option' conftest.err ||
5398 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5399 am_cv_CXX_dependencies_compiler_type=$depmode
5400 break
5401 fi
5402 fi
5403 done
5404
5405 cd ..
5406 rm -rf conftest.dir
5407 else
5408 am_cv_CXX_dependencies_compiler_type=none
5409 fi
5410
5411 fi
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5413 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5414 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5415
5416 if
5417 test "x$enable_dependency_tracking" != xno \
5418 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5419 am__fastdepCXX_TRUE=
5420 am__fastdepCXX_FALSE='#'
5421 else
5422 am__fastdepCXX_TRUE='#'
5423 am__fastdepCXX_FALSE=
5424 fi
5425
5426
5427 # Variables for tags utilities; see am/tags.am
5428 if test -z "$CTAGS"; then
5429 CTAGS=ctags
5430 fi
5431
5432 if test -z "$ETAGS"; then
5433 ETAGS=etags
5434 fi
5435
5436 if test -z "$CSCOPE"; then
5437 CSCOPE=cscope
5438 fi
5439
5440
5441
5442 # POSIX will say in a future version that running "rm -f" with no argument
5443 # is OK; and we want to be able to make that assumption in our Makefile
5444 # recipes. So use an aggressive probe to check that the usage we want is
5445 # actually supported "in the wild" to an acceptable degree.
5446 # See automake bug#10828.
5447 # To make any issue more visible, cause the running configure to be aborted
5448 # by default if the 'rm' program in use doesn't match our expectations; the
5449 # user can still override this though.
5450 if rm -f && rm -fr && rm -rf; then : OK; else
5451 cat >&2 <<'END'
5452 Oops!
5453
5454 Your 'rm' program seems unable to run without file operands specified
5455 on the command line, even when the '-f' option is present. This is contrary
5456 to the behaviour of most rm programs out there, and not conforming with
5457 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5458
5459 Please tell [email protected] about your system, including the value
5460 of your $PATH and any error possibly output before this message. This
5461 can help us improve future automake versions.
5462
5463 END
5464 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5465 echo 'Configuration will proceed anyway, since you have set the' >&2
5466 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5467 echo >&2
5468 else
5469 cat >&2 <<'END'
5470 Aborting the configuration process, to ensure you take notice of the issue.
5471
5472 You can download and install GNU coreutils to get an 'rm' implementation
5473 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5474
5475 If you want to complete the configuration process using your problematic
5476 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5477 to "yes", and re-run configure.
5478
5479 END
5480 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5481 fi
5482 fi
5483
5484 case `pwd` in
5485 *\ * | *\ *)
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5487 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5488 esac
5489
5490
5491
5492 macro_version='2.4.7'
5493 macro_revision='2.4.7'
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508 ltmain=$ac_aux_dir/ltmain.sh
5509
5510
5511
5512 # Make sure we can run config.sub.
5513 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5514 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5515
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5517 printf %s "checking build system type... " >&6; }
5518 if test ${ac_cv_build+y}
5519 then :
5520 printf %s "(cached) " >&6
5521 else $as_nop
5522 ac_build_alias=$build_alias
5523 test "x$ac_build_alias" = x &&
5524 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5525 test "x$ac_build_alias" = x &&
5526 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5527 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5528 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5529
5530 fi
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5532 printf "%s\n" "$ac_cv_build" >&6; }
5533 case $ac_cv_build in
5534 *-*-*) ;;
5535 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5536 esac
5537 build=$ac_cv_build
5538 ac_save_IFS=$IFS; IFS='-'
5539 set x $ac_cv_build
5540 shift
5541 build_cpu=$1
5542 build_vendor=$2
5543 shift; shift
5544 # Remember, the first character of IFS is used to create $*,
5545 # except with old shells:
5546 build_os=$*
5547 IFS=$ac_save_IFS
5548 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5549
5550
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5552 printf %s "checking host system type... " >&6; }
5553 if test ${ac_cv_host+y}
5554 then :
5555 printf %s "(cached) " >&6
5556 else $as_nop
5557 if test "x$host_alias" = x; then
5558 ac_cv_host=$ac_cv_build
5559 else
5560 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5561 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5562 fi
5563
5564 fi
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5566 printf "%s\n" "$ac_cv_host" >&6; }
5567 case $ac_cv_host in
5568 *-*-*) ;;
5569 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5570 esac
5571 host=$ac_cv_host
5572 ac_save_IFS=$IFS; IFS='-'
5573 set x $ac_cv_host
5574 shift
5575 host_cpu=$1
5576 host_vendor=$2
5577 shift; shift
5578 # Remember, the first character of IFS is used to create $*,
5579 # except with old shells:
5580 host_os=$*
5581 IFS=$ac_save_IFS
5582 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5583
5584
5585 # Backslashify metacharacters that are still active within
5586 # double-quoted strings.
5587 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5588
5589 # Same as above, but do not quote variable references.
5590 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5591
5592 # Sed substitution to delay expansion of an escaped shell variable in a
5593 # double_quote_subst'ed string.
5594 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5595
5596 # Sed substitution to delay expansion of an escaped single quote.
5597 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5598
5599 # Sed substitution to avoid accidental globbing in evaled expressions
5600 no_glob_subst='s/\*/\\\*/g'
5601
5602 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5603 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5604 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5605
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5607 printf %s "checking how to print strings... " >&6; }
5608 # Test print first, because it will be a builtin if present.
5609 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5610 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5611 ECHO='print -r --'
5612 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5613 ECHO='printf %s\n'
5614 else
5615 # Use this function as a fallback that always works.
5616 func_fallback_echo ()
5617 {
5618 eval 'cat <<_LTECHO_EOF
5619 $1
5620 _LTECHO_EOF'
5621 }
5622 ECHO='func_fallback_echo'
5623 fi
5624
5625 # func_echo_all arg...
5626 # Invoke $ECHO with all args, space-separated.
5627 func_echo_all ()
5628 {
5629 $ECHO ""
5630 }
5631
5632 case $ECHO in
5633 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5634 printf "%s\n" "printf" >&6; } ;;
5635 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5636 printf "%s\n" "print -r" >&6; } ;;
5637 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5638 printf "%s\n" "cat" >&6; } ;;
5639 esac
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5655 printf %s "checking for a sed that does not truncate output... " >&6; }
5656 if test ${ac_cv_path_SED+y}
5657 then :
5658 printf %s "(cached) " >&6
5659 else $as_nop
5660 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5661 for ac_i in 1 2 3 4 5 6 7; do
5662 ac_script="$ac_script$as_nl$ac_script"
5663 done
5664 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5665 { ac_script=; unset ac_script;}
5666 if test -z "$SED"; then
5667 ac_path_SED_found=false
5668 # Loop through the user's path and test for each of PROGNAME-LIST
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672 IFS=$as_save_IFS
5673 case $as_dir in #(((
5674 '') as_dir=./ ;;
5675 */) ;;
5676 *) as_dir=$as_dir/ ;;
5677 esac
5678 for ac_prog in sed gsed
5679 do
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5682 as_fn_executable_p "$ac_path_SED" || continue
5683 # Check for GNU ac_path_SED and select it if it is found.
5684 # Check for GNU $ac_path_SED
5685 case `"$ac_path_SED" --version 2>&1` in
5686 *GNU*)
5687 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5688 *)
5689 ac_count=0
5690 printf %s 0123456789 >"conftest.in"
5691 while :
5692 do
5693 cat "conftest.in" "conftest.in" >"conftest.tmp"
5694 mv "conftest.tmp" "conftest.in"
5695 cp "conftest.in" "conftest.nl"
5696 printf "%s\n" '' >> "conftest.nl"
5697 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5699 as_fn_arith $ac_count + 1 && ac_count=$as_val
5700 if test $ac_count -gt ${ac_path_SED_max-0}; then
5701 # Best one so far, save it but keep looking for a better one
5702 ac_cv_path_SED="$ac_path_SED"
5703 ac_path_SED_max=$ac_count
5704 fi
5705 # 10*(2^10) chars as input seems more than enough
5706 test $ac_count -gt 10 && break
5707 done
5708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5709 esac
5710
5711 $ac_path_SED_found && break 3
5712 done
5713 done
5714 done
5715 IFS=$as_save_IFS
5716 if test -z "$ac_cv_path_SED"; then
5717 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5718 fi
5719 else
5720 ac_cv_path_SED=$SED
5721 fi
5722
5723 fi
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5725 printf "%s\n" "$ac_cv_path_SED" >&6; }
5726 SED="$ac_cv_path_SED"
5727 rm -f conftest.sed
5728
5729 test -z "$SED" && SED=sed
5730 Xsed="$SED -e 1s/^X//"
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5743 printf %s "checking for grep that handles long lines and -e... " >&6; }
5744 if test ${ac_cv_path_GREP+y}
5745 then :
5746 printf %s "(cached) " >&6
5747 else $as_nop
5748 if test -z "$GREP"; then
5749 ac_path_GREP_found=false
5750 # Loop through the user's path and test for each of PROGNAME-LIST
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5753 do
5754 IFS=$as_save_IFS
5755 case $as_dir in #(((
5756 '') as_dir=./ ;;
5757 */) ;;
5758 *) as_dir=$as_dir/ ;;
5759 esac
5760 for ac_prog in grep ggrep
5761 do
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5764 as_fn_executable_p "$ac_path_GREP" || continue
5765 # Check for GNU ac_path_GREP and select it if it is found.
5766 # Check for GNU $ac_path_GREP
5767 case `"$ac_path_GREP" --version 2>&1` in
5768 *GNU*)
5769 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5770 *)
5771 ac_count=0
5772 printf %s 0123456789 >"conftest.in"
5773 while :
5774 do
5775 cat "conftest.in" "conftest.in" >"conftest.tmp"
5776 mv "conftest.tmp" "conftest.in"
5777 cp "conftest.in" "conftest.nl"
5778 printf "%s\n" 'GREP' >> "conftest.nl"
5779 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5781 as_fn_arith $ac_count + 1 && ac_count=$as_val
5782 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5783 # Best one so far, save it but keep looking for a better one
5784 ac_cv_path_GREP="$ac_path_GREP"
5785 ac_path_GREP_max=$ac_count
5786 fi
5787 # 10*(2^10) chars as input seems more than enough
5788 test $ac_count -gt 10 && break
5789 done
5790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5791 esac
5792
5793 $ac_path_GREP_found && break 3
5794 done
5795 done
5796 done
5797 IFS=$as_save_IFS
5798 if test -z "$ac_cv_path_GREP"; then
5799 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5800 fi
5801 else
5802 ac_cv_path_GREP=$GREP
5803 fi
5804
5805 fi
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5807 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5808 GREP="$ac_cv_path_GREP"
5809
5810
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5812 printf %s "checking for egrep... " >&6; }
5813 if test ${ac_cv_path_EGREP+y}
5814 then :
5815 printf %s "(cached) " >&6
5816 else $as_nop
5817 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5818 then ac_cv_path_EGREP="$GREP -E"
5819 else
5820 if test -z "$EGREP"; then
5821 ac_path_EGREP_found=false
5822 # Loop through the user's path and test for each of PROGNAME-LIST
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5825 do
5826 IFS=$as_save_IFS
5827 case $as_dir in #(((
5828 '') as_dir=./ ;;
5829 */) ;;
5830 *) as_dir=$as_dir/ ;;
5831 esac
5832 for ac_prog in egrep
5833 do
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5836 as_fn_executable_p "$ac_path_EGREP" || continue
5837 # Check for GNU ac_path_EGREP and select it if it is found.
5838 # Check for GNU $ac_path_EGREP
5839 case `"$ac_path_EGREP" --version 2>&1` in
5840 *GNU*)
5841 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5842 *)
5843 ac_count=0
5844 printf %s 0123456789 >"conftest.in"
5845 while :
5846 do
5847 cat "conftest.in" "conftest.in" >"conftest.tmp"
5848 mv "conftest.tmp" "conftest.in"
5849 cp "conftest.in" "conftest.nl"
5850 printf "%s\n" 'EGREP' >> "conftest.nl"
5851 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5853 as_fn_arith $ac_count + 1 && ac_count=$as_val
5854 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5855 # Best one so far, save it but keep looking for a better one
5856 ac_cv_path_EGREP="$ac_path_EGREP"
5857 ac_path_EGREP_max=$ac_count
5858 fi
5859 # 10*(2^10) chars as input seems more than enough
5860 test $ac_count -gt 10 && break
5861 done
5862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5863 esac
5864
5865 $ac_path_EGREP_found && break 3
5866 done
5867 done
5868 done
5869 IFS=$as_save_IFS
5870 if test -z "$ac_cv_path_EGREP"; then
5871 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5872 fi
5873 else
5874 ac_cv_path_EGREP=$EGREP
5875 fi
5876
5877 fi
5878 fi
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5880 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5881 EGREP="$ac_cv_path_EGREP"
5882
5883
5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5885 printf %s "checking for fgrep... " >&6; }
5886 if test ${ac_cv_path_FGREP+y}
5887 then :
5888 printf %s "(cached) " >&6
5889 else $as_nop
5890 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5891 then ac_cv_path_FGREP="$GREP -F"
5892 else
5893 if test -z "$FGREP"; then
5894 ac_path_FGREP_found=false
5895 # Loop through the user's path and test for each of PROGNAME-LIST
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5898 do
5899 IFS=$as_save_IFS
5900 case $as_dir in #(((
5901 '') as_dir=./ ;;
5902 */) ;;
5903 *) as_dir=$as_dir/ ;;
5904 esac
5905 for ac_prog in fgrep
5906 do
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5909 as_fn_executable_p "$ac_path_FGREP" || continue
5910 # Check for GNU ac_path_FGREP and select it if it is found.
5911 # Check for GNU $ac_path_FGREP
5912 case `"$ac_path_FGREP" --version 2>&1` in
5913 *GNU*)
5914 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5915 *)
5916 ac_count=0
5917 printf %s 0123456789 >"conftest.in"
5918 while :
5919 do
5920 cat "conftest.in" "conftest.in" >"conftest.tmp"
5921 mv "conftest.tmp" "conftest.in"
5922 cp "conftest.in" "conftest.nl"
5923 printf "%s\n" 'FGREP' >> "conftest.nl"
5924 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5926 as_fn_arith $ac_count + 1 && ac_count=$as_val
5927 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5928 # Best one so far, save it but keep looking for a better one
5929 ac_cv_path_FGREP="$ac_path_FGREP"
5930 ac_path_FGREP_max=$ac_count
5931 fi
5932 # 10*(2^10) chars as input seems more than enough
5933 test $ac_count -gt 10 && break
5934 done
5935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5936 esac
5937
5938 $ac_path_FGREP_found && break 3
5939 done
5940 done
5941 done
5942 IFS=$as_save_IFS
5943 if test -z "$ac_cv_path_FGREP"; then
5944 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5945 fi
5946 else
5947 ac_cv_path_FGREP=$FGREP
5948 fi
5949
5950 fi
5951 fi
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5953 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5954 FGREP="$ac_cv_path_FGREP"
5955
5956
5957 test -z "$GREP" && GREP=grep
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977 # Check whether --with-gnu-ld was given.
5978 if test ${with_gnu_ld+y}
5979 then :
5980 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5981 else $as_nop
5982 with_gnu_ld=no
5983 fi
5984
5985 ac_prog=ld
5986 if test yes = "$GCC"; then
5987 # Check if gcc -print-prog-name=ld gives a path.
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5989 printf %s "checking for ld used by $CC... " >&6; }
5990 case $host in
5991 *-*-mingw*)
5992 # gcc leaves a trailing carriage return, which upsets mingw
5993 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5994 *)
5995 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5996 esac
5997 case $ac_prog in
5998 # Accept absolute paths.
5999 [\\/]* | ?:[\\/]*)
6000 re_direlt='/[^/][^/]*/\.\./'
6001 # Canonicalize the pathname of ld
6002 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6003 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6004 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6005 done
6006 test -z "$LD" && LD=$ac_prog
6007 ;;
6008 "")
6009 # If it fails, then pretend we aren't using GCC.
6010 ac_prog=ld
6011 ;;
6012 *)
6013 # If it is relative, then search for the first ld in PATH.
6014 with_gnu_ld=unknown
6015 ;;
6016 esac
6017 elif test yes = "$with_gnu_ld"; then
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6019 printf %s "checking for GNU ld... " >&6; }
6020 else
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6022 printf %s "checking for non-GNU ld... " >&6; }
6023 fi
6024 if test ${lt_cv_path_LD+y}
6025 then :
6026 printf %s "(cached) " >&6
6027 else $as_nop
6028 if test -z "$LD"; then
6029 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6030 for ac_dir in $PATH; do
6031 IFS=$lt_save_ifs
6032 test -z "$ac_dir" && ac_dir=.
6033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6034 lt_cv_path_LD=$ac_dir/$ac_prog
6035 # Check to see if the program is GNU ld. I'd rather use --version,
6036 # but apparently some variants of GNU ld only accept -v.
6037 # Break only if it was the GNU/non-GNU ld that we prefer.
6038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6039 *GNU* | *'with BFD'*)
6040 test no != "$with_gnu_ld" && break
6041 ;;
6042 *)
6043 test yes != "$with_gnu_ld" && break
6044 ;;
6045 esac
6046 fi
6047 done
6048 IFS=$lt_save_ifs
6049 else
6050 lt_cv_path_LD=$LD # Let the user override the test with a path.
6051 fi
6052 fi
6053
6054 LD=$lt_cv_path_LD
6055 if test -n "$LD"; then
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6057 printf "%s\n" "$LD" >&6; }
6058 else
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 printf "%s\n" "no" >&6; }
6061 fi
6062 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6064 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6065 if test ${lt_cv_prog_gnu_ld+y}
6066 then :
6067 printf %s "(cached) " >&6
6068 else $as_nop
6069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6070 case `$LD -v 2>&1 </dev/null` in
6071 *GNU* | *'with BFD'*)
6072 lt_cv_prog_gnu_ld=yes
6073 ;;
6074 *)
6075 lt_cv_prog_gnu_ld=no
6076 ;;
6077 esac
6078 fi
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6080 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6081 with_gnu_ld=$lt_cv_prog_gnu_ld
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6092 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6093 if test ${lt_cv_path_NM+y}
6094 then :
6095 printf %s "(cached) " >&6
6096 else $as_nop
6097 if test -n "$NM"; then
6098 # Let the user override the test.
6099 lt_cv_path_NM=$NM
6100 else
6101 lt_nm_to_check=${ac_tool_prefix}nm
6102 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6103 lt_nm_to_check="$lt_nm_to_check nm"
6104 fi
6105 for lt_tmp_nm in $lt_nm_to_check; do
6106 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6107 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6108 IFS=$lt_save_ifs
6109 test -z "$ac_dir" && ac_dir=.
6110 tmp_nm=$ac_dir/$lt_tmp_nm
6111 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6112 # Check to see if the nm accepts a BSD-compat flag.
6113 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6114 # nm: unknown option "B" ignored
6115 # Tru64's nm complains that /dev/null is an invalid object file
6116 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6117 case $build_os in
6118 mingw*) lt_bad_file=conftest.nm/nofile ;;
6119 *) lt_bad_file=/dev/null ;;
6120 esac
6121 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6122 *$lt_bad_file* | *'Invalid file or object type'*)
6123 lt_cv_path_NM="$tmp_nm -B"
6124 break 2
6125 ;;
6126 *)
6127 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6128 */dev/null*)
6129 lt_cv_path_NM="$tmp_nm -p"
6130 break 2
6131 ;;
6132 *)
6133 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6134 continue # so that we can try to find one that supports BSD flags
6135 ;;
6136 esac
6137 ;;
6138 esac
6139 fi
6140 done
6141 IFS=$lt_save_ifs
6142 done
6143 : ${lt_cv_path_NM=no}
6144 fi
6145 fi
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6147 printf "%s\n" "$lt_cv_path_NM" >&6; }
6148 if test no != "$lt_cv_path_NM"; then
6149 NM=$lt_cv_path_NM
6150 else
6151 # Didn't find any BSD compatible name lister, look for dumpbin.
6152 if test -n "$DUMPBIN"; then :
6153 # Let the user override the test.
6154 else
6155 if test -n "$ac_tool_prefix"; then
6156 for ac_prog in dumpbin "link -dump"
6157 do
6158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 printf %s "checking for $ac_word... " >&6; }
6162 if test ${ac_cv_prog_DUMPBIN+y}
6163 then :
6164 printf %s "(cached) " >&6
6165 else $as_nop
6166 if test -n "$DUMPBIN"; then
6167 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6168 else
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH
6171 do
6172 IFS=$as_save_IFS
6173 case $as_dir in #(((
6174 '') as_dir=./ ;;
6175 */) ;;
6176 *) as_dir=$as_dir/ ;;
6177 esac
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184 done
6185 done
6186 IFS=$as_save_IFS
6187
6188 fi
6189 fi
6190 DUMPBIN=$ac_cv_prog_DUMPBIN
6191 if test -n "$DUMPBIN"; then
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6193 printf "%s\n" "$DUMPBIN" >&6; }
6194 else
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 printf "%s\n" "no" >&6; }
6197 fi
6198
6199
6200 test -n "$DUMPBIN" && break
6201 done
6202 fi
6203 if test -z "$DUMPBIN"; then
6204 ac_ct_DUMPBIN=$DUMPBIN
6205 for ac_prog in dumpbin "link -dump"
6206 do
6207 # Extract the first word of "$ac_prog", so it can be a program name with args.
6208 set dummy $ac_prog; ac_word=$2
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 printf %s "checking for $ac_word... " >&6; }
6211 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6212 then :
6213 printf %s "(cached) " >&6
6214 else $as_nop
6215 if test -n "$ac_ct_DUMPBIN"; then
6216 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221 IFS=$as_save_IFS
6222 case $as_dir in #(((
6223 '') as_dir=./ ;;
6224 */) ;;
6225 *) as_dir=$as_dir/ ;;
6226 esac
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6229 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6231 break 2
6232 fi
6233 done
6234 done
6235 IFS=$as_save_IFS
6236
6237 fi
6238 fi
6239 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6240 if test -n "$ac_ct_DUMPBIN"; then
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6242 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6243 else
6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 printf "%s\n" "no" >&6; }
6246 fi
6247
6248
6249 test -n "$ac_ct_DUMPBIN" && break
6250 done
6251
6252 if test "x$ac_ct_DUMPBIN" = x; then
6253 DUMPBIN=":"
6254 else
6255 case $cross_compiling:$ac_tool_warned in
6256 yes:)
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6258 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6259 ac_tool_warned=yes ;;
6260 esac
6261 DUMPBIN=$ac_ct_DUMPBIN
6262 fi
6263 fi
6264
6265 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6266 *COFF*)
6267 DUMPBIN="$DUMPBIN -symbols -headers"
6268 ;;
6269 *)
6270 DUMPBIN=:
6271 ;;
6272 esac
6273 fi
6274
6275 if test : != "$DUMPBIN"; then
6276 NM=$DUMPBIN
6277 fi
6278 fi
6279 test -z "$NM" && NM=nm
6280
6281
6282
6283
6284
6285
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6287 printf %s "checking the name lister ($NM) interface... " >&6; }
6288 if test ${lt_cv_nm_interface+y}
6289 then :
6290 printf %s "(cached) " >&6
6291 else $as_nop
6292 lt_cv_nm_interface="BSD nm"
6293 echo "int some_variable = 0;" > conftest.$ac_ext
6294 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6295 (eval "$ac_compile" 2>conftest.err)
6296 cat conftest.err >&5
6297 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6298 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6299 cat conftest.err >&5
6300 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6301 cat conftest.out >&5
6302 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6303 lt_cv_nm_interface="MS dumpbin"
6304 fi
6305 rm -f conftest*
6306 fi
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6308 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6309
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6311 printf %s "checking whether ln -s works... " >&6; }
6312 LN_S=$as_ln_s
6313 if test "$LN_S" = "ln -s"; then
6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6315 printf "%s\n" "yes" >&6; }
6316 else
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6318 printf "%s\n" "no, using $LN_S" >&6; }
6319 fi
6320
6321 # find the maximum length of command line arguments
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6323 printf %s "checking the maximum length of command line arguments... " >&6; }
6324 if test ${lt_cv_sys_max_cmd_len+y}
6325 then :
6326 printf %s "(cached) " >&6
6327 else $as_nop
6328 i=0
6329 teststring=ABCD
6330
6331 case $build_os in
6332 msdosdjgpp*)
6333 # On DJGPP, this test can blow up pretty badly due to problems in libc
6334 # (any single argument exceeding 2000 bytes causes a buffer overrun
6335 # during glob expansion). Even if it were fixed, the result of this
6336 # check would be larger than it should be.
6337 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6338 ;;
6339
6340 gnu*)
6341 # Under GNU Hurd, this test is not required because there is
6342 # no limit to the length of command line arguments.
6343 # Libtool will interpret -1 as no limit whatsoever
6344 lt_cv_sys_max_cmd_len=-1;
6345 ;;
6346
6347 cygwin* | mingw* | cegcc*)
6348 # On Win9x/ME, this test blows up -- it succeeds, but takes
6349 # about 5 minutes as the teststring grows exponentially.
6350 # Worse, since 9x/ME are not pre-emptively multitasking,
6351 # you end up with a "frozen" computer, even though with patience
6352 # the test eventually succeeds (with a max line length of 256k).
6353 # Instead, let's just punt: use the minimum linelength reported by
6354 # all of the supported platforms: 8192 (on NT/2K/XP).
6355 lt_cv_sys_max_cmd_len=8192;
6356 ;;
6357
6358 mint*)
6359 # On MiNT this can take a long time and run out of memory.
6360 lt_cv_sys_max_cmd_len=8192;
6361 ;;
6362
6363 amigaos*)
6364 # On AmigaOS with pdksh, this test takes hours, literally.
6365 # So we just punt and use a minimum line length of 8192.
6366 lt_cv_sys_max_cmd_len=8192;
6367 ;;
6368
6369 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6370 # This has been around since 386BSD, at least. Likely further.
6371 if test -x /sbin/sysctl; then
6372 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6373 elif test -x /usr/sbin/sysctl; then
6374 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6375 else
6376 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6377 fi
6378 # And add a safety zone
6379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6381 ;;
6382
6383 interix*)
6384 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6385 lt_cv_sys_max_cmd_len=196608
6386 ;;
6387
6388 os2*)
6389 # The test takes a long time on OS/2.
6390 lt_cv_sys_max_cmd_len=8192
6391 ;;
6392
6393 osf*)
6394 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6395 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6396 # nice to cause kernel panics so lets avoid the loop below.
6397 # First set a reasonable default.
6398 lt_cv_sys_max_cmd_len=16384
6399 #
6400 if test -x /sbin/sysconfig; then
6401 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6402 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6403 esac
6404 fi
6405 ;;
6406 sco3.2v5*)
6407 lt_cv_sys_max_cmd_len=102400
6408 ;;
6409 sysv5* | sco5v6* | sysv4.2uw2*)
6410 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6411 if test -n "$kargmax"; then
6412 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6413 else
6414 lt_cv_sys_max_cmd_len=32768
6415 fi
6416 ;;
6417 *)
6418 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6419 if test -n "$lt_cv_sys_max_cmd_len" && \
6420 test undefined != "$lt_cv_sys_max_cmd_len"; then
6421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6423 else
6424 # Make teststring a little bigger before we do anything with it.
6425 # a 1K string should be a reasonable start.
6426 for i in 1 2 3 4 5 6 7 8; do
6427 teststring=$teststring$teststring
6428 done
6429 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6430 # If test is not a shell built-in, we'll probably end up computing a
6431 # maximum length that is only half of the actual maximum length, but
6432 # we can't tell.
6433 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6434 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6435 test 17 != "$i" # 1/2 MB should be enough
6436 do
6437 i=`expr $i + 1`
6438 teststring=$teststring$teststring
6439 done
6440 # Only check the string length outside the loop.
6441 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6442 teststring=
6443 # Add a significant safety factor because C++ compilers can tack on
6444 # massive amounts of additional arguments before passing them to the
6445 # linker. It appears as though 1/2 is a usable value.
6446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6447 fi
6448 ;;
6449 esac
6450
6451 fi
6452
6453 if test -n "$lt_cv_sys_max_cmd_len"; then
6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6455 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6456 else
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6458 printf "%s\n" "none" >&6; }
6459 fi
6460 max_cmd_len=$lt_cv_sys_max_cmd_len
6461
6462
6463
6464
6465
6466
6467 : ${CP="cp -f"}
6468 : ${MV="mv -f"}
6469 : ${RM="rm -f"}
6470
6471 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6472 lt_unset=unset
6473 else
6474 lt_unset=false
6475 fi
6476
6477
6478
6479
6480
6481 # test EBCDIC or ASCII
6482 case `echo X|tr X '\101'` in
6483 A) # ASCII based system
6484 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6485 lt_SP2NL='tr \040 \012'
6486 lt_NL2SP='tr \015\012 \040\040'
6487 ;;
6488 *) # EBCDIC based system
6489 lt_SP2NL='tr \100 \n'
6490 lt_NL2SP='tr \r\n \100\100'
6491 ;;
6492 esac
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6503 printf %s "checking how to convert $build file names to $host format... " >&6; }
6504 if test ${lt_cv_to_host_file_cmd+y}
6505 then :
6506 printf %s "(cached) " >&6
6507 else $as_nop
6508 case $host in
6509 *-*-mingw* )
6510 case $build in
6511 *-*-mingw* ) # actually msys
6512 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6513 ;;
6514 *-*-cygwin* )
6515 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6516 ;;
6517 * ) # otherwise, assume *nix
6518 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6519 ;;
6520 esac
6521 ;;
6522 *-*-cygwin* )
6523 case $build in
6524 *-*-mingw* ) # actually msys
6525 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6526 ;;
6527 *-*-cygwin* )
6528 lt_cv_to_host_file_cmd=func_convert_file_noop
6529 ;;
6530 * ) # otherwise, assume *nix
6531 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6532 ;;
6533 esac
6534 ;;
6535 * ) # unhandled hosts (and "normal" native builds)
6536 lt_cv_to_host_file_cmd=func_convert_file_noop
6537 ;;
6538 esac
6539
6540 fi
6541
6542 to_host_file_cmd=$lt_cv_to_host_file_cmd
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6544 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6545
6546
6547
6548
6549
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6551 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6552 if test ${lt_cv_to_tool_file_cmd+y}
6553 then :
6554 printf %s "(cached) " >&6
6555 else $as_nop
6556 #assume ordinary cross tools, or native build.
6557 lt_cv_to_tool_file_cmd=func_convert_file_noop
6558 case $host in
6559 *-*-mingw* )
6560 case $build in
6561 *-*-mingw* ) # actually msys
6562 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6563 ;;
6564 esac
6565 ;;
6566 esac
6567
6568 fi
6569
6570 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6572 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6573
6574
6575
6576
6577
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6579 printf %s "checking for $LD option to reload object files... " >&6; }
6580 if test ${lt_cv_ld_reload_flag+y}
6581 then :
6582 printf %s "(cached) " >&6
6583 else $as_nop
6584 lt_cv_ld_reload_flag='-r'
6585 fi
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6587 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6588 reload_flag=$lt_cv_ld_reload_flag
6589 case $reload_flag in
6590 "" | " "*) ;;
6591 *) reload_flag=" $reload_flag" ;;
6592 esac
6593 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6594 case $host_os in
6595 cygwin* | mingw* | pw32* | cegcc*)
6596 if test yes != "$GCC"; then
6597 reload_cmds=false
6598 fi
6599 ;;
6600 darwin*)
6601 if test yes = "$GCC"; then
6602 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6603 else
6604 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6605 fi
6606 ;;
6607 esac
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617 if test -n "$ac_tool_prefix"; then
6618 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6619 set dummy ${ac_tool_prefix}file; ac_word=$2
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 printf %s "checking for $ac_word... " >&6; }
6622 if test ${ac_cv_prog_FILECMD+y}
6623 then :
6624 printf %s "(cached) " >&6
6625 else $as_nop
6626 if test -n "$FILECMD"; then
6627 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632 IFS=$as_save_IFS
6633 case $as_dir in #(((
6634 '') as_dir=./ ;;
6635 */) ;;
6636 *) as_dir=$as_dir/ ;;
6637 esac
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6640 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6642 break 2
6643 fi
6644 done
6645 done
6646 IFS=$as_save_IFS
6647
6648 fi
6649 fi
6650 FILECMD=$ac_cv_prog_FILECMD
6651 if test -n "$FILECMD"; then
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6653 printf "%s\n" "$FILECMD" >&6; }
6654 else
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 printf "%s\n" "no" >&6; }
6657 fi
6658
6659
6660 fi
6661 if test -z "$ac_cv_prog_FILECMD"; then
6662 ac_ct_FILECMD=$FILECMD
6663 # Extract the first word of "file", so it can be a program name with args.
6664 set dummy file; ac_word=$2
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 printf %s "checking for $ac_word... " >&6; }
6667 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6668 then :
6669 printf %s "(cached) " >&6
6670 else $as_nop
6671 if test -n "$ac_ct_FILECMD"; then
6672 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677 IFS=$as_save_IFS
6678 case $as_dir in #(((
6679 '') as_dir=./ ;;
6680 */) ;;
6681 *) as_dir=$as_dir/ ;;
6682 esac
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_ac_ct_FILECMD="file"
6686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693 fi
6694 fi
6695 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6696 if test -n "$ac_ct_FILECMD"; then
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6698 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6699 else
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 printf "%s\n" "no" >&6; }
6702 fi
6703
6704 if test "x$ac_ct_FILECMD" = x; then
6705 FILECMD=":"
6706 else
6707 case $cross_compiling:$ac_tool_warned in
6708 yes:)
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6710 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711 ac_tool_warned=yes ;;
6712 esac
6713 FILECMD=$ac_ct_FILECMD
6714 fi
6715 else
6716 FILECMD="$ac_cv_prog_FILECMD"
6717 fi
6718
6719
6720
6721
6722
6723
6724
6725 if test -n "$ac_tool_prefix"; then
6726 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6727 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 printf %s "checking for $ac_word... " >&6; }
6730 if test ${ac_cv_prog_OBJDUMP+y}
6731 then :
6732 printf %s "(cached) " >&6
6733 else $as_nop
6734 if test -n "$OBJDUMP"; then
6735 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740 IFS=$as_save_IFS
6741 case $as_dir in #(((
6742 '') as_dir=./ ;;
6743 */) ;;
6744 *) as_dir=$as_dir/ ;;
6745 esac
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752 done
6753 done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 OBJDUMP=$ac_cv_prog_OBJDUMP
6759 if test -n "$OBJDUMP"; then
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6761 printf "%s\n" "$OBJDUMP" >&6; }
6762 else
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 printf "%s\n" "no" >&6; }
6765 fi
6766
6767
6768 fi
6769 if test -z "$ac_cv_prog_OBJDUMP"; then
6770 ac_ct_OBJDUMP=$OBJDUMP
6771 # Extract the first word of "objdump", so it can be a program name with args.
6772 set dummy objdump; ac_word=$2
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 printf %s "checking for $ac_word... " >&6; }
6775 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6776 then :
6777 printf %s "(cached) " >&6
6778 else $as_nop
6779 if test -n "$ac_ct_OBJDUMP"; then
6780 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785 IFS=$as_save_IFS
6786 case $as_dir in #(((
6787 '') as_dir=./ ;;
6788 */) ;;
6789 *) as_dir=$as_dir/ ;;
6790 esac
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6793 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797 done
6798 done
6799 IFS=$as_save_IFS
6800
6801 fi
6802 fi
6803 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6804 if test -n "$ac_ct_OBJDUMP"; then
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6806 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6807 else
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809 printf "%s\n" "no" >&6; }
6810 fi
6811
6812 if test "x$ac_ct_OBJDUMP" = x; then
6813 OBJDUMP="false"
6814 else
6815 case $cross_compiling:$ac_tool_warned in
6816 yes:)
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6818 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6819 ac_tool_warned=yes ;;
6820 esac
6821 OBJDUMP=$ac_ct_OBJDUMP
6822 fi
6823 else
6824 OBJDUMP="$ac_cv_prog_OBJDUMP"
6825 fi
6826
6827 test -z "$OBJDUMP" && OBJDUMP=objdump
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6838 printf %s "checking how to recognize dependent libraries... " >&6; }
6839 if test ${lt_cv_deplibs_check_method+y}
6840 then :
6841 printf %s "(cached) " >&6
6842 else $as_nop
6843 lt_cv_file_magic_cmd='$MAGIC_CMD'
6844 lt_cv_file_magic_test_file=
6845 lt_cv_deplibs_check_method='unknown'
6846 # Need to set the preceding variable on all platforms that support
6847 # interlibrary dependencies.
6848 # 'none' -- dependencies not supported.
6849 # 'unknown' -- same as none, but documents that we really don't know.
6850 # 'pass_all' -- all dependencies passed with no checks.
6851 # 'test_compile' -- check by making test program.
6852 # 'file_magic [[regex]]' -- check by looking for files in library path
6853 # that responds to the $file_magic_cmd with a given extended regex.
6854 # If you have 'file' or equivalent on your system and you're not sure
6855 # whether 'pass_all' will *always* work, you probably want this one.
6856
6857 case $host_os in
6858 aix[4-9]*)
6859 lt_cv_deplibs_check_method=pass_all
6860 ;;
6861
6862 beos*)
6863 lt_cv_deplibs_check_method=pass_all
6864 ;;
6865
6866 bsdi[45]*)
6867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6868 lt_cv_file_magic_cmd='$FILECMD -L'
6869 lt_cv_file_magic_test_file=/shlib/libc.so
6870 ;;
6871
6872 cygwin*)
6873 # func_win32_libid is a shell function defined in ltmain.sh
6874 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6875 lt_cv_file_magic_cmd='func_win32_libid'
6876 ;;
6877
6878 mingw* | pw32*)
6879 # Base MSYS/MinGW do not provide the 'file' command needed by
6880 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6881 # unless we find 'file', for example because we are cross-compiling.
6882 if ( file / ) >/dev/null 2>&1; then
6883 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6884 lt_cv_file_magic_cmd='func_win32_libid'
6885 else
6886 # Keep this pattern in sync with the one in func_win32_libid.
6887 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6888 lt_cv_file_magic_cmd='$OBJDUMP -f'
6889 fi
6890 ;;
6891
6892 cegcc*)
6893 # use the weaker test based on 'objdump'. See mingw*.
6894 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6895 lt_cv_file_magic_cmd='$OBJDUMP -f'
6896 ;;
6897
6898 darwin* | rhapsody*)
6899 lt_cv_deplibs_check_method=pass_all
6900 ;;
6901
6902 freebsd* | dragonfly* | midnightbsd*)
6903 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6904 case $host_cpu in
6905 i*86 )
6906 # Not sure whether the presence of OpenBSD here was a mistake.
6907 # Let's accept both of them until this is cleared up.
6908 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6909 lt_cv_file_magic_cmd=$FILECMD
6910 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6911 ;;
6912 esac
6913 else
6914 lt_cv_deplibs_check_method=pass_all
6915 fi
6916 ;;
6917
6918 haiku*)
6919 lt_cv_deplibs_check_method=pass_all
6920 ;;
6921
6922 hpux10.20* | hpux11*)
6923 lt_cv_file_magic_cmd=$FILECMD
6924 case $host_cpu in
6925 ia64*)
6926 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6927 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6928 ;;
6929 hppa*64*)
6930 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]'
6931 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6932 ;;
6933 *)
6934 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6935 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6936 ;;
6937 esac
6938 ;;
6939
6940 interix[3-9]*)
6941 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6943 ;;
6944
6945 irix5* | irix6* | nonstopux*)
6946 case $LD in
6947 *-32|*"-32 ") libmagic=32-bit;;
6948 *-n32|*"-n32 ") libmagic=N32;;
6949 *-64|*"-64 ") libmagic=64-bit;;
6950 *) libmagic=never-match;;
6951 esac
6952 lt_cv_deplibs_check_method=pass_all
6953 ;;
6954
6955 # This must be glibc/ELF.
6956 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6957 lt_cv_deplibs_check_method=pass_all
6958 ;;
6959
6960 netbsd* | netbsdelf*-gnu)
6961 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6963 else
6964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6965 fi
6966 ;;
6967
6968 newos6*)
6969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6970 lt_cv_file_magic_cmd=$FILECMD
6971 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6972 ;;
6973
6974 *nto* | *qnx*)
6975 lt_cv_deplibs_check_method=pass_all
6976 ;;
6977
6978 openbsd* | bitrig*)
6979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6981 else
6982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6983 fi
6984 ;;
6985
6986 osf3* | osf4* | osf5*)
6987 lt_cv_deplibs_check_method=pass_all
6988 ;;
6989
6990 rdos*)
6991 lt_cv_deplibs_check_method=pass_all
6992 ;;
6993
6994 solaris*)
6995 lt_cv_deplibs_check_method=pass_all
6996 ;;
6997
6998 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6999 lt_cv_deplibs_check_method=pass_all
7000 ;;
7001
7002 sysv4 | sysv4.3*)
7003 case $host_vendor in
7004 motorola)
7005 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]'
7006 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7007 ;;
7008 ncr)
7009 lt_cv_deplibs_check_method=pass_all
7010 ;;
7011 sequent)
7012 lt_cv_file_magic_cmd='/bin/file'
7013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7014 ;;
7015 sni)
7016 lt_cv_file_magic_cmd='/bin/file'
7017 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7018 lt_cv_file_magic_test_file=/lib/libc.so
7019 ;;
7020 siemens)
7021 lt_cv_deplibs_check_method=pass_all
7022 ;;
7023 pc)
7024 lt_cv_deplibs_check_method=pass_all
7025 ;;
7026 esac
7027 ;;
7028
7029 tpf*)
7030 lt_cv_deplibs_check_method=pass_all
7031 ;;
7032 os2*)
7033 lt_cv_deplibs_check_method=pass_all
7034 ;;
7035 esac
7036
7037 fi
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7039 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7040
7041 file_magic_glob=
7042 want_nocaseglob=no
7043 if test "$build" = "$host"; then
7044 case $host_os in
7045 mingw* | pw32*)
7046 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7047 want_nocaseglob=yes
7048 else
7049 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7050 fi
7051 ;;
7052 esac
7053 fi
7054
7055 file_magic_cmd=$lt_cv_file_magic_cmd
7056 deplibs_check_method=$lt_cv_deplibs_check_method
7057 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080 if test -n "$ac_tool_prefix"; then
7081 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7082 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 printf %s "checking for $ac_word... " >&6; }
7085 if test ${ac_cv_prog_DLLTOOL+y}
7086 then :
7087 printf %s "(cached) " >&6
7088 else $as_nop
7089 if test -n "$DLLTOOL"; then
7090 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095 IFS=$as_save_IFS
7096 case $as_dir in #(((
7097 '') as_dir=./ ;;
7098 */) ;;
7099 *) as_dir=$as_dir/ ;;
7100 esac
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7103 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111 fi
7112 fi
7113 DLLTOOL=$ac_cv_prog_DLLTOOL
7114 if test -n "$DLLTOOL"; then
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7116 printf "%s\n" "$DLLTOOL" >&6; }
7117 else
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 printf "%s\n" "no" >&6; }
7120 fi
7121
7122
7123 fi
7124 if test -z "$ac_cv_prog_DLLTOOL"; then
7125 ac_ct_DLLTOOL=$DLLTOOL
7126 # Extract the first word of "dlltool", so it can be a program name with args.
7127 set dummy dlltool; ac_word=$2
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 printf %s "checking for $ac_word... " >&6; }
7130 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7131 then :
7132 printf %s "(cached) " >&6
7133 else $as_nop
7134 if test -n "$ac_ct_DLLTOOL"; then
7135 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140 IFS=$as_save_IFS
7141 case $as_dir in #(((
7142 '') as_dir=./ ;;
7143 */) ;;
7144 *) as_dir=$as_dir/ ;;
7145 esac
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156 fi
7157 fi
7158 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7159 if test -n "$ac_ct_DLLTOOL"; then
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7161 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7162 else
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 printf "%s\n" "no" >&6; }
7165 fi
7166
7167 if test "x$ac_ct_DLLTOOL" = x; then
7168 DLLTOOL="false"
7169 else
7170 case $cross_compiling:$ac_tool_warned in
7171 yes:)
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7173 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7174 ac_tool_warned=yes ;;
7175 esac
7176 DLLTOOL=$ac_ct_DLLTOOL
7177 fi
7178 else
7179 DLLTOOL="$ac_cv_prog_DLLTOOL"
7180 fi
7181
7182 test -z "$DLLTOOL" && DLLTOOL=dlltool
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7194 printf %s "checking how to associate runtime and link libraries... " >&6; }
7195 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7196 then :
7197 printf %s "(cached) " >&6
7198 else $as_nop
7199 lt_cv_sharedlib_from_linklib_cmd='unknown'
7200
7201 case $host_os in
7202 cygwin* | mingw* | pw32* | cegcc*)
7203 # two different shell functions defined in ltmain.sh;
7204 # decide which one to use based on capabilities of $DLLTOOL
7205 case `$DLLTOOL --help 2>&1` in
7206 *--identify-strict*)
7207 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7208 ;;
7209 *)
7210 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7211 ;;
7212 esac
7213 ;;
7214 *)
7215 # fallback: assume linklib IS sharedlib
7216 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7217 ;;
7218 esac
7219
7220 fi
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7222 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7223 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7224 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7225
7226
7227
7228
7229
7230
7231
7232 if test -n "$ac_tool_prefix"; then
7233 for ac_prog in ar
7234 do
7235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 printf %s "checking for $ac_word... " >&6; }
7239 if test ${ac_cv_prog_AR+y}
7240 then :
7241 printf %s "(cached) " >&6
7242 else $as_nop
7243 if test -n "$AR"; then
7244 ac_cv_prog_AR="$AR" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249 IFS=$as_save_IFS
7250 case $as_dir in #(((
7251 '') as_dir=./ ;;
7252 */) ;;
7253 *) as_dir=$as_dir/ ;;
7254 esac
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7257 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 AR=$ac_cv_prog_AR
7268 if test -n "$AR"; then
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7270 printf "%s\n" "$AR" >&6; }
7271 else
7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 printf "%s\n" "no" >&6; }
7274 fi
7275
7276
7277 test -n "$AR" && break
7278 done
7279 fi
7280 if test -z "$AR"; then
7281 ac_ct_AR=$AR
7282 for ac_prog in ar
7283 do
7284 # Extract the first word of "$ac_prog", so it can be a program name with args.
7285 set dummy $ac_prog; ac_word=$2
7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 printf %s "checking for $ac_word... " >&6; }
7288 if test ${ac_cv_prog_ac_ct_AR+y}
7289 then :
7290 printf %s "(cached) " >&6
7291 else $as_nop
7292 if test -n "$ac_ct_AR"; then
7293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298 IFS=$as_save_IFS
7299 case $as_dir in #(((
7300 '') as_dir=./ ;;
7301 */) ;;
7302 *) as_dir=$as_dir/ ;;
7303 esac
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_ac_ct_AR="$ac_prog"
7307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310 done
7311 done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7317 if test -n "$ac_ct_AR"; then
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7319 printf "%s\n" "$ac_ct_AR" >&6; }
7320 else
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 printf "%s\n" "no" >&6; }
7323 fi
7324
7325
7326 test -n "$ac_ct_AR" && break
7327 done
7328
7329 if test "x$ac_ct_AR" = x; then
7330 AR="false"
7331 else
7332 case $cross_compiling:$ac_tool_warned in
7333 yes:)
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7335 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7336 ac_tool_warned=yes ;;
7337 esac
7338 AR=$ac_ct_AR
7339 fi
7340 fi
7341
7342 : ${AR=ar}
7343
7344
7345
7346
7347
7348
7349 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7350 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7351 # higher priority because thats what people were doing historically (setting
7352 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7353 # variable obsoleted/removed.
7354
7355 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7356 lt_ar_flags=$AR_FLAGS
7357
7358
7359
7360
7361
7362
7363 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7364 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7365
7366
7367
7368
7369
7370
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7372 printf %s "checking for archiver @FILE support... " >&6; }
7373 if test ${lt_cv_ar_at_file+y}
7374 then :
7375 printf %s "(cached) " >&6
7376 else $as_nop
7377 lt_cv_ar_at_file=no
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380
7381 int
7382 main (void)
7383 {
7384
7385 ;
7386 return 0;
7387 }
7388 _ACEOF
7389 if ac_fn_c_try_compile "$LINENO"
7390 then :
7391 echo conftest.$ac_objext > conftest.lst
7392 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7394 (eval $lt_ar_try) 2>&5
7395 ac_status=$?
7396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7397 test $ac_status = 0; }
7398 if test 0 -eq "$ac_status"; then
7399 # Ensure the archiver fails upon bogus file names.
7400 rm -f conftest.$ac_objext libconftest.a
7401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7402 (eval $lt_ar_try) 2>&5
7403 ac_status=$?
7404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }
7406 if test 0 -ne "$ac_status"; then
7407 lt_cv_ar_at_file=@
7408 fi
7409 fi
7410 rm -f conftest.* libconftest.a
7411
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7414
7415 fi
7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7417 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7418
7419 if test no = "$lt_cv_ar_at_file"; then
7420 archiver_list_spec=
7421 else
7422 archiver_list_spec=$lt_cv_ar_at_file
7423 fi
7424
7425
7426
7427
7428
7429
7430
7431 if test -n "$ac_tool_prefix"; then
7432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7433 set dummy ${ac_tool_prefix}strip; ac_word=$2
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 printf %s "checking for $ac_word... " >&6; }
7436 if test ${ac_cv_prog_STRIP+y}
7437 then :
7438 printf %s "(cached) " >&6
7439 else $as_nop
7440 if test -n "$STRIP"; then
7441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446 IFS=$as_save_IFS
7447 case $as_dir in #(((
7448 '') as_dir=./ ;;
7449 */) ;;
7450 *) as_dir=$as_dir/ ;;
7451 esac
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7456 break 2
7457 fi
7458 done
7459 done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 STRIP=$ac_cv_prog_STRIP
7465 if test -n "$STRIP"; then
7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7467 printf "%s\n" "$STRIP" >&6; }
7468 else
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 printf "%s\n" "no" >&6; }
7471 fi
7472
7473
7474 fi
7475 if test -z "$ac_cv_prog_STRIP"; then
7476 ac_ct_STRIP=$STRIP
7477 # Extract the first word of "strip", so it can be a program name with args.
7478 set dummy strip; ac_word=$2
7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 printf %s "checking for $ac_word... " >&6; }
7481 if test ${ac_cv_prog_ac_ct_STRIP+y}
7482 then :
7483 printf %s "(cached) " >&6
7484 else $as_nop
7485 if test -n "$ac_ct_STRIP"; then
7486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7487 else
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491 IFS=$as_save_IFS
7492 case $as_dir in #(((
7493 '') as_dir=./ ;;
7494 */) ;;
7495 *) as_dir=$as_dir/ ;;
7496 esac
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7499 ac_cv_prog_ac_ct_STRIP="strip"
7500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7501 break 2
7502 fi
7503 done
7504 done
7505 IFS=$as_save_IFS
7506
7507 fi
7508 fi
7509 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7510 if test -n "$ac_ct_STRIP"; then
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7512 printf "%s\n" "$ac_ct_STRIP" >&6; }
7513 else
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 printf "%s\n" "no" >&6; }
7516 fi
7517
7518 if test "x$ac_ct_STRIP" = x; then
7519 STRIP=":"
7520 else
7521 case $cross_compiling:$ac_tool_warned in
7522 yes:)
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned=yes ;;
7526 esac
7527 STRIP=$ac_ct_STRIP
7528 fi
7529 else
7530 STRIP="$ac_cv_prog_STRIP"
7531 fi
7532
7533 test -z "$STRIP" && STRIP=:
7534
7535
7536
7537
7538
7539
7540 if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 printf %s "checking for $ac_word... " >&6; }
7545 if test ${ac_cv_prog_RANLIB+y}
7546 then :
7547 printf %s "(cached) " >&6
7548 else $as_nop
7549 if test -n "$RANLIB"; then
7550 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555 IFS=$as_save_IFS
7556 case $as_dir in #(((
7557 '') as_dir=./ ;;
7558 */) ;;
7559 *) as_dir=$as_dir/ ;;
7560 esac
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 RANLIB=$ac_cv_prog_RANLIB
7574 if test -n "$RANLIB"; then
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7576 printf "%s\n" "$RANLIB" >&6; }
7577 else
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 printf "%s\n" "no" >&6; }
7580 fi
7581
7582
7583 fi
7584 if test -z "$ac_cv_prog_RANLIB"; then
7585 ac_ct_RANLIB=$RANLIB
7586 # Extract the first word of "ranlib", so it can be a program name with args.
7587 set dummy ranlib; ac_word=$2
7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 printf %s "checking for $ac_word... " >&6; }
7590 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7591 then :
7592 printf %s "(cached) " >&6
7593 else $as_nop
7594 if test -n "$ac_ct_RANLIB"; then
7595 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600 IFS=$as_save_IFS
7601 case $as_dir in #(((
7602 '') as_dir=./ ;;
7603 */) ;;
7604 *) as_dir=$as_dir/ ;;
7605 esac
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_ac_ct_RANLIB="ranlib"
7609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7619 if test -n "$ac_ct_RANLIB"; then
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7621 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7622 else
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 printf "%s\n" "no" >&6; }
7625 fi
7626
7627 if test "x$ac_ct_RANLIB" = x; then
7628 RANLIB=":"
7629 else
7630 case $cross_compiling:$ac_tool_warned in
7631 yes:)
7632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634 ac_tool_warned=yes ;;
7635 esac
7636 RANLIB=$ac_ct_RANLIB
7637 fi
7638 else
7639 RANLIB="$ac_cv_prog_RANLIB"
7640 fi
7641
7642 test -z "$RANLIB" && RANLIB=:
7643
7644
7645
7646
7647
7648
7649 # Determine commands to create old-style static archives.
7650 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7651 old_postinstall_cmds='chmod 644 $oldlib'
7652 old_postuninstall_cmds=
7653
7654 if test -n "$RANLIB"; then
7655 case $host_os in
7656 bitrig* | openbsd*)
7657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7658 ;;
7659 *)
7660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7661 ;;
7662 esac
7663 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7664 fi
7665
7666 case $host_os in
7667 darwin*)
7668 lock_old_archive_extraction=yes ;;
7669 *)
7670 lock_old_archive_extraction=no ;;
7671 esac
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711 # If no C compiler was specified, use CC.
7712 LTCC=${LTCC-"$CC"}
7713
7714 # If no C compiler flags were specified, use CFLAGS.
7715 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7716
7717 # Allow CC to be a program name with arguments.
7718 compiler=$CC
7719
7720
7721 # Check for command to grab the raw symbol name followed by C symbol from nm.
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7723 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7724 if test ${lt_cv_sys_global_symbol_pipe+y}
7725 then :
7726 printf %s "(cached) " >&6
7727 else $as_nop
7728
7729 # These are sane defaults that work on at least a few old systems.
7730 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7731
7732 # Character class describing NM global symbol codes.
7733 symcode='[BCDEGRST]'
7734
7735 # Regexp to match symbols that can be accessed directly from C.
7736 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7737
7738 # Define system-specific variables.
7739 case $host_os in
7740 aix*)
7741 symcode='[BCDT]'
7742 ;;
7743 cygwin* | mingw* | pw32* | cegcc*)
7744 symcode='[ABCDGISTW]'
7745 ;;
7746 hpux*)
7747 if test ia64 = "$host_cpu"; then
7748 symcode='[ABCDEGRST]'
7749 fi
7750 ;;
7751 irix* | nonstopux*)
7752 symcode='[BCDEGRST]'
7753 ;;
7754 osf*)
7755 symcode='[BCDEGQRST]'
7756 ;;
7757 solaris*)
7758 symcode='[BDRT]'
7759 ;;
7760 sco3.2v5*)
7761 symcode='[DT]'
7762 ;;
7763 sysv4.2uw2*)
7764 symcode='[DT]'
7765 ;;
7766 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7767 symcode='[ABDT]'
7768 ;;
7769 sysv4)
7770 symcode='[DFNSTU]'
7771 ;;
7772 esac
7773
7774 # If we're using GNU nm, then use its standard symbol codes.
7775 case `$NM -V 2>&1` in
7776 *GNU* | *'with BFD'*)
7777 symcode='[ABCDGIRSTW]' ;;
7778 esac
7779
7780 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7781 # Gets list of data symbols to import.
7782 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7783 # Adjust the below global symbol transforms to fixup imported variables.
7784 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7785 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7786 lt_c_name_lib_hook="\
7787 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7788 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7789 else
7790 # Disable hooks by default.
7791 lt_cv_sys_global_symbol_to_import=
7792 lt_cdecl_hook=
7793 lt_c_name_hook=
7794 lt_c_name_lib_hook=
7795 fi
7796
7797 # Transform an extracted symbol line into a proper C declaration.
7798 # Some systems (esp. on ia64) link data and code symbols differently,
7799 # so use this general approach.
7800 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7801 $lt_cdecl_hook\
7802 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7803 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7804
7805 # Transform an extracted symbol line into symbol name and symbol address
7806 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7807 $lt_c_name_hook\
7808 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7809 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7810
7811 # Transform an extracted symbol line into symbol name with lib prefix and
7812 # symbol address.
7813 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7814 $lt_c_name_lib_hook\
7815 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7816 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7817 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7818
7819 # Handle CRLF in mingw tool chain
7820 opt_cr=
7821 case $build_os in
7822 mingw*)
7823 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7824 ;;
7825 esac
7826
7827 # Try without a prefix underscore, then with it.
7828 for ac_symprfx in "" "_"; do
7829
7830 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7831 symxfrm="\\1 $ac_symprfx\\2 \\2"
7832
7833 # Write the raw and C identifiers.
7834 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7835 # Fake it for dumpbin and say T for any non-static function,
7836 # D for any global variable and I for any imported variable.
7837 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7838 # which start with @ or ?.
7839 lt_cv_sys_global_symbol_pipe="$AWK '"\
7840 " {last_section=section; section=\$ 3};"\
7841 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7842 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7843 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7844 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7845 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7846 " \$ 0!~/External *\|/{next};"\
7847 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7848 " {if(hide[section]) next};"\
7849 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7850 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7851 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7852 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7853 " ' prfx=^$ac_symprfx"
7854 else
7855 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7856 fi
7857 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7858
7859 # Check to see that the pipe works correctly.
7860 pipe_works=no
7861
7862 rm -f conftest*
7863 cat > conftest.$ac_ext <<_LT_EOF
7864 #ifdef __cplusplus
7865 extern "C" {
7866 #endif
7867 char nm_test_var;
7868 void nm_test_func(void);
7869 void nm_test_func(void){}
7870 #ifdef __cplusplus
7871 }
7872 #endif
7873 int main(){nm_test_var='a';nm_test_func();return(0);}
7874 _LT_EOF
7875
7876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7877 (eval $ac_compile) 2>&5
7878 ac_status=$?
7879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880 test $ac_status = 0; }; then
7881 # Now try to grab the symbols.
7882 nlist=conftest.nm
7883 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7884 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7885 # Try sorting and uniquifying the output.
7886 if sort "$nlist" | uniq > "$nlist"T; then
7887 mv -f "$nlist"T "$nlist"
7888 else
7889 rm -f "$nlist"T
7890 fi
7891
7892 # Make sure that we snagged all the symbols we need.
7893 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7894 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7895 cat <<_LT_EOF > conftest.$ac_ext
7896 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7897 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7898 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7899 relocations are performed -- see ld's documentation on pseudo-relocs. */
7900 # define LT_DLSYM_CONST
7901 #elif defined __osf__
7902 /* This system does not cope well with relocations in const data. */
7903 # define LT_DLSYM_CONST
7904 #else
7905 # define LT_DLSYM_CONST const
7906 #endif
7907
7908 #ifdef __cplusplus
7909 extern "C" {
7910 #endif
7911
7912 _LT_EOF
7913 # Now generate the symbol file.
7914 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7915
7916 cat <<_LT_EOF >> conftest.$ac_ext
7917
7918 /* The mapping between symbol names and symbols. */
7919 LT_DLSYM_CONST struct {
7920 const char *name;
7921 void *address;
7922 }
7923 lt__PROGRAM__LTX_preloaded_symbols[] =
7924 {
7925 { "@PROGRAM@", (void *) 0 },
7926 _LT_EOF
7927 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7928 cat <<\_LT_EOF >> conftest.$ac_ext
7929 {0, (void *) 0}
7930 };
7931
7932 /* This works around a problem in FreeBSD linker */
7933 #ifdef FREEBSD_WORKAROUND
7934 static const void *lt_preloaded_setup() {
7935 return lt__PROGRAM__LTX_preloaded_symbols;
7936 }
7937 #endif
7938
7939 #ifdef __cplusplus
7940 }
7941 #endif
7942 _LT_EOF
7943 # Now try linking the two files.
7944 mv conftest.$ac_objext conftstm.$ac_objext
7945 lt_globsym_save_LIBS=$LIBS
7946 lt_globsym_save_CFLAGS=$CFLAGS
7947 LIBS=conftstm.$ac_objext
7948 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7950 (eval $ac_link) 2>&5
7951 ac_status=$?
7952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7953 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7954 pipe_works=yes
7955 fi
7956 LIBS=$lt_globsym_save_LIBS
7957 CFLAGS=$lt_globsym_save_CFLAGS
7958 else
7959 echo "cannot find nm_test_func in $nlist" >&5
7960 fi
7961 else
7962 echo "cannot find nm_test_var in $nlist" >&5
7963 fi
7964 else
7965 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7966 fi
7967 else
7968 echo "$progname: failed program was:" >&5
7969 cat conftest.$ac_ext >&5
7970 fi
7971 rm -rf conftest* conftst*
7972
7973 # Do not use the global_symbol_pipe unless it works.
7974 if test yes = "$pipe_works"; then
7975 break
7976 else
7977 lt_cv_sys_global_symbol_pipe=
7978 fi
7979 done
7980
7981 fi
7982
7983 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7984 lt_cv_sys_global_symbol_to_cdecl=
7985 fi
7986 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7988 printf "%s\n" "failed" >&6; }
7989 else
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7991 printf "%s\n" "ok" >&6; }
7992 fi
7993
7994 # Response file support.
7995 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7996 nm_file_list_spec='@'
7997 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7998 nm_file_list_spec='@'
7999 fi
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8038 printf %s "checking for sysroot... " >&6; }
8039
8040 # Check whether --with-sysroot was given.
8041 if test ${with_sysroot+y}
8042 then :
8043 withval=$with_sysroot;
8044 else $as_nop
8045 with_sysroot=no
8046 fi
8047
8048
8049 lt_sysroot=
8050 case $with_sysroot in #(
8051 yes)
8052 if test yes = "$GCC"; then
8053 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8054 fi
8055 ;; #(
8056 /*)
8057 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8058 ;; #(
8059 no|'')
8060 ;; #(
8061 *)
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8063 printf "%s\n" "$with_sysroot" >&6; }
8064 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8065 ;;
8066 esac
8067
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8069 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8070
8071
8072
8073
8074
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8076 printf %s "checking for a working dd... " >&6; }
8077 if test ${ac_cv_path_lt_DD+y}
8078 then :
8079 printf %s "(cached) " >&6
8080 else $as_nop
8081 printf 0123456789abcdef0123456789abcdef >conftest.i
8082 cat conftest.i conftest.i >conftest2.i
8083 : ${lt_DD:=$DD}
8084 if test -z "$lt_DD"; then
8085 ac_path_lt_DD_found=false
8086 # Loop through the user's path and test for each of PROGNAME-LIST
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_prog in dd
8097 do
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8100 as_fn_executable_p "$ac_path_lt_DD" || continue
8101 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8102 cmp -s conftest.i conftest.out \
8103 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8104 fi
8105 $ac_path_lt_DD_found && break 3
8106 done
8107 done
8108 done
8109 IFS=$as_save_IFS
8110 if test -z "$ac_cv_path_lt_DD"; then
8111 :
8112 fi
8113 else
8114 ac_cv_path_lt_DD=$lt_DD
8115 fi
8116
8117 rm -f conftest.i conftest2.i conftest.out
8118 fi
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8120 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8121
8122
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8124 printf %s "checking how to truncate binary pipes... " >&6; }
8125 if test ${lt_cv_truncate_bin+y}
8126 then :
8127 printf %s "(cached) " >&6
8128 else $as_nop
8129 printf 0123456789abcdef0123456789abcdef >conftest.i
8130 cat conftest.i conftest.i >conftest2.i
8131 lt_cv_truncate_bin=
8132 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8133 cmp -s conftest.i conftest.out \
8134 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8135 fi
8136 rm -f conftest.i conftest2.i conftest.out
8137 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8138 fi
8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8140 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8141
8142
8143
8144
8145
8146
8147
8148 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8149 func_cc_basename ()
8150 {
8151 for cc_temp in $*""; do
8152 case $cc_temp in
8153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8155 \-*) ;;
8156 *) break;;
8157 esac
8158 done
8159 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8160 }
8161
8162 # Check whether --enable-libtool-lock was given.
8163 if test ${enable_libtool_lock+y}
8164 then :
8165 enableval=$enable_libtool_lock;
8166 fi
8167
8168 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8169
8170 # Some flags need to be propagated to the compiler or linker for good
8171 # libtool support.
8172 case $host in
8173 ia64-*-hpux*)
8174 # Find out what ABI is being produced by ac_compile, and set mode
8175 # options accordingly.
8176 echo 'int i;' > conftest.$ac_ext
8177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8178 (eval $ac_compile) 2>&5
8179 ac_status=$?
8180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8181 test $ac_status = 0; }; then
8182 case `$FILECMD conftest.$ac_objext` in
8183 *ELF-32*)
8184 HPUX_IA64_MODE=32
8185 ;;
8186 *ELF-64*)
8187 HPUX_IA64_MODE=64
8188 ;;
8189 esac
8190 fi
8191 rm -rf conftest*
8192 ;;
8193 *-*-irix6*)
8194 # Find out what ABI is being produced by ac_compile, and set linker
8195 # options accordingly.
8196 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8198 (eval $ac_compile) 2>&5
8199 ac_status=$?
8200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8201 test $ac_status = 0; }; then
8202 if test yes = "$lt_cv_prog_gnu_ld"; then
8203 case `$FILECMD conftest.$ac_objext` in
8204 *32-bit*)
8205 LD="${LD-ld} -melf32bsmip"
8206 ;;
8207 *N32*)
8208 LD="${LD-ld} -melf32bmipn32"
8209 ;;
8210 *64-bit*)
8211 LD="${LD-ld} -melf64bmip"
8212 ;;
8213 esac
8214 else
8215 case `$FILECMD conftest.$ac_objext` in
8216 *32-bit*)
8217 LD="${LD-ld} -32"
8218 ;;
8219 *N32*)
8220 LD="${LD-ld} -n32"
8221 ;;
8222 *64-bit*)
8223 LD="${LD-ld} -64"
8224 ;;
8225 esac
8226 fi
8227 fi
8228 rm -rf conftest*
8229 ;;
8230
8231 mips64*-*linux*)
8232 # Find out what ABI is being produced by ac_compile, and set linker
8233 # options accordingly.
8234 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8236 (eval $ac_compile) 2>&5
8237 ac_status=$?
8238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8239 test $ac_status = 0; }; then
8240 emul=elf
8241 case `$FILECMD conftest.$ac_objext` in
8242 *32-bit*)
8243 emul="${emul}32"
8244 ;;
8245 *64-bit*)
8246 emul="${emul}64"
8247 ;;
8248 esac
8249 case `$FILECMD conftest.$ac_objext` in
8250 *MSB*)
8251 emul="${emul}btsmip"
8252 ;;
8253 *LSB*)
8254 emul="${emul}ltsmip"
8255 ;;
8256 esac
8257 case `$FILECMD conftest.$ac_objext` in
8258 *N32*)
8259 emul="${emul}n32"
8260 ;;
8261 esac
8262 LD="${LD-ld} -m $emul"
8263 fi
8264 rm -rf conftest*
8265 ;;
8266
8267 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8268 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8269 # Find out what ABI is being produced by ac_compile, and set linker
8270 # options accordingly. Note that the listed cases only cover the
8271 # situations where additional linker options are needed (such as when
8272 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8273 # vice versa); the common cases where no linker options are needed do
8274 # not appear in the list.
8275 echo 'int i;' > conftest.$ac_ext
8276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8277 (eval $ac_compile) 2>&5
8278 ac_status=$?
8279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8280 test $ac_status = 0; }; then
8281 case `$FILECMD conftest.o` in
8282 *32-bit*)
8283 case $host in
8284 x86_64-*kfreebsd*-gnu)
8285 LD="${LD-ld} -m elf_i386_fbsd"
8286 ;;
8287 x86_64-*linux*)
8288 case `$FILECMD conftest.o` in
8289 *x86-64*)
8290 LD="${LD-ld} -m elf32_x86_64"
8291 ;;
8292 *)
8293 LD="${LD-ld} -m elf_i386"
8294 ;;
8295 esac
8296 ;;
8297 powerpc64le-*linux*)
8298 LD="${LD-ld} -m elf32lppclinux"
8299 ;;
8300 powerpc64-*linux*)
8301 LD="${LD-ld} -m elf32ppclinux"
8302 ;;
8303 s390x-*linux*)
8304 LD="${LD-ld} -m elf_s390"
8305 ;;
8306 sparc64-*linux*)
8307 LD="${LD-ld} -m elf32_sparc"
8308 ;;
8309 esac
8310 ;;
8311 *64-bit*)
8312 case $host in
8313 x86_64-*kfreebsd*-gnu)
8314 LD="${LD-ld} -m elf_x86_64_fbsd"
8315 ;;
8316 x86_64-*linux*)
8317 LD="${LD-ld} -m elf_x86_64"
8318 ;;
8319 powerpcle-*linux*)
8320 LD="${LD-ld} -m elf64lppc"
8321 ;;
8322 powerpc-*linux*)
8323 LD="${LD-ld} -m elf64ppc"
8324 ;;
8325 s390*-*linux*|s390*-*tpf*)
8326 LD="${LD-ld} -m elf64_s390"
8327 ;;
8328 sparc*-*linux*)
8329 LD="${LD-ld} -m elf64_sparc"
8330 ;;
8331 esac
8332 ;;
8333 esac
8334 fi
8335 rm -rf conftest*
8336 ;;
8337
8338 *-*-sco3.2v5*)
8339 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8340 SAVE_CFLAGS=$CFLAGS
8341 CFLAGS="$CFLAGS -belf"
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8343 printf %s "checking whether the C compiler needs -belf... " >&6; }
8344 if test ${lt_cv_cc_needs_belf+y}
8345 then :
8346 printf %s "(cached) " >&6
8347 else $as_nop
8348 ac_ext=c
8349 ac_cpp='$CPP $CPPFLAGS'
8350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8353
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356
8357 int
8358 main (void)
8359 {
8360
8361 ;
8362 return 0;
8363 }
8364 _ACEOF
8365 if ac_fn_c_try_link "$LINENO"
8366 then :
8367 lt_cv_cc_needs_belf=yes
8368 else $as_nop
8369 lt_cv_cc_needs_belf=no
8370 fi
8371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8372 conftest$ac_exeext conftest.$ac_ext
8373 ac_ext=c
8374 ac_cpp='$CPP $CPPFLAGS'
8375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8378
8379 fi
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8381 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8382 if test yes != "$lt_cv_cc_needs_belf"; then
8383 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8384 CFLAGS=$SAVE_CFLAGS
8385 fi
8386 ;;
8387 *-*solaris*)
8388 # Find out what ABI is being produced by ac_compile, and set linker
8389 # options accordingly.
8390 echo 'int i;' > conftest.$ac_ext
8391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8392 (eval $ac_compile) 2>&5
8393 ac_status=$?
8394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8395 test $ac_status = 0; }; then
8396 case `$FILECMD conftest.o` in
8397 *64-bit*)
8398 case $lt_cv_prog_gnu_ld in
8399 yes*)
8400 case $host in
8401 i?86-*-solaris*|x86_64-*-solaris*)
8402 LD="${LD-ld} -m elf_x86_64"
8403 ;;
8404 sparc*-*-solaris*)
8405 LD="${LD-ld} -m elf64_sparc"
8406 ;;
8407 esac
8408 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8409 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8410 LD=${LD-ld}_sol2
8411 fi
8412 ;;
8413 *)
8414 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8415 LD="${LD-ld} -64"
8416 fi
8417 ;;
8418 esac
8419 ;;
8420 esac
8421 fi
8422 rm -rf conftest*
8423 ;;
8424 esac
8425
8426 need_locks=$enable_libtool_lock
8427
8428 if test -n "$ac_tool_prefix"; then
8429 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8430 set dummy ${ac_tool_prefix}mt; ac_word=$2
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 printf %s "checking for $ac_word... " >&6; }
8433 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8434 then :
8435 printf %s "(cached) " >&6
8436 else $as_nop
8437 if test -n "$MANIFEST_TOOL"; then
8438 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8439 else
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8442 do
8443 IFS=$as_save_IFS
8444 case $as_dir in #(((
8445 '') as_dir=./ ;;
8446 */) ;;
8447 *) as_dir=$as_dir/ ;;
8448 esac
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8451 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
8455 done
8456 done
8457 IFS=$as_save_IFS
8458
8459 fi
8460 fi
8461 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8462 if test -n "$MANIFEST_TOOL"; then
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8464 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8465 else
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 printf "%s\n" "no" >&6; }
8468 fi
8469
8470
8471 fi
8472 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8473 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8474 # Extract the first word of "mt", so it can be a program name with args.
8475 set dummy mt; ac_word=$2
8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 printf %s "checking for $ac_word... " >&6; }
8478 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8479 then :
8480 printf %s "(cached) " >&6
8481 else $as_nop
8482 if test -n "$ac_ct_MANIFEST_TOOL"; then
8483 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8484 else
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $PATH
8487 do
8488 IFS=$as_save_IFS
8489 case $as_dir in #(((
8490 '') as_dir=./ ;;
8491 */) ;;
8492 *) as_dir=$as_dir/ ;;
8493 esac
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8496 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8498 break 2
8499 fi
8500 done
8501 done
8502 IFS=$as_save_IFS
8503
8504 fi
8505 fi
8506 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8507 if test -n "$ac_ct_MANIFEST_TOOL"; then
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8509 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8510 else
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 printf "%s\n" "no" >&6; }
8513 fi
8514
8515 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8516 MANIFEST_TOOL=":"
8517 else
8518 case $cross_compiling:$ac_tool_warned in
8519 yes:)
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8521 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8522 ac_tool_warned=yes ;;
8523 esac
8524 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8525 fi
8526 else
8527 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8528 fi
8529
8530 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8532 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8533 if test ${lt_cv_path_mainfest_tool+y}
8534 then :
8535 printf %s "(cached) " >&6
8536 else $as_nop
8537 lt_cv_path_mainfest_tool=no
8538 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8539 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8540 cat conftest.err >&5
8541 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8542 lt_cv_path_mainfest_tool=yes
8543 fi
8544 rm -f conftest*
8545 fi
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8547 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8548 if test yes != "$lt_cv_path_mainfest_tool"; then
8549 MANIFEST_TOOL=:
8550 fi
8551
8552
8553
8554
8555
8556
8557 case $host_os in
8558 rhapsody* | darwin*)
8559 if test -n "$ac_tool_prefix"; then
8560 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8561 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 printf %s "checking for $ac_word... " >&6; }
8564 if test ${ac_cv_prog_DSYMUTIL+y}
8565 then :
8566 printf %s "(cached) " >&6
8567 else $as_nop
8568 if test -n "$DSYMUTIL"; then
8569 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8573 do
8574 IFS=$as_save_IFS
8575 case $as_dir in #(((
8576 '') as_dir=./ ;;
8577 */) ;;
8578 *) as_dir=$as_dir/ ;;
8579 esac
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8582 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8584 break 2
8585 fi
8586 done
8587 done
8588 IFS=$as_save_IFS
8589
8590 fi
8591 fi
8592 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8593 if test -n "$DSYMUTIL"; then
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8595 printf "%s\n" "$DSYMUTIL" >&6; }
8596 else
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598 printf "%s\n" "no" >&6; }
8599 fi
8600
8601
8602 fi
8603 if test -z "$ac_cv_prog_DSYMUTIL"; then
8604 ac_ct_DSYMUTIL=$DSYMUTIL
8605 # Extract the first word of "dsymutil", so it can be a program name with args.
8606 set dummy dsymutil; ac_word=$2
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 printf %s "checking for $ac_word... " >&6; }
8609 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8610 then :
8611 printf %s "(cached) " >&6
8612 else $as_nop
8613 if test -n "$ac_ct_DSYMUTIL"; then
8614 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8615 else
8616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617 for as_dir in $PATH
8618 do
8619 IFS=$as_save_IFS
8620 case $as_dir in #(((
8621 '') as_dir=./ ;;
8622 */) ;;
8623 *) as_dir=$as_dir/ ;;
8624 esac
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8627 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8629 break 2
8630 fi
8631 done
8632 done
8633 IFS=$as_save_IFS
8634
8635 fi
8636 fi
8637 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8638 if test -n "$ac_ct_DSYMUTIL"; then
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8640 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8641 else
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 printf "%s\n" "no" >&6; }
8644 fi
8645
8646 if test "x$ac_ct_DSYMUTIL" = x; then
8647 DSYMUTIL=":"
8648 else
8649 case $cross_compiling:$ac_tool_warned in
8650 yes:)
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8652 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8653 ac_tool_warned=yes ;;
8654 esac
8655 DSYMUTIL=$ac_ct_DSYMUTIL
8656 fi
8657 else
8658 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8659 fi
8660
8661 if test -n "$ac_tool_prefix"; then
8662 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8663 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 printf %s "checking for $ac_word... " >&6; }
8666 if test ${ac_cv_prog_NMEDIT+y}
8667 then :
8668 printf %s "(cached) " >&6
8669 else $as_nop
8670 if test -n "$NMEDIT"; then
8671 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8672 else
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8675 do
8676 IFS=$as_save_IFS
8677 case $as_dir in #(((
8678 '') as_dir=./ ;;
8679 */) ;;
8680 *) as_dir=$as_dir/ ;;
8681 esac
8682 for ac_exec_ext in '' $ac_executable_extensions; do
8683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8684 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8686 break 2
8687 fi
8688 done
8689 done
8690 IFS=$as_save_IFS
8691
8692 fi
8693 fi
8694 NMEDIT=$ac_cv_prog_NMEDIT
8695 if test -n "$NMEDIT"; then
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8697 printf "%s\n" "$NMEDIT" >&6; }
8698 else
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 printf "%s\n" "no" >&6; }
8701 fi
8702
8703
8704 fi
8705 if test -z "$ac_cv_prog_NMEDIT"; then
8706 ac_ct_NMEDIT=$NMEDIT
8707 # Extract the first word of "nmedit", so it can be a program name with args.
8708 set dummy nmedit; ac_word=$2
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710 printf %s "checking for $ac_word... " >&6; }
8711 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8712 then :
8713 printf %s "(cached) " >&6
8714 else $as_nop
8715 if test -n "$ac_ct_NMEDIT"; then
8716 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8717 else
8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719 for as_dir in $PATH
8720 do
8721 IFS=$as_save_IFS
8722 case $as_dir in #(((
8723 '') as_dir=./ ;;
8724 */) ;;
8725 *) as_dir=$as_dir/ ;;
8726 esac
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8729 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8731 break 2
8732 fi
8733 done
8734 done
8735 IFS=$as_save_IFS
8736
8737 fi
8738 fi
8739 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8740 if test -n "$ac_ct_NMEDIT"; then
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8742 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8743 else
8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745 printf "%s\n" "no" >&6; }
8746 fi
8747
8748 if test "x$ac_ct_NMEDIT" = x; then
8749 NMEDIT=":"
8750 else
8751 case $cross_compiling:$ac_tool_warned in
8752 yes:)
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8754 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8755 ac_tool_warned=yes ;;
8756 esac
8757 NMEDIT=$ac_ct_NMEDIT
8758 fi
8759 else
8760 NMEDIT="$ac_cv_prog_NMEDIT"
8761 fi
8762
8763 if test -n "$ac_tool_prefix"; then
8764 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8765 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 printf %s "checking for $ac_word... " >&6; }
8768 if test ${ac_cv_prog_LIPO+y}
8769 then :
8770 printf %s "(cached) " >&6
8771 else $as_nop
8772 if test -n "$LIPO"; then
8773 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8774 else
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 for as_dir in $PATH
8777 do
8778 IFS=$as_save_IFS
8779 case $as_dir in #(((
8780 '') as_dir=./ ;;
8781 */) ;;
8782 *) as_dir=$as_dir/ ;;
8783 esac
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8786 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8788 break 2
8789 fi
8790 done
8791 done
8792 IFS=$as_save_IFS
8793
8794 fi
8795 fi
8796 LIPO=$ac_cv_prog_LIPO
8797 if test -n "$LIPO"; then
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8799 printf "%s\n" "$LIPO" >&6; }
8800 else
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 printf "%s\n" "no" >&6; }
8803 fi
8804
8805
8806 fi
8807 if test -z "$ac_cv_prog_LIPO"; then
8808 ac_ct_LIPO=$LIPO
8809 # Extract the first word of "lipo", so it can be a program name with args.
8810 set dummy lipo; ac_word=$2
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 printf %s "checking for $ac_word... " >&6; }
8813 if test ${ac_cv_prog_ac_ct_LIPO+y}
8814 then :
8815 printf %s "(cached) " >&6
8816 else $as_nop
8817 if test -n "$ac_ct_LIPO"; then
8818 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8819 else
8820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8821 for as_dir in $PATH
8822 do
8823 IFS=$as_save_IFS
8824 case $as_dir in #(((
8825 '') as_dir=./ ;;
8826 */) ;;
8827 *) as_dir=$as_dir/ ;;
8828 esac
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8831 ac_cv_prog_ac_ct_LIPO="lipo"
8832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835 done
8836 done
8837 IFS=$as_save_IFS
8838
8839 fi
8840 fi
8841 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8842 if test -n "$ac_ct_LIPO"; then
8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8844 printf "%s\n" "$ac_ct_LIPO" >&6; }
8845 else
8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 printf "%s\n" "no" >&6; }
8848 fi
8849
8850 if test "x$ac_ct_LIPO" = x; then
8851 LIPO=":"
8852 else
8853 case $cross_compiling:$ac_tool_warned in
8854 yes:)
8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8857 ac_tool_warned=yes ;;
8858 esac
8859 LIPO=$ac_ct_LIPO
8860 fi
8861 else
8862 LIPO="$ac_cv_prog_LIPO"
8863 fi
8864
8865 if test -n "$ac_tool_prefix"; then
8866 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8867 set dummy ${ac_tool_prefix}otool; ac_word=$2
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869 printf %s "checking for $ac_word... " >&6; }
8870 if test ${ac_cv_prog_OTOOL+y}
8871 then :
8872 printf %s "(cached) " >&6
8873 else $as_nop
8874 if test -n "$OTOOL"; then
8875 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8876 else
8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 for as_dir in $PATH
8879 do
8880 IFS=$as_save_IFS
8881 case $as_dir in #(((
8882 '') as_dir=./ ;;
8883 */) ;;
8884 *) as_dir=$as_dir/ ;;
8885 esac
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8888 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8890 break 2
8891 fi
8892 done
8893 done
8894 IFS=$as_save_IFS
8895
8896 fi
8897 fi
8898 OTOOL=$ac_cv_prog_OTOOL
8899 if test -n "$OTOOL"; then
8900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8901 printf "%s\n" "$OTOOL" >&6; }
8902 else
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 printf "%s\n" "no" >&6; }
8905 fi
8906
8907
8908 fi
8909 if test -z "$ac_cv_prog_OTOOL"; then
8910 ac_ct_OTOOL=$OTOOL
8911 # Extract the first word of "otool", so it can be a program name with args.
8912 set dummy otool; ac_word=$2
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914 printf %s "checking for $ac_word... " >&6; }
8915 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8916 then :
8917 printf %s "(cached) " >&6
8918 else $as_nop
8919 if test -n "$ac_ct_OTOOL"; then
8920 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8921 else
8922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923 for as_dir in $PATH
8924 do
8925 IFS=$as_save_IFS
8926 case $as_dir in #(((
8927 '') as_dir=./ ;;
8928 */) ;;
8929 *) as_dir=$as_dir/ ;;
8930 esac
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_ac_ct_OTOOL="otool"
8934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8935 break 2
8936 fi
8937 done
8938 done
8939 IFS=$as_save_IFS
8940
8941 fi
8942 fi
8943 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8944 if test -n "$ac_ct_OTOOL"; then
8945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8946 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8947 else
8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 printf "%s\n" "no" >&6; }
8950 fi
8951
8952 if test "x$ac_ct_OTOOL" = x; then
8953 OTOOL=":"
8954 else
8955 case $cross_compiling:$ac_tool_warned in
8956 yes:)
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8959 ac_tool_warned=yes ;;
8960 esac
8961 OTOOL=$ac_ct_OTOOL
8962 fi
8963 else
8964 OTOOL="$ac_cv_prog_OTOOL"
8965 fi
8966
8967 if test -n "$ac_tool_prefix"; then
8968 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8969 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971 printf %s "checking for $ac_word... " >&6; }
8972 if test ${ac_cv_prog_OTOOL64+y}
8973 then :
8974 printf %s "(cached) " >&6
8975 else $as_nop
8976 if test -n "$OTOOL64"; then
8977 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8978 else
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980 for as_dir in $PATH
8981 do
8982 IFS=$as_save_IFS
8983 case $as_dir in #(((
8984 '') as_dir=./ ;;
8985 */) ;;
8986 *) as_dir=$as_dir/ ;;
8987 esac
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8990 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8992 break 2
8993 fi
8994 done
8995 done
8996 IFS=$as_save_IFS
8997
8998 fi
8999 fi
9000 OTOOL64=$ac_cv_prog_OTOOL64
9001 if test -n "$OTOOL64"; then
9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9003 printf "%s\n" "$OTOOL64" >&6; }
9004 else
9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 printf "%s\n" "no" >&6; }
9007 fi
9008
9009
9010 fi
9011 if test -z "$ac_cv_prog_OTOOL64"; then
9012 ac_ct_OTOOL64=$OTOOL64
9013 # Extract the first word of "otool64", so it can be a program name with args.
9014 set dummy otool64; ac_word=$2
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016 printf %s "checking for $ac_word... " >&6; }
9017 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9018 then :
9019 printf %s "(cached) " >&6
9020 else $as_nop
9021 if test -n "$ac_ct_OTOOL64"; then
9022 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9023 else
9024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025 for as_dir in $PATH
9026 do
9027 IFS=$as_save_IFS
9028 case $as_dir in #(((
9029 '') as_dir=./ ;;
9030 */) ;;
9031 *) as_dir=$as_dir/ ;;
9032 esac
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9035 ac_cv_prog_ac_ct_OTOOL64="otool64"
9036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9037 break 2
9038 fi
9039 done
9040 done
9041 IFS=$as_save_IFS
9042
9043 fi
9044 fi
9045 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9046 if test -n "$ac_ct_OTOOL64"; then
9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9048 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9049 else
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 printf "%s\n" "no" >&6; }
9052 fi
9053
9054 if test "x$ac_ct_OTOOL64" = x; then
9055 OTOOL64=":"
9056 else
9057 case $cross_compiling:$ac_tool_warned in
9058 yes:)
9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9060 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9061 ac_tool_warned=yes ;;
9062 esac
9063 OTOOL64=$ac_ct_OTOOL64
9064 fi
9065 else
9066 OTOOL64="$ac_cv_prog_OTOOL64"
9067 fi
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9096 printf %s "checking for -single_module linker flag... " >&6; }
9097 if test ${lt_cv_apple_cc_single_mod+y}
9098 then :
9099 printf %s "(cached) " >&6
9100 else $as_nop
9101 lt_cv_apple_cc_single_mod=no
9102 if test -z "$LT_MULTI_MODULE"; then
9103 # By default we will add the -single_module flag. You can override
9104 # by either setting the environment variable LT_MULTI_MODULE
9105 # non-empty at configure time, or by adding -multi_module to the
9106 # link flags.
9107 rm -rf libconftest.dylib*
9108 echo "int foo(void){return 1;}" > conftest.c
9109 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9110 -dynamiclib -Wl,-single_module conftest.c" >&5
9111 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9112 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9113 _lt_result=$?
9114 # If there is a non-empty error log, and "single_module"
9115 # appears in it, assume the flag caused a linker warning
9116 if test -s conftest.err && $GREP single_module conftest.err; then
9117 cat conftest.err >&5
9118 # Otherwise, if the output was created with a 0 exit code from
9119 # the compiler, it worked.
9120 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9121 lt_cv_apple_cc_single_mod=yes
9122 else
9123 cat conftest.err >&5
9124 fi
9125 rm -rf libconftest.dylib*
9126 rm -f conftest.*
9127 fi
9128 fi
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9130 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9131
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9133 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9134 if test ${lt_cv_ld_exported_symbols_list+y}
9135 then :
9136 printf %s "(cached) " >&6
9137 else $as_nop
9138 lt_cv_ld_exported_symbols_list=no
9139 save_LDFLAGS=$LDFLAGS
9140 echo "_main" > conftest.sym
9141 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144
9145 int
9146 main (void)
9147 {
9148
9149 ;
9150 return 0;
9151 }
9152 _ACEOF
9153 if ac_fn_c_try_link "$LINENO"
9154 then :
9155 lt_cv_ld_exported_symbols_list=yes
9156 else $as_nop
9157 lt_cv_ld_exported_symbols_list=no
9158 fi
9159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9160 conftest$ac_exeext conftest.$ac_ext
9161 LDFLAGS=$save_LDFLAGS
9162
9163 fi
9164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9165 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9166
9167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9168 printf %s "checking for -force_load linker flag... " >&6; }
9169 if test ${lt_cv_ld_force_load+y}
9170 then :
9171 printf %s "(cached) " >&6
9172 else $as_nop
9173 lt_cv_ld_force_load=no
9174 cat > conftest.c << _LT_EOF
9175 int forced_loaded() { return 2;}
9176 _LT_EOF
9177 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9178 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9179 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9180 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9181 echo "$RANLIB libconftest.a" >&5
9182 $RANLIB libconftest.a 2>&5
9183 cat > conftest.c << _LT_EOF
9184 int main() { return 0;}
9185 _LT_EOF
9186 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9187 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9188 _lt_result=$?
9189 if test -s conftest.err && $GREP force_load conftest.err; then
9190 cat conftest.err >&5
9191 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9192 lt_cv_ld_force_load=yes
9193 else
9194 cat conftest.err >&5
9195 fi
9196 rm -f conftest.err libconftest.a conftest conftest.c
9197 rm -rf conftest.dSYM
9198
9199 fi
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9201 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9202 case $host_os in
9203 rhapsody* | darwin1.[012])
9204 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9205 darwin1.*)
9206 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9207 darwin*)
9208 case $MACOSX_DEPLOYMENT_TARGET,$host in
9209 10.[012],*|,*powerpc*-darwin[5-8]*)
9210 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9211 *)
9212 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9213 esac
9214 ;;
9215 esac
9216 if test yes = "$lt_cv_apple_cc_single_mod"; then
9217 _lt_dar_single_mod='$single_module'
9218 fi
9219 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9220 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9221 else
9222 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9223 fi
9224 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9225 _lt_dsymutil='~$DSYMUTIL $lib || :'
9226 else
9227 _lt_dsymutil=
9228 fi
9229 ;;
9230 esac
9231
9232 # func_munge_path_list VARIABLE PATH
9233 # -----------------------------------
9234 # VARIABLE is name of variable containing _space_ separated list of
9235 # directories to be munged by the contents of PATH, which is string
9236 # having a format:
9237 # "DIR[:DIR]:"
9238 # string "DIR[ DIR]" will be prepended to VARIABLE
9239 # ":DIR[:DIR]"
9240 # string "DIR[ DIR]" will be appended to VARIABLE
9241 # "DIRP[:DIRP]::[DIRA:]DIRA"
9242 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9243 # "DIRA[ DIRA]" will be appended to VARIABLE
9244 # "DIR[:DIR]"
9245 # VARIABLE will be replaced by "DIR[ DIR]"
9246 func_munge_path_list ()
9247 {
9248 case x$2 in
9249 x)
9250 ;;
9251 *:)
9252 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9253 ;;
9254 x:*)
9255 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9256 ;;
9257 *::*)
9258 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9259 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9260 ;;
9261 *)
9262 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9263 ;;
9264 esac
9265 }
9266
9267 ac_header= ac_cache=
9268 for ac_item in $ac_header_c_list
9269 do
9270 if test $ac_cache; then
9271 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9272 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9273 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9274 fi
9275 ac_header= ac_cache=
9276 elif test $ac_header; then
9277 ac_cache=$ac_item
9278 else
9279 ac_header=$ac_item
9280 fi
9281 done
9282
9283
9284
9285
9286
9287
9288
9289
9290 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9291 then :
9292
9293 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9294
9295 fi
9296 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9297 "
9298 if test "x$ac_cv_header_dlfcn_h" = xyes
9299 then :
9300 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9301
9302 fi
9303
9304
9305
9306
9307 func_stripname_cnf ()
9308 {
9309 case $2 in
9310 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9311 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9312 esac
9313 } # func_stripname_cnf
9314
9315
9316
9317
9318
9319 # Set options
9320
9321
9322
9323 enable_dlopen=no
9324
9325
9326 enable_win32_dll=no
9327
9328
9329 # Check whether --enable-shared was given.
9330 if test ${enable_shared+y}
9331 then :
9332 enableval=$enable_shared; p=${PACKAGE-default}
9333 case $enableval in
9334 yes) enable_shared=yes ;;
9335 no) enable_shared=no ;;
9336 *)
9337 enable_shared=no
9338 # Look at the argument we got. We use all the common list separators.
9339 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9340 for pkg in $enableval; do
9341 IFS=$lt_save_ifs
9342 if test "X$pkg" = "X$p"; then
9343 enable_shared=yes
9344 fi
9345 done
9346 IFS=$lt_save_ifs
9347 ;;
9348 esac
9349 else $as_nop
9350 enable_shared=yes
9351 fi
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361 # Check whether --enable-static was given.
9362 if test ${enable_static+y}
9363 then :
9364 enableval=$enable_static; p=${PACKAGE-default}
9365 case $enableval in
9366 yes) enable_static=yes ;;
9367 no) enable_static=no ;;
9368 *)
9369 enable_static=no
9370 # Look at the argument we got. We use all the common list separators.
9371 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9372 for pkg in $enableval; do
9373 IFS=$lt_save_ifs
9374 if test "X$pkg" = "X$p"; then
9375 enable_static=yes
9376 fi
9377 done
9378 IFS=$lt_save_ifs
9379 ;;
9380 esac
9381 else $as_nop
9382 enable_static=yes
9383 fi
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394 # Check whether --with-pic was given.
9395 if test ${with_pic+y}
9396 then :
9397 withval=$with_pic; lt_p=${PACKAGE-default}
9398 case $withval in
9399 yes|no) pic_mode=$withval ;;
9400 *)
9401 pic_mode=default
9402 # Look at the argument we got. We use all the common list separators.
9403 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9404 for lt_pkg in $withval; do
9405 IFS=$lt_save_ifs
9406 if test "X$lt_pkg" = "X$lt_p"; then
9407 pic_mode=yes
9408 fi
9409 done
9410 IFS=$lt_save_ifs
9411 ;;
9412 esac
9413 else $as_nop
9414 pic_mode=default
9415 fi
9416
9417
9418
9419
9420
9421
9422
9423
9424 # Check whether --enable-fast-install was given.
9425 if test ${enable_fast_install+y}
9426 then :
9427 enableval=$enable_fast_install; p=${PACKAGE-default}
9428 case $enableval in
9429 yes) enable_fast_install=yes ;;
9430 no) enable_fast_install=no ;;
9431 *)
9432 enable_fast_install=no
9433 # Look at the argument we got. We use all the common list separators.
9434 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9435 for pkg in $enableval; do
9436 IFS=$lt_save_ifs
9437 if test "X$pkg" = "X$p"; then
9438 enable_fast_install=yes
9439 fi
9440 done
9441 IFS=$lt_save_ifs
9442 ;;
9443 esac
9444 else $as_nop
9445 enable_fast_install=yes
9446 fi
9447
9448
9449
9450
9451
9452
9453
9454
9455 shared_archive_member_spec=
9456 case $host,$enable_shared in
9457 power*-*-aix[5-9]*,yes)
9458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9459 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9460
9461 # Check whether --with-aix-soname was given.
9462 if test ${with_aix_soname+y}
9463 then :
9464 withval=$with_aix_soname; case $withval in
9465 aix|svr4|both)
9466 ;;
9467 *)
9468 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9469 ;;
9470 esac
9471 lt_cv_with_aix_soname=$with_aix_soname
9472 else $as_nop
9473 if test ${lt_cv_with_aix_soname+y}
9474 then :
9475 printf %s "(cached) " >&6
9476 else $as_nop
9477 lt_cv_with_aix_soname=aix
9478 fi
9479
9480 with_aix_soname=$lt_cv_with_aix_soname
9481 fi
9482
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9484 printf "%s\n" "$with_aix_soname" >&6; }
9485 if test aix != "$with_aix_soname"; then
9486 # For the AIX way of multilib, we name the shared archive member
9487 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9488 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9489 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9490 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9491 if test 64 = "${OBJECT_MODE-32}"; then
9492 shared_archive_member_spec=shr_64
9493 else
9494 shared_archive_member_spec=shr
9495 fi
9496 fi
9497 ;;
9498 *)
9499 with_aix_soname=aix
9500 ;;
9501 esac
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512 # This can be used to rebuild libtool when needed
9513 LIBTOOL_DEPS=$ltmain
9514
9515 # Always use our own libtool.
9516 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547 test -z "$LN_S" && LN_S="ln -s"
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562 if test -n "${ZSH_VERSION+set}"; then
9563 setopt NO_GLOB_SUBST
9564 fi
9565
9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9567 printf %s "checking for objdir... " >&6; }
9568 if test ${lt_cv_objdir+y}
9569 then :
9570 printf %s "(cached) " >&6
9571 else $as_nop
9572 rm -f .libs 2>/dev/null
9573 mkdir .libs 2>/dev/null
9574 if test -d .libs; then
9575 lt_cv_objdir=.libs
9576 else
9577 # MS-DOS does not allow filenames that begin with a dot.
9578 lt_cv_objdir=_libs
9579 fi
9580 rmdir .libs 2>/dev/null
9581 fi
9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9583 printf "%s\n" "$lt_cv_objdir" >&6; }
9584 objdir=$lt_cv_objdir
9585
9586
9587
9588
9589
9590 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9591
9592
9593
9594
9595 case $host_os in
9596 aix3*)
9597 # AIX sometimes has problems with the GCC collect2 program. For some
9598 # reason, if we set the COLLECT_NAMES environment variable, the problems
9599 # vanish in a puff of smoke.
9600 if test set != "${COLLECT_NAMES+set}"; then
9601 COLLECT_NAMES=
9602 export COLLECT_NAMES
9603 fi
9604 ;;
9605 esac
9606
9607 # Global variables:
9608 ofile=libtool
9609 can_build_shared=yes
9610
9611 # All known linkers require a '.a' archive for static linking (except MSVC and
9612 # ICC, which need '.lib').
9613 libext=a
9614
9615 with_gnu_ld=$lt_cv_prog_gnu_ld
9616
9617 old_CC=$CC
9618 old_CFLAGS=$CFLAGS
9619
9620 # Set sane defaults for various variables
9621 test -z "$CC" && CC=cc
9622 test -z "$LTCC" && LTCC=$CC
9623 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9624 test -z "$LD" && LD=ld
9625 test -z "$ac_objext" && ac_objext=o
9626
9627 func_cc_basename $compiler
9628 cc_basename=$func_cc_basename_result
9629
9630
9631 # Only perform the check for file, if the check method requires it
9632 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9633 case $deplibs_check_method in
9634 file_magic*)
9635 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9637 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9638 if test ${lt_cv_path_MAGIC_CMD+y}
9639 then :
9640 printf %s "(cached) " >&6
9641 else $as_nop
9642 case $MAGIC_CMD in
9643 [\\/*] | ?:[\\/]*)
9644 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9645 ;;
9646 *)
9647 lt_save_MAGIC_CMD=$MAGIC_CMD
9648 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9650 for ac_dir in $ac_dummy; do
9651 IFS=$lt_save_ifs
9652 test -z "$ac_dir" && ac_dir=.
9653 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9654 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9655 if test -n "$file_magic_test_file"; then
9656 case $deplibs_check_method in
9657 "file_magic "*)
9658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9659 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9661 $EGREP "$file_magic_regex" > /dev/null; then
9662 :
9663 else
9664 cat <<_LT_EOF 1>&2
9665
9666 *** Warning: the command libtool uses to detect shared libraries,
9667 *** $file_magic_cmd, produces output that libtool cannot recognize.
9668 *** The result is that libtool may fail to recognize shared libraries
9669 *** as such. This will affect the creation of libtool libraries that
9670 *** depend on shared libraries, but programs linked with such libtool
9671 *** libraries will work regardless of this problem. Nevertheless, you
9672 *** may want to report the problem to your system manager and/or to
9673 *** [email protected]
9674
9675 _LT_EOF
9676 fi ;;
9677 esac
9678 fi
9679 break
9680 fi
9681 done
9682 IFS=$lt_save_ifs
9683 MAGIC_CMD=$lt_save_MAGIC_CMD
9684 ;;
9685 esac
9686 fi
9687
9688 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9689 if test -n "$MAGIC_CMD"; then
9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9691 printf "%s\n" "$MAGIC_CMD" >&6; }
9692 else
9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694 printf "%s\n" "no" >&6; }
9695 fi
9696
9697
9698
9699
9700
9701 if test -z "$lt_cv_path_MAGIC_CMD"; then
9702 if test -n "$ac_tool_prefix"; then
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9704 printf %s "checking for file... " >&6; }
9705 if test ${lt_cv_path_MAGIC_CMD+y}
9706 then :
9707 printf %s "(cached) " >&6
9708 else $as_nop
9709 case $MAGIC_CMD in
9710 [\\/*] | ?:[\\/]*)
9711 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9712 ;;
9713 *)
9714 lt_save_MAGIC_CMD=$MAGIC_CMD
9715 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9717 for ac_dir in $ac_dummy; do
9718 IFS=$lt_save_ifs
9719 test -z "$ac_dir" && ac_dir=.
9720 if test -f "$ac_dir/file"; then
9721 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9722 if test -n "$file_magic_test_file"; then
9723 case $deplibs_check_method in
9724 "file_magic "*)
9725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9726 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9728 $EGREP "$file_magic_regex" > /dev/null; then
9729 :
9730 else
9731 cat <<_LT_EOF 1>&2
9732
9733 *** Warning: the command libtool uses to detect shared libraries,
9734 *** $file_magic_cmd, produces output that libtool cannot recognize.
9735 *** The result is that libtool may fail to recognize shared libraries
9736 *** as such. This will affect the creation of libtool libraries that
9737 *** depend on shared libraries, but programs linked with such libtool
9738 *** libraries will work regardless of this problem. Nevertheless, you
9739 *** may want to report the problem to your system manager and/or to
9740 *** [email protected]
9741
9742 _LT_EOF
9743 fi ;;
9744 esac
9745 fi
9746 break
9747 fi
9748 done
9749 IFS=$lt_save_ifs
9750 MAGIC_CMD=$lt_save_MAGIC_CMD
9751 ;;
9752 esac
9753 fi
9754
9755 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9756 if test -n "$MAGIC_CMD"; then
9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9758 printf "%s\n" "$MAGIC_CMD" >&6; }
9759 else
9760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 printf "%s\n" "no" >&6; }
9762 fi
9763
9764
9765 else
9766 MAGIC_CMD=:
9767 fi
9768 fi
9769
9770 fi
9771 ;;
9772 esac
9773
9774 # Use C for the default configuration in the libtool script
9775
9776 lt_save_CC=$CC
9777 ac_ext=c
9778 ac_cpp='$CPP $CPPFLAGS'
9779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9782
9783
9784 # Source file extension for C test sources.
9785 ac_ext=c
9786
9787 # Object file extension for compiled C test sources.
9788 objext=o
9789 objext=$objext
9790
9791 # Code to be used in simple compile tests
9792 lt_simple_compile_test_code="int some_variable = 0;"
9793
9794 # Code to be used in simple link tests
9795 lt_simple_link_test_code='int main(){return(0);}'
9796
9797
9798
9799
9800
9801
9802
9803 # If no C compiler was specified, use CC.
9804 LTCC=${LTCC-"$CC"}
9805
9806 # If no C compiler flags were specified, use CFLAGS.
9807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9808
9809 # Allow CC to be a program name with arguments.
9810 compiler=$CC
9811
9812 # Save the default compiler, since it gets overwritten when the other
9813 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9814 compiler_DEFAULT=$CC
9815
9816 # save warnings/boilerplate of simple test code
9817 ac_outfile=conftest.$ac_objext
9818 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9819 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9820 _lt_compiler_boilerplate=`cat conftest.err`
9821 $RM conftest*
9822
9823 ac_outfile=conftest.$ac_objext
9824 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9825 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9826 _lt_linker_boilerplate=`cat conftest.err`
9827 $RM -r conftest*
9828
9829
9830 ## CAVEAT EMPTOR:
9831 ## There is no encapsulation within the following macros, do not change
9832 ## the running order or otherwise move them around unless you know exactly
9833 ## what you are doing...
9834 if test -n "$compiler"; then
9835
9836 lt_prog_compiler_no_builtin_flag=
9837
9838 if test yes = "$GCC"; then
9839 case $cc_basename in
9840 nvcc*)
9841 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9842 *)
9843 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9844 esac
9845
9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9847 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9848 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9849 then :
9850 printf %s "(cached) " >&6
9851 else $as_nop
9852 lt_cv_prog_compiler_rtti_exceptions=no
9853 ac_outfile=conftest.$ac_objext
9854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9855 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9856 # Insert the option either (1) after the last *FLAGS variable, or
9857 # (2) before a word containing "conftest.", or (3) at the end.
9858 # Note that $ac_compile itself does not contain backslashes and begins
9859 # with a dollar sign (not a hyphen), so the echo should work correctly.
9860 # The option is referenced via a variable to avoid confusing sed.
9861 lt_compile=`echo "$ac_compile" | $SED \
9862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9864 -e 's:$: $lt_compiler_flag:'`
9865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9866 (eval "$lt_compile" 2>conftest.err)
9867 ac_status=$?
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 if (exit $ac_status) && test -s "$ac_outfile"; then
9871 # The compiler can only warn and ignore the option if not recognized
9872 # So say no if there are warnings other than the usual output.
9873 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9875 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9876 lt_cv_prog_compiler_rtti_exceptions=yes
9877 fi
9878 fi
9879 $RM conftest*
9880
9881 fi
9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9883 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9884
9885 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9886 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9887 else
9888 :
9889 fi
9890
9891 fi
9892
9893
9894
9895
9896
9897
9898 lt_prog_compiler_wl=
9899 lt_prog_compiler_pic=
9900 lt_prog_compiler_static=
9901
9902
9903 if test yes = "$GCC"; then
9904 lt_prog_compiler_wl='-Wl,'
9905 lt_prog_compiler_static='-static'
9906
9907 case $host_os in
9908 aix*)
9909 # All AIX code is PIC.
9910 if test ia64 = "$host_cpu"; then
9911 # AIX 5 now supports IA64 processor
9912 lt_prog_compiler_static='-Bstatic'
9913 fi
9914 lt_prog_compiler_pic='-fPIC'
9915 ;;
9916
9917 amigaos*)
9918 case $host_cpu in
9919 powerpc)
9920 # see comment about AmigaOS4 .so support
9921 lt_prog_compiler_pic='-fPIC'
9922 ;;
9923 m68k)
9924 # FIXME: we need at least 68020 code to build shared libraries, but
9925 # adding the '-m68020' flag to GCC prevents building anything better,
9926 # like '-m68040'.
9927 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9928 ;;
9929 esac
9930 ;;
9931
9932 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9933 # PIC is the default for these OSes.
9934 ;;
9935
9936 mingw* | cygwin* | pw32* | os2* | cegcc*)
9937 # This hack is so that the source file can tell whether it is being
9938 # built for inclusion in a dll (and should export symbols for example).
9939 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9940 # (--disable-auto-import) libraries
9941 lt_prog_compiler_pic='-DDLL_EXPORT'
9942 case $host_os in
9943 os2*)
9944 lt_prog_compiler_static='$wl-static'
9945 ;;
9946 esac
9947 ;;
9948
9949 darwin* | rhapsody*)
9950 # PIC is the default on this platform
9951 # Common symbols not allowed in MH_DYLIB files
9952 lt_prog_compiler_pic='-fno-common'
9953 ;;
9954
9955 haiku*)
9956 # PIC is the default for Haiku.
9957 # The "-static" flag exists, but is broken.
9958 lt_prog_compiler_static=
9959 ;;
9960
9961 hpux*)
9962 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9963 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9964 # sets the default TLS model and affects inlining.
9965 case $host_cpu in
9966 hppa*64*)
9967 # +Z the default
9968 ;;
9969 *)
9970 lt_prog_compiler_pic='-fPIC'
9971 ;;
9972 esac
9973 ;;
9974
9975 interix[3-9]*)
9976 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9977 # Instead, we relocate shared libraries at runtime.
9978 ;;
9979
9980 msdosdjgpp*)
9981 # Just because we use GCC doesn't mean we suddenly get shared libraries
9982 # on systems that don't support them.
9983 lt_prog_compiler_can_build_shared=no
9984 enable_shared=no
9985 ;;
9986
9987 *nto* | *qnx*)
9988 # QNX uses GNU C++, but need to define -shared option too, otherwise
9989 # it will coredump.
9990 lt_prog_compiler_pic='-fPIC -shared'
9991 ;;
9992
9993 sysv4*MP*)
9994 if test -d /usr/nec; then
9995 lt_prog_compiler_pic=-Kconform_pic
9996 fi
9997 ;;
9998
9999 *)
10000 lt_prog_compiler_pic='-fPIC'
10001 ;;
10002 esac
10003
10004 case $cc_basename in
10005 nvcc*) # Cuda Compiler Driver 2.2
10006 lt_prog_compiler_wl='-Xlinker '
10007 if test -n "$lt_prog_compiler_pic"; then
10008 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10009 fi
10010 ;;
10011 esac
10012 else
10013 # PORTME Check for flag to pass linker flags through the system compiler.
10014 case $host_os in
10015 aix*)
10016 lt_prog_compiler_wl='-Wl,'
10017 if test ia64 = "$host_cpu"; then
10018 # AIX 5 now supports IA64 processor
10019 lt_prog_compiler_static='-Bstatic'
10020 else
10021 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10022 fi
10023 ;;
10024
10025 darwin* | rhapsody*)
10026 # PIC is the default on this platform
10027 # Common symbols not allowed in MH_DYLIB files
10028 lt_prog_compiler_pic='-fno-common'
10029 case $cc_basename in
10030 nagfor*)
10031 # NAG Fortran compiler
10032 lt_prog_compiler_wl='-Wl,-Wl,,'
10033 lt_prog_compiler_pic='-PIC'
10034 lt_prog_compiler_static='-Bstatic'
10035 ;;
10036 esac
10037 ;;
10038
10039 mingw* | cygwin* | pw32* | os2* | cegcc*)
10040 # This hack is so that the source file can tell whether it is being
10041 # built for inclusion in a dll (and should export symbols for example).
10042 lt_prog_compiler_pic='-DDLL_EXPORT'
10043 case $host_os in
10044 os2*)
10045 lt_prog_compiler_static='$wl-static'
10046 ;;
10047 esac
10048 ;;
10049
10050 hpux9* | hpux10* | hpux11*)
10051 lt_prog_compiler_wl='-Wl,'
10052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10053 # not for PA HP-UX.
10054 case $host_cpu in
10055 hppa*64*|ia64*)
10056 # +Z the default
10057 ;;
10058 *)
10059 lt_prog_compiler_pic='+Z'
10060 ;;
10061 esac
10062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10063 lt_prog_compiler_static='$wl-a ${wl}archive'
10064 ;;
10065
10066 irix5* | irix6* | nonstopux*)
10067 lt_prog_compiler_wl='-Wl,'
10068 # PIC (with -KPIC) is the default.
10069 lt_prog_compiler_static='-non_shared'
10070 ;;
10071
10072 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10073 case $cc_basename in
10074 # old Intel for x86_64, which still supported -KPIC.
10075 ecc*)
10076 lt_prog_compiler_wl='-Wl,'
10077 lt_prog_compiler_pic='-KPIC'
10078 lt_prog_compiler_static='-static'
10079 ;;
10080 # flang / f18. f95 an alias for gfortran or flang on Debian
10081 flang* | f18* | f95*)
10082 lt_prog_compiler_wl='-Wl,'
10083 lt_prog_compiler_pic='-fPIC'
10084 lt_prog_compiler_static='-static'
10085 ;;
10086 # icc used to be incompatible with GCC.
10087 # ICC 10 doesn't accept -KPIC any more.
10088 icc* | ifort*)
10089 lt_prog_compiler_wl='-Wl,'
10090 lt_prog_compiler_pic='-fPIC'
10091 lt_prog_compiler_static='-static'
10092 ;;
10093 # Lahey Fortran 8.1.
10094 lf95*)
10095 lt_prog_compiler_wl='-Wl,'
10096 lt_prog_compiler_pic='--shared'
10097 lt_prog_compiler_static='--static'
10098 ;;
10099 nagfor*)
10100 # NAG Fortran compiler
10101 lt_prog_compiler_wl='-Wl,-Wl,,'
10102 lt_prog_compiler_pic='-PIC'
10103 lt_prog_compiler_static='-Bstatic'
10104 ;;
10105 tcc*)
10106 # Fabrice Bellard et al's Tiny C Compiler
10107 lt_prog_compiler_wl='-Wl,'
10108 lt_prog_compiler_pic='-fPIC'
10109 lt_prog_compiler_static='-static'
10110 ;;
10111 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10112 # Portland Group compilers (*not* the Pentium gcc compiler,
10113 # which looks to be a dead project)
10114 lt_prog_compiler_wl='-Wl,'
10115 lt_prog_compiler_pic='-fpic'
10116 lt_prog_compiler_static='-Bstatic'
10117 ;;
10118 ccc*)
10119 lt_prog_compiler_wl='-Wl,'
10120 # All Alpha code is PIC.
10121 lt_prog_compiler_static='-non_shared'
10122 ;;
10123 xl* | bgxl* | bgf* | mpixl*)
10124 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10125 lt_prog_compiler_wl='-Wl,'
10126 lt_prog_compiler_pic='-qpic'
10127 lt_prog_compiler_static='-qstaticlink'
10128 ;;
10129 *)
10130 case `$CC -V 2>&1 | $SED 5q` in
10131 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10132 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10133 lt_prog_compiler_pic='-KPIC'
10134 lt_prog_compiler_static='-Bstatic'
10135 lt_prog_compiler_wl=''
10136 ;;
10137 *Sun\ F* | *Sun*Fortran*)
10138 lt_prog_compiler_pic='-KPIC'
10139 lt_prog_compiler_static='-Bstatic'
10140 lt_prog_compiler_wl='-Qoption ld '
10141 ;;
10142 *Sun\ C*)
10143 # Sun C 5.9
10144 lt_prog_compiler_pic='-KPIC'
10145 lt_prog_compiler_static='-Bstatic'
10146 lt_prog_compiler_wl='-Wl,'
10147 ;;
10148 *Intel*\ [CF]*Compiler*)
10149 lt_prog_compiler_wl='-Wl,'
10150 lt_prog_compiler_pic='-fPIC'
10151 lt_prog_compiler_static='-static'
10152 ;;
10153 *Portland\ Group*)
10154 lt_prog_compiler_wl='-Wl,'
10155 lt_prog_compiler_pic='-fpic'
10156 lt_prog_compiler_static='-Bstatic'
10157 ;;
10158 esac
10159 ;;
10160 esac
10161 ;;
10162
10163 newsos6)
10164 lt_prog_compiler_pic='-KPIC'
10165 lt_prog_compiler_static='-Bstatic'
10166 ;;
10167
10168 *nto* | *qnx*)
10169 # QNX uses GNU C++, but need to define -shared option too, otherwise
10170 # it will coredump.
10171 lt_prog_compiler_pic='-fPIC -shared'
10172 ;;
10173
10174 osf3* | osf4* | osf5*)
10175 lt_prog_compiler_wl='-Wl,'
10176 # All OSF/1 code is PIC.
10177 lt_prog_compiler_static='-non_shared'
10178 ;;
10179
10180 rdos*)
10181 lt_prog_compiler_static='-non_shared'
10182 ;;
10183
10184 solaris*)
10185 lt_prog_compiler_pic='-KPIC'
10186 lt_prog_compiler_static='-Bstatic'
10187 case $cc_basename in
10188 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10189 lt_prog_compiler_wl='-Qoption ld ';;
10190 *)
10191 lt_prog_compiler_wl='-Wl,';;
10192 esac
10193 ;;
10194
10195 sunos4*)
10196 lt_prog_compiler_wl='-Qoption ld '
10197 lt_prog_compiler_pic='-PIC'
10198 lt_prog_compiler_static='-Bstatic'
10199 ;;
10200
10201 sysv4 | sysv4.2uw2* | sysv4.3*)
10202 lt_prog_compiler_wl='-Wl,'
10203 lt_prog_compiler_pic='-KPIC'
10204 lt_prog_compiler_static='-Bstatic'
10205 ;;
10206
10207 sysv4*MP*)
10208 if test -d /usr/nec; then
10209 lt_prog_compiler_pic='-Kconform_pic'
10210 lt_prog_compiler_static='-Bstatic'
10211 fi
10212 ;;
10213
10214 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10215 lt_prog_compiler_wl='-Wl,'
10216 lt_prog_compiler_pic='-KPIC'
10217 lt_prog_compiler_static='-Bstatic'
10218 ;;
10219
10220 unicos*)
10221 lt_prog_compiler_wl='-Wl,'
10222 lt_prog_compiler_can_build_shared=no
10223 ;;
10224
10225 uts4*)
10226 lt_prog_compiler_pic='-pic'
10227 lt_prog_compiler_static='-Bstatic'
10228 ;;
10229
10230 *)
10231 lt_prog_compiler_can_build_shared=no
10232 ;;
10233 esac
10234 fi
10235
10236 case $host_os in
10237 # For platforms that do not support PIC, -DPIC is meaningless:
10238 *djgpp*)
10239 lt_prog_compiler_pic=
10240 ;;
10241 *)
10242 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10243 ;;
10244 esac
10245
10246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10247 printf %s "checking for $compiler option to produce PIC... " >&6; }
10248 if test ${lt_cv_prog_compiler_pic+y}
10249 then :
10250 printf %s "(cached) " >&6
10251 else $as_nop
10252 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10253 fi
10254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10255 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10256 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10257
10258 #
10259 # Check to make sure the PIC flag actually works.
10260 #
10261 if test -n "$lt_prog_compiler_pic"; then
10262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10263 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10264 if test ${lt_cv_prog_compiler_pic_works+y}
10265 then :
10266 printf %s "(cached) " >&6
10267 else $as_nop
10268 lt_cv_prog_compiler_pic_works=no
10269 ac_outfile=conftest.$ac_objext
10270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10271 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10272 # Insert the option either (1) after the last *FLAGS variable, or
10273 # (2) before a word containing "conftest.", or (3) at the end.
10274 # Note that $ac_compile itself does not contain backslashes and begins
10275 # with a dollar sign (not a hyphen), so the echo should work correctly.
10276 # The option is referenced via a variable to avoid confusing sed.
10277 lt_compile=`echo "$ac_compile" | $SED \
10278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10280 -e 's:$: $lt_compiler_flag:'`
10281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10282 (eval "$lt_compile" 2>conftest.err)
10283 ac_status=$?
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 if (exit $ac_status) && test -s "$ac_outfile"; then
10287 # The compiler can only warn and ignore the option if not recognized
10288 # So say no if there are warnings other than the usual output.
10289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10292 lt_cv_prog_compiler_pic_works=yes
10293 fi
10294 fi
10295 $RM conftest*
10296
10297 fi
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10299 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10300
10301 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10302 case $lt_prog_compiler_pic in
10303 "" | " "*) ;;
10304 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10305 esac
10306 else
10307 lt_prog_compiler_pic=
10308 lt_prog_compiler_can_build_shared=no
10309 fi
10310
10311 fi
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323 #
10324 # Check to make sure the static flag actually works.
10325 #
10326 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10328 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10329 if test ${lt_cv_prog_compiler_static_works+y}
10330 then :
10331 printf %s "(cached) " >&6
10332 else $as_nop
10333 lt_cv_prog_compiler_static_works=no
10334 save_LDFLAGS=$LDFLAGS
10335 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10336 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10337 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10338 # The linker can only warn and ignore the option if not recognized
10339 # So say no if there are warnings
10340 if test -s conftest.err; then
10341 # Append any errors to the config.log.
10342 cat conftest.err 1>&5
10343 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10345 if diff conftest.exp conftest.er2 >/dev/null; then
10346 lt_cv_prog_compiler_static_works=yes
10347 fi
10348 else
10349 lt_cv_prog_compiler_static_works=yes
10350 fi
10351 fi
10352 $RM -r conftest*
10353 LDFLAGS=$save_LDFLAGS
10354
10355 fi
10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10357 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10358
10359 if test yes = "$lt_cv_prog_compiler_static_works"; then
10360 :
10361 else
10362 lt_prog_compiler_static=
10363 fi
10364
10365
10366
10367
10368
10369
10370
10371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10372 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10373 if test ${lt_cv_prog_compiler_c_o+y}
10374 then :
10375 printf %s "(cached) " >&6
10376 else $as_nop
10377 lt_cv_prog_compiler_c_o=no
10378 $RM -r conftest 2>/dev/null
10379 mkdir conftest
10380 cd conftest
10381 mkdir out
10382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10383
10384 lt_compiler_flag="-o out/conftest2.$ac_objext"
10385 # Insert the option either (1) after the last *FLAGS variable, or
10386 # (2) before a word containing "conftest.", or (3) at the end.
10387 # Note that $ac_compile itself does not contain backslashes and begins
10388 # with a dollar sign (not a hyphen), so the echo should work correctly.
10389 lt_compile=`echo "$ac_compile" | $SED \
10390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10392 -e 's:$: $lt_compiler_flag:'`
10393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10394 (eval "$lt_compile" 2>out/conftest.err)
10395 ac_status=$?
10396 cat out/conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10399 then
10400 # The compiler can only warn and ignore the option if not recognized
10401 # So say no if there are warnings
10402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10405 lt_cv_prog_compiler_c_o=yes
10406 fi
10407 fi
10408 chmod u+w . 2>&5
10409 $RM conftest*
10410 # SGI C++ compiler will create directory out/ii_files/ for
10411 # template instantiation
10412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10413 $RM out/* && rmdir out
10414 cd ..
10415 $RM -r conftest
10416 $RM conftest*
10417
10418 fi
10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10420 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10421
10422
10423
10424
10425
10426
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10428 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10429 if test ${lt_cv_prog_compiler_c_o+y}
10430 then :
10431 printf %s "(cached) " >&6
10432 else $as_nop
10433 lt_cv_prog_compiler_c_o=no
10434 $RM -r conftest 2>/dev/null
10435 mkdir conftest
10436 cd conftest
10437 mkdir out
10438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10439
10440 lt_compiler_flag="-o out/conftest2.$ac_objext"
10441 # Insert the option either (1) after the last *FLAGS variable, or
10442 # (2) before a word containing "conftest.", or (3) at the end.
10443 # Note that $ac_compile itself does not contain backslashes and begins
10444 # with a dollar sign (not a hyphen), so the echo should work correctly.
10445 lt_compile=`echo "$ac_compile" | $SED \
10446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10448 -e 's:$: $lt_compiler_flag:'`
10449 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10450 (eval "$lt_compile" 2>out/conftest.err)
10451 ac_status=$?
10452 cat out/conftest.err >&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10455 then
10456 # The compiler can only warn and ignore the option if not recognized
10457 # So say no if there are warnings
10458 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10459 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10460 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10461 lt_cv_prog_compiler_c_o=yes
10462 fi
10463 fi
10464 chmod u+w . 2>&5
10465 $RM conftest*
10466 # SGI C++ compiler will create directory out/ii_files/ for
10467 # template instantiation
10468 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10469 $RM out/* && rmdir out
10470 cd ..
10471 $RM -r conftest
10472 $RM conftest*
10473
10474 fi
10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10476 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10477
10478
10479
10480
10481 hard_links=nottested
10482 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10483 # do not overwrite the value of need_locks provided by the user
10484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10485 printf %s "checking if we can lock with hard links... " >&6; }
10486 hard_links=yes
10487 $RM conftest*
10488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10489 touch conftest.a
10490 ln conftest.a conftest.b 2>&5 || hard_links=no
10491 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10493 printf "%s\n" "$hard_links" >&6; }
10494 if test no = "$hard_links"; then
10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10496 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10497 need_locks=warn
10498 fi
10499 else
10500 need_locks=no
10501 fi
10502
10503
10504
10505
10506
10507
10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10509 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10510
10511 runpath_var=
10512 allow_undefined_flag=
10513 always_export_symbols=no
10514 archive_cmds=
10515 archive_expsym_cmds=
10516 compiler_needs_object=no
10517 enable_shared_with_static_runtimes=no
10518 export_dynamic_flag_spec=
10519 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10520 hardcode_automatic=no
10521 hardcode_direct=no
10522 hardcode_direct_absolute=no
10523 hardcode_libdir_flag_spec=
10524 hardcode_libdir_separator=
10525 hardcode_minus_L=no
10526 hardcode_shlibpath_var=unsupported
10527 inherit_rpath=no
10528 link_all_deplibs=unknown
10529 module_cmds=
10530 module_expsym_cmds=
10531 old_archive_from_new_cmds=
10532 old_archive_from_expsyms_cmds=
10533 thread_safe_flag_spec=
10534 whole_archive_flag_spec=
10535 # include_expsyms should be a list of space-separated symbols to be *always*
10536 # included in the symbol list
10537 include_expsyms=
10538 # exclude_expsyms can be an extended regexp of symbols to exclude
10539 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10540 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10541 # as well as any symbol that contains 'd'.
10542 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10544 # platforms (ab)use it in PIC code, but their linkers get confused if
10545 # the symbol is explicitly referenced. Since portable code cannot
10546 # rely on this symbol name, it's probably fine to never include it in
10547 # preloaded symbol tables.
10548 # Exclude shared library initialization/finalization symbols.
10549 extract_expsyms_cmds=
10550
10551 case $host_os in
10552 cygwin* | mingw* | pw32* | cegcc*)
10553 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10554 # When not using gcc, we currently assume that we are using
10555 # Microsoft Visual C++ or Intel C++ Compiler.
10556 if test yes != "$GCC"; then
10557 with_gnu_ld=no
10558 fi
10559 ;;
10560 interix*)
10561 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10562 with_gnu_ld=yes
10563 ;;
10564 openbsd* | bitrig*)
10565 with_gnu_ld=no
10566 ;;
10567 linux* | k*bsd*-gnu | gnu*)
10568 link_all_deplibs=no
10569 ;;
10570 esac
10571
10572 ld_shlibs=yes
10573
10574 # On some targets, GNU ld is compatible enough with the native linker
10575 # that we're better off using the native interface for both.
10576 lt_use_gnu_ld_interface=no
10577 if test yes = "$with_gnu_ld"; then
10578 case $host_os in
10579 aix*)
10580 # The AIX port of GNU ld has always aspired to compatibility
10581 # with the native linker. However, as the warning in the GNU ld
10582 # block says, versions before 2.19.5* couldn't really create working
10583 # shared libraries, regardless of the interface used.
10584 case `$LD -v 2>&1` in
10585 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10586 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10587 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10588 *)
10589 lt_use_gnu_ld_interface=yes
10590 ;;
10591 esac
10592 ;;
10593 *)
10594 lt_use_gnu_ld_interface=yes
10595 ;;
10596 esac
10597 fi
10598
10599 if test yes = "$lt_use_gnu_ld_interface"; then
10600 # If archive_cmds runs LD, not CC, wlarc should be empty
10601 wlarc='$wl'
10602
10603 # Set some defaults for GNU ld with shared library support. These
10604 # are reset later if shared libraries are not supported. Putting them
10605 # here allows them to be overridden if necessary.
10606 runpath_var=LD_RUN_PATH
10607 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10608 export_dynamic_flag_spec='$wl--export-dynamic'
10609 # ancient GNU ld didn't support --whole-archive et. al.
10610 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10611 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10612 else
10613 whole_archive_flag_spec=
10614 fi
10615 supports_anon_versioning=no
10616 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10617 *GNU\ gold*) supports_anon_versioning=yes ;;
10618 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10619 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10620 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10621 *\ 2.11.*) ;; # other 2.11 versions
10622 *) supports_anon_versioning=yes ;;
10623 esac
10624
10625 # See if GNU ld supports shared libraries.
10626 case $host_os in
10627 aix[3-9]*)
10628 # On AIX/PPC, the GNU linker is very broken
10629 if test ia64 != "$host_cpu"; then
10630 ld_shlibs=no
10631 cat <<_LT_EOF 1>&2
10632
10633 *** Warning: the GNU linker, at least up to release 2.19, is reported
10634 *** to be unable to reliably create shared libraries on AIX.
10635 *** Therefore, libtool is disabling shared libraries support. If you
10636 *** really care for shared libraries, you may want to install binutils
10637 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10638 *** You will then need to restart the configuration process.
10639
10640 _LT_EOF
10641 fi
10642 ;;
10643
10644 amigaos*)
10645 case $host_cpu in
10646 powerpc)
10647 # see comment about AmigaOS4 .so support
10648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10649 archive_expsym_cmds=''
10650 ;;
10651 m68k)
10652 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)'
10653 hardcode_libdir_flag_spec='-L$libdir'
10654 hardcode_minus_L=yes
10655 ;;
10656 esac
10657 ;;
10658
10659 beos*)
10660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10661 allow_undefined_flag=unsupported
10662 # Joseph Beckenbach <[email protected]> says some releases of gcc
10663 # support --undefined. This deserves some investigation. FIXME
10664 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10665 else
10666 ld_shlibs=no
10667 fi
10668 ;;
10669
10670 cygwin* | mingw* | pw32* | cegcc*)
10671 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10672 # as there is no search path for DLLs.
10673 hardcode_libdir_flag_spec='-L$libdir'
10674 export_dynamic_flag_spec='$wl--export-all-symbols'
10675 allow_undefined_flag=unsupported
10676 always_export_symbols=no
10677 enable_shared_with_static_runtimes=yes
10678 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'
10679 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10680
10681 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10683 # If the export-symbols file already is a .def file, use it as
10684 # is; otherwise, prepend EXPORTS...
10685 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10686 cp $export_symbols $output_objdir/$soname.def;
10687 else
10688 echo EXPORTS > $output_objdir/$soname.def;
10689 cat $export_symbols >> $output_objdir/$soname.def;
10690 fi~
10691 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10692 else
10693 ld_shlibs=no
10694 fi
10695 ;;
10696
10697 haiku*)
10698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10699 link_all_deplibs=yes
10700 ;;
10701
10702 os2*)
10703 hardcode_libdir_flag_spec='-L$libdir'
10704 hardcode_minus_L=yes
10705 allow_undefined_flag=unsupported
10706 shrext_cmds=.dll
10707 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10708 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10709 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10710 $ECHO EXPORTS >> $output_objdir/$libname.def~
10711 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10712 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10713 emximp -o $lib $output_objdir/$libname.def'
10714 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10715 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10716 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10717 $ECHO EXPORTS >> $output_objdir/$libname.def~
10718 prefix_cmds="$SED"~
10719 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10720 prefix_cmds="$prefix_cmds -e 1d";
10721 fi~
10722 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10723 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10724 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10725 emximp -o $lib $output_objdir/$libname.def'
10726 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10727 enable_shared_with_static_runtimes=yes
10728 file_list_spec='@'
10729 ;;
10730
10731 interix[3-9]*)
10732 hardcode_direct=no
10733 hardcode_shlibpath_var=no
10734 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10735 export_dynamic_flag_spec='$wl-E'
10736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10737 # Instead, shared libraries are loaded at an image base (0x10000000 by
10738 # default) and relocated if they conflict, which is a slow very memory
10739 # consuming and fragmenting process. To avoid this, we pick a random,
10740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10741 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10742 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10743 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'
10744 ;;
10745
10746 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10747 tmp_diet=no
10748 if test linux-dietlibc = "$host_os"; then
10749 case $cc_basename in
10750 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10751 esac
10752 fi
10753 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10754 && test no = "$tmp_diet"
10755 then
10756 tmp_addflag=' $pic_flag'
10757 tmp_sharedflag='-shared'
10758 case $cc_basename,$host_cpu in
10759 pgcc*) # Portland Group C compiler
10760 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'
10761 tmp_addflag=' $pic_flag'
10762 ;;
10763 pgf77* | pgf90* | pgf95* | pgfortran*)
10764 # Portland Group f77 and f90 compilers
10765 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'
10766 tmp_addflag=' $pic_flag -Mnomain' ;;
10767 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10768 tmp_addflag=' -i_dynamic' ;;
10769 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10770 tmp_addflag=' -i_dynamic -nofor_main' ;;
10771 ifc* | ifort*) # Intel Fortran compiler
10772 tmp_addflag=' -nofor_main' ;;
10773 lf95*) # Lahey Fortran 8.1
10774 whole_archive_flag_spec=
10775 tmp_sharedflag='--shared' ;;
10776 nagfor*) # NAGFOR 5.3
10777 tmp_sharedflag='-Wl,-shared' ;;
10778 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10779 tmp_sharedflag='-qmkshrobj'
10780 tmp_addflag= ;;
10781 nvcc*) # Cuda Compiler Driver 2.2
10782 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'
10783 compiler_needs_object=yes
10784 ;;
10785 esac
10786 case `$CC -V 2>&1 | $SED 5q` in
10787 *Sun\ C*) # Sun C 5.9
10788 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'
10789 compiler_needs_object=yes
10790 tmp_sharedflag='-G' ;;
10791 *Sun\ F*) # Sun Fortran 8.3
10792 tmp_sharedflag='-G' ;;
10793 esac
10794 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10795
10796 if test yes = "$supports_anon_versioning"; then
10797 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10798 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10799 echo "local: *; };" >> $output_objdir/$libname.ver~
10800 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10801 fi
10802
10803 case $cc_basename in
10804 tcc*)
10805 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10806 export_dynamic_flag_spec='-rdynamic'
10807 ;;
10808 xlf* | bgf* | bgxlf* | mpixlf*)
10809 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10810 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10811 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10812 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10813 if test yes = "$supports_anon_versioning"; then
10814 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10815 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10816 echo "local: *; };" >> $output_objdir/$libname.ver~
10817 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10818 fi
10819 ;;
10820 esac
10821 else
10822 ld_shlibs=no
10823 fi
10824 ;;
10825
10826 netbsd* | netbsdelf*-gnu)
10827 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10828 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10829 wlarc=
10830 else
10831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10832 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10833 fi
10834 ;;
10835
10836 solaris*)
10837 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10838 ld_shlibs=no
10839 cat <<_LT_EOF 1>&2
10840
10841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10842 *** create shared libraries on Solaris systems. Therefore, libtool
10843 *** is disabling shared libraries support. We urge you to upgrade GNU
10844 *** binutils to release 2.9.1 or newer. Another option is to modify
10845 *** your PATH or compiler configuration so that the native linker is
10846 *** used, and then restart.
10847
10848 _LT_EOF
10849 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10850 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10851 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10852 else
10853 ld_shlibs=no
10854 fi
10855 ;;
10856
10857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10858 case `$LD -v 2>&1` in
10859 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10860 ld_shlibs=no
10861 cat <<_LT_EOF 1>&2
10862
10863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10864 *** reliably create shared libraries on SCO systems. Therefore, libtool
10865 *** is disabling shared libraries support. We urge you to upgrade GNU
10866 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10867 *** your PATH or compiler configuration so that the native linker is
10868 *** used, and then restart.
10869
10870 _LT_EOF
10871 ;;
10872 *)
10873 # For security reasons, it is highly recommended that you always
10874 # use absolute paths for naming shared libraries, and exclude the
10875 # DT_RUNPATH tag from executables and libraries. But doing so
10876 # requires that you compile everything twice, which is a pain.
10877 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10878 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10880 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10881 else
10882 ld_shlibs=no
10883 fi
10884 ;;
10885 esac
10886 ;;
10887
10888 sunos4*)
10889 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10890 wlarc=
10891 hardcode_direct=yes
10892 hardcode_shlibpath_var=no
10893 ;;
10894
10895 *)
10896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10898 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10899 else
10900 ld_shlibs=no
10901 fi
10902 ;;
10903 esac
10904
10905 if test no = "$ld_shlibs"; then
10906 runpath_var=
10907 hardcode_libdir_flag_spec=
10908 export_dynamic_flag_spec=
10909 whole_archive_flag_spec=
10910 fi
10911 else
10912 # PORTME fill in a description of your system's linker (not GNU ld)
10913 case $host_os in
10914 aix3*)
10915 allow_undefined_flag=unsupported
10916 always_export_symbols=yes
10917 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'
10918 # Note: this linker hardcodes the directories in LIBPATH if there
10919 # are no directories specified by -L.
10920 hardcode_minus_L=yes
10921 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10922 # Neither direct hardcoding nor static linking is supported with a
10923 # broken collect2.
10924 hardcode_direct=unsupported
10925 fi
10926 ;;
10927
10928 aix[4-9]*)
10929 if test ia64 = "$host_cpu"; then
10930 # On IA64, the linker does run time linking by default, so we don't
10931 # have to do anything special.
10932 aix_use_runtimelinking=no
10933 exp_sym_flag='-Bexport'
10934 no_entry_flag=
10935 else
10936 # If we're using GNU nm, then we don't want the "-C" option.
10937 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10938 # Without the "-l" option, or with the "-B" option, AIX nm treats
10939 # weak defined symbols like other global defined symbols, whereas
10940 # GNU nm marks them as "W".
10941 # While the 'weak' keyword is ignored in the Export File, we need
10942 # it in the Import File for the 'aix-soname' feature, so we have
10943 # to replace the "-B" option with "-P" for AIX nm.
10944 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10945 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'
10946 else
10947 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 == "L") || (\$ 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'
10948 fi
10949 aix_use_runtimelinking=no
10950
10951 # Test if we are trying to use run time linking or normal
10952 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10953 # have runtime linking enabled, and use it for executables.
10954 # For shared libraries, we enable/disable runtime linking
10955 # depending on the kind of the shared library created -
10956 # when "with_aix_soname,aix_use_runtimelinking" is:
10957 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10958 # "aix,yes" lib.so shared, rtl:yes, for executables
10959 # lib.a static archive
10960 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10961 # lib.a(lib.so.V) shared, rtl:no, for executables
10962 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10963 # lib.a(lib.so.V) shared, rtl:no
10964 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10965 # lib.a static archive
10966 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10967 for ld_flag in $LDFLAGS; do
10968 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10969 aix_use_runtimelinking=yes
10970 break
10971 fi
10972 done
10973 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10974 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10975 # so we don't have lib.a shared libs to link our executables.
10976 # We have to force runtime linking in this case.
10977 aix_use_runtimelinking=yes
10978 LDFLAGS="$LDFLAGS -Wl,-brtl"
10979 fi
10980 ;;
10981 esac
10982
10983 exp_sym_flag='-bexport'
10984 no_entry_flag='-bnoentry'
10985 fi
10986
10987 # When large executables or shared objects are built, AIX ld can
10988 # have problems creating the table of contents. If linking a library
10989 # or program results in "error TOC overflow" add -mminimal-toc to
10990 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10991 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10992
10993 archive_cmds=''
10994 hardcode_direct=yes
10995 hardcode_direct_absolute=yes
10996 hardcode_libdir_separator=':'
10997 link_all_deplibs=yes
10998 file_list_spec='$wl-f,'
10999 case $with_aix_soname,$aix_use_runtimelinking in
11000 aix,*) ;; # traditional, no import file
11001 svr4,* | *,yes) # use import file
11002 # The Import File defines what to hardcode.
11003 hardcode_direct=no
11004 hardcode_direct_absolute=no
11005 ;;
11006 esac
11007
11008 if test yes = "$GCC"; then
11009 case $host_os in aix4.[012]|aix4.[012].*)
11010 # We only want to do this on AIX 4.2 and lower, the check
11011 # below for broken collect2 doesn't work under 4.3+
11012 collect2name=`$CC -print-prog-name=collect2`
11013 if test -f "$collect2name" &&
11014 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11015 then
11016 # We have reworked collect2
11017 :
11018 else
11019 # We have old collect2
11020 hardcode_direct=unsupported
11021 # It fails to find uninstalled libraries when the uninstalled
11022 # path is not listed in the libpath. Setting hardcode_minus_L
11023 # to unsupported forces relinking
11024 hardcode_minus_L=yes
11025 hardcode_libdir_flag_spec='-L$libdir'
11026 hardcode_libdir_separator=
11027 fi
11028 ;;
11029 esac
11030 shared_flag='-shared'
11031 if test yes = "$aix_use_runtimelinking"; then
11032 shared_flag="$shared_flag "'$wl-G'
11033 fi
11034 # Need to ensure runtime linking is disabled for the traditional
11035 # shared library, or the linker may eventually find shared libraries
11036 # /with/ Import File - we do not want to mix them.
11037 shared_flag_aix='-shared'
11038 shared_flag_svr4='-shared $wl-G'
11039 else
11040 # not using gcc
11041 if test ia64 = "$host_cpu"; then
11042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11043 # chokes on -Wl,-G. The following line is correct:
11044 shared_flag='-G'
11045 else
11046 if test yes = "$aix_use_runtimelinking"; then
11047 shared_flag='$wl-G'
11048 else
11049 shared_flag='$wl-bM:SRE'
11050 fi
11051 shared_flag_aix='$wl-bM:SRE'
11052 shared_flag_svr4='$wl-G'
11053 fi
11054 fi
11055
11056 export_dynamic_flag_spec='$wl-bexpall'
11057 # It seems that -bexpall does not export symbols beginning with
11058 # underscore (_), so it is better to generate a list of symbols to export.
11059 always_export_symbols=yes
11060 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11061 # Warning - without using the other runtime loading flags (-brtl),
11062 # -berok will link without error, but may produce a broken library.
11063 allow_undefined_flag='-berok'
11064 # Determine the default libpath from the value encoded in an
11065 # empty executable.
11066 if test set = "${lt_cv_aix_libpath+set}"; then
11067 aix_libpath=$lt_cv_aix_libpath
11068 else
11069 if test ${lt_cv_aix_libpath_+y}
11070 then :
11071 printf %s "(cached) " >&6
11072 else $as_nop
11073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074 /* end confdefs.h. */
11075
11076 int
11077 main (void)
11078 {
11079
11080 ;
11081 return 0;
11082 }
11083 _ACEOF
11084 if ac_fn_c_try_link "$LINENO"
11085 then :
11086
11087 lt_aix_libpath_sed='
11088 /Import File Strings/,/^$/ {
11089 /^0/ {
11090 s/^0 *\([^ ]*\) *$/\1/
11091 p
11092 }
11093 }'
11094 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11095 # Check for a 64-bit object if we didn't find anything.
11096 if test -z "$lt_cv_aix_libpath_"; then
11097 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11098 fi
11099 fi
11100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11101 conftest$ac_exeext conftest.$ac_ext
11102 if test -z "$lt_cv_aix_libpath_"; then
11103 lt_cv_aix_libpath_=/usr/lib:/lib
11104 fi
11105
11106 fi
11107
11108 aix_libpath=$lt_cv_aix_libpath_
11109 fi
11110
11111 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11112 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
11113 else
11114 if test ia64 = "$host_cpu"; then
11115 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11116 allow_undefined_flag="-z nodefs"
11117 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"
11118 else
11119 # Determine the default libpath from the value encoded in an
11120 # empty executable.
11121 if test set = "${lt_cv_aix_libpath+set}"; then
11122 aix_libpath=$lt_cv_aix_libpath
11123 else
11124 if test ${lt_cv_aix_libpath_+y}
11125 then :
11126 printf %s "(cached) " >&6
11127 else $as_nop
11128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11130
11131 int
11132 main (void)
11133 {
11134
11135 ;
11136 return 0;
11137 }
11138 _ACEOF
11139 if ac_fn_c_try_link "$LINENO"
11140 then :
11141
11142 lt_aix_libpath_sed='
11143 /Import File Strings/,/^$/ {
11144 /^0/ {
11145 s/^0 *\([^ ]*\) *$/\1/
11146 p
11147 }
11148 }'
11149 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11150 # Check for a 64-bit object if we didn't find anything.
11151 if test -z "$lt_cv_aix_libpath_"; then
11152 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11153 fi
11154 fi
11155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11156 conftest$ac_exeext conftest.$ac_ext
11157 if test -z "$lt_cv_aix_libpath_"; then
11158 lt_cv_aix_libpath_=/usr/lib:/lib
11159 fi
11160
11161 fi
11162
11163 aix_libpath=$lt_cv_aix_libpath_
11164 fi
11165
11166 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11167 # Warning - without using the other run time loading flags,
11168 # -berok will link without error, but may produce a broken library.
11169 no_undefined_flag=' $wl-bernotok'
11170 allow_undefined_flag=' $wl-berok'
11171 if test yes = "$with_gnu_ld"; then
11172 # We only use this code for GNU lds that support --whole-archive.
11173 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11174 else
11175 # Exported symbols can be pulled into shared objects from archives
11176 whole_archive_flag_spec='$convenience'
11177 fi
11178 archive_cmds_need_lc=yes
11179 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11180 # -brtl affects multiple linker settings, -berok does not and is overridden later
11181 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11182 if test svr4 != "$with_aix_soname"; then
11183 # This is similar to how AIX traditionally builds its shared libraries.
11184 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'
11185 fi
11186 if test aix != "$with_aix_soname"; then
11187 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'
11188 else
11189 # used by -dlpreopen to get the symbols
11190 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11191 fi
11192 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11193 fi
11194 fi
11195 ;;
11196
11197 amigaos*)
11198 case $host_cpu in
11199 powerpc)
11200 # see comment about AmigaOS4 .so support
11201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11202 archive_expsym_cmds=''
11203 ;;
11204 m68k)
11205 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)'
11206 hardcode_libdir_flag_spec='-L$libdir'
11207 hardcode_minus_L=yes
11208 ;;
11209 esac
11210 ;;
11211
11212 bsdi[45]*)
11213 export_dynamic_flag_spec=-rdynamic
11214 ;;
11215
11216 cygwin* | mingw* | pw32* | cegcc*)
11217 # When not using gcc, we currently assume that we are using
11218 # Microsoft Visual C++ or Intel C++ Compiler.
11219 # hardcode_libdir_flag_spec is actually meaningless, as there is
11220 # no search path for DLLs.
11221 case $cc_basename in
11222 cl* | icl*)
11223 # Native MSVC or ICC
11224 hardcode_libdir_flag_spec=' '
11225 allow_undefined_flag=unsupported
11226 always_export_symbols=yes
11227 file_list_spec='@'
11228 # Tell ltmain to make .lib files, not .a files.
11229 libext=lib
11230 # Tell ltmain to make .dll files, not .so files.
11231 shrext_cmds=.dll
11232 # FIXME: Setting linknames here is a bad hack.
11233 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11234 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11235 cp "$export_symbols" "$output_objdir/$soname.def";
11236 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11237 else
11238 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11239 fi~
11240 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11241 linknames='
11242 # The linker will not automatically build a static lib if we build a DLL.
11243 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11244 enable_shared_with_static_runtimes=yes
11245 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11247 # Don't use ranlib
11248 old_postinstall_cmds='chmod 644 $oldlib'
11249 postlink_cmds='lt_outputfile="@OUTPUT@"~
11250 lt_tool_outputfile="@TOOL_OUTPUT@"~
11251 case $lt_outputfile in
11252 *.exe|*.EXE) ;;
11253 *)
11254 lt_outputfile=$lt_outputfile.exe
11255 lt_tool_outputfile=$lt_tool_outputfile.exe
11256 ;;
11257 esac~
11258 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11259 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11260 $RM "$lt_outputfile.manifest";
11261 fi'
11262 ;;
11263 *)
11264 # Assume MSVC and ICC wrapper
11265 hardcode_libdir_flag_spec=' '
11266 allow_undefined_flag=unsupported
11267 # Tell ltmain to make .lib files, not .a files.
11268 libext=lib
11269 # Tell ltmain to make .dll files, not .so files.
11270 shrext_cmds=.dll
11271 # FIXME: Setting linknames here is a bad hack.
11272 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11273 # The linker will automatically build a .lib file if we build a DLL.
11274 old_archive_from_new_cmds='true'
11275 # FIXME: Should let the user specify the lib program.
11276 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11277 enable_shared_with_static_runtimes=yes
11278 ;;
11279 esac
11280 ;;
11281
11282 darwin* | rhapsody*)
11283
11284
11285 archive_cmds_need_lc=no
11286 hardcode_direct=no
11287 hardcode_automatic=yes
11288 hardcode_shlibpath_var=unsupported
11289 if test yes = "$lt_cv_ld_force_load"; then
11290 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\"`'
11291
11292 else
11293 whole_archive_flag_spec=''
11294 fi
11295 link_all_deplibs=yes
11296 allow_undefined_flag=$_lt_dar_allow_undefined
11297 case $cc_basename in
11298 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11299 *) _lt_dar_can_shared=$GCC ;;
11300 esac
11301 if test yes = "$_lt_dar_can_shared"; then
11302 output_verbose_link_cmd=func_echo_all
11303 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11304 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11305 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"
11306 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"
11307
11308 else
11309 ld_shlibs=no
11310 fi
11311
11312 ;;
11313
11314 dgux*)
11315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11316 hardcode_libdir_flag_spec='-L$libdir'
11317 hardcode_shlibpath_var=no
11318 ;;
11319
11320 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11321 # support. Future versions do this automatically, but an explicit c++rt0.o
11322 # does not break anything, and helps significantly (at the cost of a little
11323 # extra space).
11324 freebsd2.2*)
11325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11326 hardcode_libdir_flag_spec='-R$libdir'
11327 hardcode_direct=yes
11328 hardcode_shlibpath_var=no
11329 ;;
11330
11331 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11332 freebsd2.*)
11333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11334 hardcode_direct=yes
11335 hardcode_minus_L=yes
11336 hardcode_shlibpath_var=no
11337 ;;
11338
11339 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11340 freebsd* | dragonfly* | midnightbsd*)
11341 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11342 hardcode_libdir_flag_spec='-R$libdir'
11343 hardcode_direct=yes
11344 hardcode_shlibpath_var=no
11345 ;;
11346
11347 hpux9*)
11348 if test yes = "$GCC"; then
11349 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'
11350 else
11351 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'
11352 fi
11353 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11354 hardcode_libdir_separator=:
11355 hardcode_direct=yes
11356
11357 # hardcode_minus_L: Not really in the search PATH,
11358 # but as the default location of the library.
11359 hardcode_minus_L=yes
11360 export_dynamic_flag_spec='$wl-E'
11361 ;;
11362
11363 hpux10*)
11364 if test yes,no = "$GCC,$with_gnu_ld"; then
11365 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11366 else
11367 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11368 fi
11369 if test no = "$with_gnu_ld"; then
11370 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11371 hardcode_libdir_separator=:
11372 hardcode_direct=yes
11373 hardcode_direct_absolute=yes
11374 export_dynamic_flag_spec='$wl-E'
11375 # hardcode_minus_L: Not really in the search PATH,
11376 # but as the default location of the library.
11377 hardcode_minus_L=yes
11378 fi
11379 ;;
11380
11381 hpux11*)
11382 if test yes,no = "$GCC,$with_gnu_ld"; then
11383 case $host_cpu in
11384 hppa*64*)
11385 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11386 ;;
11387 ia64*)
11388 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11389 ;;
11390 *)
11391 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11392 ;;
11393 esac
11394 else
11395 case $host_cpu in
11396 hppa*64*)
11397 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11398 ;;
11399 ia64*)
11400 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11401 ;;
11402 *)
11403
11404 # Older versions of the 11.00 compiler do not understand -b yet
11405 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11407 printf %s "checking if $CC understands -b... " >&6; }
11408 if test ${lt_cv_prog_compiler__b+y}
11409 then :
11410 printf %s "(cached) " >&6
11411 else $as_nop
11412 lt_cv_prog_compiler__b=no
11413 save_LDFLAGS=$LDFLAGS
11414 LDFLAGS="$LDFLAGS -b"
11415 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11416 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11417 # The linker can only warn and ignore the option if not recognized
11418 # So say no if there are warnings
11419 if test -s conftest.err; then
11420 # Append any errors to the config.log.
11421 cat conftest.err 1>&5
11422 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11424 if diff conftest.exp conftest.er2 >/dev/null; then
11425 lt_cv_prog_compiler__b=yes
11426 fi
11427 else
11428 lt_cv_prog_compiler__b=yes
11429 fi
11430 fi
11431 $RM -r conftest*
11432 LDFLAGS=$save_LDFLAGS
11433
11434 fi
11435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11436 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11437
11438 if test yes = "$lt_cv_prog_compiler__b"; then
11439 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11440 else
11441 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11442 fi
11443
11444 ;;
11445 esac
11446 fi
11447 if test no = "$with_gnu_ld"; then
11448 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11449 hardcode_libdir_separator=:
11450
11451 case $host_cpu in
11452 hppa*64*|ia64*)
11453 hardcode_direct=no
11454 hardcode_shlibpath_var=no
11455 ;;
11456 *)
11457 hardcode_direct=yes
11458 hardcode_direct_absolute=yes
11459 export_dynamic_flag_spec='$wl-E'
11460
11461 # hardcode_minus_L: Not really in the search PATH,
11462 # but as the default location of the library.
11463 hardcode_minus_L=yes
11464 ;;
11465 esac
11466 fi
11467 ;;
11468
11469 irix5* | irix6* | nonstopux*)
11470 if test yes = "$GCC"; then
11471 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'
11472 # Try to use the -exported_symbol ld option, if it does not
11473 # work, assume that -exports_file does not work either and
11474 # implicitly export all symbols.
11475 # This should be the same for all languages, so no per-tag cache variable.
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11477 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11478 if test ${lt_cv_irix_exported_symbol+y}
11479 then :
11480 printf %s "(cached) " >&6
11481 else $as_nop
11482 save_LDFLAGS=$LDFLAGS
11483 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11486 int foo (void) { return 0; }
11487 _ACEOF
11488 if ac_fn_c_try_link "$LINENO"
11489 then :
11490 lt_cv_irix_exported_symbol=yes
11491 else $as_nop
11492 lt_cv_irix_exported_symbol=no
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11495 conftest$ac_exeext conftest.$ac_ext
11496 LDFLAGS=$save_LDFLAGS
11497 fi
11498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11499 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11500 if test yes = "$lt_cv_irix_exported_symbol"; then
11501 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'
11502 fi
11503 link_all_deplibs=no
11504 else
11505 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'
11506 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'
11507 fi
11508 archive_cmds_need_lc='no'
11509 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11510 hardcode_libdir_separator=:
11511 inherit_rpath=yes
11512 link_all_deplibs=yes
11513 ;;
11514
11515 linux*)
11516 case $cc_basename in
11517 tcc*)
11518 # Fabrice Bellard et al's Tiny C Compiler
11519 ld_shlibs=yes
11520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11521 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11522 ;;
11523 esac
11524 ;;
11525
11526 netbsd* | netbsdelf*-gnu)
11527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11529 else
11530 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11531 fi
11532 hardcode_libdir_flag_spec='-R$libdir'
11533 hardcode_direct=yes
11534 hardcode_shlibpath_var=no
11535 ;;
11536
11537 newsos6)
11538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11539 hardcode_direct=yes
11540 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11541 hardcode_libdir_separator=:
11542 hardcode_shlibpath_var=no
11543 ;;
11544
11545 *nto* | *qnx*)
11546 ;;
11547
11548 openbsd* | bitrig*)
11549 if test -f /usr/libexec/ld.so; then
11550 hardcode_direct=yes
11551 hardcode_shlibpath_var=no
11552 hardcode_direct_absolute=yes
11553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11555 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11556 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11557 export_dynamic_flag_spec='$wl-E'
11558 else
11559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11560 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11561 fi
11562 else
11563 ld_shlibs=no
11564 fi
11565 ;;
11566
11567 os2*)
11568 hardcode_libdir_flag_spec='-L$libdir'
11569 hardcode_minus_L=yes
11570 allow_undefined_flag=unsupported
11571 shrext_cmds=.dll
11572 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11573 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11574 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11575 $ECHO EXPORTS >> $output_objdir/$libname.def~
11576 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11577 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11578 emximp -o $lib $output_objdir/$libname.def'
11579 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11580 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11581 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11582 $ECHO EXPORTS >> $output_objdir/$libname.def~
11583 prefix_cmds="$SED"~
11584 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11585 prefix_cmds="$prefix_cmds -e 1d";
11586 fi~
11587 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11588 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11589 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11590 emximp -o $lib $output_objdir/$libname.def'
11591 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11592 enable_shared_with_static_runtimes=yes
11593 file_list_spec='@'
11594 ;;
11595
11596 osf3*)
11597 if test yes = "$GCC"; then
11598 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11599 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'
11600 else
11601 allow_undefined_flag=' -expect_unresolved \*'
11602 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'
11603 fi
11604 archive_cmds_need_lc='no'
11605 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11606 hardcode_libdir_separator=:
11607 ;;
11608
11609 osf4* | osf5*) # as osf3* with the addition of -msym flag
11610 if test yes = "$GCC"; then
11611 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11612 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'
11613 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11614 else
11615 allow_undefined_flag=' -expect_unresolved \*'
11616 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'
11617 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~
11618 $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'
11619
11620 # Both c and cxx compiler support -rpath directly
11621 hardcode_libdir_flag_spec='-rpath $libdir'
11622 fi
11623 archive_cmds_need_lc='no'
11624 hardcode_libdir_separator=:
11625 ;;
11626
11627 solaris*)
11628 no_undefined_flag=' -z defs'
11629 if test yes = "$GCC"; then
11630 wlarc='$wl'
11631 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11633 $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'
11634 else
11635 case `$CC -V 2>&1` in
11636 *"Compilers 5.0"*)
11637 wlarc=''
11638 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11639 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11640 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11641 ;;
11642 *)
11643 wlarc='$wl'
11644 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11646 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11647 ;;
11648 esac
11649 fi
11650 hardcode_libdir_flag_spec='-R$libdir'
11651 hardcode_shlibpath_var=no
11652 case $host_os in
11653 solaris2.[0-5] | solaris2.[0-5].*) ;;
11654 *)
11655 # The compiler driver will combine and reorder linker options,
11656 # but understands '-z linker_flag'. GCC discards it without '$wl',
11657 # but is careful enough not to reorder.
11658 # Supported since Solaris 2.6 (maybe 2.5.1?)
11659 if test yes = "$GCC"; then
11660 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11661 else
11662 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11663 fi
11664 ;;
11665 esac
11666 link_all_deplibs=yes
11667 ;;
11668
11669 sunos4*)
11670 if test sequent = "$host_vendor"; then
11671 # Use $CC to link under sequent, because it throws in some extra .o
11672 # files that make .init and .fini sections work.
11673 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11674 else
11675 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11676 fi
11677 hardcode_libdir_flag_spec='-L$libdir'
11678 hardcode_direct=yes
11679 hardcode_minus_L=yes
11680 hardcode_shlibpath_var=no
11681 ;;
11682
11683 sysv4)
11684 case $host_vendor in
11685 sni)
11686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11687 hardcode_direct=yes # is this really true???
11688 ;;
11689 siemens)
11690 ## LD is ld it makes a PLAMLIB
11691 ## CC just makes a GrossModule.
11692 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11693 reload_cmds='$CC -r -o $output$reload_objs'
11694 hardcode_direct=no
11695 ;;
11696 motorola)
11697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11698 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11699 ;;
11700 esac
11701 runpath_var='LD_RUN_PATH'
11702 hardcode_shlibpath_var=no
11703 ;;
11704
11705 sysv4.3*)
11706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11707 hardcode_shlibpath_var=no
11708 export_dynamic_flag_spec='-Bexport'
11709 ;;
11710
11711 sysv4*MP*)
11712 if test -d /usr/nec; then
11713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11714 hardcode_shlibpath_var=no
11715 runpath_var=LD_RUN_PATH
11716 hardcode_runpath_var=yes
11717 ld_shlibs=yes
11718 fi
11719 ;;
11720
11721 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11722 no_undefined_flag='$wl-z,text'
11723 archive_cmds_need_lc=no
11724 hardcode_shlibpath_var=no
11725 runpath_var='LD_RUN_PATH'
11726
11727 if test yes = "$GCC"; then
11728 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11729 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11730 else
11731 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11732 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11733 fi
11734 ;;
11735
11736 sysv5* | sco3.2v5* | sco5v6*)
11737 # Note: We CANNOT use -z defs as we might desire, because we do not
11738 # link with -lc, and that would cause any symbols used from libc to
11739 # always be unresolved, which means just about no library would
11740 # ever link correctly. If we're not using GNU ld we use -z text
11741 # though, which does catch some bad symbols but isn't as heavy-handed
11742 # as -z defs.
11743 no_undefined_flag='$wl-z,text'
11744 allow_undefined_flag='$wl-z,nodefs'
11745 archive_cmds_need_lc=no
11746 hardcode_shlibpath_var=no
11747 hardcode_libdir_flag_spec='$wl-R,$libdir'
11748 hardcode_libdir_separator=':'
11749 link_all_deplibs=yes
11750 export_dynamic_flag_spec='$wl-Bexport'
11751 runpath_var='LD_RUN_PATH'
11752
11753 if test yes = "$GCC"; then
11754 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11755 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11756 else
11757 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11758 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11759 fi
11760 ;;
11761
11762 uts4*)
11763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11764 hardcode_libdir_flag_spec='-L$libdir'
11765 hardcode_shlibpath_var=no
11766 ;;
11767
11768 *)
11769 ld_shlibs=no
11770 ;;
11771 esac
11772
11773 if test sni = "$host_vendor"; then
11774 case $host in
11775 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11776 export_dynamic_flag_spec='$wl-Blargedynsym'
11777 ;;
11778 esac
11779 fi
11780 fi
11781
11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11783 printf "%s\n" "$ld_shlibs" >&6; }
11784 test no = "$ld_shlibs" && can_build_shared=no
11785
11786 with_gnu_ld=$with_gnu_ld
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802 #
11803 # Do we need to explicitly link libc?
11804 #
11805 case "x$archive_cmds_need_lc" in
11806 x|xyes)
11807 # Assume -lc should be added
11808 archive_cmds_need_lc=yes
11809
11810 if test yes,yes = "$GCC,$enable_shared"; then
11811 case $archive_cmds in
11812 *'~'*)
11813 # FIXME: we may have to deal with multi-command sequences.
11814 ;;
11815 '$CC '*)
11816 # Test whether the compiler implicitly links with -lc since on some
11817 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11818 # to ld, don't add -lc before -lgcc.
11819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11820 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11821 if test ${lt_cv_archive_cmds_need_lc+y}
11822 then :
11823 printf %s "(cached) " >&6
11824 else $as_nop
11825 $RM conftest*
11826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11827
11828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11829 (eval $ac_compile) 2>&5
11830 ac_status=$?
11831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11832 test $ac_status = 0; } 2>conftest.err; then
11833 soname=conftest
11834 lib=conftest
11835 libobjs=conftest.$ac_objext
11836 deplibs=
11837 wl=$lt_prog_compiler_wl
11838 pic_flag=$lt_prog_compiler_pic
11839 compiler_flags=-v
11840 linker_flags=-v
11841 verstring=
11842 output_objdir=.
11843 libname=conftest
11844 lt_save_allow_undefined_flag=$allow_undefined_flag
11845 allow_undefined_flag=
11846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11847 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11848 ac_status=$?
11849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11850 test $ac_status = 0; }
11851 then
11852 lt_cv_archive_cmds_need_lc=no
11853 else
11854 lt_cv_archive_cmds_need_lc=yes
11855 fi
11856 allow_undefined_flag=$lt_save_allow_undefined_flag
11857 else
11858 cat conftest.err 1>&5
11859 fi
11860 $RM conftest*
11861
11862 fi
11863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11864 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11865 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11866 ;;
11867 esac
11868 fi
11869 ;;
11870 esac
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12024 printf %s "checking dynamic linker characteristics... " >&6; }
12025
12026 if test yes = "$GCC"; then
12027 case $host_os in
12028 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12029 *) lt_awk_arg='/^libraries:/' ;;
12030 esac
12031 case $host_os in
12032 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12033 *) lt_sed_strip_eq='s|=/|/|g' ;;
12034 esac
12035 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12036 case $lt_search_path_spec in
12037 *\;*)
12038 # if the path contains ";" then we assume it to be the separator
12039 # otherwise default to the standard path separator (i.e. ":") - it is
12040 # assumed that no part of a normal pathname contains ";" but that should
12041 # okay in the real world where ";" in dirpaths is itself problematic.
12042 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12043 ;;
12044 *)
12045 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12046 ;;
12047 esac
12048 # Ok, now we have the path, separated by spaces, we can step through it
12049 # and add multilib dir if necessary...
12050 lt_tmp_lt_search_path_spec=
12051 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12052 # ...but if some path component already ends with the multilib dir we assume
12053 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12054 case "$lt_multi_os_dir; $lt_search_path_spec " in
12055 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12056 lt_multi_os_dir=
12057 ;;
12058 esac
12059 for lt_sys_path in $lt_search_path_spec; do
12060 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12061 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12062 elif test -n "$lt_multi_os_dir"; then
12063 test -d "$lt_sys_path" && \
12064 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12065 fi
12066 done
12067 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12068 BEGIN {RS = " "; FS = "/|\n";} {
12069 lt_foo = "";
12070 lt_count = 0;
12071 for (lt_i = NF; lt_i > 0; lt_i--) {
12072 if ($lt_i != "" && $lt_i != ".") {
12073 if ($lt_i == "..") {
12074 lt_count++;
12075 } else {
12076 if (lt_count == 0) {
12077 lt_foo = "/" $lt_i lt_foo;
12078 } else {
12079 lt_count--;
12080 }
12081 }
12082 }
12083 }
12084 if (lt_foo != "") { lt_freq[lt_foo]++; }
12085 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12086 }'`
12087 # AWK program above erroneously prepends '/' to C:/dos/paths
12088 # for these hosts.
12089 case $host_os in
12090 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12091 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12092 esac
12093 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12094 else
12095 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12096 fi
12097 library_names_spec=
12098 libname_spec='lib$name'
12099 soname_spec=
12100 shrext_cmds=.so
12101 postinstall_cmds=
12102 postuninstall_cmds=
12103 finish_cmds=
12104 finish_eval=
12105 shlibpath_var=
12106 shlibpath_overrides_runpath=unknown
12107 version_type=none
12108 dynamic_linker="$host_os ld.so"
12109 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12110 need_lib_prefix=unknown
12111 hardcode_into_libs=no
12112
12113 # when you set need_version to no, make sure it does not cause -set_version
12114 # flags to be left without arguments
12115 need_version=unknown
12116
12117
12118
12119 case $host_os in
12120 aix3*)
12121 version_type=linux # correct to gnu/linux during the next big refactor
12122 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12123 shlibpath_var=LIBPATH
12124
12125 # AIX 3 has no versioning support, so we append a major version to the name.
12126 soname_spec='$libname$release$shared_ext$major'
12127 ;;
12128
12129 aix[4-9]*)
12130 version_type=linux # correct to gnu/linux during the next big refactor
12131 need_lib_prefix=no
12132 need_version=no
12133 hardcode_into_libs=yes
12134 if test ia64 = "$host_cpu"; then
12135 # AIX 5 supports IA64
12136 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12137 shlibpath_var=LD_LIBRARY_PATH
12138 else
12139 # With GCC up to 2.95.x, collect2 would create an import file
12140 # for dependence libraries. The import file would start with
12141 # the line '#! .'. This would cause the generated library to
12142 # depend on '.', always an invalid library. This was fixed in
12143 # development snapshots of GCC prior to 3.0.
12144 case $host_os in
12145 aix4 | aix4.[01] | aix4.[01].*)
12146 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12147 echo ' yes '
12148 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12149 :
12150 else
12151 can_build_shared=no
12152 fi
12153 ;;
12154 esac
12155 # Using Import Files as archive members, it is possible to support
12156 # filename-based versioning of shared library archives on AIX. While
12157 # this would work for both with and without runtime linking, it will
12158 # prevent static linking of such archives. So we do filename-based
12159 # shared library versioning with .so extension only, which is used
12160 # when both runtime linking and shared linking is enabled.
12161 # Unfortunately, runtime linking may impact performance, so we do
12162 # not want this to be the default eventually. Also, we use the
12163 # versioned .so libs for executables only if there is the -brtl
12164 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12165 # To allow for filename-based versioning support, we need to create
12166 # libNAME.so.V as an archive file, containing:
12167 # *) an Import File, referring to the versioned filename of the
12168 # archive as well as the shared archive member, telling the
12169 # bitwidth (32 or 64) of that shared object, and providing the
12170 # list of exported symbols of that shared object, eventually
12171 # decorated with the 'weak' keyword
12172 # *) the shared object with the F_LOADONLY flag set, to really avoid
12173 # it being seen by the linker.
12174 # At run time we better use the real file rather than another symlink,
12175 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12176
12177 case $with_aix_soname,$aix_use_runtimelinking in
12178 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12179 # soname into executable. Probably we can add versioning support to
12180 # collect2, so additional links can be useful in future.
12181 aix,yes) # traditional libtool
12182 dynamic_linker='AIX unversionable lib.so'
12183 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12184 # instead of lib<name>.a to let people know that these are not
12185 # typical AIX shared libraries.
12186 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12187 ;;
12188 aix,no) # traditional AIX only
12189 dynamic_linker='AIX lib.a(lib.so.V)'
12190 # We preserve .a as extension for shared libraries through AIX4.2
12191 # and later when we are not doing run time linking.
12192 library_names_spec='$libname$release.a $libname.a'
12193 soname_spec='$libname$release$shared_ext$major'
12194 ;;
12195 svr4,*) # full svr4 only
12196 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12197 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12198 # We do not specify a path in Import Files, so LIBPATH fires.
12199 shlibpath_overrides_runpath=yes
12200 ;;
12201 *,yes) # both, prefer svr4
12202 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12203 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12204 # unpreferred sharedlib libNAME.a needs extra handling
12205 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"'
12206 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"'
12207 # We do not specify a path in Import Files, so LIBPATH fires.
12208 shlibpath_overrides_runpath=yes
12209 ;;
12210 *,no) # both, prefer aix
12211 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12212 library_names_spec='$libname$release.a $libname.a'
12213 soname_spec='$libname$release$shared_ext$major'
12214 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12215 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)'
12216 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"'
12217 ;;
12218 esac
12219 shlibpath_var=LIBPATH
12220 fi
12221 ;;
12222
12223 amigaos*)
12224 case $host_cpu in
12225 powerpc)
12226 # Since July 2007 AmigaOS4 officially supports .so libraries.
12227 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229 ;;
12230 m68k)
12231 library_names_spec='$libname.ixlibrary $libname.a'
12232 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12233 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'
12234 ;;
12235 esac
12236 ;;
12237
12238 beos*)
12239 library_names_spec='$libname$shared_ext'
12240 dynamic_linker="$host_os ld.so"
12241 shlibpath_var=LIBRARY_PATH
12242 ;;
12243
12244 bsdi[45]*)
12245 version_type=linux # correct to gnu/linux during the next big refactor
12246 need_version=no
12247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12248 soname_spec='$libname$release$shared_ext$major'
12249 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12250 shlibpath_var=LD_LIBRARY_PATH
12251 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12252 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12253 # the default ld.so.conf also contains /usr/contrib/lib and
12254 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12255 # libtool to hard-code these into programs
12256 ;;
12257
12258 cygwin* | mingw* | pw32* | cegcc*)
12259 version_type=windows
12260 shrext_cmds=.dll
12261 need_version=no
12262 need_lib_prefix=no
12263
12264 case $GCC,$cc_basename in
12265 yes,*)
12266 # gcc
12267 library_names_spec='$libname.dll.a'
12268 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12269 postinstall_cmds='base_file=`basename \$file`~
12270 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12271 dldir=$destdir/`dirname \$dlpath`~
12272 test -d \$dldir || mkdir -p \$dldir~
12273 $install_prog $dir/$dlname \$dldir/$dlname~
12274 chmod a+x \$dldir/$dlname~
12275 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12276 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12277 fi'
12278 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12279 dlpath=$dir/\$dldll~
12280 $RM \$dlpath'
12281 shlibpath_overrides_runpath=yes
12282
12283 case $host_os in
12284 cygwin*)
12285 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12286 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12287
12288 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12289 ;;
12290 mingw* | cegcc*)
12291 # MinGW DLLs use traditional 'lib' prefix
12292 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12293 ;;
12294 pw32*)
12295 # pw32 DLLs use 'pw' prefix rather than 'lib'
12296 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12297 ;;
12298 esac
12299 dynamic_linker='Win32 ld.exe'
12300 ;;
12301
12302 *,cl* | *,icl*)
12303 # Native MSVC or ICC
12304 libname_spec='$name'
12305 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12306 library_names_spec='$libname.dll.lib'
12307
12308 case $build_os in
12309 mingw*)
12310 sys_lib_search_path_spec=
12311 lt_save_ifs=$IFS
12312 IFS=';'
12313 for lt_path in $LIB
12314 do
12315 IFS=$lt_save_ifs
12316 # Let DOS variable expansion print the short 8.3 style file name.
12317 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12318 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12319 done
12320 IFS=$lt_save_ifs
12321 # Convert to MSYS style.
12322 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12323 ;;
12324 cygwin*)
12325 # Convert to unix form, then to dos form, then back to unix form
12326 # but this time dos style (no spaces!) so that the unix form looks
12327 # like /cygdrive/c/PROGRA~1:/cygdr...
12328 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12329 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12330 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12331 ;;
12332 *)
12333 sys_lib_search_path_spec=$LIB
12334 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12335 # It is most probably a Windows format PATH.
12336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12337 else
12338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12339 fi
12340 # FIXME: find the short name or the path components, as spaces are
12341 # common. (e.g. "Program Files" -> "PROGRA~1")
12342 ;;
12343 esac
12344
12345 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12346 postinstall_cmds='base_file=`basename \$file`~
12347 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12348 dldir=$destdir/`dirname \$dlpath`~
12349 test -d \$dldir || mkdir -p \$dldir~
12350 $install_prog $dir/$dlname \$dldir/$dlname'
12351 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12352 dlpath=$dir/\$dldll~
12353 $RM \$dlpath'
12354 shlibpath_overrides_runpath=yes
12355 dynamic_linker='Win32 link.exe'
12356 ;;
12357
12358 *)
12359 # Assume MSVC and ICC wrapper
12360 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12361 dynamic_linker='Win32 ld.exe'
12362 ;;
12363 esac
12364 # FIXME: first we should search . and the directory the executable is in
12365 shlibpath_var=PATH
12366 ;;
12367
12368 darwin* | rhapsody*)
12369 dynamic_linker="$host_os dyld"
12370 version_type=darwin
12371 need_lib_prefix=no
12372 need_version=no
12373 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12374 soname_spec='$libname$release$major$shared_ext'
12375 shlibpath_overrides_runpath=yes
12376 shlibpath_var=DYLD_LIBRARY_PATH
12377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12378
12379 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12380 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12381 ;;
12382
12383 dgux*)
12384 version_type=linux # correct to gnu/linux during the next big refactor
12385 need_lib_prefix=no
12386 need_version=no
12387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12388 soname_spec='$libname$release$shared_ext$major'
12389 shlibpath_var=LD_LIBRARY_PATH
12390 ;;
12391
12392 freebsd* | dragonfly* | midnightbsd*)
12393 # DragonFly does not have aout. When/if they implement a new
12394 # versioning mechanism, adjust this.
12395 if test -x /usr/bin/objformat; then
12396 objformat=`/usr/bin/objformat`
12397 else
12398 case $host_os in
12399 freebsd[23].*) objformat=aout ;;
12400 *) objformat=elf ;;
12401 esac
12402 fi
12403 version_type=freebsd-$objformat
12404 case $version_type in
12405 freebsd-elf*)
12406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12407 soname_spec='$libname$release$shared_ext$major'
12408 need_version=no
12409 need_lib_prefix=no
12410 ;;
12411 freebsd-*)
12412 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12413 need_version=yes
12414 ;;
12415 esac
12416 shlibpath_var=LD_LIBRARY_PATH
12417 case $host_os in
12418 freebsd2.*)
12419 shlibpath_overrides_runpath=yes
12420 ;;
12421 freebsd3.[01]* | freebsdelf3.[01]*)
12422 shlibpath_overrides_runpath=yes
12423 hardcode_into_libs=yes
12424 ;;
12425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12427 shlibpath_overrides_runpath=no
12428 hardcode_into_libs=yes
12429 ;;
12430 *) # from 4.6 on, and DragonFly
12431 shlibpath_overrides_runpath=yes
12432 hardcode_into_libs=yes
12433 ;;
12434 esac
12435 ;;
12436
12437 haiku*)
12438 version_type=linux # correct to gnu/linux during the next big refactor
12439 need_lib_prefix=no
12440 need_version=no
12441 dynamic_linker="$host_os runtime_loader"
12442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12443 soname_spec='$libname$release$shared_ext$major'
12444 shlibpath_var=LIBRARY_PATH
12445 shlibpath_overrides_runpath=no
12446 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12447 hardcode_into_libs=yes
12448 ;;
12449
12450 hpux9* | hpux10* | hpux11*)
12451 # Give a soname corresponding to the major version so that dld.sl refuses to
12452 # link against other versions.
12453 version_type=sunos
12454 need_lib_prefix=no
12455 need_version=no
12456 case $host_cpu in
12457 ia64*)
12458 shrext_cmds='.so'
12459 hardcode_into_libs=yes
12460 dynamic_linker="$host_os dld.so"
12461 shlibpath_var=LD_LIBRARY_PATH
12462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12464 soname_spec='$libname$release$shared_ext$major'
12465 if test 32 = "$HPUX_IA64_MODE"; then
12466 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12467 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12468 else
12469 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12470 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12471 fi
12472 ;;
12473 hppa*64*)
12474 shrext_cmds='.sl'
12475 hardcode_into_libs=yes
12476 dynamic_linker="$host_os dld.sl"
12477 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12478 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12480 soname_spec='$libname$release$shared_ext$major'
12481 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12482 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12483 ;;
12484 *)
12485 shrext_cmds='.sl'
12486 dynamic_linker="$host_os dld.sl"
12487 shlibpath_var=SHLIB_PATH
12488 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12490 soname_spec='$libname$release$shared_ext$major'
12491 ;;
12492 esac
12493 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12494 postinstall_cmds='chmod 555 $lib'
12495 # or fails outright, so override atomically:
12496 install_override_mode=555
12497 ;;
12498
12499 interix[3-9]*)
12500 version_type=linux # correct to gnu/linux during the next big refactor
12501 need_lib_prefix=no
12502 need_version=no
12503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12504 soname_spec='$libname$release$shared_ext$major'
12505 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12506 shlibpath_var=LD_LIBRARY_PATH
12507 shlibpath_overrides_runpath=no
12508 hardcode_into_libs=yes
12509 ;;
12510
12511 irix5* | irix6* | nonstopux*)
12512 case $host_os in
12513 nonstopux*) version_type=nonstopux ;;
12514 *)
12515 if test yes = "$lt_cv_prog_gnu_ld"; then
12516 version_type=linux # correct to gnu/linux during the next big refactor
12517 else
12518 version_type=irix
12519 fi ;;
12520 esac
12521 need_lib_prefix=no
12522 need_version=no
12523 soname_spec='$libname$release$shared_ext$major'
12524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12525 case $host_os in
12526 irix5* | nonstopux*)
12527 libsuff= shlibsuff=
12528 ;;
12529 *)
12530 case $LD in # libtool.m4 will add one of these switches to LD
12531 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12532 libsuff= shlibsuff= libmagic=32-bit;;
12533 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12534 libsuff=32 shlibsuff=N32 libmagic=N32;;
12535 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12536 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12537 *) libsuff= shlibsuff= libmagic=never-match;;
12538 esac
12539 ;;
12540 esac
12541 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12542 shlibpath_overrides_runpath=no
12543 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12544 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12545 hardcode_into_libs=yes
12546 ;;
12547
12548 # No shared lib support for Linux oldld, aout, or coff.
12549 linux*oldld* | linux*aout* | linux*coff*)
12550 dynamic_linker=no
12551 ;;
12552
12553 linux*android*)
12554 version_type=none # Android doesn't support versioned libraries.
12555 need_lib_prefix=no
12556 need_version=no
12557 library_names_spec='$libname$release$shared_ext'
12558 soname_spec='$libname$release$shared_ext'
12559 finish_cmds=
12560 shlibpath_var=LD_LIBRARY_PATH
12561 shlibpath_overrides_runpath=yes
12562
12563 # This implies no fast_install, which is unacceptable.
12564 # Some rework will be needed to allow for fast_install
12565 # before this can be enabled.
12566 hardcode_into_libs=yes
12567
12568 dynamic_linker='Android linker'
12569 # Don't embed -rpath directories since the linker doesn't support them.
12570 hardcode_libdir_flag_spec='-L$libdir'
12571 ;;
12572
12573 # This must be glibc/ELF.
12574 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12575 version_type=linux # correct to gnu/linux during the next big refactor
12576 need_lib_prefix=no
12577 need_version=no
12578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12579 soname_spec='$libname$release$shared_ext$major'
12580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12581 shlibpath_var=LD_LIBRARY_PATH
12582 shlibpath_overrides_runpath=no
12583
12584 # Some binutils ld are patched to set DT_RUNPATH
12585 if test ${lt_cv_shlibpath_overrides_runpath+y}
12586 then :
12587 printf %s "(cached) " >&6
12588 else $as_nop
12589 lt_cv_shlibpath_overrides_runpath=no
12590 save_LDFLAGS=$LDFLAGS
12591 save_libdir=$libdir
12592 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12593 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596
12597 int
12598 main (void)
12599 {
12600
12601 ;
12602 return 0;
12603 }
12604 _ACEOF
12605 if ac_fn_c_try_link "$LINENO"
12606 then :
12607 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12608 then :
12609 lt_cv_shlibpath_overrides_runpath=yes
12610 fi
12611 fi
12612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12613 conftest$ac_exeext conftest.$ac_ext
12614 LDFLAGS=$save_LDFLAGS
12615 libdir=$save_libdir
12616
12617 fi
12618
12619 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12620
12621 # This implies no fast_install, which is unacceptable.
12622 # Some rework will be needed to allow for fast_install
12623 # before this can be enabled.
12624 hardcode_into_libs=yes
12625
12626 # Ideally, we could use ldconfig to report *all* directores which are
12627 # searched for libraries, however this is still not possible. Aside from not
12628 # being certain /sbin/ldconfig is available, command
12629 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12630 # even though it is searched at run-time. Try to do the best guess by
12631 # appending ld.so.conf contents (and includes) to the search path.
12632 if test -f /etc/ld.so.conf; then
12633 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' ' '`
12634 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12635 fi
12636
12637 # We used to test for /lib/ld.so.1 and disable shared libraries on
12638 # powerpc, because MkLinux only supported shared libraries with the
12639 # GNU dynamic linker. Since this was broken with cross compilers,
12640 # most powerpc-linux boxes support dynamic linking these days and
12641 # people can always --disable-shared, the test was removed, and we
12642 # assume the GNU/Linux dynamic linker is in use.
12643 dynamic_linker='GNU/Linux ld.so'
12644 ;;
12645
12646 netbsdelf*-gnu)
12647 version_type=linux
12648 need_lib_prefix=no
12649 need_version=no
12650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12651 soname_spec='${libname}${release}${shared_ext}$major'
12652 shlibpath_var=LD_LIBRARY_PATH
12653 shlibpath_overrides_runpath=no
12654 hardcode_into_libs=yes
12655 dynamic_linker='NetBSD ld.elf_so'
12656 ;;
12657
12658 netbsd*)
12659 version_type=sunos
12660 need_lib_prefix=no
12661 need_version=no
12662 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12663 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12665 dynamic_linker='NetBSD (a.out) ld.so'
12666 else
12667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12668 soname_spec='$libname$release$shared_ext$major'
12669 dynamic_linker='NetBSD ld.elf_so'
12670 fi
12671 shlibpath_var=LD_LIBRARY_PATH
12672 shlibpath_overrides_runpath=yes
12673 hardcode_into_libs=yes
12674 ;;
12675
12676 newsos6)
12677 version_type=linux # correct to gnu/linux during the next big refactor
12678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12679 shlibpath_var=LD_LIBRARY_PATH
12680 shlibpath_overrides_runpath=yes
12681 ;;
12682
12683 *nto* | *qnx*)
12684 version_type=qnx
12685 need_lib_prefix=no
12686 need_version=no
12687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12688 soname_spec='$libname$release$shared_ext$major'
12689 shlibpath_var=LD_LIBRARY_PATH
12690 shlibpath_overrides_runpath=no
12691 hardcode_into_libs=yes
12692 dynamic_linker='ldqnx.so'
12693 ;;
12694
12695 openbsd* | bitrig*)
12696 version_type=sunos
12697 sys_lib_dlsearch_path_spec=/usr/lib
12698 need_lib_prefix=no
12699 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12700 need_version=no
12701 else
12702 need_version=yes
12703 fi
12704 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12706 shlibpath_var=LD_LIBRARY_PATH
12707 shlibpath_overrides_runpath=yes
12708 ;;
12709
12710 os2*)
12711 libname_spec='$name'
12712 version_type=windows
12713 shrext_cmds=.dll
12714 need_version=no
12715 need_lib_prefix=no
12716 # OS/2 can only load a DLL with a base name of 8 characters or less.
12717 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12718 v=$($ECHO $release$versuffix | tr -d .-);
12719 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12720 $ECHO $n$v`$shared_ext'
12721 library_names_spec='${libname}_dll.$libext'
12722 dynamic_linker='OS/2 ld.exe'
12723 shlibpath_var=BEGINLIBPATH
12724 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12726 postinstall_cmds='base_file=`basename \$file`~
12727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12728 dldir=$destdir/`dirname \$dlpath`~
12729 test -d \$dldir || mkdir -p \$dldir~
12730 $install_prog $dir/$dlname \$dldir/$dlname~
12731 chmod a+x \$dldir/$dlname~
12732 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12733 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12734 fi'
12735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12736 dlpath=$dir/\$dldll~
12737 $RM \$dlpath'
12738 ;;
12739
12740 osf3* | osf4* | osf5*)
12741 version_type=osf
12742 need_lib_prefix=no
12743 need_version=no
12744 soname_spec='$libname$release$shared_ext$major'
12745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12746 shlibpath_var=LD_LIBRARY_PATH
12747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12749 ;;
12750
12751 rdos*)
12752 dynamic_linker=no
12753 ;;
12754
12755 solaris*)
12756 version_type=linux # correct to gnu/linux during the next big refactor
12757 need_lib_prefix=no
12758 need_version=no
12759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12760 soname_spec='$libname$release$shared_ext$major'
12761 shlibpath_var=LD_LIBRARY_PATH
12762 shlibpath_overrides_runpath=yes
12763 hardcode_into_libs=yes
12764 # ldd complains unless libraries are executable
12765 postinstall_cmds='chmod +x $lib'
12766 ;;
12767
12768 sunos4*)
12769 version_type=sunos
12770 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12771 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12772 shlibpath_var=LD_LIBRARY_PATH
12773 shlibpath_overrides_runpath=yes
12774 if test yes = "$with_gnu_ld"; then
12775 need_lib_prefix=no
12776 fi
12777 need_version=yes
12778 ;;
12779
12780 sysv4 | sysv4.3*)
12781 version_type=linux # correct to gnu/linux during the next big refactor
12782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12783 soname_spec='$libname$release$shared_ext$major'
12784 shlibpath_var=LD_LIBRARY_PATH
12785 case $host_vendor in
12786 sni)
12787 shlibpath_overrides_runpath=no
12788 need_lib_prefix=no
12789 runpath_var=LD_RUN_PATH
12790 ;;
12791 siemens)
12792 need_lib_prefix=no
12793 ;;
12794 motorola)
12795 need_lib_prefix=no
12796 need_version=no
12797 shlibpath_overrides_runpath=no
12798 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12799 ;;
12800 esac
12801 ;;
12802
12803 sysv4*MP*)
12804 if test -d /usr/nec; then
12805 version_type=linux # correct to gnu/linux during the next big refactor
12806 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12807 soname_spec='$libname$shared_ext.$major'
12808 shlibpath_var=LD_LIBRARY_PATH
12809 fi
12810 ;;
12811
12812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12813 version_type=sco
12814 need_lib_prefix=no
12815 need_version=no
12816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12817 soname_spec='$libname$release$shared_ext$major'
12818 shlibpath_var=LD_LIBRARY_PATH
12819 shlibpath_overrides_runpath=yes
12820 hardcode_into_libs=yes
12821 if test yes = "$with_gnu_ld"; then
12822 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12823 else
12824 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12825 case $host_os in
12826 sco3.2v5*)
12827 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12828 ;;
12829 esac
12830 fi
12831 sys_lib_dlsearch_path_spec='/usr/lib'
12832 ;;
12833
12834 tpf*)
12835 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12836 version_type=linux # correct to gnu/linux during the next big refactor
12837 need_lib_prefix=no
12838 need_version=no
12839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12840 shlibpath_var=LD_LIBRARY_PATH
12841 shlibpath_overrides_runpath=no
12842 hardcode_into_libs=yes
12843 ;;
12844
12845 uts4*)
12846 version_type=linux # correct to gnu/linux during the next big refactor
12847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12848 soname_spec='$libname$release$shared_ext$major'
12849 shlibpath_var=LD_LIBRARY_PATH
12850 ;;
12851
12852 *)
12853 dynamic_linker=no
12854 ;;
12855 esac
12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12857 printf "%s\n" "$dynamic_linker" >&6; }
12858 test no = "$dynamic_linker" && can_build_shared=no
12859
12860 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12861 if test yes = "$GCC"; then
12862 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12863 fi
12864
12865 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12866 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12867 fi
12868
12869 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12870 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12871 fi
12872
12873 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12874 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12875
12876 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12877 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12878
12879 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12880 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12979 printf %s "checking how to hardcode library paths into programs... " >&6; }
12980 hardcode_action=
12981 if test -n "$hardcode_libdir_flag_spec" ||
12982 test -n "$runpath_var" ||
12983 test yes = "$hardcode_automatic"; then
12984
12985 # We can hardcode non-existent directories.
12986 if test no != "$hardcode_direct" &&
12987 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12988 # have to relink, otherwise we might link with an installed library
12989 # when we should be linking with a yet-to-be-installed one
12990 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12991 test no != "$hardcode_minus_L"; then
12992 # Linking always hardcodes the temporary library directory.
12993 hardcode_action=relink
12994 else
12995 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12996 hardcode_action=immediate
12997 fi
12998 else
12999 # We cannot hardcode anything, or else we can only hardcode existing
13000 # directories.
13001 hardcode_action=unsupported
13002 fi
13003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13004 printf "%s\n" "$hardcode_action" >&6; }
13005
13006 if test relink = "$hardcode_action" ||
13007 test yes = "$inherit_rpath"; then
13008 # Fast installation is not supported
13009 enable_fast_install=no
13010 elif test yes = "$shlibpath_overrides_runpath" ||
13011 test no = "$enable_shared"; then
13012 # Fast installation is not necessary
13013 enable_fast_install=needless
13014 fi
13015
13016
13017
13018
13019
13020
13021 if test yes != "$enable_dlopen"; then
13022 enable_dlopen=unknown
13023 enable_dlopen_self=unknown
13024 enable_dlopen_self_static=unknown
13025 else
13026 lt_cv_dlopen=no
13027 lt_cv_dlopen_libs=
13028
13029 case $host_os in
13030 beos*)
13031 lt_cv_dlopen=load_add_on
13032 lt_cv_dlopen_libs=
13033 lt_cv_dlopen_self=yes
13034 ;;
13035
13036 mingw* | pw32* | cegcc*)
13037 lt_cv_dlopen=LoadLibrary
13038 lt_cv_dlopen_libs=
13039 ;;
13040
13041 cygwin*)
13042 lt_cv_dlopen=dlopen
13043 lt_cv_dlopen_libs=
13044 ;;
13045
13046 darwin*)
13047 # if libdl is installed we need to link against it
13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13049 printf %s "checking for dlopen in -ldl... " >&6; }
13050 if test ${ac_cv_lib_dl_dlopen+y}
13051 then :
13052 printf %s "(cached) " >&6
13053 else $as_nop
13054 ac_check_lib_save_LIBS=$LIBS
13055 LIBS="-ldl $LIBS"
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13058
13059 /* Override any GCC internal prototype to avoid an error.
13060 Use char because int might match the return type of a GCC
13061 builtin and then its argument prototype would still apply. */
13062 char dlopen ();
13063 int
13064 main (void)
13065 {
13066 return dlopen ();
13067 ;
13068 return 0;
13069 }
13070 _ACEOF
13071 if ac_fn_c_try_link "$LINENO"
13072 then :
13073 ac_cv_lib_dl_dlopen=yes
13074 else $as_nop
13075 ac_cv_lib_dl_dlopen=no
13076 fi
13077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13078 conftest$ac_exeext conftest.$ac_ext
13079 LIBS=$ac_check_lib_save_LIBS
13080 fi
13081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13082 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13083 if test "x$ac_cv_lib_dl_dlopen" = xyes
13084 then :
13085 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13086 else $as_nop
13087
13088 lt_cv_dlopen=dyld
13089 lt_cv_dlopen_libs=
13090 lt_cv_dlopen_self=yes
13091
13092 fi
13093
13094 ;;
13095
13096 tpf*)
13097 # Don't try to run any link tests for TPF. We know it's impossible
13098 # because TPF is a cross-compiler, and we know how we open DSOs.
13099 lt_cv_dlopen=dlopen
13100 lt_cv_dlopen_libs=
13101 lt_cv_dlopen_self=no
13102 ;;
13103
13104 *)
13105 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13106 if test "x$ac_cv_func_shl_load" = xyes
13107 then :
13108 lt_cv_dlopen=shl_load
13109 else $as_nop
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13111 printf %s "checking for shl_load in -ldld... " >&6; }
13112 if test ${ac_cv_lib_dld_shl_load+y}
13113 then :
13114 printf %s "(cached) " >&6
13115 else $as_nop
13116 ac_check_lib_save_LIBS=$LIBS
13117 LIBS="-ldld $LIBS"
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13120
13121 /* Override any GCC internal prototype to avoid an error.
13122 Use char because int might match the return type of a GCC
13123 builtin and then its argument prototype would still apply. */
13124 char shl_load ();
13125 int
13126 main (void)
13127 {
13128 return shl_load ();
13129 ;
13130 return 0;
13131 }
13132 _ACEOF
13133 if ac_fn_c_try_link "$LINENO"
13134 then :
13135 ac_cv_lib_dld_shl_load=yes
13136 else $as_nop
13137 ac_cv_lib_dld_shl_load=no
13138 fi
13139 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13140 conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13142 fi
13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13144 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13145 if test "x$ac_cv_lib_dld_shl_load" = xyes
13146 then :
13147 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13148 else $as_nop
13149 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13150 if test "x$ac_cv_func_dlopen" = xyes
13151 then :
13152 lt_cv_dlopen=dlopen
13153 else $as_nop
13154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13155 printf %s "checking for dlopen in -ldl... " >&6; }
13156 if test ${ac_cv_lib_dl_dlopen+y}
13157 then :
13158 printf %s "(cached) " >&6
13159 else $as_nop
13160 ac_check_lib_save_LIBS=$LIBS
13161 LIBS="-ldl $LIBS"
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164
13165 /* Override any GCC internal prototype to avoid an error.
13166 Use char because int might match the return type of a GCC
13167 builtin and then its argument prototype would still apply. */
13168 char dlopen ();
13169 int
13170 main (void)
13171 {
13172 return dlopen ();
13173 ;
13174 return 0;
13175 }
13176 _ACEOF
13177 if ac_fn_c_try_link "$LINENO"
13178 then :
13179 ac_cv_lib_dl_dlopen=yes
13180 else $as_nop
13181 ac_cv_lib_dl_dlopen=no
13182 fi
13183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13184 conftest$ac_exeext conftest.$ac_ext
13185 LIBS=$ac_check_lib_save_LIBS
13186 fi
13187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13188 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13189 if test "x$ac_cv_lib_dl_dlopen" = xyes
13190 then :
13191 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13192 else $as_nop
13193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13194 printf %s "checking for dlopen in -lsvld... " >&6; }
13195 if test ${ac_cv_lib_svld_dlopen+y}
13196 then :
13197 printf %s "(cached) " >&6
13198 else $as_nop
13199 ac_check_lib_save_LIBS=$LIBS
13200 LIBS="-lsvld $LIBS"
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203
13204 /* Override any GCC internal prototype to avoid an error.
13205 Use char because int might match the return type of a GCC
13206 builtin and then its argument prototype would still apply. */
13207 char dlopen ();
13208 int
13209 main (void)
13210 {
13211 return dlopen ();
13212 ;
13213 return 0;
13214 }
13215 _ACEOF
13216 if ac_fn_c_try_link "$LINENO"
13217 then :
13218 ac_cv_lib_svld_dlopen=yes
13219 else $as_nop
13220 ac_cv_lib_svld_dlopen=no
13221 fi
13222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13223 conftest$ac_exeext conftest.$ac_ext
13224 LIBS=$ac_check_lib_save_LIBS
13225 fi
13226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13227 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13228 if test "x$ac_cv_lib_svld_dlopen" = xyes
13229 then :
13230 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13231 else $as_nop
13232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13233 printf %s "checking for dld_link in -ldld... " >&6; }
13234 if test ${ac_cv_lib_dld_dld_link+y}
13235 then :
13236 printf %s "(cached) " >&6
13237 else $as_nop
13238 ac_check_lib_save_LIBS=$LIBS
13239 LIBS="-ldld $LIBS"
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242
13243 /* Override any GCC internal prototype to avoid an error.
13244 Use char because int might match the return type of a GCC
13245 builtin and then its argument prototype would still apply. */
13246 char dld_link ();
13247 int
13248 main (void)
13249 {
13250 return dld_link ();
13251 ;
13252 return 0;
13253 }
13254 _ACEOF
13255 if ac_fn_c_try_link "$LINENO"
13256 then :
13257 ac_cv_lib_dld_dld_link=yes
13258 else $as_nop
13259 ac_cv_lib_dld_dld_link=no
13260 fi
13261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13262 conftest$ac_exeext conftest.$ac_ext
13263 LIBS=$ac_check_lib_save_LIBS
13264 fi
13265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13266 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13267 if test "x$ac_cv_lib_dld_dld_link" = xyes
13268 then :
13269 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13270 fi
13271
13272
13273 fi
13274
13275
13276 fi
13277
13278
13279 fi
13280
13281
13282 fi
13283
13284
13285 fi
13286
13287 ;;
13288 esac
13289
13290 if test no = "$lt_cv_dlopen"; then
13291 enable_dlopen=no
13292 else
13293 enable_dlopen=yes
13294 fi
13295
13296 case $lt_cv_dlopen in
13297 dlopen)
13298 save_CPPFLAGS=$CPPFLAGS
13299 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13300
13301 save_LDFLAGS=$LDFLAGS
13302 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13303
13304 save_LIBS=$LIBS
13305 LIBS="$lt_cv_dlopen_libs $LIBS"
13306
13307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13308 printf %s "checking whether a program can dlopen itself... " >&6; }
13309 if test ${lt_cv_dlopen_self+y}
13310 then :
13311 printf %s "(cached) " >&6
13312 else $as_nop
13313 if test yes = "$cross_compiling"; then :
13314 lt_cv_dlopen_self=cross
13315 else
13316 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13317 lt_status=$lt_dlunknown
13318 cat > conftest.$ac_ext <<_LT_EOF
13319 #line $LINENO "configure"
13320 #include "confdefs.h"
13321
13322 #if HAVE_DLFCN_H
13323 #include <dlfcn.h>
13324 #endif
13325
13326 #include <stdio.h>
13327
13328 #ifdef RTLD_GLOBAL
13329 # define LT_DLGLOBAL RTLD_GLOBAL
13330 #else
13331 # ifdef DL_GLOBAL
13332 # define LT_DLGLOBAL DL_GLOBAL
13333 # else
13334 # define LT_DLGLOBAL 0
13335 # endif
13336 #endif
13337
13338 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13339 find out it does not work in some platform. */
13340 #ifndef LT_DLLAZY_OR_NOW
13341 # ifdef RTLD_LAZY
13342 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13343 # else
13344 # ifdef DL_LAZY
13345 # define LT_DLLAZY_OR_NOW DL_LAZY
13346 # else
13347 # ifdef RTLD_NOW
13348 # define LT_DLLAZY_OR_NOW RTLD_NOW
13349 # else
13350 # ifdef DL_NOW
13351 # define LT_DLLAZY_OR_NOW DL_NOW
13352 # else
13353 # define LT_DLLAZY_OR_NOW 0
13354 # endif
13355 # endif
13356 # endif
13357 # endif
13358 #endif
13359
13360 /* When -fvisibility=hidden is used, assume the code has been annotated
13361 correspondingly for the symbols needed. */
13362 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13363 int fnord () __attribute__((visibility("default")));
13364 #endif
13365
13366 int fnord () { return 42; }
13367 int main ()
13368 {
13369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13370 int status = $lt_dlunknown;
13371
13372 if (self)
13373 {
13374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13375 else
13376 {
13377 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13378 else puts (dlerror ());
13379 }
13380 /* dlclose (self); */
13381 }
13382 else
13383 puts (dlerror ());
13384
13385 return status;
13386 }
13387 _LT_EOF
13388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13389 (eval $ac_link) 2>&5
13390 ac_status=$?
13391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13392 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13393 (./conftest; exit; ) >&5 2>/dev/null
13394 lt_status=$?
13395 case x$lt_status in
13396 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13397 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13398 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13399 esac
13400 else :
13401 # compilation failed
13402 lt_cv_dlopen_self=no
13403 fi
13404 fi
13405 rm -fr conftest*
13406
13407
13408 fi
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13410 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13411
13412 if test yes = "$lt_cv_dlopen_self"; then
13413 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13415 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13416 if test ${lt_cv_dlopen_self_static+y}
13417 then :
13418 printf %s "(cached) " >&6
13419 else $as_nop
13420 if test yes = "$cross_compiling"; then :
13421 lt_cv_dlopen_self_static=cross
13422 else
13423 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13424 lt_status=$lt_dlunknown
13425 cat > conftest.$ac_ext <<_LT_EOF
13426 #line $LINENO "configure"
13427 #include "confdefs.h"
13428
13429 #if HAVE_DLFCN_H
13430 #include <dlfcn.h>
13431 #endif
13432
13433 #include <stdio.h>
13434
13435 #ifdef RTLD_GLOBAL
13436 # define LT_DLGLOBAL RTLD_GLOBAL
13437 #else
13438 # ifdef DL_GLOBAL
13439 # define LT_DLGLOBAL DL_GLOBAL
13440 # else
13441 # define LT_DLGLOBAL 0
13442 # endif
13443 #endif
13444
13445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13446 find out it does not work in some platform. */
13447 #ifndef LT_DLLAZY_OR_NOW
13448 # ifdef RTLD_LAZY
13449 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13450 # else
13451 # ifdef DL_LAZY
13452 # define LT_DLLAZY_OR_NOW DL_LAZY
13453 # else
13454 # ifdef RTLD_NOW
13455 # define LT_DLLAZY_OR_NOW RTLD_NOW
13456 # else
13457 # ifdef DL_NOW
13458 # define LT_DLLAZY_OR_NOW DL_NOW
13459 # else
13460 # define LT_DLLAZY_OR_NOW 0
13461 # endif
13462 # endif
13463 # endif
13464 # endif
13465 #endif
13466
13467 /* When -fvisibility=hidden is used, assume the code has been annotated
13468 correspondingly for the symbols needed. */
13469 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13470 int fnord () __attribute__((visibility("default")));
13471 #endif
13472
13473 int fnord () { return 42; }
13474 int main ()
13475 {
13476 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13477 int status = $lt_dlunknown;
13478
13479 if (self)
13480 {
13481 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13482 else
13483 {
13484 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13485 else puts (dlerror ());
13486 }
13487 /* dlclose (self); */
13488 }
13489 else
13490 puts (dlerror ());
13491
13492 return status;
13493 }
13494 _LT_EOF
13495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13496 (eval $ac_link) 2>&5
13497 ac_status=$?
13498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13499 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13500 (./conftest; exit; ) >&5 2>/dev/null
13501 lt_status=$?
13502 case x$lt_status in
13503 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13504 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13505 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13506 esac
13507 else :
13508 # compilation failed
13509 lt_cv_dlopen_self_static=no
13510 fi
13511 fi
13512 rm -fr conftest*
13513
13514
13515 fi
13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13517 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13518 fi
13519
13520 CPPFLAGS=$save_CPPFLAGS
13521 LDFLAGS=$save_LDFLAGS
13522 LIBS=$save_LIBS
13523 ;;
13524 esac
13525
13526 case $lt_cv_dlopen_self in
13527 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13528 *) enable_dlopen_self=unknown ;;
13529 esac
13530
13531 case $lt_cv_dlopen_self_static in
13532 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13533 *) enable_dlopen_self_static=unknown ;;
13534 esac
13535 fi
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553 striplib=
13554 old_striplib=
13555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13556 printf %s "checking whether stripping libraries is possible... " >&6; }
13557 if test -z "$STRIP"; then
13558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559 printf "%s\n" "no" >&6; }
13560 else
13561 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13562 old_striplib="$STRIP --strip-debug"
13563 striplib="$STRIP --strip-unneeded"
13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13565 printf "%s\n" "yes" >&6; }
13566 else
13567 case $host_os in
13568 darwin*)
13569 # FIXME - insert some real tests, host_os isn't really good enough
13570 striplib="$STRIP -x"
13571 old_striplib="$STRIP -S"
13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13573 printf "%s\n" "yes" >&6; }
13574 ;;
13575 freebsd*)
13576 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13577 old_striplib="$STRIP --strip-debug"
13578 striplib="$STRIP --strip-unneeded"
13579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13580 printf "%s\n" "yes" >&6; }
13581 else
13582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 printf "%s\n" "no" >&6; }
13584 fi
13585 ;;
13586 *)
13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 printf "%s\n" "no" >&6; }
13589 ;;
13590 esac
13591 fi
13592 fi
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605 # Report what library types will actually be built
13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13607 printf %s "checking if libtool supports shared libraries... " >&6; }
13608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13609 printf "%s\n" "$can_build_shared" >&6; }
13610
13611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13612 printf %s "checking whether to build shared libraries... " >&6; }
13613 test no = "$can_build_shared" && enable_shared=no
13614
13615 # On AIX, shared libraries and static libraries use the same namespace, and
13616 # are all built from PIC.
13617 case $host_os in
13618 aix3*)
13619 test yes = "$enable_shared" && enable_static=no
13620 if test -n "$RANLIB"; then
13621 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13622 postinstall_cmds='$RANLIB $lib'
13623 fi
13624 ;;
13625
13626 aix[4-9]*)
13627 if test ia64 != "$host_cpu"; then
13628 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13629 yes,aix,yes) ;; # shared object as lib.so file only
13630 yes,svr4,*) ;; # shared object as lib.so archive member only
13631 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13632 esac
13633 fi
13634 ;;
13635 esac
13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13637 printf "%s\n" "$enable_shared" >&6; }
13638
13639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13640 printf %s "checking whether to build static libraries... " >&6; }
13641 # Make sure either enable_shared or enable_static is yes.
13642 test yes = "$enable_shared" || enable_static=yes
13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13644 printf "%s\n" "$enable_static" >&6; }
13645
13646
13647
13648
13649 fi
13650 ac_ext=c
13651 ac_cpp='$CPP $CPPFLAGS'
13652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13655
13656 CC=$lt_save_CC
13657
13658 if test -n "$CXX" && ( test no != "$CXX" &&
13659 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13660 (test g++ != "$CXX"))); then
13661 ac_ext=cpp
13662 ac_cpp='$CXXCPP $CPPFLAGS'
13663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13667 printf %s "checking how to run the C++ preprocessor... " >&6; }
13668 if test -z "$CXXCPP"; then
13669 if test ${ac_cv_prog_CXXCPP+y}
13670 then :
13671 printf %s "(cached) " >&6
13672 else $as_nop
13673 # Double quotes because $CXX needs to be expanded
13674 for CXXCPP in "$CXX -E" cpp /lib/cpp
13675 do
13676 ac_preproc_ok=false
13677 for ac_cxx_preproc_warn_flag in '' yes
13678 do
13679 # Use a header file that comes with gcc, so configuring glibc
13680 # with a fresh cross-compiler works.
13681 # On the NeXT, cc -E runs the code through the compiler's parser,
13682 # not just through cpp. "Syntax error" is here to catch this case.
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 #include <limits.h>
13686 Syntax error
13687 _ACEOF
13688 if ac_fn_cxx_try_cpp "$LINENO"
13689 then :
13690
13691 else $as_nop
13692 # Broken: fails on valid input.
13693 continue
13694 fi
13695 rm -f conftest.err conftest.i conftest.$ac_ext
13696
13697 # OK, works on sane cases. Now check whether nonexistent headers
13698 # can be detected and how.
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13701 #include <ac_nonexistent.h>
13702 _ACEOF
13703 if ac_fn_cxx_try_cpp "$LINENO"
13704 then :
13705 # Broken: success on invalid input.
13706 continue
13707 else $as_nop
13708 # Passes both tests.
13709 ac_preproc_ok=:
13710 break
13711 fi
13712 rm -f conftest.err conftest.i conftest.$ac_ext
13713
13714 done
13715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13716 rm -f conftest.i conftest.err conftest.$ac_ext
13717 if $ac_preproc_ok
13718 then :
13719 break
13720 fi
13721
13722 done
13723 ac_cv_prog_CXXCPP=$CXXCPP
13724
13725 fi
13726 CXXCPP=$ac_cv_prog_CXXCPP
13727 else
13728 ac_cv_prog_CXXCPP=$CXXCPP
13729 fi
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13731 printf "%s\n" "$CXXCPP" >&6; }
13732 ac_preproc_ok=false
13733 for ac_cxx_preproc_warn_flag in '' yes
13734 do
13735 # Use a header file that comes with gcc, so configuring glibc
13736 # with a fresh cross-compiler works.
13737 # On the NeXT, cc -E runs the code through the compiler's parser,
13738 # not just through cpp. "Syntax error" is here to catch this case.
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13741 #include <limits.h>
13742 Syntax error
13743 _ACEOF
13744 if ac_fn_cxx_try_cpp "$LINENO"
13745 then :
13746
13747 else $as_nop
13748 # Broken: fails on valid input.
13749 continue
13750 fi
13751 rm -f conftest.err conftest.i conftest.$ac_ext
13752
13753 # OK, works on sane cases. Now check whether nonexistent headers
13754 # can be detected and how.
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13757 #include <ac_nonexistent.h>
13758 _ACEOF
13759 if ac_fn_cxx_try_cpp "$LINENO"
13760 then :
13761 # Broken: success on invalid input.
13762 continue
13763 else $as_nop
13764 # Passes both tests.
13765 ac_preproc_ok=:
13766 break
13767 fi
13768 rm -f conftest.err conftest.i conftest.$ac_ext
13769
13770 done
13771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13772 rm -f conftest.i conftest.err conftest.$ac_ext
13773 if $ac_preproc_ok
13774 then :
13775
13776 else $as_nop
13777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13778 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13779 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13780 See \`config.log' for more details" "$LINENO" 5; }
13781 fi
13782
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 else
13790 _lt_caught_CXX_error=yes
13791 fi
13792
13793 ac_ext=cpp
13794 ac_cpp='$CXXCPP $CPPFLAGS'
13795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13798
13799 archive_cmds_need_lc_CXX=no
13800 allow_undefined_flag_CXX=
13801 always_export_symbols_CXX=no
13802 archive_expsym_cmds_CXX=
13803 compiler_needs_object_CXX=no
13804 export_dynamic_flag_spec_CXX=
13805 hardcode_direct_CXX=no
13806 hardcode_direct_absolute_CXX=no
13807 hardcode_libdir_flag_spec_CXX=
13808 hardcode_libdir_separator_CXX=
13809 hardcode_minus_L_CXX=no
13810 hardcode_shlibpath_var_CXX=unsupported
13811 hardcode_automatic_CXX=no
13812 inherit_rpath_CXX=no
13813 module_cmds_CXX=
13814 module_expsym_cmds_CXX=
13815 link_all_deplibs_CXX=unknown
13816 old_archive_cmds_CXX=$old_archive_cmds
13817 reload_flag_CXX=$reload_flag
13818 reload_cmds_CXX=$reload_cmds
13819 no_undefined_flag_CXX=
13820 whole_archive_flag_spec_CXX=
13821 enable_shared_with_static_runtimes_CXX=no
13822
13823 # Source file extension for C++ test sources.
13824 ac_ext=cpp
13825
13826 # Object file extension for compiled C++ test sources.
13827 objext=o
13828 objext_CXX=$objext
13829
13830 # No sense in running all these tests if we already determined that
13831 # the CXX compiler isn't working. Some variables (like enable_shared)
13832 # are currently assumed to apply to all compilers on this platform,
13833 # and will be corrupted by setting them based on a non-working compiler.
13834 if test yes != "$_lt_caught_CXX_error"; then
13835 # Code to be used in simple compile tests
13836 lt_simple_compile_test_code="int some_variable = 0;"
13837
13838 # Code to be used in simple link tests
13839 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13840
13841 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13842
13843
13844
13845
13846
13847
13848 # If no C compiler was specified, use CC.
13849 LTCC=${LTCC-"$CC"}
13850
13851 # If no C compiler flags were specified, use CFLAGS.
13852 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13853
13854 # Allow CC to be a program name with arguments.
13855 compiler=$CC
13856
13857
13858 # save warnings/boilerplate of simple test code
13859 ac_outfile=conftest.$ac_objext
13860 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13861 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13862 _lt_compiler_boilerplate=`cat conftest.err`
13863 $RM conftest*
13864
13865 ac_outfile=conftest.$ac_objext
13866 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13867 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13868 _lt_linker_boilerplate=`cat conftest.err`
13869 $RM -r conftest*
13870
13871
13872 # Allow CC to be a program name with arguments.
13873 lt_save_CC=$CC
13874 lt_save_CFLAGS=$CFLAGS
13875 lt_save_LD=$LD
13876 lt_save_GCC=$GCC
13877 GCC=$GXX
13878 lt_save_with_gnu_ld=$with_gnu_ld
13879 lt_save_path_LD=$lt_cv_path_LD
13880 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13881 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13882 else
13883 $as_unset lt_cv_prog_gnu_ld
13884 fi
13885 if test -n "${lt_cv_path_LDCXX+set}"; then
13886 lt_cv_path_LD=$lt_cv_path_LDCXX
13887 else
13888 $as_unset lt_cv_path_LD
13889 fi
13890 test -z "${LDCXX+set}" || LD=$LDCXX
13891 CC=${CXX-"c++"}
13892 CFLAGS=$CXXFLAGS
13893 compiler=$CC
13894 compiler_CXX=$CC
13895 func_cc_basename $compiler
13896 cc_basename=$func_cc_basename_result
13897
13898
13899 if test -n "$compiler"; then
13900 # We don't want -fno-exception when compiling C++ code, so set the
13901 # no_builtin_flag separately
13902 if test yes = "$GXX"; then
13903 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13904 else
13905 lt_prog_compiler_no_builtin_flag_CXX=
13906 fi
13907
13908 if test yes = "$GXX"; then
13909 # Set up default GNU C++ configuration
13910
13911
13912
13913 # Check whether --with-gnu-ld was given.
13914 if test ${with_gnu_ld+y}
13915 then :
13916 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13917 else $as_nop
13918 with_gnu_ld=no
13919 fi
13920
13921 ac_prog=ld
13922 if test yes = "$GCC"; then
13923 # Check if gcc -print-prog-name=ld gives a path.
13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13925 printf %s "checking for ld used by $CC... " >&6; }
13926 case $host in
13927 *-*-mingw*)
13928 # gcc leaves a trailing carriage return, which upsets mingw
13929 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13930 *)
13931 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13932 esac
13933 case $ac_prog in
13934 # Accept absolute paths.
13935 [\\/]* | ?:[\\/]*)
13936 re_direlt='/[^/][^/]*/\.\./'
13937 # Canonicalize the pathname of ld
13938 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13939 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13940 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13941 done
13942 test -z "$LD" && LD=$ac_prog
13943 ;;
13944 "")
13945 # If it fails, then pretend we aren't using GCC.
13946 ac_prog=ld
13947 ;;
13948 *)
13949 # If it is relative, then search for the first ld in PATH.
13950 with_gnu_ld=unknown
13951 ;;
13952 esac
13953 elif test yes = "$with_gnu_ld"; then
13954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13955 printf %s "checking for GNU ld... " >&6; }
13956 else
13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13958 printf %s "checking for non-GNU ld... " >&6; }
13959 fi
13960 if test ${lt_cv_path_LD+y}
13961 then :
13962 printf %s "(cached) " >&6
13963 else $as_nop
13964 if test -z "$LD"; then
13965 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13966 for ac_dir in $PATH; do
13967 IFS=$lt_save_ifs
13968 test -z "$ac_dir" && ac_dir=.
13969 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13970 lt_cv_path_LD=$ac_dir/$ac_prog
13971 # Check to see if the program is GNU ld. I'd rather use --version,
13972 # but apparently some variants of GNU ld only accept -v.
13973 # Break only if it was the GNU/non-GNU ld that we prefer.
13974 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13975 *GNU* | *'with BFD'*)
13976 test no != "$with_gnu_ld" && break
13977 ;;
13978 *)
13979 test yes != "$with_gnu_ld" && break
13980 ;;
13981 esac
13982 fi
13983 done
13984 IFS=$lt_save_ifs
13985 else
13986 lt_cv_path_LD=$LD # Let the user override the test with a path.
13987 fi
13988 fi
13989
13990 LD=$lt_cv_path_LD
13991 if test -n "$LD"; then
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13993 printf "%s\n" "$LD" >&6; }
13994 else
13995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996 printf "%s\n" "no" >&6; }
13997 fi
13998 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14000 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14001 if test ${lt_cv_prog_gnu_ld+y}
14002 then :
14003 printf %s "(cached) " >&6
14004 else $as_nop
14005 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14006 case `$LD -v 2>&1 </dev/null` in
14007 *GNU* | *'with BFD'*)
14008 lt_cv_prog_gnu_ld=yes
14009 ;;
14010 *)
14011 lt_cv_prog_gnu_ld=no
14012 ;;
14013 esac
14014 fi
14015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14016 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14017 with_gnu_ld=$lt_cv_prog_gnu_ld
14018
14019
14020
14021
14022
14023
14024
14025 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14026 # archiving commands below assume that GNU ld is being used.
14027 if test yes = "$with_gnu_ld"; then
14028 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14029 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14030
14031 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14032 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14033
14034 # If archive_cmds runs LD, not CC, wlarc should be empty
14035 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14036 # investigate it a little bit more. (MM)
14037 wlarc='$wl'
14038
14039 # ancient GNU ld didn't support --whole-archive et. al.
14040 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14041 $GREP 'no-whole-archive' > /dev/null; then
14042 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14043 else
14044 whole_archive_flag_spec_CXX=
14045 fi
14046 else
14047 with_gnu_ld=no
14048 wlarc=
14049
14050 # A generic and very simple default shared library creation
14051 # command for GNU C++ for the case where it uses the native
14052 # linker, instead of GNU ld. If possible, this setting should
14053 # overridden to take advantage of the native linker features on
14054 # the platform it is being used on.
14055 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14056 fi
14057
14058 # Commands to make compiler produce verbose output that lists
14059 # what "hidden" libraries, object files and flags are used when
14060 # linking a shared library.
14061 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14062
14063 else
14064 GXX=no
14065 with_gnu_ld=no
14066 wlarc=
14067 fi
14068
14069 # PORTME: fill in a description of your system's C++ link characteristics
14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14071 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14072 ld_shlibs_CXX=yes
14073 case $host_os in
14074 aix3*)
14075 # FIXME: insert proper C++ library support
14076 ld_shlibs_CXX=no
14077 ;;
14078 aix[4-9]*)
14079 if test ia64 = "$host_cpu"; then
14080 # On IA64, the linker does run time linking by default, so we don't
14081 # have to do anything special.
14082 aix_use_runtimelinking=no
14083 exp_sym_flag='-Bexport'
14084 no_entry_flag=
14085 else
14086 aix_use_runtimelinking=no
14087
14088 # Test if we are trying to use run time linking or normal
14089 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14090 # have runtime linking enabled, and use it for executables.
14091 # For shared libraries, we enable/disable runtime linking
14092 # depending on the kind of the shared library created -
14093 # when "with_aix_soname,aix_use_runtimelinking" is:
14094 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14095 # "aix,yes" lib.so shared, rtl:yes, for executables
14096 # lib.a static archive
14097 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14098 # lib.a(lib.so.V) shared, rtl:no, for executables
14099 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14100 # lib.a(lib.so.V) shared, rtl:no
14101 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14102 # lib.a static archive
14103 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14104 for ld_flag in $LDFLAGS; do
14105 case $ld_flag in
14106 *-brtl*)
14107 aix_use_runtimelinking=yes
14108 break
14109 ;;
14110 esac
14111 done
14112 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14113 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14114 # so we don't have lib.a shared libs to link our executables.
14115 # We have to force runtime linking in this case.
14116 aix_use_runtimelinking=yes
14117 LDFLAGS="$LDFLAGS -Wl,-brtl"
14118 fi
14119 ;;
14120 esac
14121
14122 exp_sym_flag='-bexport'
14123 no_entry_flag='-bnoentry'
14124 fi
14125
14126 # When large executables or shared objects are built, AIX ld can
14127 # have problems creating the table of contents. If linking a library
14128 # or program results in "error TOC overflow" add -mminimal-toc to
14129 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14130 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14131
14132 archive_cmds_CXX=''
14133 hardcode_direct_CXX=yes
14134 hardcode_direct_absolute_CXX=yes
14135 hardcode_libdir_separator_CXX=':'
14136 link_all_deplibs_CXX=yes
14137 file_list_spec_CXX='$wl-f,'
14138 case $with_aix_soname,$aix_use_runtimelinking in
14139 aix,*) ;; # no import file
14140 svr4,* | *,yes) # use import file
14141 # The Import File defines what to hardcode.
14142 hardcode_direct_CXX=no
14143 hardcode_direct_absolute_CXX=no
14144 ;;
14145 esac
14146
14147 if test yes = "$GXX"; then
14148 case $host_os in aix4.[012]|aix4.[012].*)
14149 # We only want to do this on AIX 4.2 and lower, the check
14150 # below for broken collect2 doesn't work under 4.3+
14151 collect2name=`$CC -print-prog-name=collect2`
14152 if test -f "$collect2name" &&
14153 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14154 then
14155 # We have reworked collect2
14156 :
14157 else
14158 # We have old collect2
14159 hardcode_direct_CXX=unsupported
14160 # It fails to find uninstalled libraries when the uninstalled
14161 # path is not listed in the libpath. Setting hardcode_minus_L
14162 # to unsupported forces relinking
14163 hardcode_minus_L_CXX=yes
14164 hardcode_libdir_flag_spec_CXX='-L$libdir'
14165 hardcode_libdir_separator_CXX=
14166 fi
14167 esac
14168 shared_flag='-shared'
14169 if test yes = "$aix_use_runtimelinking"; then
14170 shared_flag=$shared_flag' $wl-G'
14171 fi
14172 # Need to ensure runtime linking is disabled for the traditional
14173 # shared library, or the linker may eventually find shared libraries
14174 # /with/ Import File - we do not want to mix them.
14175 shared_flag_aix='-shared'
14176 shared_flag_svr4='-shared $wl-G'
14177 else
14178 # not using gcc
14179 if test ia64 = "$host_cpu"; then
14180 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14181 # chokes on -Wl,-G. The following line is correct:
14182 shared_flag='-G'
14183 else
14184 if test yes = "$aix_use_runtimelinking"; then
14185 shared_flag='$wl-G'
14186 else
14187 shared_flag='$wl-bM:SRE'
14188 fi
14189 shared_flag_aix='$wl-bM:SRE'
14190 shared_flag_svr4='$wl-G'
14191 fi
14192 fi
14193
14194 export_dynamic_flag_spec_CXX='$wl-bexpall'
14195 # It seems that -bexpall does not export symbols beginning with
14196 # underscore (_), so it is better to generate a list of symbols to
14197 # export.
14198 always_export_symbols_CXX=yes
14199 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14200 # Warning - without using the other runtime loading flags (-brtl),
14201 # -berok will link without error, but may produce a broken library.
14202 # The "-G" linker flag allows undefined symbols.
14203 no_undefined_flag_CXX='-bernotok'
14204 # Determine the default libpath from the value encoded in an empty
14205 # executable.
14206 if test set = "${lt_cv_aix_libpath+set}"; then
14207 aix_libpath=$lt_cv_aix_libpath
14208 else
14209 if test ${lt_cv_aix_libpath__CXX+y}
14210 then :
14211 printf %s "(cached) " >&6
14212 else $as_nop
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215
14216 int
14217 main (void)
14218 {
14219
14220 ;
14221 return 0;
14222 }
14223 _ACEOF
14224 if ac_fn_cxx_try_link "$LINENO"
14225 then :
14226
14227 lt_aix_libpath_sed='
14228 /Import File Strings/,/^$/ {
14229 /^0/ {
14230 s/^0 *\([^ ]*\) *$/\1/
14231 p
14232 }
14233 }'
14234 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14235 # Check for a 64-bit object if we didn't find anything.
14236 if test -z "$lt_cv_aix_libpath__CXX"; then
14237 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14238 fi
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14241 conftest$ac_exeext conftest.$ac_ext
14242 if test -z "$lt_cv_aix_libpath__CXX"; then
14243 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14244 fi
14245
14246 fi
14247
14248 aix_libpath=$lt_cv_aix_libpath__CXX
14249 fi
14250
14251 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14252
14253 archive_expsym_cmds_CXX='$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
14254 else
14255 if test ia64 = "$host_cpu"; then
14256 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14257 allow_undefined_flag_CXX="-z nodefs"
14258 archive_expsym_cmds_CXX="\$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"
14259 else
14260 # Determine the default libpath from the value encoded in an
14261 # empty executable.
14262 if test set = "${lt_cv_aix_libpath+set}"; then
14263 aix_libpath=$lt_cv_aix_libpath
14264 else
14265 if test ${lt_cv_aix_libpath__CXX+y}
14266 then :
14267 printf %s "(cached) " >&6
14268 else $as_nop
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271
14272 int
14273 main (void)
14274 {
14275
14276 ;
14277 return 0;
14278 }
14279 _ACEOF
14280 if ac_fn_cxx_try_link "$LINENO"
14281 then :
14282
14283 lt_aix_libpath_sed='
14284 /Import File Strings/,/^$/ {
14285 /^0/ {
14286 s/^0 *\([^ ]*\) *$/\1/
14287 p
14288 }
14289 }'
14290 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14291 # Check for a 64-bit object if we didn't find anything.
14292 if test -z "$lt_cv_aix_libpath__CXX"; then
14293 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14294 fi
14295 fi
14296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14297 conftest$ac_exeext conftest.$ac_ext
14298 if test -z "$lt_cv_aix_libpath__CXX"; then
14299 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14300 fi
14301
14302 fi
14303
14304 aix_libpath=$lt_cv_aix_libpath__CXX
14305 fi
14306
14307 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14308 # Warning - without using the other run time loading flags,
14309 # -berok will link without error, but may produce a broken library.
14310 no_undefined_flag_CXX=' $wl-bernotok'
14311 allow_undefined_flag_CXX=' $wl-berok'
14312 if test yes = "$with_gnu_ld"; then
14313 # We only use this code for GNU lds that support --whole-archive.
14314 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14315 else
14316 # Exported symbols can be pulled into shared objects from archives
14317 whole_archive_flag_spec_CXX='$convenience'
14318 fi
14319 archive_cmds_need_lc_CXX=yes
14320 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14321 # -brtl affects multiple linker settings, -berok does not and is overridden later
14322 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14323 if test svr4 != "$with_aix_soname"; then
14324 # This is similar to how AIX traditionally builds its shared
14325 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14326 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14327 fi
14328 if test aix != "$with_aix_soname"; then
14329 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14330 else
14331 # used by -dlpreopen to get the symbols
14332 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14333 fi
14334 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14335 fi
14336 fi
14337 ;;
14338
14339 beos*)
14340 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14341 allow_undefined_flag_CXX=unsupported
14342 # Joseph Beckenbach <[email protected]> says some releases of gcc
14343 # support --undefined. This deserves some investigation. FIXME
14344 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14345 else
14346 ld_shlibs_CXX=no
14347 fi
14348 ;;
14349
14350 chorus*)
14351 case $cc_basename in
14352 *)
14353 # FIXME: insert proper C++ library support
14354 ld_shlibs_CXX=no
14355 ;;
14356 esac
14357 ;;
14358
14359 cygwin* | mingw* | pw32* | cegcc*)
14360 case $GXX,$cc_basename in
14361 ,cl* | no,cl* | ,icl* | no,icl*)
14362 # Native MSVC or ICC
14363 # hardcode_libdir_flag_spec is actually meaningless, as there is
14364 # no search path for DLLs.
14365 hardcode_libdir_flag_spec_CXX=' '
14366 allow_undefined_flag_CXX=unsupported
14367 always_export_symbols_CXX=yes
14368 file_list_spec_CXX='@'
14369 # Tell ltmain to make .lib files, not .a files.
14370 libext=lib
14371 # Tell ltmain to make .dll files, not .so files.
14372 shrext_cmds=.dll
14373 # FIXME: Setting linknames here is a bad hack.
14374 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14375 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14376 cp "$export_symbols" "$output_objdir/$soname.def";
14377 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14378 else
14379 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14380 fi~
14381 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14382 linknames='
14383 # The linker will not automatically build a static lib if we build a DLL.
14384 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14385 enable_shared_with_static_runtimes_CXX=yes
14386 # Don't use ranlib
14387 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14388 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14389 lt_tool_outputfile="@TOOL_OUTPUT@"~
14390 case $lt_outputfile in
14391 *.exe|*.EXE) ;;
14392 *)
14393 lt_outputfile=$lt_outputfile.exe
14394 lt_tool_outputfile=$lt_tool_outputfile.exe
14395 ;;
14396 esac~
14397 func_to_tool_file "$lt_outputfile"~
14398 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14399 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14400 $RM "$lt_outputfile.manifest";
14401 fi'
14402 ;;
14403 *)
14404 # g++
14405 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14406 # as there is no search path for DLLs.
14407 hardcode_libdir_flag_spec_CXX='-L$libdir'
14408 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14409 allow_undefined_flag_CXX=unsupported
14410 always_export_symbols_CXX=no
14411 enable_shared_with_static_runtimes_CXX=yes
14412
14413 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14414 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14415 # If the export-symbols file already is a .def file, use it as
14416 # is; otherwise, prepend EXPORTS...
14417 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14418 cp $export_symbols $output_objdir/$soname.def;
14419 else
14420 echo EXPORTS > $output_objdir/$soname.def;
14421 cat $export_symbols >> $output_objdir/$soname.def;
14422 fi~
14423 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14424 else
14425 ld_shlibs_CXX=no
14426 fi
14427 ;;
14428 esac
14429 ;;
14430 darwin* | rhapsody*)
14431
14432
14433 archive_cmds_need_lc_CXX=no
14434 hardcode_direct_CXX=no
14435 hardcode_automatic_CXX=yes
14436 hardcode_shlibpath_var_CXX=unsupported
14437 if test yes = "$lt_cv_ld_force_load"; then
14438 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14439
14440 else
14441 whole_archive_flag_spec_CXX=''
14442 fi
14443 link_all_deplibs_CXX=yes
14444 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14445 case $cc_basename in
14446 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14447 *) _lt_dar_can_shared=$GCC ;;
14448 esac
14449 if test yes = "$_lt_dar_can_shared"; then
14450 output_verbose_link_cmd=func_echo_all
14451 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14452 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14453 archive_expsym_cmds_CXX="$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"
14454 module_expsym_cmds_CXX="$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"
14455 if test yes != "$lt_cv_apple_cc_single_mod"; then
14456 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14457 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14458 fi
14459
14460 else
14461 ld_shlibs_CXX=no
14462 fi
14463
14464 ;;
14465
14466 os2*)
14467 hardcode_libdir_flag_spec_CXX='-L$libdir'
14468 hardcode_minus_L_CXX=yes
14469 allow_undefined_flag_CXX=unsupported
14470 shrext_cmds=.dll
14471 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14472 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14473 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14474 $ECHO EXPORTS >> $output_objdir/$libname.def~
14475 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14476 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14477 emximp -o $lib $output_objdir/$libname.def'
14478 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14479 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14480 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14481 $ECHO EXPORTS >> $output_objdir/$libname.def~
14482 prefix_cmds="$SED"~
14483 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14484 prefix_cmds="$prefix_cmds -e 1d";
14485 fi~
14486 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14487 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14488 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14489 emximp -o $lib $output_objdir/$libname.def'
14490 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14491 enable_shared_with_static_runtimes_CXX=yes
14492 file_list_spec_CXX='@'
14493 ;;
14494
14495 dgux*)
14496 case $cc_basename in
14497 ec++*)
14498 # FIXME: insert proper C++ library support
14499 ld_shlibs_CXX=no
14500 ;;
14501 ghcx*)
14502 # Green Hills C++ Compiler
14503 # FIXME: insert proper C++ library support
14504 ld_shlibs_CXX=no
14505 ;;
14506 *)
14507 # FIXME: insert proper C++ library support
14508 ld_shlibs_CXX=no
14509 ;;
14510 esac
14511 ;;
14512
14513 freebsd2.*)
14514 # C++ shared libraries reported to be fairly broken before
14515 # switch to ELF
14516 ld_shlibs_CXX=no
14517 ;;
14518
14519 freebsd-elf*)
14520 archive_cmds_need_lc_CXX=no
14521 ;;
14522
14523 freebsd* | dragonfly* | midnightbsd*)
14524 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14525 # conventions
14526 ld_shlibs_CXX=yes
14527 ;;
14528
14529 haiku*)
14530 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14531 link_all_deplibs_CXX=yes
14532 ;;
14533
14534 hpux9*)
14535 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14536 hardcode_libdir_separator_CXX=:
14537 export_dynamic_flag_spec_CXX='$wl-E'
14538 hardcode_direct_CXX=yes
14539 hardcode_minus_L_CXX=yes # Not in the search PATH,
14540 # but as the default
14541 # location of the library.
14542
14543 case $cc_basename in
14544 CC*)
14545 # FIXME: insert proper C++ library support
14546 ld_shlibs_CXX=no
14547 ;;
14548 aCC*)
14549 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14550 # Commands to make compiler produce verbose output that lists
14551 # what "hidden" libraries, object files and flags are used when
14552 # linking a shared library.
14553 #
14554 # There doesn't appear to be a way to prevent this compiler from
14555 # explicitly linking system object files so we need to strip them
14556 # from the output so that they don't get included in the library
14557 # dependencies.
14558 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14559 ;;
14560 *)
14561 if test yes = "$GXX"; then
14562 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14563 else
14564 # FIXME: insert proper C++ library support
14565 ld_shlibs_CXX=no
14566 fi
14567 ;;
14568 esac
14569 ;;
14570
14571 hpux10*|hpux11*)
14572 if test no = "$with_gnu_ld"; then
14573 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14574 hardcode_libdir_separator_CXX=:
14575
14576 case $host_cpu in
14577 hppa*64*|ia64*)
14578 ;;
14579 *)
14580 export_dynamic_flag_spec_CXX='$wl-E'
14581 ;;
14582 esac
14583 fi
14584 case $host_cpu in
14585 hppa*64*|ia64*)
14586 hardcode_direct_CXX=no
14587 hardcode_shlibpath_var_CXX=no
14588 ;;
14589 *)
14590 hardcode_direct_CXX=yes
14591 hardcode_direct_absolute_CXX=yes
14592 hardcode_minus_L_CXX=yes # Not in the search PATH,
14593 # but as the default
14594 # location of the library.
14595 ;;
14596 esac
14597
14598 case $cc_basename in
14599 CC*)
14600 # FIXME: insert proper C++ library support
14601 ld_shlibs_CXX=no
14602 ;;
14603 aCC*)
14604 case $host_cpu in
14605 hppa*64*)
14606 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14607 ;;
14608 ia64*)
14609 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14610 ;;
14611 *)
14612 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14613 ;;
14614 esac
14615 # Commands to make compiler produce verbose output that lists
14616 # what "hidden" libraries, object files and flags are used when
14617 # linking a shared library.
14618 #
14619 # There doesn't appear to be a way to prevent this compiler from
14620 # explicitly linking system object files so we need to strip them
14621 # from the output so that they don't get included in the library
14622 # dependencies.
14623 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14624 ;;
14625 *)
14626 if test yes = "$GXX"; then
14627 if test no = "$with_gnu_ld"; then
14628 case $host_cpu in
14629 hppa*64*)
14630 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14631 ;;
14632 ia64*)
14633 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14634 ;;
14635 *)
14636 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14637 ;;
14638 esac
14639 fi
14640 else
14641 # FIXME: insert proper C++ library support
14642 ld_shlibs_CXX=no
14643 fi
14644 ;;
14645 esac
14646 ;;
14647
14648 interix[3-9]*)
14649 hardcode_direct_CXX=no
14650 hardcode_shlibpath_var_CXX=no
14651 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14652 export_dynamic_flag_spec_CXX='$wl-E'
14653 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14654 # Instead, shared libraries are loaded at an image base (0x10000000 by
14655 # default) and relocated if they conflict, which is a slow very memory
14656 # consuming and fragmenting process. To avoid this, we pick a random,
14657 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14658 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14659 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14660 archive_expsym_cmds_CXX='$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'
14661 ;;
14662 irix5* | irix6*)
14663 case $cc_basename in
14664 CC*)
14665 # SGI C++
14666 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14667
14668 # Archives containing C++ object files must be created using
14669 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14670 # necessary to make sure instantiated templates are included
14671 # in the archive.
14672 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14673 ;;
14674 *)
14675 if test yes = "$GXX"; then
14676 if test no = "$with_gnu_ld"; then
14677 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14678 else
14679 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14680 fi
14681 fi
14682 link_all_deplibs_CXX=yes
14683 ;;
14684 esac
14685 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14686 hardcode_libdir_separator_CXX=:
14687 inherit_rpath_CXX=yes
14688 ;;
14689
14690 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14691 case $cc_basename in
14692 KCC*)
14693 # Kuck and Associates, Inc. (KAI) C++ Compiler
14694
14695 # KCC will only create a shared library if the output file
14696 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14697 # to its proper name (with version) after linking.
14698 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14699 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14700 # Commands to make compiler produce verbose output that lists
14701 # what "hidden" libraries, object files and flags are used when
14702 # linking a shared library.
14703 #
14704 # There doesn't appear to be a way to prevent this compiler from
14705 # explicitly linking system object files so we need to strip them
14706 # from the output so that they don't get included in the library
14707 # dependencies.
14708 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14709
14710 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14711 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14712
14713 # Archives containing C++ object files must be created using
14714 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14715 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14716 ;;
14717 icpc* | ecpc* )
14718 # Intel C++
14719 with_gnu_ld=yes
14720 # version 8.0 and above of icpc choke on multiply defined symbols
14721 # if we add $predep_objects and $postdep_objects, however 7.1 and
14722 # earlier do not add the objects themselves.
14723 case `$CC -V 2>&1` in
14724 *"Version 7."*)
14725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14726 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14727 ;;
14728 *) # Version 8.0 or newer
14729 tmp_idyn=
14730 case $host_cpu in
14731 ia64*) tmp_idyn=' -i_dynamic';;
14732 esac
14733 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14734 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14735 ;;
14736 esac
14737 archive_cmds_need_lc_CXX=no
14738 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14739 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14740 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14741 ;;
14742 pgCC* | pgcpp*)
14743 # Portland Group C++ compiler
14744 case `$CC -V` in
14745 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14746 prelink_cmds_CXX='tpldir=Template.dir~
14747 rm -rf $tpldir~
14748 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14749 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14750 old_archive_cmds_CXX='tpldir=Template.dir~
14751 rm -rf $tpldir~
14752 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14753 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14754 $RANLIB $oldlib'
14755 archive_cmds_CXX='tpldir=Template.dir~
14756 rm -rf $tpldir~
14757 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14758 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14759 archive_expsym_cmds_CXX='tpldir=Template.dir~
14760 rm -rf $tpldir~
14761 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14762 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14763 ;;
14764 *) # Version 6 and above use weak symbols
14765 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14766 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14767 ;;
14768 esac
14769
14770 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14771 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14772 whole_archive_flag_spec_CXX='$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'
14773 ;;
14774 cxx*)
14775 # Compaq C++
14776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14777 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
14778
14779 runpath_var=LD_RUN_PATH
14780 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14781 hardcode_libdir_separator_CXX=:
14782
14783 # Commands to make compiler produce verbose output that lists
14784 # what "hidden" libraries, object files and flags are used when
14785 # linking a shared library.
14786 #
14787 # There doesn't appear to be a way to prevent this compiler from
14788 # explicitly linking system object files so we need to strip them
14789 # from the output so that they don't get included in the library
14790 # dependencies.
14791 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14792 ;;
14793 xl* | mpixl* | bgxl*)
14794 # IBM XL 8.0 on PPC, with GNU ld
14795 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14796 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14797 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14798 if test yes = "$supports_anon_versioning"; then
14799 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14800 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14801 echo "local: *; };" >> $output_objdir/$libname.ver~
14802 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14803 fi
14804 ;;
14805 *)
14806 case `$CC -V 2>&1 | $SED 5q` in
14807 *Sun\ C*)
14808 # Sun C++ 5.9
14809 no_undefined_flag_CXX=' -zdefs'
14810 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14811 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
14812 hardcode_libdir_flag_spec_CXX='-R$libdir'
14813 whole_archive_flag_spec_CXX='$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'
14814 compiler_needs_object_CXX=yes
14815
14816 # Not sure whether something based on
14817 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14818 # would be better.
14819 output_verbose_link_cmd='func_echo_all'
14820
14821 # Archives containing C++ object files must be created using
14822 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14823 # necessary to make sure instantiated templates are included
14824 # in the archive.
14825 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14826 ;;
14827 esac
14828 ;;
14829 esac
14830 ;;
14831
14832 lynxos*)
14833 # FIXME: insert proper C++ library support
14834 ld_shlibs_CXX=no
14835 ;;
14836
14837 m88k*)
14838 # FIXME: insert proper C++ library support
14839 ld_shlibs_CXX=no
14840 ;;
14841
14842 mvs*)
14843 case $cc_basename in
14844 cxx*)
14845 # FIXME: insert proper C++ library support
14846 ld_shlibs_CXX=no
14847 ;;
14848 *)
14849 # FIXME: insert proper C++ library support
14850 ld_shlibs_CXX=no
14851 ;;
14852 esac
14853 ;;
14854
14855 netbsd*)
14856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14857 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14858 wlarc=
14859 hardcode_libdir_flag_spec_CXX='-R$libdir'
14860 hardcode_direct_CXX=yes
14861 hardcode_shlibpath_var_CXX=no
14862 fi
14863 # Workaround some broken pre-1.5 toolchains
14864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14865 ;;
14866
14867 *nto* | *qnx*)
14868 ld_shlibs_CXX=yes
14869 ;;
14870
14871 openbsd* | bitrig*)
14872 if test -f /usr/libexec/ld.so; then
14873 hardcode_direct_CXX=yes
14874 hardcode_shlibpath_var_CXX=no
14875 hardcode_direct_absolute_CXX=yes
14876 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14877 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14879 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14880 export_dynamic_flag_spec_CXX='$wl-E'
14881 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14882 fi
14883 output_verbose_link_cmd=func_echo_all
14884 else
14885 ld_shlibs_CXX=no
14886 fi
14887 ;;
14888
14889 osf3* | osf4* | osf5*)
14890 case $cc_basename in
14891 KCC*)
14892 # Kuck and Associates, Inc. (KAI) C++ Compiler
14893
14894 # KCC will only create a shared library if the output file
14895 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14896 # to its proper name (with version) after linking.
14897 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14898
14899 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14900 hardcode_libdir_separator_CXX=:
14901
14902 # Archives containing C++ object files must be created using
14903 # the KAI C++ compiler.
14904 case $host in
14905 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14906 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14907 esac
14908 ;;
14909 RCC*)
14910 # Rational C++ 2.4.1
14911 # FIXME: insert proper C++ library support
14912 ld_shlibs_CXX=no
14913 ;;
14914 cxx*)
14915 case $host in
14916 osf3*)
14917 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14918 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14919 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14920 ;;
14921 *)
14922 allow_undefined_flag_CXX=' -expect_unresolved \*'
14923 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14924 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14925 echo "-hidden">> $lib.exp~
14926 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
14927 $RM $lib.exp'
14928 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14929 ;;
14930 esac
14931
14932 hardcode_libdir_separator_CXX=:
14933
14934 # Commands to make compiler produce verbose output that lists
14935 # what "hidden" libraries, object files and flags are used when
14936 # linking a shared library.
14937 #
14938 # There doesn't appear to be a way to prevent this compiler from
14939 # explicitly linking system object files so we need to strip them
14940 # from the output so that they don't get included in the library
14941 # dependencies.
14942 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14943 ;;
14944 *)
14945 if test yes,no = "$GXX,$with_gnu_ld"; then
14946 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14947 case $host in
14948 osf3*)
14949 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14950 ;;
14951 *)
14952 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14953 ;;
14954 esac
14955
14956 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14957 hardcode_libdir_separator_CXX=:
14958
14959 # Commands to make compiler produce verbose output that lists
14960 # what "hidden" libraries, object files and flags are used when
14961 # linking a shared library.
14962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14963
14964 else
14965 # FIXME: insert proper C++ library support
14966 ld_shlibs_CXX=no
14967 fi
14968 ;;
14969 esac
14970 ;;
14971
14972 psos*)
14973 # FIXME: insert proper C++ library support
14974 ld_shlibs_CXX=no
14975 ;;
14976
14977 sunos4*)
14978 case $cc_basename in
14979 CC*)
14980 # Sun C++ 4.x
14981 # FIXME: insert proper C++ library support
14982 ld_shlibs_CXX=no
14983 ;;
14984 lcc*)
14985 # Lucid
14986 # FIXME: insert proper C++ library support
14987 ld_shlibs_CXX=no
14988 ;;
14989 *)
14990 # FIXME: insert proper C++ library support
14991 ld_shlibs_CXX=no
14992 ;;
14993 esac
14994 ;;
14995
14996 solaris*)
14997 case $cc_basename in
14998 CC* | sunCC*)
14999 # Sun C++ 4.2, 5.x and Centerline C++
15000 archive_cmds_need_lc_CXX=yes
15001 no_undefined_flag_CXX=' -zdefs'
15002 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15003 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15004 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15005
15006 hardcode_libdir_flag_spec_CXX='-R$libdir'
15007 hardcode_shlibpath_var_CXX=no
15008 case $host_os in
15009 solaris2.[0-5] | solaris2.[0-5].*) ;;
15010 *)
15011 # The compiler driver will combine and reorder linker options,
15012 # but understands '-z linker_flag'.
15013 # Supported since Solaris 2.6 (maybe 2.5.1?)
15014 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15015 ;;
15016 esac
15017 link_all_deplibs_CXX=yes
15018
15019 output_verbose_link_cmd='func_echo_all'
15020
15021 # Archives containing C++ object files must be created using
15022 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15023 # necessary to make sure instantiated templates are included
15024 # in the archive.
15025 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15026 ;;
15027 gcx*)
15028 # Green Hills C++ Compiler
15029 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15030
15031 # The C++ compiler must be used to create the archive.
15032 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15033 ;;
15034 *)
15035 # GNU C++ compiler with Solaris linker
15036 if test yes,no = "$GXX,$with_gnu_ld"; then
15037 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15038 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15039 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15040 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15041 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15042
15043 # Commands to make compiler produce verbose output that lists
15044 # what "hidden" libraries, object files and flags are used when
15045 # linking a shared library.
15046 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15047 else
15048 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15049 # platform.
15050 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15051 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15052 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15053
15054 # Commands to make compiler produce verbose output that lists
15055 # what "hidden" libraries, object files and flags are used when
15056 # linking a shared library.
15057 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15058 fi
15059
15060 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15061 case $host_os in
15062 solaris2.[0-5] | solaris2.[0-5].*) ;;
15063 *)
15064 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15065 ;;
15066 esac
15067 fi
15068 ;;
15069 esac
15070 ;;
15071
15072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15073 no_undefined_flag_CXX='$wl-z,text'
15074 archive_cmds_need_lc_CXX=no
15075 hardcode_shlibpath_var_CXX=no
15076 runpath_var='LD_RUN_PATH'
15077
15078 case $cc_basename in
15079 CC*)
15080 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15081 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15082 ;;
15083 *)
15084 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15085 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15086 ;;
15087 esac
15088 ;;
15089
15090 sysv5* | sco3.2v5* | sco5v6*)
15091 # Note: We CANNOT use -z defs as we might desire, because we do not
15092 # link with -lc, and that would cause any symbols used from libc to
15093 # always be unresolved, which means just about no library would
15094 # ever link correctly. If we're not using GNU ld we use -z text
15095 # though, which does catch some bad symbols but isn't as heavy-handed
15096 # as -z defs.
15097 no_undefined_flag_CXX='$wl-z,text'
15098 allow_undefined_flag_CXX='$wl-z,nodefs'
15099 archive_cmds_need_lc_CXX=no
15100 hardcode_shlibpath_var_CXX=no
15101 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15102 hardcode_libdir_separator_CXX=':'
15103 link_all_deplibs_CXX=yes
15104 export_dynamic_flag_spec_CXX='$wl-Bexport'
15105 runpath_var='LD_RUN_PATH'
15106
15107 case $cc_basename in
15108 CC*)
15109 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15110 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15111 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15112 '"$old_archive_cmds_CXX"
15113 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15114 '"$reload_cmds_CXX"
15115 ;;
15116 *)
15117 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15118 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15119 ;;
15120 esac
15121 ;;
15122
15123 tandem*)
15124 case $cc_basename in
15125 NCC*)
15126 # NonStop-UX NCC 3.20
15127 # FIXME: insert proper C++ library support
15128 ld_shlibs_CXX=no
15129 ;;
15130 *)
15131 # FIXME: insert proper C++ library support
15132 ld_shlibs_CXX=no
15133 ;;
15134 esac
15135 ;;
15136
15137 vxworks*)
15138 # FIXME: insert proper C++ library support
15139 ld_shlibs_CXX=no
15140 ;;
15141
15142 *)
15143 # FIXME: insert proper C++ library support
15144 ld_shlibs_CXX=no
15145 ;;
15146 esac
15147
15148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15149 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15150 test no = "$ld_shlibs_CXX" && can_build_shared=no
15151
15152 GCC_CXX=$GXX
15153 LD_CXX=$LD
15154
15155 ## CAVEAT EMPTOR:
15156 ## There is no encapsulation within the following macros, do not change
15157 ## the running order or otherwise move them around unless you know exactly
15158 ## what you are doing...
15159 # Dependencies to place before and after the object being linked:
15160 predep_objects_CXX=
15161 postdep_objects_CXX=
15162 predeps_CXX=
15163 postdeps_CXX=
15164 compiler_lib_search_path_CXX=
15165
15166 cat > conftest.$ac_ext <<_LT_EOF
15167 class Foo
15168 {
15169 public:
15170 Foo (void) { a = 0; }
15171 private:
15172 int a;
15173 };
15174 _LT_EOF
15175
15176
15177 _lt_libdeps_save_CFLAGS=$CFLAGS
15178 case "$CC $CFLAGS " in #(
15179 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15180 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15181 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15182 esac
15183
15184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15185 (eval $ac_compile) 2>&5
15186 ac_status=$?
15187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15188 test $ac_status = 0; }; then
15189 # Parse the compiler output and extract the necessary
15190 # objects, libraries and library flags.
15191
15192 # Sentinel used to keep track of whether or not we are before
15193 # the conftest object file.
15194 pre_test_object_deps_done=no
15195
15196 for p in `eval "$output_verbose_link_cmd"`; do
15197 case $prev$p in
15198
15199 -L* | -R* | -l*)
15200 # Some compilers place space between "-{L,R}" and the path.
15201 # Remove the space.
15202 if test x-L = "$p" ||
15203 test x-R = "$p"; then
15204 prev=$p
15205 continue
15206 fi
15207
15208 # Expand the sysroot to ease extracting the directories later.
15209 if test -z "$prev"; then
15210 case $p in
15211 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15212 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15213 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15214 esac
15215 fi
15216 case $p in
15217 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15218 esac
15219 if test no = "$pre_test_object_deps_done"; then
15220 case $prev in
15221 -L | -R)
15222 # Internal compiler library paths should come after those
15223 # provided the user. The postdeps already come after the
15224 # user supplied libs so there is no need to process them.
15225 if test -z "$compiler_lib_search_path_CXX"; then
15226 compiler_lib_search_path_CXX=$prev$p
15227 else
15228 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15229 fi
15230 ;;
15231 # The "-l" case would never come before the object being
15232 # linked, so don't bother handling this case.
15233 esac
15234 else
15235 if test -z "$postdeps_CXX"; then
15236 postdeps_CXX=$prev$p
15237 else
15238 postdeps_CXX="${postdeps_CXX} $prev$p"
15239 fi
15240 fi
15241 prev=
15242 ;;
15243
15244 *.lto.$objext) ;; # Ignore GCC LTO objects
15245 *.$objext)
15246 # This assumes that the test object file only shows up
15247 # once in the compiler output.
15248 if test "$p" = "conftest.$objext"; then
15249 pre_test_object_deps_done=yes
15250 continue
15251 fi
15252
15253 if test no = "$pre_test_object_deps_done"; then
15254 if test -z "$predep_objects_CXX"; then
15255 predep_objects_CXX=$p
15256 else
15257 predep_objects_CXX="$predep_objects_CXX $p"
15258 fi
15259 else
15260 if test -z "$postdep_objects_CXX"; then
15261 postdep_objects_CXX=$p
15262 else
15263 postdep_objects_CXX="$postdep_objects_CXX $p"
15264 fi
15265 fi
15266 ;;
15267
15268 *) ;; # Ignore the rest.
15269
15270 esac
15271 done
15272
15273 # Clean up.
15274 rm -f a.out a.exe
15275 else
15276 echo "libtool.m4: error: problem compiling CXX test program"
15277 fi
15278
15279 $RM -f confest.$objext
15280 CFLAGS=$_lt_libdeps_save_CFLAGS
15281
15282 # PORTME: override above test on systems where it is broken
15283 case $host_os in
15284 interix[3-9]*)
15285 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15286 # hack all around it, let's just trust "g++" to DTRT.
15287 predep_objects_CXX=
15288 postdep_objects_CXX=
15289 postdeps_CXX=
15290 ;;
15291 esac
15292
15293
15294 case " $postdeps_CXX " in
15295 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15296 esac
15297 compiler_lib_search_dirs_CXX=
15298 if test -n "${compiler_lib_search_path_CXX}"; then
15299 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15300 fi
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332 lt_prog_compiler_wl_CXX=
15333 lt_prog_compiler_pic_CXX=
15334 lt_prog_compiler_static_CXX=
15335
15336
15337 # C++ specific cases for pic, static, wl, etc.
15338 if test yes = "$GXX"; then
15339 lt_prog_compiler_wl_CXX='-Wl,'
15340 lt_prog_compiler_static_CXX='-static'
15341
15342 case $host_os in
15343 aix*)
15344 # All AIX code is PIC.
15345 if test ia64 = "$host_cpu"; then
15346 # AIX 5 now supports IA64 processor
15347 lt_prog_compiler_static_CXX='-Bstatic'
15348 fi
15349 lt_prog_compiler_pic_CXX='-fPIC'
15350 ;;
15351
15352 amigaos*)
15353 case $host_cpu in
15354 powerpc)
15355 # see comment about AmigaOS4 .so support
15356 lt_prog_compiler_pic_CXX='-fPIC'
15357 ;;
15358 m68k)
15359 # FIXME: we need at least 68020 code to build shared libraries, but
15360 # adding the '-m68020' flag to GCC prevents building anything better,
15361 # like '-m68040'.
15362 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15363 ;;
15364 esac
15365 ;;
15366
15367 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15368 # PIC is the default for these OSes.
15369 ;;
15370 mingw* | cygwin* | os2* | pw32* | cegcc*)
15371 # This hack is so that the source file can tell whether it is being
15372 # built for inclusion in a dll (and should export symbols for example).
15373 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15374 # (--disable-auto-import) libraries
15375 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15376 case $host_os in
15377 os2*)
15378 lt_prog_compiler_static_CXX='$wl-static'
15379 ;;
15380 esac
15381 ;;
15382 darwin* | rhapsody*)
15383 # PIC is the default on this platform
15384 # Common symbols not allowed in MH_DYLIB files
15385 lt_prog_compiler_pic_CXX='-fno-common'
15386 ;;
15387 *djgpp*)
15388 # DJGPP does not support shared libraries at all
15389 lt_prog_compiler_pic_CXX=
15390 ;;
15391 haiku*)
15392 # PIC is the default for Haiku.
15393 # The "-static" flag exists, but is broken.
15394 lt_prog_compiler_static_CXX=
15395 ;;
15396 interix[3-9]*)
15397 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15398 # Instead, we relocate shared libraries at runtime.
15399 ;;
15400 sysv4*MP*)
15401 if test -d /usr/nec; then
15402 lt_prog_compiler_pic_CXX=-Kconform_pic
15403 fi
15404 ;;
15405 hpux*)
15406 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15407 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15408 # sets the default TLS model and affects inlining.
15409 case $host_cpu in
15410 hppa*64*)
15411 ;;
15412 *)
15413 lt_prog_compiler_pic_CXX='-fPIC'
15414 ;;
15415 esac
15416 ;;
15417 *qnx* | *nto*)
15418 # QNX uses GNU C++, but need to define -shared option too, otherwise
15419 # it will coredump.
15420 lt_prog_compiler_pic_CXX='-fPIC -shared'
15421 ;;
15422 *)
15423 lt_prog_compiler_pic_CXX='-fPIC'
15424 ;;
15425 esac
15426 else
15427 case $host_os in
15428 aix[4-9]*)
15429 # All AIX code is PIC.
15430 if test ia64 = "$host_cpu"; then
15431 # AIX 5 now supports IA64 processor
15432 lt_prog_compiler_static_CXX='-Bstatic'
15433 else
15434 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15435 fi
15436 ;;
15437 chorus*)
15438 case $cc_basename in
15439 cxch68*)
15440 # Green Hills C++ Compiler
15441 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15442 ;;
15443 esac
15444 ;;
15445 mingw* | cygwin* | os2* | pw32* | cegcc*)
15446 # This hack is so that the source file can tell whether it is being
15447 # built for inclusion in a dll (and should export symbols for example).
15448 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15449 ;;
15450 dgux*)
15451 case $cc_basename in
15452 ec++*)
15453 lt_prog_compiler_pic_CXX='-KPIC'
15454 ;;
15455 ghcx*)
15456 # Green Hills C++ Compiler
15457 lt_prog_compiler_pic_CXX='-pic'
15458 ;;
15459 *)
15460 ;;
15461 esac
15462 ;;
15463 freebsd* | dragonfly* | midnightbsd*)
15464 # FreeBSD uses GNU C++
15465 ;;
15466 hpux9* | hpux10* | hpux11*)
15467 case $cc_basename in
15468 CC*)
15469 lt_prog_compiler_wl_CXX='-Wl,'
15470 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15471 if test ia64 != "$host_cpu"; then
15472 lt_prog_compiler_pic_CXX='+Z'
15473 fi
15474 ;;
15475 aCC*)
15476 lt_prog_compiler_wl_CXX='-Wl,'
15477 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15478 case $host_cpu in
15479 hppa*64*|ia64*)
15480 # +Z the default
15481 ;;
15482 *)
15483 lt_prog_compiler_pic_CXX='+Z'
15484 ;;
15485 esac
15486 ;;
15487 *)
15488 ;;
15489 esac
15490 ;;
15491 interix*)
15492 # This is c89, which is MS Visual C++ (no shared libs)
15493 # Anyone wants to do a port?
15494 ;;
15495 irix5* | irix6* | nonstopux*)
15496 case $cc_basename in
15497 CC*)
15498 lt_prog_compiler_wl_CXX='-Wl,'
15499 lt_prog_compiler_static_CXX='-non_shared'
15500 # CC pic flag -KPIC is the default.
15501 ;;
15502 *)
15503 ;;
15504 esac
15505 ;;
15506 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15507 case $cc_basename in
15508 KCC*)
15509 # KAI C++ Compiler
15510 lt_prog_compiler_wl_CXX='--backend -Wl,'
15511 lt_prog_compiler_pic_CXX='-fPIC'
15512 ;;
15513 ecpc* )
15514 # old Intel C++ for x86_64, which still supported -KPIC.
15515 lt_prog_compiler_wl_CXX='-Wl,'
15516 lt_prog_compiler_pic_CXX='-KPIC'
15517 lt_prog_compiler_static_CXX='-static'
15518 ;;
15519 icpc* )
15520 # Intel C++, used to be incompatible with GCC.
15521 # ICC 10 doesn't accept -KPIC any more.
15522 lt_prog_compiler_wl_CXX='-Wl,'
15523 lt_prog_compiler_pic_CXX='-fPIC'
15524 lt_prog_compiler_static_CXX='-static'
15525 ;;
15526 pgCC* | pgcpp*)
15527 # Portland Group C++ compiler
15528 lt_prog_compiler_wl_CXX='-Wl,'
15529 lt_prog_compiler_pic_CXX='-fpic'
15530 lt_prog_compiler_static_CXX='-Bstatic'
15531 ;;
15532 cxx*)
15533 # Compaq C++
15534 # Make sure the PIC flag is empty. It appears that all Alpha
15535 # Linux and Compaq Tru64 Unix objects are PIC.
15536 lt_prog_compiler_pic_CXX=
15537 lt_prog_compiler_static_CXX='-non_shared'
15538 ;;
15539 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15540 # IBM XL 8.0, 9.0 on PPC and BlueGene
15541 lt_prog_compiler_wl_CXX='-Wl,'
15542 lt_prog_compiler_pic_CXX='-qpic'
15543 lt_prog_compiler_static_CXX='-qstaticlink'
15544 ;;
15545 *)
15546 case `$CC -V 2>&1 | $SED 5q` in
15547 *Sun\ C*)
15548 # Sun C++ 5.9
15549 lt_prog_compiler_pic_CXX='-KPIC'
15550 lt_prog_compiler_static_CXX='-Bstatic'
15551 lt_prog_compiler_wl_CXX='-Qoption ld '
15552 ;;
15553 esac
15554 ;;
15555 esac
15556 ;;
15557 lynxos*)
15558 ;;
15559 m88k*)
15560 ;;
15561 mvs*)
15562 case $cc_basename in
15563 cxx*)
15564 lt_prog_compiler_pic_CXX='-W c,exportall'
15565 ;;
15566 *)
15567 ;;
15568 esac
15569 ;;
15570 netbsd* | netbsdelf*-gnu)
15571 ;;
15572 *qnx* | *nto*)
15573 # QNX uses GNU C++, but need to define -shared option too, otherwise
15574 # it will coredump.
15575 lt_prog_compiler_pic_CXX='-fPIC -shared'
15576 ;;
15577 osf3* | osf4* | osf5*)
15578 case $cc_basename in
15579 KCC*)
15580 lt_prog_compiler_wl_CXX='--backend -Wl,'
15581 ;;
15582 RCC*)
15583 # Rational C++ 2.4.1
15584 lt_prog_compiler_pic_CXX='-pic'
15585 ;;
15586 cxx*)
15587 # Digital/Compaq C++
15588 lt_prog_compiler_wl_CXX='-Wl,'
15589 # Make sure the PIC flag is empty. It appears that all Alpha
15590 # Linux and Compaq Tru64 Unix objects are PIC.
15591 lt_prog_compiler_pic_CXX=
15592 lt_prog_compiler_static_CXX='-non_shared'
15593 ;;
15594 *)
15595 ;;
15596 esac
15597 ;;
15598 psos*)
15599 ;;
15600 solaris*)
15601 case $cc_basename in
15602 CC* | sunCC*)
15603 # Sun C++ 4.2, 5.x and Centerline C++
15604 lt_prog_compiler_pic_CXX='-KPIC'
15605 lt_prog_compiler_static_CXX='-Bstatic'
15606 lt_prog_compiler_wl_CXX='-Qoption ld '
15607 ;;
15608 gcx*)
15609 # Green Hills C++ Compiler
15610 lt_prog_compiler_pic_CXX='-PIC'
15611 ;;
15612 *)
15613 ;;
15614 esac
15615 ;;
15616 sunos4*)
15617 case $cc_basename in
15618 CC*)
15619 # Sun C++ 4.x
15620 lt_prog_compiler_pic_CXX='-pic'
15621 lt_prog_compiler_static_CXX='-Bstatic'
15622 ;;
15623 lcc*)
15624 # Lucid
15625 lt_prog_compiler_pic_CXX='-pic'
15626 ;;
15627 *)
15628 ;;
15629 esac
15630 ;;
15631 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15632 case $cc_basename in
15633 CC*)
15634 lt_prog_compiler_wl_CXX='-Wl,'
15635 lt_prog_compiler_pic_CXX='-KPIC'
15636 lt_prog_compiler_static_CXX='-Bstatic'
15637 ;;
15638 esac
15639 ;;
15640 tandem*)
15641 case $cc_basename in
15642 NCC*)
15643 # NonStop-UX NCC 3.20
15644 lt_prog_compiler_pic_CXX='-KPIC'
15645 ;;
15646 *)
15647 ;;
15648 esac
15649 ;;
15650 vxworks*)
15651 ;;
15652 *)
15653 lt_prog_compiler_can_build_shared_CXX=no
15654 ;;
15655 esac
15656 fi
15657
15658 case $host_os in
15659 # For platforms that do not support PIC, -DPIC is meaningless:
15660 *djgpp*)
15661 lt_prog_compiler_pic_CXX=
15662 ;;
15663 *)
15664 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15665 ;;
15666 esac
15667
15668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15669 printf %s "checking for $compiler option to produce PIC... " >&6; }
15670 if test ${lt_cv_prog_compiler_pic_CXX+y}
15671 then :
15672 printf %s "(cached) " >&6
15673 else $as_nop
15674 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15675 fi
15676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15677 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15678 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15679
15680 #
15681 # Check to make sure the PIC flag actually works.
15682 #
15683 if test -n "$lt_prog_compiler_pic_CXX"; then
15684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15685 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15686 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15687 then :
15688 printf %s "(cached) " >&6
15689 else $as_nop
15690 lt_cv_prog_compiler_pic_works_CXX=no
15691 ac_outfile=conftest.$ac_objext
15692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15693 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15694 # Insert the option either (1) after the last *FLAGS variable, or
15695 # (2) before a word containing "conftest.", or (3) at the end.
15696 # Note that $ac_compile itself does not contain backslashes and begins
15697 # with a dollar sign (not a hyphen), so the echo should work correctly.
15698 # The option is referenced via a variable to avoid confusing sed.
15699 lt_compile=`echo "$ac_compile" | $SED \
15700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15702 -e 's:$: $lt_compiler_flag:'`
15703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15704 (eval "$lt_compile" 2>conftest.err)
15705 ac_status=$?
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 if (exit $ac_status) && test -s "$ac_outfile"; then
15709 # The compiler can only warn and ignore the option if not recognized
15710 # So say no if there are warnings other than the usual output.
15711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15714 lt_cv_prog_compiler_pic_works_CXX=yes
15715 fi
15716 fi
15717 $RM conftest*
15718
15719 fi
15720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15721 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15722
15723 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15724 case $lt_prog_compiler_pic_CXX in
15725 "" | " "*) ;;
15726 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15727 esac
15728 else
15729 lt_prog_compiler_pic_CXX=
15730 lt_prog_compiler_can_build_shared_CXX=no
15731 fi
15732
15733 fi
15734
15735
15736
15737
15738
15739 #
15740 # Check to make sure the static flag actually works.
15741 #
15742 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15744 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15745 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15746 then :
15747 printf %s "(cached) " >&6
15748 else $as_nop
15749 lt_cv_prog_compiler_static_works_CXX=no
15750 save_LDFLAGS=$LDFLAGS
15751 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15752 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15753 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15754 # The linker can only warn and ignore the option if not recognized
15755 # So say no if there are warnings
15756 if test -s conftest.err; then
15757 # Append any errors to the config.log.
15758 cat conftest.err 1>&5
15759 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15761 if diff conftest.exp conftest.er2 >/dev/null; then
15762 lt_cv_prog_compiler_static_works_CXX=yes
15763 fi
15764 else
15765 lt_cv_prog_compiler_static_works_CXX=yes
15766 fi
15767 fi
15768 $RM -r conftest*
15769 LDFLAGS=$save_LDFLAGS
15770
15771 fi
15772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15773 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15774
15775 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15776 :
15777 else
15778 lt_prog_compiler_static_CXX=
15779 fi
15780
15781
15782
15783
15784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15785 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15786 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15787 then :
15788 printf %s "(cached) " >&6
15789 else $as_nop
15790 lt_cv_prog_compiler_c_o_CXX=no
15791 $RM -r conftest 2>/dev/null
15792 mkdir conftest
15793 cd conftest
15794 mkdir out
15795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15796
15797 lt_compiler_flag="-o out/conftest2.$ac_objext"
15798 # Insert the option either (1) after the last *FLAGS variable, or
15799 # (2) before a word containing "conftest.", or (3) at the end.
15800 # Note that $ac_compile itself does not contain backslashes and begins
15801 # with a dollar sign (not a hyphen), so the echo should work correctly.
15802 lt_compile=`echo "$ac_compile" | $SED \
15803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15805 -e 's:$: $lt_compiler_flag:'`
15806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15807 (eval "$lt_compile" 2>out/conftest.err)
15808 ac_status=$?
15809 cat out/conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15812 then
15813 # The compiler can only warn and ignore the option if not recognized
15814 # So say no if there are warnings
15815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15818 lt_cv_prog_compiler_c_o_CXX=yes
15819 fi
15820 fi
15821 chmod u+w . 2>&5
15822 $RM conftest*
15823 # SGI C++ compiler will create directory out/ii_files/ for
15824 # template instantiation
15825 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15826 $RM out/* && rmdir out
15827 cd ..
15828 $RM -r conftest
15829 $RM conftest*
15830
15831 fi
15832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15833 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15834
15835
15836
15837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15838 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15839 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15840 then :
15841 printf %s "(cached) " >&6
15842 else $as_nop
15843 lt_cv_prog_compiler_c_o_CXX=no
15844 $RM -r conftest 2>/dev/null
15845 mkdir conftest
15846 cd conftest
15847 mkdir out
15848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15849
15850 lt_compiler_flag="-o out/conftest2.$ac_objext"
15851 # Insert the option either (1) after the last *FLAGS variable, or
15852 # (2) before a word containing "conftest.", or (3) at the end.
15853 # Note that $ac_compile itself does not contain backslashes and begins
15854 # with a dollar sign (not a hyphen), so the echo should work correctly.
15855 lt_compile=`echo "$ac_compile" | $SED \
15856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15858 -e 's:$: $lt_compiler_flag:'`
15859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15860 (eval "$lt_compile" 2>out/conftest.err)
15861 ac_status=$?
15862 cat out/conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15865 then
15866 # The compiler can only warn and ignore the option if not recognized
15867 # So say no if there are warnings
15868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15871 lt_cv_prog_compiler_c_o_CXX=yes
15872 fi
15873 fi
15874 chmod u+w . 2>&5
15875 $RM conftest*
15876 # SGI C++ compiler will create directory out/ii_files/ for
15877 # template instantiation
15878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15879 $RM out/* && rmdir out
15880 cd ..
15881 $RM -r conftest
15882 $RM conftest*
15883
15884 fi
15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15886 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15887
15888
15889
15890
15891 hard_links=nottested
15892 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15893 # do not overwrite the value of need_locks provided by the user
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15895 printf %s "checking if we can lock with hard links... " >&6; }
15896 hard_links=yes
15897 $RM conftest*
15898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15899 touch conftest.a
15900 ln conftest.a conftest.b 2>&5 || hard_links=no
15901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15903 printf "%s\n" "$hard_links" >&6; }
15904 if test no = "$hard_links"; then
15905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15906 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15907 need_locks=warn
15908 fi
15909 else
15910 need_locks=no
15911 fi
15912
15913
15914
15915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15916 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15917
15918 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15919 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15920 case $host_os in
15921 aix[4-9]*)
15922 # If we're using GNU nm, then we don't want the "-C" option.
15923 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15924 # Without the "-l" option, or with the "-B" option, AIX nm treats
15925 # weak defined symbols like other global defined symbols, whereas
15926 # GNU nm marks them as "W".
15927 # While the 'weak' keyword is ignored in the Export File, we need
15928 # it in the Import File for the 'aix-soname' feature, so we have
15929 # to replace the "-B" option with "-P" for AIX nm.
15930 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15931 export_symbols_cmds_CXX='$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'
15932 else
15933 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 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'
15934 fi
15935 ;;
15936 pw32*)
15937 export_symbols_cmds_CXX=$ltdll_cmds
15938 ;;
15939 cygwin* | mingw* | cegcc*)
15940 case $cc_basename in
15941 cl* | icl*)
15942 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15943 ;;
15944 *)
15945 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15946 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15947 ;;
15948 esac
15949 ;;
15950 linux* | k*bsd*-gnu | gnu*)
15951 link_all_deplibs_CXX=no
15952 ;;
15953 *)
15954 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15955 ;;
15956 esac
15957
15958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15959 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15960 test no = "$ld_shlibs_CXX" && can_build_shared=no
15961
15962 with_gnu_ld_CXX=$with_gnu_ld
15963
15964
15965
15966
15967
15968
15969 #
15970 # Do we need to explicitly link libc?
15971 #
15972 case "x$archive_cmds_need_lc_CXX" in
15973 x|xyes)
15974 # Assume -lc should be added
15975 archive_cmds_need_lc_CXX=yes
15976
15977 if test yes,yes = "$GCC,$enable_shared"; then
15978 case $archive_cmds_CXX in
15979 *'~'*)
15980 # FIXME: we may have to deal with multi-command sequences.
15981 ;;
15982 '$CC '*)
15983 # Test whether the compiler implicitly links with -lc since on some
15984 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15985 # to ld, don't add -lc before -lgcc.
15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15987 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15988 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
15989 then :
15990 printf %s "(cached) " >&6
15991 else $as_nop
15992 $RM conftest*
15993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15994
15995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15996 (eval $ac_compile) 2>&5
15997 ac_status=$?
15998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15999 test $ac_status = 0; } 2>conftest.err; then
16000 soname=conftest
16001 lib=conftest
16002 libobjs=conftest.$ac_objext
16003 deplibs=
16004 wl=$lt_prog_compiler_wl_CXX
16005 pic_flag=$lt_prog_compiler_pic_CXX
16006 compiler_flags=-v
16007 linker_flags=-v
16008 verstring=
16009 output_objdir=.
16010 libname=conftest
16011 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16012 allow_undefined_flag_CXX=
16013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16014 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16015 ac_status=$?
16016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16017 test $ac_status = 0; }
16018 then
16019 lt_cv_archive_cmds_need_lc_CXX=no
16020 else
16021 lt_cv_archive_cmds_need_lc_CXX=yes
16022 fi
16023 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16024 else
16025 cat conftest.err 1>&5
16026 fi
16027 $RM conftest*
16028
16029 fi
16030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16031 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16032 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16033 ;;
16034 esac
16035 fi
16036 ;;
16037 esac
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16101 printf %s "checking dynamic linker characteristics... " >&6; }
16102
16103 library_names_spec=
16104 libname_spec='lib$name'
16105 soname_spec=
16106 shrext_cmds=.so
16107 postinstall_cmds=
16108 postuninstall_cmds=
16109 finish_cmds=
16110 finish_eval=
16111 shlibpath_var=
16112 shlibpath_overrides_runpath=unknown
16113 version_type=none
16114 dynamic_linker="$host_os ld.so"
16115 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16116 need_lib_prefix=unknown
16117 hardcode_into_libs=no
16118
16119 # when you set need_version to no, make sure it does not cause -set_version
16120 # flags to be left without arguments
16121 need_version=unknown
16122
16123
16124
16125 case $host_os in
16126 aix3*)
16127 version_type=linux # correct to gnu/linux during the next big refactor
16128 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16129 shlibpath_var=LIBPATH
16130
16131 # AIX 3 has no versioning support, so we append a major version to the name.
16132 soname_spec='$libname$release$shared_ext$major'
16133 ;;
16134
16135 aix[4-9]*)
16136 version_type=linux # correct to gnu/linux during the next big refactor
16137 need_lib_prefix=no
16138 need_version=no
16139 hardcode_into_libs=yes
16140 if test ia64 = "$host_cpu"; then
16141 # AIX 5 supports IA64
16142 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16143 shlibpath_var=LD_LIBRARY_PATH
16144 else
16145 # With GCC up to 2.95.x, collect2 would create an import file
16146 # for dependence libraries. The import file would start with
16147 # the line '#! .'. This would cause the generated library to
16148 # depend on '.', always an invalid library. This was fixed in
16149 # development snapshots of GCC prior to 3.0.
16150 case $host_os in
16151 aix4 | aix4.[01] | aix4.[01].*)
16152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16153 echo ' yes '
16154 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16155 :
16156 else
16157 can_build_shared=no
16158 fi
16159 ;;
16160 esac
16161 # Using Import Files as archive members, it is possible to support
16162 # filename-based versioning of shared library archives on AIX. While
16163 # this would work for both with and without runtime linking, it will
16164 # prevent static linking of such archives. So we do filename-based
16165 # shared library versioning with .so extension only, which is used
16166 # when both runtime linking and shared linking is enabled.
16167 # Unfortunately, runtime linking may impact performance, so we do
16168 # not want this to be the default eventually. Also, we use the
16169 # versioned .so libs for executables only if there is the -brtl
16170 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16171 # To allow for filename-based versioning support, we need to create
16172 # libNAME.so.V as an archive file, containing:
16173 # *) an Import File, referring to the versioned filename of the
16174 # archive as well as the shared archive member, telling the
16175 # bitwidth (32 or 64) of that shared object, and providing the
16176 # list of exported symbols of that shared object, eventually
16177 # decorated with the 'weak' keyword
16178 # *) the shared object with the F_LOADONLY flag set, to really avoid
16179 # it being seen by the linker.
16180 # At run time we better use the real file rather than another symlink,
16181 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16182
16183 case $with_aix_soname,$aix_use_runtimelinking in
16184 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16185 # soname into executable. Probably we can add versioning support to
16186 # collect2, so additional links can be useful in future.
16187 aix,yes) # traditional libtool
16188 dynamic_linker='AIX unversionable lib.so'
16189 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16190 # instead of lib<name>.a to let people know that these are not
16191 # typical AIX shared libraries.
16192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16193 ;;
16194 aix,no) # traditional AIX only
16195 dynamic_linker='AIX lib.a(lib.so.V)'
16196 # We preserve .a as extension for shared libraries through AIX4.2
16197 # and later when we are not doing run time linking.
16198 library_names_spec='$libname$release.a $libname.a'
16199 soname_spec='$libname$release$shared_ext$major'
16200 ;;
16201 svr4,*) # full svr4 only
16202 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16203 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16204 # We do not specify a path in Import Files, so LIBPATH fires.
16205 shlibpath_overrides_runpath=yes
16206 ;;
16207 *,yes) # both, prefer svr4
16208 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16209 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16210 # unpreferred sharedlib libNAME.a needs extra handling
16211 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"'
16212 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"'
16213 # We do not specify a path in Import Files, so LIBPATH fires.
16214 shlibpath_overrides_runpath=yes
16215 ;;
16216 *,no) # both, prefer aix
16217 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16218 library_names_spec='$libname$release.a $libname.a'
16219 soname_spec='$libname$release$shared_ext$major'
16220 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16221 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)'
16222 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"'
16223 ;;
16224 esac
16225 shlibpath_var=LIBPATH
16226 fi
16227 ;;
16228
16229 amigaos*)
16230 case $host_cpu in
16231 powerpc)
16232 # Since July 2007 AmigaOS4 officially supports .so libraries.
16233 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16235 ;;
16236 m68k)
16237 library_names_spec='$libname.ixlibrary $libname.a'
16238 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16239 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'
16240 ;;
16241 esac
16242 ;;
16243
16244 beos*)
16245 library_names_spec='$libname$shared_ext'
16246 dynamic_linker="$host_os ld.so"
16247 shlibpath_var=LIBRARY_PATH
16248 ;;
16249
16250 bsdi[45]*)
16251 version_type=linux # correct to gnu/linux during the next big refactor
16252 need_version=no
16253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16254 soname_spec='$libname$release$shared_ext$major'
16255 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16256 shlibpath_var=LD_LIBRARY_PATH
16257 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16258 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16259 # the default ld.so.conf also contains /usr/contrib/lib and
16260 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16261 # libtool to hard-code these into programs
16262 ;;
16263
16264 cygwin* | mingw* | pw32* | cegcc*)
16265 version_type=windows
16266 shrext_cmds=.dll
16267 need_version=no
16268 need_lib_prefix=no
16269
16270 case $GCC,$cc_basename in
16271 yes,*)
16272 # gcc
16273 library_names_spec='$libname.dll.a'
16274 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16275 postinstall_cmds='base_file=`basename \$file`~
16276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16277 dldir=$destdir/`dirname \$dlpath`~
16278 test -d \$dldir || mkdir -p \$dldir~
16279 $install_prog $dir/$dlname \$dldir/$dlname~
16280 chmod a+x \$dldir/$dlname~
16281 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16282 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16283 fi'
16284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16285 dlpath=$dir/\$dldll~
16286 $RM \$dlpath'
16287 shlibpath_overrides_runpath=yes
16288
16289 case $host_os in
16290 cygwin*)
16291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16292 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16293
16294 ;;
16295 mingw* | cegcc*)
16296 # MinGW DLLs use traditional 'lib' prefix
16297 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16298 ;;
16299 pw32*)
16300 # pw32 DLLs use 'pw' prefix rather than 'lib'
16301 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16302 ;;
16303 esac
16304 dynamic_linker='Win32 ld.exe'
16305 ;;
16306
16307 *,cl* | *,icl*)
16308 # Native MSVC or ICC
16309 libname_spec='$name'
16310 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16311 library_names_spec='$libname.dll.lib'
16312
16313 case $build_os in
16314 mingw*)
16315 sys_lib_search_path_spec=
16316 lt_save_ifs=$IFS
16317 IFS=';'
16318 for lt_path in $LIB
16319 do
16320 IFS=$lt_save_ifs
16321 # Let DOS variable expansion print the short 8.3 style file name.
16322 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16323 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16324 done
16325 IFS=$lt_save_ifs
16326 # Convert to MSYS style.
16327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16328 ;;
16329 cygwin*)
16330 # Convert to unix form, then to dos form, then back to unix form
16331 # but this time dos style (no spaces!) so that the unix form looks
16332 # like /cygdrive/c/PROGRA~1:/cygdr...
16333 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16334 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16335 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16336 ;;
16337 *)
16338 sys_lib_search_path_spec=$LIB
16339 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16340 # It is most probably a Windows format PATH.
16341 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16342 else
16343 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16344 fi
16345 # FIXME: find the short name or the path components, as spaces are
16346 # common. (e.g. "Program Files" -> "PROGRA~1")
16347 ;;
16348 esac
16349
16350 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16351 postinstall_cmds='base_file=`basename \$file`~
16352 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16353 dldir=$destdir/`dirname \$dlpath`~
16354 test -d \$dldir || mkdir -p \$dldir~
16355 $install_prog $dir/$dlname \$dldir/$dlname'
16356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16357 dlpath=$dir/\$dldll~
16358 $RM \$dlpath'
16359 shlibpath_overrides_runpath=yes
16360 dynamic_linker='Win32 link.exe'
16361 ;;
16362
16363 *)
16364 # Assume MSVC and ICC wrapper
16365 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16366 dynamic_linker='Win32 ld.exe'
16367 ;;
16368 esac
16369 # FIXME: first we should search . and the directory the executable is in
16370 shlibpath_var=PATH
16371 ;;
16372
16373 darwin* | rhapsody*)
16374 dynamic_linker="$host_os dyld"
16375 version_type=darwin
16376 need_lib_prefix=no
16377 need_version=no
16378 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16379 soname_spec='$libname$release$major$shared_ext'
16380 shlibpath_overrides_runpath=yes
16381 shlibpath_var=DYLD_LIBRARY_PATH
16382 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16383
16384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16385 ;;
16386
16387 dgux*)
16388 version_type=linux # correct to gnu/linux during the next big refactor
16389 need_lib_prefix=no
16390 need_version=no
16391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16392 soname_spec='$libname$release$shared_ext$major'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 ;;
16395
16396 freebsd* | dragonfly* | midnightbsd*)
16397 # DragonFly does not have aout. When/if they implement a new
16398 # versioning mechanism, adjust this.
16399 if test -x /usr/bin/objformat; then
16400 objformat=`/usr/bin/objformat`
16401 else
16402 case $host_os in
16403 freebsd[23].*) objformat=aout ;;
16404 *) objformat=elf ;;
16405 esac
16406 fi
16407 version_type=freebsd-$objformat
16408 case $version_type in
16409 freebsd-elf*)
16410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16411 soname_spec='$libname$release$shared_ext$major'
16412 need_version=no
16413 need_lib_prefix=no
16414 ;;
16415 freebsd-*)
16416 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16417 need_version=yes
16418 ;;
16419 esac
16420 shlibpath_var=LD_LIBRARY_PATH
16421 case $host_os in
16422 freebsd2.*)
16423 shlibpath_overrides_runpath=yes
16424 ;;
16425 freebsd3.[01]* | freebsdelf3.[01]*)
16426 shlibpath_overrides_runpath=yes
16427 hardcode_into_libs=yes
16428 ;;
16429 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16430 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16431 shlibpath_overrides_runpath=no
16432 hardcode_into_libs=yes
16433 ;;
16434 *) # from 4.6 on, and DragonFly
16435 shlibpath_overrides_runpath=yes
16436 hardcode_into_libs=yes
16437 ;;
16438 esac
16439 ;;
16440
16441 haiku*)
16442 version_type=linux # correct to gnu/linux during the next big refactor
16443 need_lib_prefix=no
16444 need_version=no
16445 dynamic_linker="$host_os runtime_loader"
16446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16447 soname_spec='$libname$release$shared_ext$major'
16448 shlibpath_var=LIBRARY_PATH
16449 shlibpath_overrides_runpath=no
16450 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16451 hardcode_into_libs=yes
16452 ;;
16453
16454 hpux9* | hpux10* | hpux11*)
16455 # Give a soname corresponding to the major version so that dld.sl refuses to
16456 # link against other versions.
16457 version_type=sunos
16458 need_lib_prefix=no
16459 need_version=no
16460 case $host_cpu in
16461 ia64*)
16462 shrext_cmds='.so'
16463 hardcode_into_libs=yes
16464 dynamic_linker="$host_os dld.so"
16465 shlibpath_var=LD_LIBRARY_PATH
16466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16468 soname_spec='$libname$release$shared_ext$major'
16469 if test 32 = "$HPUX_IA64_MODE"; then
16470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16471 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16472 else
16473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16474 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16475 fi
16476 ;;
16477 hppa*64*)
16478 shrext_cmds='.sl'
16479 hardcode_into_libs=yes
16480 dynamic_linker="$host_os dld.sl"
16481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16484 soname_spec='$libname$release$shared_ext$major'
16485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16487 ;;
16488 *)
16489 shrext_cmds='.sl'
16490 dynamic_linker="$host_os dld.sl"
16491 shlibpath_var=SHLIB_PATH
16492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16494 soname_spec='$libname$release$shared_ext$major'
16495 ;;
16496 esac
16497 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16498 postinstall_cmds='chmod 555 $lib'
16499 # or fails outright, so override atomically:
16500 install_override_mode=555
16501 ;;
16502
16503 interix[3-9]*)
16504 version_type=linux # correct to gnu/linux during the next big refactor
16505 need_lib_prefix=no
16506 need_version=no
16507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16508 soname_spec='$libname$release$shared_ext$major'
16509 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 shlibpath_overrides_runpath=no
16512 hardcode_into_libs=yes
16513 ;;
16514
16515 irix5* | irix6* | nonstopux*)
16516 case $host_os in
16517 nonstopux*) version_type=nonstopux ;;
16518 *)
16519 if test yes = "$lt_cv_prog_gnu_ld"; then
16520 version_type=linux # correct to gnu/linux during the next big refactor
16521 else
16522 version_type=irix
16523 fi ;;
16524 esac
16525 need_lib_prefix=no
16526 need_version=no
16527 soname_spec='$libname$release$shared_ext$major'
16528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16529 case $host_os in
16530 irix5* | nonstopux*)
16531 libsuff= shlibsuff=
16532 ;;
16533 *)
16534 case $LD in # libtool.m4 will add one of these switches to LD
16535 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16536 libsuff= shlibsuff= libmagic=32-bit;;
16537 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16538 libsuff=32 shlibsuff=N32 libmagic=N32;;
16539 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16540 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16541 *) libsuff= shlibsuff= libmagic=never-match;;
16542 esac
16543 ;;
16544 esac
16545 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16546 shlibpath_overrides_runpath=no
16547 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16548 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16549 hardcode_into_libs=yes
16550 ;;
16551
16552 # No shared lib support for Linux oldld, aout, or coff.
16553 linux*oldld* | linux*aout* | linux*coff*)
16554 dynamic_linker=no
16555 ;;
16556
16557 linux*android*)
16558 version_type=none # Android doesn't support versioned libraries.
16559 need_lib_prefix=no
16560 need_version=no
16561 library_names_spec='$libname$release$shared_ext'
16562 soname_spec='$libname$release$shared_ext'
16563 finish_cmds=
16564 shlibpath_var=LD_LIBRARY_PATH
16565 shlibpath_overrides_runpath=yes
16566
16567 # This implies no fast_install, which is unacceptable.
16568 # Some rework will be needed to allow for fast_install
16569 # before this can be enabled.
16570 hardcode_into_libs=yes
16571
16572 dynamic_linker='Android linker'
16573 # Don't embed -rpath directories since the linker doesn't support them.
16574 hardcode_libdir_flag_spec_CXX='-L$libdir'
16575 ;;
16576
16577 # This must be glibc/ELF.
16578 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16579 version_type=linux # correct to gnu/linux during the next big refactor
16580 need_lib_prefix=no
16581 need_version=no
16582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16583 soname_spec='$libname$release$shared_ext$major'
16584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16585 shlibpath_var=LD_LIBRARY_PATH
16586 shlibpath_overrides_runpath=no
16587
16588 # Some binutils ld are patched to set DT_RUNPATH
16589 if test ${lt_cv_shlibpath_overrides_runpath+y}
16590 then :
16591 printf %s "(cached) " >&6
16592 else $as_nop
16593 lt_cv_shlibpath_overrides_runpath=no
16594 save_LDFLAGS=$LDFLAGS
16595 save_libdir=$libdir
16596 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16597 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600
16601 int
16602 main (void)
16603 {
16604
16605 ;
16606 return 0;
16607 }
16608 _ACEOF
16609 if ac_fn_cxx_try_link "$LINENO"
16610 then :
16611 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16612 then :
16613 lt_cv_shlibpath_overrides_runpath=yes
16614 fi
16615 fi
16616 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16617 conftest$ac_exeext conftest.$ac_ext
16618 LDFLAGS=$save_LDFLAGS
16619 libdir=$save_libdir
16620
16621 fi
16622
16623 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16624
16625 # This implies no fast_install, which is unacceptable.
16626 # Some rework will be needed to allow for fast_install
16627 # before this can be enabled.
16628 hardcode_into_libs=yes
16629
16630 # Ideally, we could use ldconfig to report *all* directores which are
16631 # searched for libraries, however this is still not possible. Aside from not
16632 # being certain /sbin/ldconfig is available, command
16633 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16634 # even though it is searched at run-time. Try to do the best guess by
16635 # appending ld.so.conf contents (and includes) to the search path.
16636 if test -f /etc/ld.so.conf; then
16637 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' ' '`
16638 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16639 fi
16640
16641 # We used to test for /lib/ld.so.1 and disable shared libraries on
16642 # powerpc, because MkLinux only supported shared libraries with the
16643 # GNU dynamic linker. Since this was broken with cross compilers,
16644 # most powerpc-linux boxes support dynamic linking these days and
16645 # people can always --disable-shared, the test was removed, and we
16646 # assume the GNU/Linux dynamic linker is in use.
16647 dynamic_linker='GNU/Linux ld.so'
16648 ;;
16649
16650 netbsdelf*-gnu)
16651 version_type=linux
16652 need_lib_prefix=no
16653 need_version=no
16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16655 soname_spec='${libname}${release}${shared_ext}$major'
16656 shlibpath_var=LD_LIBRARY_PATH
16657 shlibpath_overrides_runpath=no
16658 hardcode_into_libs=yes
16659 dynamic_linker='NetBSD ld.elf_so'
16660 ;;
16661
16662 netbsd*)
16663 version_type=sunos
16664 need_lib_prefix=no
16665 need_version=no
16666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16667 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16669 dynamic_linker='NetBSD (a.out) ld.so'
16670 else
16671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16672 soname_spec='$libname$release$shared_ext$major'
16673 dynamic_linker='NetBSD ld.elf_so'
16674 fi
16675 shlibpath_var=LD_LIBRARY_PATH
16676 shlibpath_overrides_runpath=yes
16677 hardcode_into_libs=yes
16678 ;;
16679
16680 newsos6)
16681 version_type=linux # correct to gnu/linux during the next big refactor
16682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16683 shlibpath_var=LD_LIBRARY_PATH
16684 shlibpath_overrides_runpath=yes
16685 ;;
16686
16687 *nto* | *qnx*)
16688 version_type=qnx
16689 need_lib_prefix=no
16690 need_version=no
16691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16692 soname_spec='$libname$release$shared_ext$major'
16693 shlibpath_var=LD_LIBRARY_PATH
16694 shlibpath_overrides_runpath=no
16695 hardcode_into_libs=yes
16696 dynamic_linker='ldqnx.so'
16697 ;;
16698
16699 openbsd* | bitrig*)
16700 version_type=sunos
16701 sys_lib_dlsearch_path_spec=/usr/lib
16702 need_lib_prefix=no
16703 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16704 need_version=no
16705 else
16706 need_version=yes
16707 fi
16708 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16710 shlibpath_var=LD_LIBRARY_PATH
16711 shlibpath_overrides_runpath=yes
16712 ;;
16713
16714 os2*)
16715 libname_spec='$name'
16716 version_type=windows
16717 shrext_cmds=.dll
16718 need_version=no
16719 need_lib_prefix=no
16720 # OS/2 can only load a DLL with a base name of 8 characters or less.
16721 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16722 v=$($ECHO $release$versuffix | tr -d .-);
16723 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16724 $ECHO $n$v`$shared_ext'
16725 library_names_spec='${libname}_dll.$libext'
16726 dynamic_linker='OS/2 ld.exe'
16727 shlibpath_var=BEGINLIBPATH
16728 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16730 postinstall_cmds='base_file=`basename \$file`~
16731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16732 dldir=$destdir/`dirname \$dlpath`~
16733 test -d \$dldir || mkdir -p \$dldir~
16734 $install_prog $dir/$dlname \$dldir/$dlname~
16735 chmod a+x \$dldir/$dlname~
16736 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16737 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16738 fi'
16739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16740 dlpath=$dir/\$dldll~
16741 $RM \$dlpath'
16742 ;;
16743
16744 osf3* | osf4* | osf5*)
16745 version_type=osf
16746 need_lib_prefix=no
16747 need_version=no
16748 soname_spec='$libname$release$shared_ext$major'
16749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16750 shlibpath_var=LD_LIBRARY_PATH
16751 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16753 ;;
16754
16755 rdos*)
16756 dynamic_linker=no
16757 ;;
16758
16759 solaris*)
16760 version_type=linux # correct to gnu/linux during the next big refactor
16761 need_lib_prefix=no
16762 need_version=no
16763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16764 soname_spec='$libname$release$shared_ext$major'
16765 shlibpath_var=LD_LIBRARY_PATH
16766 shlibpath_overrides_runpath=yes
16767 hardcode_into_libs=yes
16768 # ldd complains unless libraries are executable
16769 postinstall_cmds='chmod +x $lib'
16770 ;;
16771
16772 sunos4*)
16773 version_type=sunos
16774 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16775 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 shlibpath_overrides_runpath=yes
16778 if test yes = "$with_gnu_ld"; then
16779 need_lib_prefix=no
16780 fi
16781 need_version=yes
16782 ;;
16783
16784 sysv4 | sysv4.3*)
16785 version_type=linux # correct to gnu/linux during the next big refactor
16786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16787 soname_spec='$libname$release$shared_ext$major'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 case $host_vendor in
16790 sni)
16791 shlibpath_overrides_runpath=no
16792 need_lib_prefix=no
16793 runpath_var=LD_RUN_PATH
16794 ;;
16795 siemens)
16796 need_lib_prefix=no
16797 ;;
16798 motorola)
16799 need_lib_prefix=no
16800 need_version=no
16801 shlibpath_overrides_runpath=no
16802 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16803 ;;
16804 esac
16805 ;;
16806
16807 sysv4*MP*)
16808 if test -d /usr/nec; then
16809 version_type=linux # correct to gnu/linux during the next big refactor
16810 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16811 soname_spec='$libname$shared_ext.$major'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 fi
16814 ;;
16815
16816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16817 version_type=sco
16818 need_lib_prefix=no
16819 need_version=no
16820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16821 soname_spec='$libname$release$shared_ext$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 shlibpath_overrides_runpath=yes
16824 hardcode_into_libs=yes
16825 if test yes = "$with_gnu_ld"; then
16826 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16827 else
16828 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16829 case $host_os in
16830 sco3.2v5*)
16831 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16832 ;;
16833 esac
16834 fi
16835 sys_lib_dlsearch_path_spec='/usr/lib'
16836 ;;
16837
16838 tpf*)
16839 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16840 version_type=linux # correct to gnu/linux during the next big refactor
16841 need_lib_prefix=no
16842 need_version=no
16843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16844 shlibpath_var=LD_LIBRARY_PATH
16845 shlibpath_overrides_runpath=no
16846 hardcode_into_libs=yes
16847 ;;
16848
16849 uts4*)
16850 version_type=linux # correct to gnu/linux during the next big refactor
16851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16852 soname_spec='$libname$release$shared_ext$major'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 ;;
16855
16856 *)
16857 dynamic_linker=no
16858 ;;
16859 esac
16860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16861 printf "%s\n" "$dynamic_linker" >&6; }
16862 test no = "$dynamic_linker" && can_build_shared=no
16863
16864 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16865 if test yes = "$GCC"; then
16866 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16867 fi
16868
16869 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16870 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16871 fi
16872
16873 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16874 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16875 fi
16876
16877 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16878 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16879
16880 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16881 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16882
16883 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16884 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16926 printf %s "checking how to hardcode library paths into programs... " >&6; }
16927 hardcode_action_CXX=
16928 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16929 test -n "$runpath_var_CXX" ||
16930 test yes = "$hardcode_automatic_CXX"; then
16931
16932 # We can hardcode non-existent directories.
16933 if test no != "$hardcode_direct_CXX" &&
16934 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16935 # have to relink, otherwise we might link with an installed library
16936 # when we should be linking with a yet-to-be-installed one
16937 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16938 test no != "$hardcode_minus_L_CXX"; then
16939 # Linking always hardcodes the temporary library directory.
16940 hardcode_action_CXX=relink
16941 else
16942 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16943 hardcode_action_CXX=immediate
16944 fi
16945 else
16946 # We cannot hardcode anything, or else we can only hardcode existing
16947 # directories.
16948 hardcode_action_CXX=unsupported
16949 fi
16950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16951 printf "%s\n" "$hardcode_action_CXX" >&6; }
16952
16953 if test relink = "$hardcode_action_CXX" ||
16954 test yes = "$inherit_rpath_CXX"; then
16955 # Fast installation is not supported
16956 enable_fast_install=no
16957 elif test yes = "$shlibpath_overrides_runpath" ||
16958 test no = "$enable_shared"; then
16959 # Fast installation is not necessary
16960 enable_fast_install=needless
16961 fi
16962
16963
16964
16965
16966
16967
16968
16969 fi # test -n "$compiler"
16970
16971 CC=$lt_save_CC
16972 CFLAGS=$lt_save_CFLAGS
16973 LDCXX=$LD
16974 LD=$lt_save_LD
16975 GCC=$lt_save_GCC
16976 with_gnu_ld=$lt_save_with_gnu_ld
16977 lt_cv_path_LDCXX=$lt_cv_path_LD
16978 lt_cv_path_LD=$lt_save_path_LD
16979 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16980 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16981 fi # test yes != "$_lt_caught_CXX_error"
16982
16983 ac_ext=c
16984 ac_cpp='$CPP $CPPFLAGS'
16985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003 ac_config_commands="$ac_config_commands libtool"
17004
17005
17006
17007
17008 # Only expand once:
17009
17010
17011 if test -n "$ac_tool_prefix"; then
17012 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17013 set dummy ${ac_tool_prefix}windres; ac_word=$2
17014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17015 printf %s "checking for $ac_word... " >&6; }
17016 if test ${ac_cv_prog_RC+y}
17017 then :
17018 printf %s "(cached) " >&6
17019 else $as_nop
17020 if test -n "$RC"; then
17021 ac_cv_prog_RC="$RC" # Let the user override the test.
17022 else
17023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17024 for as_dir in $PATH
17025 do
17026 IFS=$as_save_IFS
17027 case $as_dir in #(((
17028 '') as_dir=./ ;;
17029 */) ;;
17030 *) as_dir=$as_dir/ ;;
17031 esac
17032 for ac_exec_ext in '' $ac_executable_extensions; do
17033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17034 ac_cv_prog_RC="${ac_tool_prefix}windres"
17035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17036 break 2
17037 fi
17038 done
17039 done
17040 IFS=$as_save_IFS
17041
17042 fi
17043 fi
17044 RC=$ac_cv_prog_RC
17045 if test -n "$RC"; then
17046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17047 printf "%s\n" "$RC" >&6; }
17048 else
17049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17050 printf "%s\n" "no" >&6; }
17051 fi
17052
17053
17054 fi
17055 if test -z "$ac_cv_prog_RC"; then
17056 ac_ct_RC=$RC
17057 # Extract the first word of "windres", so it can be a program name with args.
17058 set dummy windres; ac_word=$2
17059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17060 printf %s "checking for $ac_word... " >&6; }
17061 if test ${ac_cv_prog_ac_ct_RC+y}
17062 then :
17063 printf %s "(cached) " >&6
17064 else $as_nop
17065 if test -n "$ac_ct_RC"; then
17066 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17067 else
17068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17069 for as_dir in $PATH
17070 do
17071 IFS=$as_save_IFS
17072 case $as_dir in #(((
17073 '') as_dir=./ ;;
17074 */) ;;
17075 *) as_dir=$as_dir/ ;;
17076 esac
17077 for ac_exec_ext in '' $ac_executable_extensions; do
17078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17079 ac_cv_prog_ac_ct_RC="windres"
17080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17081 break 2
17082 fi
17083 done
17084 done
17085 IFS=$as_save_IFS
17086
17087 fi
17088 fi
17089 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17090 if test -n "$ac_ct_RC"; then
17091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17092 printf "%s\n" "$ac_ct_RC" >&6; }
17093 else
17094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095 printf "%s\n" "no" >&6; }
17096 fi
17097
17098 if test "x$ac_ct_RC" = x; then
17099 RC=""
17100 else
17101 case $cross_compiling:$ac_tool_warned in
17102 yes:)
17103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17104 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17105 ac_tool_warned=yes ;;
17106 esac
17107 RC=$ac_ct_RC
17108 fi
17109 else
17110 RC="$ac_cv_prog_RC"
17111 fi
17112
17113
17114
17115
17116 # Source file extension for RC test sources.
17117 ac_ext=rc
17118
17119 # Object file extension for compiled RC test sources.
17120 objext=o
17121 objext_RC=$objext
17122
17123 # Code to be used in simple compile tests
17124 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17125
17126 # Code to be used in simple link tests
17127 lt_simple_link_test_code=$lt_simple_compile_test_code
17128
17129 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17130
17131
17132
17133
17134
17135
17136 # If no C compiler was specified, use CC.
17137 LTCC=${LTCC-"$CC"}
17138
17139 # If no C compiler flags were specified, use CFLAGS.
17140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17141
17142 # Allow CC to be a program name with arguments.
17143 compiler=$CC
17144
17145
17146 # save warnings/boilerplate of simple test code
17147 ac_outfile=conftest.$ac_objext
17148 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17149 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17150 _lt_compiler_boilerplate=`cat conftest.err`
17151 $RM conftest*
17152
17153 ac_outfile=conftest.$ac_objext
17154 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17155 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17156 _lt_linker_boilerplate=`cat conftest.err`
17157 $RM -r conftest*
17158
17159
17160 # Allow CC to be a program name with arguments.
17161 lt_save_CC=$CC
17162 lt_save_CFLAGS=$CFLAGS
17163 lt_save_GCC=$GCC
17164 GCC=
17165 CC=${RC-"windres"}
17166 CFLAGS=
17167 compiler=$CC
17168 compiler_RC=$CC
17169 func_cc_basename $compiler
17170 cc_basename=$func_cc_basename_result
17171
17172 lt_cv_prog_compiler_c_o_RC=yes
17173
17174 if test -n "$compiler"; then
17175 :
17176
17177
17178
17179 fi
17180
17181 GCC=$lt_save_GCC
17182 ac_ext=c
17183 ac_cpp='$CPP $CPPFLAGS'
17184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17187
17188 CC=$lt_save_CC
17189 CFLAGS=$lt_save_CFLAGS
17190
17191
17192 lt_current=6
17193 lt_revision=0
17194 lt_age=6
17195 LT_LDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age} -no-undefined"
17196
17197 # Check whether --enable-silent-rules was given.
17198 if test ${enable_silent_rules+y}
17199 then :
17200 enableval=$enable_silent_rules;
17201 fi
17202
17203 case $enable_silent_rules in # (((
17204 yes) AM_DEFAULT_VERBOSITY=0;;
17205 no) AM_DEFAULT_VERBOSITY=1;;
17206 *) AM_DEFAULT_VERBOSITY=0;;
17207 esac
17208 am_make=${MAKE-make}
17209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17210 printf %s "checking whether $am_make supports nested variables... " >&6; }
17211 if test ${am_cv_make_support_nested_variables+y}
17212 then :
17213 printf %s "(cached) " >&6
17214 else $as_nop
17215 if printf "%s\n" 'TRUE=$(BAR$(V))
17216 BAR0=false
17217 BAR1=true
17218 V=1
17219 am__doit:
17220 @$(TRUE)
17221 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17222 am_cv_make_support_nested_variables=yes
17223 else
17224 am_cv_make_support_nested_variables=no
17225 fi
17226 fi
17227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17228 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
17229 if test $am_cv_make_support_nested_variables = yes; then
17230 AM_V='$(V)'
17231 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17232 else
17233 AM_V=$AM_DEFAULT_VERBOSITY
17234 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17235 fi
17236 AM_BACKSLASH='\'
17237
17238
17239 EXTRA_CPPFLAGS=
17240 EXTRA_CFLAGS=
17241
17242 saved_CFLAGS="${CFLAGS}"
17243 CFLAGS="-std=gnu11"
17244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -std=gnu11" >&5
17245 printf %s "checking if $CC supports -std=gnu11... " >&6; }
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17248 _Thread_local int x;
17249 int
17250 main (void)
17251 {
17252 x = 42;
17253 ;
17254 return 0;
17255 }
17256 _ACEOF
17257 if ac_fn_c_try_compile "$LINENO"
17258 then :
17259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17260 printf "%s\n" "yes" >&6; }
17261 c_dialect=gnu
17262 else $as_nop
17263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17264 printf "%s\n" "no" >&6; }
17265 c_dialect=
17266 fi
17267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17268 if test "x$c_dialect" != xgnu; then
17269 CFLAGS="-std=c11"
17270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -std=c11" >&5
17271 printf %s "checking if $CC supports -std=c11... " >&6; }
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17274 _Thread_local int x;
17275 int
17276 main (void)
17277 {
17278 x = 42;
17279 ;
17280 return 0;
17281 }
17282 _ACEOF
17283 if ac_fn_c_try_compile "$LINENO"
17284 then :
17285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17286 printf "%s\n" "yes" >&6; }
17287 else $as_nop
17288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17289 printf "%s\n" "no" >&6; }
17290 as_fn_error $? "compiler with C11 support is required to build libusb" "$LINENO" 5
17291 fi
17292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17293 c_dialect=c
17294 fi
17295 CFLAGS="${saved_CFLAGS}"
17296
17297
17298 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
17299
17300
17301 printf "%s\n" "#define DEFAULT_VISIBILITY __attribute__ ((visibility (\"default\")))" >>confdefs.h
17302
17303
17304 printf "%s\n" "#define PRINTF_FORMAT(a, b) __attribute__ ((__format__ (__printf__, a, b)))" >>confdefs.h
17305
17306
17307 create_import_lib=
17308 is_android_linux=
17309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
17310 printf %s "checking operating system... " >&6; }
17311 case $host in
17312 *-darwin*)
17313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin/Mac OS X" >&5
17314 printf "%s\n" "Darwin/Mac OS X" >&6; }
17315 backend=darwin
17316 platform=posix
17317 ;;
17318 *-haiku*)
17319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Haiku" >&5
17320 printf "%s\n" "Haiku" >&6; }
17321 backend=haiku
17322 platform=posix
17323 ;;
17324 wasm*-emscripten)
17325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Emscripten" >&5
17326 printf "%s\n" "Emscripten" >&6; }
17327 backend=emscripten
17328 platform=posix
17329 ;;
17330 wasm*-unknown-none)
17331 as_fn_error $? "
17332 --host=$host_alias is not accepted as it might become ambiguous in the future.
17333 Please use an explicit --host=$host_cpu-emscripten instead.
17334 " "$LINENO" 5
17335 ;;
17336 *-linux* | *-uclinux*)
17337 case $host in
17338 *-linux-android*)
17339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Android Linux" >&5
17340 printf "%s\n" "Android Linux" >&6; }
17341 is_android_linux=yes
17342 ;;
17343 *)
17344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
17345 printf "%s\n" "Linux" >&6; }
17346 ;;
17347 esac
17348 backend=linux
17349 platform=posix
17350 ;;
17351 *-netbsd*)
17352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: NetBSD" >&5
17353 printf "%s\n" "NetBSD" >&6; }
17354 backend=netbsd
17355 platform=posix
17356 ;;
17357 *-openbsd*)
17358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
17359 printf "%s\n" "OpenBSD" >&6; }
17360 backend=openbsd
17361 platform=posix
17362 ;;
17363 *-solaris*)
17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5
17365 printf "%s\n" "SunOS" >&6; }
17366 backend=sunos
17367 platform=posix
17368 ;;
17369 *-cygwin*)
17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Windows (using Cygwin)" >&5
17371 printf "%s\n" "Windows (using Cygwin)" >&6; }
17372 backend=windows
17373 platform=windows
17374 EXTRA_CFLAGS="-mwin32"
17375 ;;
17376 *-mingw* | *msys*)
17377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
17378 printf "%s\n" "Windows" >&6; }
17379 backend=windows
17380 platform=windows
17381 test "x$enable_shared" = xyes && create_import_lib=yes
17382 EXTRA_CFLAGS="-fno-omit-frame-pointer"
17383 EXTRA_LDFLAGS="-static-libgcc"
17384 ;;
17385 *)
17386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Null" >&5
17387 printf "%s\n" "Null" >&6; }
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The host being compiled for is not supported." >&5
17389 printf "%s\n" "$as_me: WARNING: The host being compiled for is not supported." >&2;}
17390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The library may compile but will not function in any useful manner." >&5
17391 printf "%s\n" "$as_me: WARNING: The library may compile but will not function in any useful manner." >&2;}
17392 backend=null
17393 platform=posix
17394 ;;
17395 esac
17396
17397 if test "x$platform" = xposix; then
17398
17399 printf "%s\n" "#define PLATFORM_POSIX 1" >>confdefs.h
17400
17401 ac_fn_c_check_type "$LINENO" "nfds_t" "ac_cv_type_nfds_t" "#include <poll.h>
17402 "
17403 if test "x$ac_cv_type_nfds_t" = xyes
17404 then :
17405
17406 printf "%s\n" "#define HAVE_NFDS_T 1" >>confdefs.h
17407
17408
17409 fi
17410
17411 if test "x$backend" != xemscripten; then
17412 # pipe2 is detected as present on Emscripten, but it isn't actually ported and always
17413 # returns an error. https://github.com/emscripten-core/emscripten/issues/14824
17414 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
17415 if test "x$ac_cv_func_pipe2" = xyes
17416 then :
17417 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
17418
17419 fi
17420
17421 fi
17422 saved_CFLAGS="${CFLAGS}"
17423 CFLAGS="-Wall -Werror -pthread"
17424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC recognizes -pthread" >&5
17425 printf %s "checking if $CC recognizes -pthread... " >&6; }
17426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17427 /* end confdefs.h. */
17428
17429 int
17430 main (void)
17431 {
17432
17433 ;
17434 return 0;
17435 }
17436 _ACEOF
17437 if ac_fn_c_try_compile "$LINENO"
17438 then :
17439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17440 printf "%s\n" "yes" >&6; }
17441 THREAD_CFLAGS=-pthread
17442
17443 else $as_nop
17444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17445 printf "%s\n" "no" >&6; }
17446 fi
17447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17448 CFLAGS="${saved_CFLAGS}"
17449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
17450 printf %s "checking for library containing pthread_create... " >&6; }
17451 if test ${ac_cv_search_pthread_create+y}
17452 then :
17453 printf %s "(cached) " >&6
17454 else $as_nop
17455 ac_func_search_save_LIBS=$LIBS
17456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457 /* end confdefs.h. */
17458
17459 /* Override any GCC internal prototype to avoid an error.
17460 Use char because int might match the return type of a GCC
17461 builtin and then its argument prototype would still apply. */
17462 char pthread_create ();
17463 int
17464 main (void)
17465 {
17466 return pthread_create ();
17467 ;
17468 return 0;
17469 }
17470 _ACEOF
17471 for ac_lib in '' pthread
17472 do
17473 if test -z "$ac_lib"; then
17474 ac_res="none required"
17475 else
17476 ac_res=-l$ac_lib
17477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17478 fi
17479 if ac_fn_c_try_link "$LINENO"
17480 then :
17481 ac_cv_search_pthread_create=$ac_res
17482 fi
17483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17484 conftest$ac_exeext
17485 if test ${ac_cv_search_pthread_create+y}
17486 then :
17487 break
17488 fi
17489 done
17490 if test ${ac_cv_search_pthread_create+y}
17491 then :
17492
17493 else $as_nop
17494 ac_cv_search_pthread_create=no
17495 fi
17496 rm conftest.$ac_ext
17497 LIBS=$ac_func_search_save_LIBS
17498 fi
17499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
17500 printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
17501 ac_res=$ac_cv_search_pthread_create
17502 if test "$ac_res" != no
17503 then :
17504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17505 test "x$ac_cv_search_pthread_create" != "xnone required" && THREAD_LIBS=-lpthread
17506
17507 fi
17508
17509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __atomic_load_n is supported" >&5
17510 printf %s "checking whether __atomic_load_n is supported... " >&6; }
17511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17512 /* end confdefs.h. */
17513
17514 #include <stdint.h>
17515 int main() {
17516 struct {
17517 uint64_t *v;
17518 } x;
17519 return (int)__atomic_load_n(x.v, __ATOMIC_ACQUIRE) &
17520 (int)__atomic_add_fetch(x.v, (uint64_t)1, __ATOMIC_ACQ_REL);
17521 }
17522 _ACEOF
17523 if ac_fn_c_try_link "$LINENO"
17524 then :
17525 GCC_ATOMIC_BUILTINS_SUPPORTED=yes
17526 else $as_nop
17527 GCC_ATOMIC_BUILTINS_SUPPORTED=no
17528 fi
17529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17530 conftest$ac_exeext conftest.$ac_ext
17531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCC_ATOMIC_BUILTINS_SUPPORTED" >&5
17532 printf "%s\n" "$GCC_ATOMIC_BUILTINS_SUPPORTED" >&6; }
17533 if test "x$GCC_ATOMIC_BUILTINS_SUPPORTED" != xyes; then
17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __atomic_fetch_add_4" >&5
17535 printf %s "checking for library containing __atomic_fetch_add_4... " >&6; }
17536 if test ${ac_cv_search___atomic_fetch_add_4+y}
17537 then :
17538 printf %s "(cached) " >&6
17539 else $as_nop
17540 ac_func_search_save_LIBS=$LIBS
17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h. */
17543
17544 /* Override any GCC internal prototype to avoid an error.
17545 Use char because int might match the return type of a GCC
17546 builtin and then its argument prototype would still apply. */
17547 char __atomic_fetch_add_4 ();
17548 int
17549 main (void)
17550 {
17551 return __atomic_fetch_add_4 ();
17552 ;
17553 return 0;
17554 }
17555 _ACEOF
17556 for ac_lib in '' atomic
17557 do
17558 if test -z "$ac_lib"; then
17559 ac_res="none required"
17560 else
17561 ac_res=-l$ac_lib
17562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17563 fi
17564 if ac_fn_c_try_link "$LINENO"
17565 then :
17566 ac_cv_search___atomic_fetch_add_4=$ac_res
17567 fi
17568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17569 conftest$ac_exeext
17570 if test ${ac_cv_search___atomic_fetch_add_4+y}
17571 then :
17572 break
17573 fi
17574 done
17575 if test ${ac_cv_search___atomic_fetch_add_4+y}
17576 then :
17577
17578 else $as_nop
17579 ac_cv_search___atomic_fetch_add_4=no
17580 fi
17581 rm conftest.$ac_ext
17582 LIBS=$ac_func_search_save_LIBS
17583 fi
17584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___atomic_fetch_add_4" >&5
17585 printf "%s\n" "$ac_cv_search___atomic_fetch_add_4" >&6; }
17586 ac_res=$ac_cv_search___atomic_fetch_add_4
17587 if test "$ac_res" != no
17588 then :
17589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17590
17591 fi
17592
17593 fi
17594 elif test "x$platform" = xwindows; then
17595
17596 printf "%s\n" "#define PLATFORM_WINDOWS 1" >>confdefs.h
17597
17598 else
17599 as_fn_error $? "Unknown platform" "$LINENO" 5
17600 fi
17601
17602 case $backend in
17603 darwin)
17604 ac_fn_c_check_func "$LINENO" "pthread_threadid_np" "ac_cv_func_pthread_threadid_np"
17605 if test "x$ac_cv_func_pthread_threadid_np" = xyes
17606 then :
17607 printf "%s\n" "#define HAVE_PTHREAD_THREADID_NP 1" >>confdefs.h
17608
17609 fi
17610
17611 LIBS="${LIBS} -lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation -Wl,-framework,Security"
17612 ac_fn_c_check_header_compile "$LINENO" "IOKit/usb/IOUSBHostFamilyDefinitions.h" "ac_cv_header_IOKit_usb_IOUSBHostFamilyDefinitions_h" "$ac_includes_default"
17613 if test "x$ac_cv_header_IOKit_usb_IOUSBHostFamilyDefinitions_h" = xyes
17614 then :
17615 printf "%s\n" "#define HAVE_IOKIT_USB_IOUSBHOSTFAMILYDEFINITIONS_H 1" >>confdefs.h
17616
17617 fi
17618
17619 ;;
17620 haiku)
17621 LIBS="${LIBS} -lbe"
17622 ;;
17623 linux)
17624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17625 printf %s "checking for library containing clock_gettime... " >&6; }
17626 if test ${ac_cv_search_clock_gettime+y}
17627 then :
17628 printf %s "(cached) " >&6
17629 else $as_nop
17630 ac_func_search_save_LIBS=$LIBS
17631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h. */
17633
17634 /* Override any GCC internal prototype to avoid an error.
17635 Use char because int might match the return type of a GCC
17636 builtin and then its argument prototype would still apply. */
17637 char clock_gettime ();
17638 int
17639 main (void)
17640 {
17641 return clock_gettime ();
17642 ;
17643 return 0;
17644 }
17645 _ACEOF
17646 for ac_lib in '' rt
17647 do
17648 if test -z "$ac_lib"; then
17649 ac_res="none required"
17650 else
17651 ac_res=-l$ac_lib
17652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17653 fi
17654 if ac_fn_c_try_link "$LINENO"
17655 then :
17656 ac_cv_search_clock_gettime=$ac_res
17657 fi
17658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17659 conftest$ac_exeext
17660 if test ${ac_cv_search_clock_gettime+y}
17661 then :
17662 break
17663 fi
17664 done
17665 if test ${ac_cv_search_clock_gettime+y}
17666 then :
17667
17668 else $as_nop
17669 ac_cv_search_clock_gettime=no
17670 fi
17671 rm conftest.$ac_ext
17672 LIBS=$ac_func_search_save_LIBS
17673 fi
17674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17675 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
17676 ac_res=$ac_cv_search_clock_gettime
17677 if test "$ac_res" != no
17678 then :
17679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17680
17681 fi
17682
17683 ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np"
17684 if test "x$ac_cv_func_pthread_setname_np" = xyes
17685 then :
17686 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
17687
17688 fi
17689
17690 # Check whether --enable-udev was given.
17691 if test ${enable_udev+y}
17692 then :
17693 enableval=$enable_udev; use_udev=$enableval
17694 else $as_nop
17695 use_udev=yes
17696 fi
17697
17698 if test "x$use_udev" = xyes; then
17699 ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
17700 if test "x$ac_cv_header_libudev_h" = xyes
17701 then :
17702
17703 else $as_nop
17704 as_fn_error $? "udev support requested but libudev header not installed" "$LINENO" 5
17705 fi
17706
17707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev_new in -ludev" >&5
17708 printf %s "checking for udev_new in -ludev... " >&6; }
17709 if test ${ac_cv_lib_udev_udev_new+y}
17710 then :
17711 printf %s "(cached) " >&6
17712 else $as_nop
17713 ac_check_lib_save_LIBS=$LIBS
17714 LIBS="-ludev $LIBS"
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17717
17718 /* Override any GCC internal prototype to avoid an error.
17719 Use char because int might match the return type of a GCC
17720 builtin and then its argument prototype would still apply. */
17721 char udev_new ();
17722 int
17723 main (void)
17724 {
17725 return udev_new ();
17726 ;
17727 return 0;
17728 }
17729 _ACEOF
17730 if ac_fn_c_try_link "$LINENO"
17731 then :
17732 ac_cv_lib_udev_udev_new=yes
17733 else $as_nop
17734 ac_cv_lib_udev_udev_new=no
17735 fi
17736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17737 conftest$ac_exeext conftest.$ac_ext
17738 LIBS=$ac_check_lib_save_LIBS
17739 fi
17740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_new" >&5
17741 printf "%s\n" "$ac_cv_lib_udev_udev_new" >&6; }
17742 if test "x$ac_cv_lib_udev_udev_new" = xyes
17743 then :
17744 printf "%s\n" "#define HAVE_LIBUDEV 1" >>confdefs.h
17745
17746 LIBS="-ludev $LIBS"
17747
17748 else $as_nop
17749 as_fn_error $? "udev support requested but libudev not installed" "$LINENO" 5
17750 fi
17751
17752
17753 # We can build umockdev tests (if available)
17754
17755
17756
17757
17758
17759
17760
17761
17762 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17763 if test -n "$ac_tool_prefix"; then
17764 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17765 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17767 printf %s "checking for $ac_word... " >&6; }
17768 if test ${ac_cv_path_PKG_CONFIG+y}
17769 then :
17770 printf %s "(cached) " >&6
17771 else $as_nop
17772 case $PKG_CONFIG in
17773 [\\/]* | ?:[\\/]*)
17774 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17775 ;;
17776 *)
17777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17778 for as_dir in $PATH
17779 do
17780 IFS=$as_save_IFS
17781 case $as_dir in #(((
17782 '') as_dir=./ ;;
17783 */) ;;
17784 *) as_dir=$as_dir/ ;;
17785 esac
17786 for ac_exec_ext in '' $ac_executable_extensions; do
17787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17788 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17790 break 2
17791 fi
17792 done
17793 done
17794 IFS=$as_save_IFS
17795
17796 ;;
17797 esac
17798 fi
17799 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17800 if test -n "$PKG_CONFIG"; then
17801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17802 printf "%s\n" "$PKG_CONFIG" >&6; }
17803 else
17804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17805 printf "%s\n" "no" >&6; }
17806 fi
17807
17808
17809 fi
17810 if test -z "$ac_cv_path_PKG_CONFIG"; then
17811 ac_pt_PKG_CONFIG=$PKG_CONFIG
17812 # Extract the first word of "pkg-config", so it can be a program name with args.
17813 set dummy pkg-config; ac_word=$2
17814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17815 printf %s "checking for $ac_word... " >&6; }
17816 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
17817 then :
17818 printf %s "(cached) " >&6
17819 else $as_nop
17820 case $ac_pt_PKG_CONFIG in
17821 [\\/]* | ?:[\\/]*)
17822 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17823 ;;
17824 *)
17825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17826 for as_dir in $PATH
17827 do
17828 IFS=$as_save_IFS
17829 case $as_dir in #(((
17830 '') as_dir=./ ;;
17831 */) ;;
17832 *) as_dir=$as_dir/ ;;
17833 esac
17834 for ac_exec_ext in '' $ac_executable_extensions; do
17835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17836 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17838 break 2
17839 fi
17840 done
17841 done
17842 IFS=$as_save_IFS
17843
17844 ;;
17845 esac
17846 fi
17847 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17848 if test -n "$ac_pt_PKG_CONFIG"; then
17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17850 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
17851 else
17852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17853 printf "%s\n" "no" >&6; }
17854 fi
17855
17856 if test "x$ac_pt_PKG_CONFIG" = x; then
17857 PKG_CONFIG=""
17858 else
17859 case $cross_compiling:$ac_tool_warned in
17860 yes:)
17861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17862 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17863 ac_tool_warned=yes ;;
17864 esac
17865 PKG_CONFIG=$ac_pt_PKG_CONFIG
17866 fi
17867 else
17868 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17869 fi
17870
17871 fi
17872 if test -n "$PKG_CONFIG"; then
17873 _pkg_min_version=0.9.0
17874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17875 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17876 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17878 printf "%s\n" "yes" >&6; }
17879 else
17880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17881 printf "%s\n" "no" >&6; }
17882 PKG_CONFIG=""
17883 fi
17884 fi
17885
17886 pkg_failed=no
17887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umockdev-1.0 >= 0.16.0" >&5
17888 printf %s "checking for umockdev-1.0 >= 0.16.0... " >&6; }
17889
17890 if test -n "$UMOCKDEV_CFLAGS"; then
17891 pkg_cv_UMOCKDEV_CFLAGS="$UMOCKDEV_CFLAGS"
17892 elif test -n "$PKG_CONFIG"; then
17893 if test -n "$PKG_CONFIG" && \
17894 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"umockdev-1.0 >= 0.16.0\""; } >&5
17895 ($PKG_CONFIG --exists --print-errors "umockdev-1.0 >= 0.16.0") 2>&5
17896 ac_status=$?
17897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17898 test $ac_status = 0; }; then
17899 pkg_cv_UMOCKDEV_CFLAGS=`$PKG_CONFIG --cflags "umockdev-1.0 >= 0.16.0" 2>/dev/null`
17900 test "x$?" != "x0" && pkg_failed=yes
17901 else
17902 pkg_failed=yes
17903 fi
17904 else
17905 pkg_failed=untried
17906 fi
17907 if test -n "$UMOCKDEV_LIBS"; then
17908 pkg_cv_UMOCKDEV_LIBS="$UMOCKDEV_LIBS"
17909 elif test -n "$PKG_CONFIG"; then
17910 if test -n "$PKG_CONFIG" && \
17911 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"umockdev-1.0 >= 0.16.0\""; } >&5
17912 ($PKG_CONFIG --exists --print-errors "umockdev-1.0 >= 0.16.0") 2>&5
17913 ac_status=$?
17914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17915 test $ac_status = 0; }; then
17916 pkg_cv_UMOCKDEV_LIBS=`$PKG_CONFIG --libs "umockdev-1.0 >= 0.16.0" 2>/dev/null`
17917 test "x$?" != "x0" && pkg_failed=yes
17918 else
17919 pkg_failed=yes
17920 fi
17921 else
17922 pkg_failed=untried
17923 fi
17924
17925
17926
17927 if test $pkg_failed = yes; then
17928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17929 printf "%s\n" "no" >&6; }
17930
17931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17932 _pkg_short_errors_supported=yes
17933 else
17934 _pkg_short_errors_supported=no
17935 fi
17936 if test $_pkg_short_errors_supported = yes; then
17937 UMOCKDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "umockdev-1.0 >= 0.16.0" 2>&1`
17938 else
17939 UMOCKDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "umockdev-1.0 >= 0.16.0" 2>&1`
17940 fi
17941 # Put the nasty error message in config.log where it belongs
17942 echo "$UMOCKDEV_PKG_ERRORS" >&5
17943
17944 ac_have_umockdev=no
17945 elif test $pkg_failed = untried; then
17946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17947 printf "%s\n" "no" >&6; }
17948 ac_have_umockdev=no
17949 else
17950 UMOCKDEV_CFLAGS=$pkg_cv_UMOCKDEV_CFLAGS
17951 UMOCKDEV_LIBS=$pkg_cv_UMOCKDEV_LIBS
17952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17953 printf "%s\n" "yes" >&6; }
17954 ac_have_umockdev=yes
17955 fi
17956
17957 pkg_failed=no
17958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umockdev-1.0 >= 0.17.7" >&5
17959 printf %s "checking for umockdev-1.0 >= 0.17.7... " >&6; }
17960
17961 if test -n "$UMOCKDEV_HOTPLUG_CFLAGS"; then
17962 pkg_cv_UMOCKDEV_HOTPLUG_CFLAGS="$UMOCKDEV_HOTPLUG_CFLAGS"
17963 elif test -n "$PKG_CONFIG"; then
17964 if test -n "$PKG_CONFIG" && \
17965 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"umockdev-1.0 >= 0.17.7\""; } >&5
17966 ($PKG_CONFIG --exists --print-errors "umockdev-1.0 >= 0.17.7") 2>&5
17967 ac_status=$?
17968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17969 test $ac_status = 0; }; then
17970 pkg_cv_UMOCKDEV_HOTPLUG_CFLAGS=`$PKG_CONFIG --cflags "umockdev-1.0 >= 0.17.7" 2>/dev/null`
17971 test "x$?" != "x0" && pkg_failed=yes
17972 else
17973 pkg_failed=yes
17974 fi
17975 else
17976 pkg_failed=untried
17977 fi
17978 if test -n "$UMOCKDEV_HOTPLUG_LIBS"; then
17979 pkg_cv_UMOCKDEV_HOTPLUG_LIBS="$UMOCKDEV_HOTPLUG_LIBS"
17980 elif test -n "$PKG_CONFIG"; then
17981 if test -n "$PKG_CONFIG" && \
17982 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"umockdev-1.0 >= 0.17.7\""; } >&5
17983 ($PKG_CONFIG --exists --print-errors "umockdev-1.0 >= 0.17.7") 2>&5
17984 ac_status=$?
17985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17986 test $ac_status = 0; }; then
17987 pkg_cv_UMOCKDEV_HOTPLUG_LIBS=`$PKG_CONFIG --libs "umockdev-1.0 >= 0.17.7" 2>/dev/null`
17988 test "x$?" != "x0" && pkg_failed=yes
17989 else
17990 pkg_failed=yes
17991 fi
17992 else
17993 pkg_failed=untried
17994 fi
17995
17996
17997
17998 if test $pkg_failed = yes; then
17999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18000 printf "%s\n" "no" >&6; }
18001
18002 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18003 _pkg_short_errors_supported=yes
18004 else
18005 _pkg_short_errors_supported=no
18006 fi
18007 if test $_pkg_short_errors_supported = yes; then
18008 UMOCKDEV_HOTPLUG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "umockdev-1.0 >= 0.17.7" 2>&1`
18009 else
18010 UMOCKDEV_HOTPLUG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "umockdev-1.0 >= 0.17.7" 2>&1`
18011 fi
18012 # Put the nasty error message in config.log where it belongs
18013 echo "$UMOCKDEV_HOTPLUG_PKG_ERRORS" >&5
18014
18015 ac_umockdev_hotplug=no
18016 elif test $pkg_failed = untried; then
18017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18018 printf "%s\n" "no" >&6; }
18019 ac_umockdev_hotplug=no
18020 else
18021 UMOCKDEV_HOTPLUG_CFLAGS=$pkg_cv_UMOCKDEV_HOTPLUG_CFLAGS
18022 UMOCKDEV_HOTPLUG_LIBS=$pkg_cv_UMOCKDEV_HOTPLUG_LIBS
18023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18024 printf "%s\n" "yes" >&6; }
18025 ac_umockdev_hotplug=yes
18026 fi
18027 if test $ac_umockdev_hotplug = yes; then
18028
18029 printf "%s\n" "#define UMOCKDEV_HOTPLUG 1" >>confdefs.h
18030
18031 fi
18032
18033 else
18034 ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default"
18035 if test "x$ac_cv_header_asm_types_h" = xyes
18036 then :
18037 printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h
18038
18039 fi
18040
18041 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "$ac_includes_default"
18042 if test "x$ac_cv_header_linux_netlink_h" = xyes
18043 then :
18044
18045 else $as_nop
18046 as_fn_error $? "Linux netlink header not found" "$LINENO" 5
18047 fi
18048
18049 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
18050 if test "x$ac_cv_header_sys_socket_h" = xyes
18051 then :
18052
18053 else $as_nop
18054 as_fn_error $? "Linux socket header not found" "$LINENO" 5
18055 fi
18056
18057 fi
18058 ;;
18059 sunos)
18060 LIBS="${LIBS} -ldevinfo"
18061 ;;
18062 windows)
18063 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <time.h>
18064 "
18065 if test "x$ac_cv_type_struct_timespec" = xyes
18066 then :
18067
18068 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
18069
18070
18071 fi
18072
18073
18074 printf "%s\n" "#define _WIN32_WINNT _WIN32_WINNT_VISTA" >>confdefs.h
18075
18076 LT_LDFLAGS="${LT_LDFLAGS} -avoid-version"
18077 ;;
18078 emscripten)
18079 # Note: LT_LDFLAGS is not enough here because we need link flags for executable.
18080 EM_LDFLAGS="--bind -s ASYNCIFY"
18081 AM_LDFLAGS="${AM_LDFLAGS} ${EM_LDFLAGS} -s ASSERTIONS -s ALLOW_MEMORY_GROWTH"
18082 LIBS="${LIBS} ${EM_LDFLAGS}"
18083 ;;
18084 *)
18085 ;;
18086 esac
18087
18088 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
18089 if test "x$ac_cv_header_sys_time_h" = xyes
18090 then :
18091 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
18092
18093 fi
18094
18095
18096 if test "x$platform" = xposix && test "x$backend" != xdarwin; then
18097
18098 for ac_func in clock_gettime
18099 do :
18100 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
18101 if test "x$ac_cv_func_clock_gettime" = xyes
18102 then :
18103 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18104 have_clock_gettime=yes
18105 else $as_nop
18106 as_fn_error $? "clock_gettime() is required on this platform" "$LINENO" 5
18107 fi
18108
18109 done
18110
18111 if test "x$have_clock_gettime" = xyes; then
18112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
18113 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
18114 if test ${ac_cv_c_undeclared_builtin_options+y}
18115 then :
18116 printf %s "(cached) " >&6
18117 else $as_nop
18118 ac_save_CFLAGS=$CFLAGS
18119 ac_cv_c_undeclared_builtin_options='cannot detect'
18120 for ac_arg in '' -fno-builtin; do
18121 CFLAGS="$ac_save_CFLAGS $ac_arg"
18122 # This test program should *not* compile successfully.
18123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124 /* end confdefs.h. */
18125
18126 int
18127 main (void)
18128 {
18129 (void) strchr;
18130 ;
18131 return 0;
18132 }
18133 _ACEOF
18134 if ac_fn_c_try_compile "$LINENO"
18135 then :
18136
18137 else $as_nop
18138 # This test program should compile successfully.
18139 # No library function is consistently available on
18140 # freestanding implementations, so test against a dummy
18141 # declaration. Include always-available headers on the
18142 # off chance that they somehow elicit warnings.
18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h. */
18145 #include <float.h>
18146 #include <limits.h>
18147 #include <stdarg.h>
18148 #include <stddef.h>
18149 extern void ac_decl (int, char *);
18150
18151 int
18152 main (void)
18153 {
18154 (void) ac_decl (0, (char *) 0);
18155 (void) ac_decl;
18156
18157 ;
18158 return 0;
18159 }
18160 _ACEOF
18161 if ac_fn_c_try_compile "$LINENO"
18162 then :
18163 if test x"$ac_arg" = x
18164 then :
18165 ac_cv_c_undeclared_builtin_options='none needed'
18166 else $as_nop
18167 ac_cv_c_undeclared_builtin_options=$ac_arg
18168 fi
18169 break
18170 fi
18171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18172 fi
18173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18174 done
18175 CFLAGS=$ac_save_CFLAGS
18176
18177 fi
18178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
18179 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
18180 case $ac_cv_c_undeclared_builtin_options in #(
18181 'cannot detect') :
18182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18183 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18184 as_fn_error $? "cannot make $CC report undeclared builtins
18185 See \`config.log' for more details" "$LINENO" 5; } ;; #(
18186 'none needed') :
18187 ac_c_undeclared_builtin_options='' ;; #(
18188 *) :
18189 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
18190 esac
18191
18192 ac_fn_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h>
18193 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18194 if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes
18195 then :
18196
18197 else $as_nop
18198 as_fn_error $? "C library headers missing definition for CLOCK_MONOTONIC" "$LINENO" 5
18199 fi
18200
18201 for ac_func in pthread_condattr_setclock
18202 do :
18203 ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock"
18204 if test "x$ac_cv_func_pthread_condattr_setclock" = xyes
18205 then :
18206 printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
18207 need_clock_realtime=
18208 else $as_nop
18209 need_clock_realtime=yes
18210 fi
18211
18212 done
18213 if test "x$need_clock_realtime" = xyes; then
18214 ac_fn_check_decl "$LINENO" "CLOCK_REALTIME" "ac_cv_have_decl_CLOCK_REALTIME" "#include <time.h>
18215 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18216 if test "x$ac_cv_have_decl_CLOCK_REALTIME" = xyes
18217 then :
18218
18219 else $as_nop
18220 as_fn_error $? "C library headers missing definition for CLOCK_REALTIME" "$LINENO" 5
18221 fi
18222 fi
18223 fi
18224 fi
18225
18226 if test "x$backend" = xlinux || test "x$backend" = xsunos; then
18227 # Check whether --enable-eventfd was given.
18228 if test ${enable_eventfd+y}
18229 then :
18230 enableval=$enable_eventfd; use_eventfd=$enableval
18231 else $as_nop
18232 use_eventfd=auto
18233 fi
18234
18235 if test "x$use_eventfd" != xno; then
18236 ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
18237 if test "x$ac_cv_header_sys_eventfd_h" = xyes
18238 then :
18239 eventfd_h=yes
18240 else $as_nop
18241 eventfd_h=
18242 fi
18243
18244 if test "x$eventfd_h" = xyes; then
18245 ac_fn_check_decl "$LINENO" "EFD_NONBLOCK" "ac_cv_have_decl_EFD_NONBLOCK" "#include <sys/eventfd.h>
18246 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18247 if test "x$ac_cv_have_decl_EFD_NONBLOCK" = xyes
18248 then :
18249 ac_have_decl=1
18250 else $as_nop
18251 ac_have_decl=0
18252 fi
18253 printf "%s\n" "#define HAVE_DECL_EFD_NONBLOCK $ac_have_decl" >>confdefs.h
18254 if test $ac_have_decl = 1
18255 then :
18256 eventfd_h_ok=yes
18257 else $as_nop
18258 eventfd_h_ok=
18259 fi
18260 ac_fn_check_decl "$LINENO" "EFD_CLOEXEC" "ac_cv_have_decl_EFD_CLOEXEC" "#include <sys/eventfd.h>
18261 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18262 if test "x$ac_cv_have_decl_EFD_CLOEXEC" = xyes
18263 then :
18264 ac_have_decl=1
18265 else $as_nop
18266 ac_have_decl=0
18267 fi
18268 printf "%s\n" "#define HAVE_DECL_EFD_CLOEXEC $ac_have_decl" >>confdefs.h
18269 if test $ac_have_decl = 1
18270 then :
18271 eventfd_h_ok=yes
18272 else $as_nop
18273 eventfd_h_ok=
18274 fi
18275
18276 if test "x$eventfd_h_ok" = xyes; then
18277 ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd"
18278 if test "x$ac_cv_func_eventfd" = xyes
18279 then :
18280 eventfd_ok=yes
18281 else $as_nop
18282 eventfd_ok=
18283 fi
18284
18285 if test "x$eventfd_ok" = xyes; then
18286
18287 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
18288
18289 elif test "x$use_eventfd" = xyes; then
18290 as_fn_error $? "eventfd() function not found; glibc 2.9+ required" "$LINENO" 5
18291 fi
18292 elif test "x$use_eventfd" = xyes; then
18293 as_fn_error $? "eventfd header not usable; glibc 2.9+ required" "$LINENO" 5
18294 fi
18295 elif test "x$use_eventfd" = xyes; then
18296 as_fn_error $? "eventfd header not available; glibc 2.9+ required" "$LINENO" 5
18297 fi
18298 fi
18299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use eventfd for signalling" >&5
18300 printf %s "checking whether to use eventfd for signalling... " >&6; }
18301 if test "x$use_eventfd" = xno; then
18302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (disabled by user)" >&5
18303 printf "%s\n" "no (disabled by user)" >&6; }
18304 elif test "x$eventfd_h" != xyes; then
18305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (header not available)" >&5
18306 printf "%s\n" "no (header not available)" >&6; }
18307 elif test "x$eventfd_h_ok" != xyes; then
18308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (header not usable)" >&5
18309 printf "%s\n" "no (header not usable)" >&6; }
18310 elif test "x$eventfd_ok" != xyes; then
18311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (functions not available)" >&5
18312 printf "%s\n" "no (functions not available)" >&6; }
18313 else
18314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18315 printf "%s\n" "yes" >&6; }
18316 fi
18317 fi
18318
18319 if test "x$backend" = xlinux || test "x$backend" = xsunos; then
18320 # Check whether --enable-timerfd was given.
18321 if test ${enable_timerfd+y}
18322 then :
18323 enableval=$enable_timerfd; use_timerfd=$enableval
18324 else $as_nop
18325 use_timerfd=auto
18326 fi
18327
18328 if test "x$use_timerfd" != xno; then
18329 ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
18330 if test "x$ac_cv_header_sys_timerfd_h" = xyes
18331 then :
18332 timerfd_h=yes
18333 else $as_nop
18334 timerfd_h=
18335 fi
18336
18337 if test "x$timerfd_h" = xyes; then
18338 ac_fn_check_decl "$LINENO" "TFD_NONBLOCK" "ac_cv_have_decl_TFD_NONBLOCK" "#include <sys/timerfd.h>
18339 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18340 if test "x$ac_cv_have_decl_TFD_NONBLOCK" = xyes
18341 then :
18342 ac_have_decl=1
18343 else $as_nop
18344 ac_have_decl=0
18345 fi
18346 printf "%s\n" "#define HAVE_DECL_TFD_NONBLOCK $ac_have_decl" >>confdefs.h
18347 if test $ac_have_decl = 1
18348 then :
18349 timerfd_h_ok=yes
18350 else $as_nop
18351 timerfd_h_ok=
18352 fi
18353 ac_fn_check_decl "$LINENO" "TFD_CLOEXEC" "ac_cv_have_decl_TFD_CLOEXEC" "#include <sys/timerfd.h>
18354 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18355 if test "x$ac_cv_have_decl_TFD_CLOEXEC" = xyes
18356 then :
18357 ac_have_decl=1
18358 else $as_nop
18359 ac_have_decl=0
18360 fi
18361 printf "%s\n" "#define HAVE_DECL_TFD_CLOEXEC $ac_have_decl" >>confdefs.h
18362 if test $ac_have_decl = 1
18363 then :
18364 timerfd_h_ok=yes
18365 else $as_nop
18366 timerfd_h_ok=
18367 fi
18368
18369 if test "x$timerfd_h_ok" = xyes; then
18370 ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create"
18371 if test "x$ac_cv_func_timerfd_create" = xyes
18372 then :
18373 timerfd_ok=yes
18374 else $as_nop
18375 timerfd_ok=
18376 fi
18377
18378 if test "x$timerfd_ok" = xyes; then
18379
18380 printf "%s\n" "#define HAVE_TIMERFD 1" >>confdefs.h
18381
18382 elif test "x$use_timerfd" = xyes; then
18383 as_fn_error $? "timerfd_create() function not found; glibc 2.9+ required" "$LINENO" 5
18384 fi
18385 elif test "x$use_timerfd" = xyes; then
18386 as_fn_error $? "timerfd header not usable; glibc 2.9+ required" "$LINENO" 5
18387 fi
18388 elif test "x$use_timerfd" = xyes; then
18389 as_fn_error $? "timerfd header not available; glibc 2.9+ required" "$LINENO" 5
18390 fi
18391 fi
18392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use timerfd for timing" >&5
18393 printf %s "checking whether to use timerfd for timing... " >&6; }
18394 if test "x$use_timerfd" = xno; then
18395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (disabled by user)" >&5
18396 printf "%s\n" "no (disabled by user)" >&6; }
18397 elif test "x$timerfd_h" != xyes; then
18398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (header not available)" >&5
18399 printf "%s\n" "no (header not available)" >&6; }
18400 elif test "x$timerfd_h_ok" != xyes; then
18401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (header not usable)" >&5
18402 printf "%s\n" "no (header not usable)" >&6; }
18403 elif test "x$timerfd_ok" != xyes; then
18404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (functions not available)" >&5
18405 printf "%s\n" "no (functions not available)" >&6; }
18406 else
18407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18408 printf "%s\n" "yes" >&6; }
18409 fi
18410 fi
18411
18412 # Check whether --enable-log was given.
18413 if test ${enable_log+y}
18414 then :
18415 enableval=$enable_log; log_enabled=$enableval
18416 else $as_nop
18417 log_enabled=yes
18418 fi
18419
18420 if test "x$log_enabled" != xno; then
18421
18422 printf "%s\n" "#define ENABLE_LOGGING 1" >>confdefs.h
18423
18424 fi
18425
18426 # Check whether --enable-debug-log was given.
18427 if test ${enable_debug_log+y}
18428 then :
18429 enableval=$enable_debug_log; debug_log_enabled=$enableval
18430 else $as_nop
18431 debug_log_enabled=no
18432 fi
18433
18434 if test "x$debug_log_enabled" != xno; then
18435
18436 printf "%s\n" "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
18437
18438 fi
18439
18440 # Check whether --enable-system-log was given.
18441 if test ${enable_system_log+y}
18442 then :
18443 enableval=$enable_system_log; system_log_enabled=$enableval
18444 else $as_nop
18445 system_log_enabled=no
18446 fi
18447
18448 if test "x$system_log_enabled" != xno; then
18449
18450 printf "%s\n" "#define USE_SYSTEM_LOGGING_FACILITY 1" >>confdefs.h
18451
18452 if test "x$backend" != xwindows && test "x$is_android_linux" != xyes; then
18453 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
18454 if test "x$ac_cv_header_syslog_h" = xyes
18455 then :
18456 syslog_h=yes
18457 else $as_nop
18458 syslog_h=
18459 fi
18460
18461 if test "x$syslog_h" = xyes; then
18462 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
18463 if test "x$ac_cv_func_syslog" = xyes
18464 then :
18465 printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
18466
18467 fi
18468
18469 fi
18470 fi
18471 fi
18472
18473 # Check whether --enable-examples-build was given.
18474 if test ${enable_examples_build+y}
18475 then :
18476 enableval=$enable_examples_build; build_examples=$enableval
18477 else $as_nop
18478 build_examples=no
18479 fi
18480
18481
18482 # Check whether --enable-tests-build was given.
18483 if test ${enable_tests_build+y}
18484 then :
18485 enableval=$enable_tests_build; build_tests=$enableval
18486 else $as_nop
18487 build_tests=no
18488 fi
18489
18490
18491 if test "x$build_examples" != xno; then
18492 BUILD_EXAMPLES_TRUE=
18493 BUILD_EXAMPLES_FALSE='#'
18494 else
18495 BUILD_EXAMPLES_TRUE='#'
18496 BUILD_EXAMPLES_FALSE=
18497 fi
18498
18499 if test "x$build_tests" != xno; then
18500 BUILD_TESTS_TRUE=
18501 BUILD_TESTS_FALSE='#'
18502 else
18503 BUILD_TESTS_TRUE='#'
18504 BUILD_TESTS_FALSE=
18505 fi
18506
18507 if test "x$ac_have_umockdev" = xyes -a "x$log_enabled" != xno -a "x$debug_log_enabled" != xyes; then
18508 BUILD_UMOCKDEV_TEST_TRUE=
18509 BUILD_UMOCKDEV_TEST_FALSE='#'
18510 else
18511 BUILD_UMOCKDEV_TEST_TRUE='#'
18512 BUILD_UMOCKDEV_TEST_FALSE=
18513 fi
18514
18515 if test "x$create_import_lib" = xyes; then
18516 CREATE_IMPORT_LIB_TRUE=
18517 CREATE_IMPORT_LIB_FALSE='#'
18518 else
18519 CREATE_IMPORT_LIB_TRUE='#'
18520 CREATE_IMPORT_LIB_FALSE=
18521 fi
18522
18523 if test "x$backend" = xdarwin; then
18524 OS_DARWIN_TRUE=
18525 OS_DARWIN_FALSE='#'
18526 else
18527 OS_DARWIN_TRUE='#'
18528 OS_DARWIN_FALSE=
18529 fi
18530
18531 if test "x$backend" = xhaiku; then
18532 OS_HAIKU_TRUE=
18533 OS_HAIKU_FALSE='#'
18534 else
18535 OS_HAIKU_TRUE='#'
18536 OS_HAIKU_FALSE=
18537 fi
18538
18539 if test "x$backend" = xlinux; then
18540 OS_LINUX_TRUE=
18541 OS_LINUX_FALSE='#'
18542 else
18543 OS_LINUX_TRUE='#'
18544 OS_LINUX_FALSE=
18545 fi
18546
18547 if test "x$backend" = xnetbsd; then
18548 OS_NETBSD_TRUE=
18549 OS_NETBSD_FALSE='#'
18550 else
18551 OS_NETBSD_TRUE='#'
18552 OS_NETBSD_FALSE=
18553 fi
18554
18555 if test "x$backend" = xnull; then
18556 OS_NULL_TRUE=
18557 OS_NULL_FALSE='#'
18558 else
18559 OS_NULL_TRUE='#'
18560 OS_NULL_FALSE=
18561 fi
18562
18563 if test "x$backend" = xopenbsd; then
18564 OS_OPENBSD_TRUE=
18565 OS_OPENBSD_FALSE='#'
18566 else
18567 OS_OPENBSD_TRUE='#'
18568 OS_OPENBSD_FALSE=
18569 fi
18570
18571 if test "x$backend" = xsunos; then
18572 OS_SUNOS_TRUE=
18573 OS_SUNOS_FALSE='#'
18574 else
18575 OS_SUNOS_TRUE='#'
18576 OS_SUNOS_FALSE=
18577 fi
18578
18579 if test "x$backend" = xwindows; then
18580 OS_WINDOWS_TRUE=
18581 OS_WINDOWS_FALSE='#'
18582 else
18583 OS_WINDOWS_TRUE='#'
18584 OS_WINDOWS_FALSE=
18585 fi
18586
18587 if test "x$backend" = xemscripten; then
18588 OS_EMSCRIPTEN_TRUE=
18589 OS_EMSCRIPTEN_FALSE='#'
18590 else
18591 OS_EMSCRIPTEN_TRUE='#'
18592 OS_EMSCRIPTEN_FALSE=
18593 fi
18594
18595 if test "x$platform" = xposix; then
18596 PLATFORM_POSIX_TRUE=
18597 PLATFORM_POSIX_FALSE='#'
18598 else
18599 PLATFORM_POSIX_TRUE='#'
18600 PLATFORM_POSIX_FALSE=
18601 fi
18602
18603 if test "x$platform" = xwindows; then
18604 PLATFORM_WINDOWS_TRUE=
18605 PLATFORM_WINDOWS_FALSE='#'
18606 else
18607 PLATFORM_WINDOWS_TRUE='#'
18608 PLATFORM_WINDOWS_FALSE=
18609 fi
18610
18611 if test "x$use_udev" = xyes; then
18612 USE_UDEV_TRUE=
18613 USE_UDEV_FALSE='#'
18614 else
18615 USE_UDEV_TRUE='#'
18616 USE_UDEV_FALSE=
18617 fi
18618
18619 if test "x$enable_windows_hotplug" = xyes; then
18620 LIBUSB_WINDOWS_HOTPLUG_TRUE=
18621 LIBUSB_WINDOWS_HOTPLUG_FALSE='#'
18622 else
18623 LIBUSB_WINDOWS_HOTPLUG_TRUE='#'
18624 LIBUSB_WINDOWS_HOTPLUG_FALSE=
18625 fi
18626
18627
18628 if test "x$backend" = xwindows; then
18629 # Check whether --enable-windows-hotplug was given.
18630 if test ${enable_windows_hotplug+y}
18631 then :
18632 enableval=$enable_windows_hotplug; enable_windows_hotplug="$enableval"
18633 else $as_nop
18634 enable_windows_hotplug=no
18635 fi
18636
18637
18638 if test "x$enable_windows_hotplug" = "xyes"; then
18639
18640 printf "%s\n" "#define LIBUSB_WINDOWS_HOTPLUG 1" >>confdefs.h
18641
18642 fi
18643
18644 saved_CFLAGS="${CFLAGS}"
18645 CFLAGS="-Werror -Wcast-function-type"
18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18647 /* end confdefs.h. */
18648
18649 int
18650 main (void)
18651 {
18652
18653 ;
18654 return 0;
18655 }
18656 _ACEOF
18657 if ac_fn_c_try_compile "$LINENO"
18658 then :
18659 EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wno-cast-function-type"
18660 fi
18661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18662 CFLAGS="${saved_CFLAGS}"
18663 fi
18664
18665 if test "x$backend" = xwindows; then
18666 saved_CFLAGS="${CFLAGS}"
18667 CFLAGS="-Wl,--add-stdcall-alias"
18668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linker supports --add-stdcall-alias" >&5
18669 printf %s "checking if linker supports --add-stdcall-alias... " >&6; }
18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h. */
18672
18673 int
18674 main (void)
18675 {
18676
18677 ;
18678 return 0;
18679 }
18680 _ACEOF
18681 if ac_fn_c_try_link "$LINENO"
18682 then :
18683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18684 printf "%s\n" "yes" >&6; }
18685 LT_LDFLAGS="${LT_LDFLAGS} -Wl,--add-stdcall-alias"
18686 else $as_nop
18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 printf "%s\n" "no" >&6; }
18689 fi
18690 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18691 conftest$ac_exeext conftest.$ac_ext
18692 CFLAGS="${saved_CFLAGS}"
18693 fi
18694
18695 SHARED_CFLAGS="-Wall -Wextra -Wshadow -Wunused -Wwrite-strings -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Werror=init-self -Werror=missing-prototypes -Werror=strict-prototypes -Werror=undef -Werror=uninitialized"
18696
18697 AM_CPPFLAGS="${EXTRA_CPPFLAGS}"
18698
18699
18700 AM_CFLAGS="-std=${c_dialect}11 ${EXTRA_CFLAGS} ${SHARED_CFLAGS}"
18701
18702
18703 AM_CXXFLAGS="-std=${c_dialect}++11 ${EXTRA_CFLAGS} ${SHARED_CFLAGS} -Wmissing-declarations"
18704
18705
18706
18707
18708
18709
18710
18711 DOXYGEN_HTMLDIR=api-1.0
18712
18713
18714 ac_config_files="$ac_config_files libusb-1.0.pc"
18715
18716 ac_config_files="$ac_config_files Makefile"
18717
18718 ac_config_files="$ac_config_files libusb/Makefile"
18719
18720 ac_config_files="$ac_config_files examples/Makefile"
18721
18722 ac_config_files="$ac_config_files tests/Makefile"
18723
18724 ac_config_files="$ac_config_files doc/Makefile"
18725
18726 ac_config_files="$ac_config_files doc/doxygen.cfg"
18727
18728 cat >confcache <<\_ACEOF
18729 # This file is a shell script that caches the results of configure
18730 # tests run on this system so they can be shared between configure
18731 # scripts and configure runs, see configure's option --config-cache.
18732 # It is not useful on other systems. If it contains results you don't
18733 # want to keep, you may remove or edit it.
18734 #
18735 # config.status only pays attention to the cache file if you give it
18736 # the --recheck option to rerun configure.
18737 #
18738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18740 # following values.
18741
18742 _ACEOF
18743
18744 # The following way of writing the cache mishandles newlines in values,
18745 # but we know of no workaround that is simple, portable, and efficient.
18746 # So, we kill variables containing newlines.
18747 # Ultrix sh set writes to stderr and can't be redirected directly,
18748 # and sets the high bit in the cache file unless we assign to the vars.
18749 (
18750 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18751 eval ac_val=\$$ac_var
18752 case $ac_val in #(
18753 *${as_nl}*)
18754 case $ac_var in #(
18755 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18756 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18757 esac
18758 case $ac_var in #(
18759 _ | IFS | as_nl) ;; #(
18760 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18761 *) { eval $ac_var=; unset $ac_var;} ;;
18762 esac ;;
18763 esac
18764 done
18765
18766 (set) 2>&1 |
18767 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18768 *${as_nl}ac_space=\ *)
18769 # `set' does not quote correctly, so add quotes: double-quote
18770 # substitution turns \\\\ into \\, and sed turns \\ into \.
18771 sed -n \
18772 "s/'/'\\\\''/g;
18773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18774 ;; #(
18775 *)
18776 # `set' quotes correctly as required by POSIX, so do not add quotes.
18777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18778 ;;
18779 esac |
18780 sort
18781 ) |
18782 sed '
18783 /^ac_cv_env_/b end
18784 t clear
18785 :clear
18786 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18787 t end
18788 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18789 :end' >>confcache
18790 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18791 if test -w "$cache_file"; then
18792 if test "x$cache_file" != "x/dev/null"; then
18793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18794 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
18795 if test ! -f "$cache_file" || test -h "$cache_file"; then
18796 cat confcache >"$cache_file"
18797 else
18798 case $cache_file in #(
18799 */* | ?:*)
18800 mv -f confcache "$cache_file"$$ &&
18801 mv -f "$cache_file"$$ "$cache_file" ;; #(
18802 *)
18803 mv -f confcache "$cache_file" ;;
18804 esac
18805 fi
18806 fi
18807 else
18808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18809 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
18810 fi
18811 fi
18812 rm -f confcache
18813
18814 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18815 # Let make expand exec_prefix.
18816 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18817
18818 DEFS=-DHAVE_CONFIG_H
18819
18820 ac_libobjs=
18821 ac_ltlibobjs=
18822 U=
18823 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18824 # 1. Remove the extension, and $U if already installed.
18825 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18826 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
18827 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18828 # will be set to the directory where LIBOBJS objects are built.
18829 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18830 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18831 done
18832 LIBOBJS=$ac_libobjs
18833
18834 LTLIBOBJS=$ac_ltlibobjs
18835
18836
18837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18838 printf %s "checking that generated files are newer than configure... " >&6; }
18839 if test -n "$am_sleep_pid"; then
18840 # Hide warnings about reused PIDs.
18841 wait $am_sleep_pid 2>/dev/null
18842 fi
18843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
18844 printf "%s\n" "done" >&6; }
18845 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18846 as_fn_error $? "conditional \"AMDEP\" was never defined.
18847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18848 fi
18849 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18850 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18852 fi
18853 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18854 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18856 fi
18857 if test -n "$EXEEXT"; then
18858 am__EXEEXT_TRUE=
18859 am__EXEEXT_FALSE='#'
18860 else
18861 am__EXEEXT_TRUE='#'
18862 am__EXEEXT_FALSE=
18863 fi
18864
18865 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
18866 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
18867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18868 fi
18869 if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
18870 as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
18871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18872 fi
18873 if test -z "${BUILD_UMOCKDEV_TEST_TRUE}" && test -z "${BUILD_UMOCKDEV_TEST_FALSE}"; then
18874 as_fn_error $? "conditional \"BUILD_UMOCKDEV_TEST\" was never defined.
18875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18876 fi
18877 if test -z "${CREATE_IMPORT_LIB_TRUE}" && test -z "${CREATE_IMPORT_LIB_FALSE}"; then
18878 as_fn_error $? "conditional \"CREATE_IMPORT_LIB\" was never defined.
18879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18880 fi
18881 if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
18882 as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
18883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18884 fi
18885 if test -z "${OS_HAIKU_TRUE}" && test -z "${OS_HAIKU_FALSE}"; then
18886 as_fn_error $? "conditional \"OS_HAIKU\" was never defined.
18887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18888 fi
18889 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
18890 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
18891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18892 fi
18893 if test -z "${OS_NETBSD_TRUE}" && test -z "${OS_NETBSD_FALSE}"; then
18894 as_fn_error $? "conditional \"OS_NETBSD\" was never defined.
18895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18896 fi
18897 if test -z "${OS_NULL_TRUE}" && test -z "${OS_NULL_FALSE}"; then
18898 as_fn_error $? "conditional \"OS_NULL\" was never defined.
18899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18900 fi
18901 if test -z "${OS_OPENBSD_TRUE}" && test -z "${OS_OPENBSD_FALSE}"; then
18902 as_fn_error $? "conditional \"OS_OPENBSD\" was never defined.
18903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18904 fi
18905 if test -z "${OS_SUNOS_TRUE}" && test -z "${OS_SUNOS_FALSE}"; then
18906 as_fn_error $? "conditional \"OS_SUNOS\" was never defined.
18907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18908 fi
18909 if test -z "${OS_WINDOWS_TRUE}" && test -z "${OS_WINDOWS_FALSE}"; then
18910 as_fn_error $? "conditional \"OS_WINDOWS\" was never defined.
18911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18912 fi
18913 if test -z "${OS_EMSCRIPTEN_TRUE}" && test -z "${OS_EMSCRIPTEN_FALSE}"; then
18914 as_fn_error $? "conditional \"OS_EMSCRIPTEN\" was never defined.
18915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18916 fi
18917 if test -z "${PLATFORM_POSIX_TRUE}" && test -z "${PLATFORM_POSIX_FALSE}"; then
18918 as_fn_error $? "conditional \"PLATFORM_POSIX\" was never defined.
18919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18920 fi
18921 if test -z "${PLATFORM_WINDOWS_TRUE}" && test -z "${PLATFORM_WINDOWS_FALSE}"; then
18922 as_fn_error $? "conditional \"PLATFORM_WINDOWS\" was never defined.
18923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18924 fi
18925 if test -z "${USE_UDEV_TRUE}" && test -z "${USE_UDEV_FALSE}"; then
18926 as_fn_error $? "conditional \"USE_UDEV\" was never defined.
18927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18928 fi
18929 if test -z "${LIBUSB_WINDOWS_HOTPLUG_TRUE}" && test -z "${LIBUSB_WINDOWS_HOTPLUG_FALSE}"; then
18930 as_fn_error $? "conditional \"LIBUSB_WINDOWS_HOTPLUG\" was never defined.
18931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18932 fi
18933
18934 : "${CONFIG_STATUS=./config.status}"
18935 ac_write_fail=0
18936 ac_clean_files_save=$ac_clean_files
18937 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18939 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
18940 as_write_fail=0
18941 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18942 #! $SHELL
18943 # Generated by $as_me.
18944 # Run this file to recreate the current configuration.
18945 # Compiler output produced by configure, useful for debugging
18946 # configure, is in config.log if it exists.
18947
18948 debug=false
18949 ac_cs_recheck=false
18950 ac_cs_silent=false
18951
18952 SHELL=\${CONFIG_SHELL-$SHELL}
18953 export SHELL
18954 _ASEOF
18955 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18956 ## -------------------- ##
18957 ## M4sh Initialization. ##
18958 ## -------------------- ##
18959
18960 # Be more Bourne compatible
18961 DUALCASE=1; export DUALCASE # for MKS sh
18962 as_nop=:
18963 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18964 then :
18965 emulate sh
18966 NULLCMD=:
18967 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18968 # is contrary to our usage. Disable this feature.
18969 alias -g '${1+"$@"}'='"$@"'
18970 setopt NO_GLOB_SUBST
18971 else $as_nop
18972 case `(set -o) 2>/dev/null` in #(
18973 *posix*) :
18974 set -o posix ;; #(
18975 *) :
18976 ;;
18977 esac
18978 fi
18979
18980
18981
18982 # Reset variables that may have inherited troublesome values from
18983 # the environment.
18984
18985 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18986 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18987 # side effect of setting IFS to empty, thus disabling word splitting.)
18988 # Quoting is to prevent editors from complaining about space-tab.
18989 as_nl='
18990 '
18991 export as_nl
18992 IFS=" "" $as_nl"
18993
18994 PS1='$ '
18995 PS2='> '
18996 PS4='+ '
18997
18998 # Ensure predictable behavior from utilities with locale-dependent output.
18999 LC_ALL=C
19000 export LC_ALL
19001 LANGUAGE=C
19002 export LANGUAGE
19003
19004 # We cannot yet rely on "unset" to work, but we need these variables
19005 # to be unset--not just set to an empty or harmless value--now, to
19006 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19007 # also avoids known problems related to "unset" and subshell syntax
19008 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19009 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19010 do eval test \${$as_var+y} \
19011 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19012 done
19013
19014 # Ensure that fds 0, 1, and 2 are open.
19015 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19016 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19017 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19018
19019 # The user is always right.
19020 if ${PATH_SEPARATOR+false} :; then
19021 PATH_SEPARATOR=:
19022 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19023 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19024 PATH_SEPARATOR=';'
19025 }
19026 fi
19027
19028
19029 # Find who we are. Look in the path if we contain no directory separator.
19030 as_myself=
19031 case $0 in #((
19032 *[\\/]* ) as_myself=$0 ;;
19033 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19034 for as_dir in $PATH
19035 do
19036 IFS=$as_save_IFS
19037 case $as_dir in #(((
19038 '') as_dir=./ ;;
19039 */) ;;
19040 *) as_dir=$as_dir/ ;;
19041 esac
19042 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19043 done
19044 IFS=$as_save_IFS
19045
19046 ;;
19047 esac
19048 # We did not find ourselves, most probably we were run as `sh COMMAND'
19049 # in which case we are not to be found in the path.
19050 if test "x$as_myself" = x; then
19051 as_myself=$0
19052 fi
19053 if test ! -f "$as_myself"; then
19054 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19055 exit 1
19056 fi
19057
19058
19059
19060 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19061 # ----------------------------------------
19062 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19063 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19064 # script with STATUS, using 1 if that was 0.
19065 as_fn_error ()
19066 {
19067 as_status=$1; test $as_status -eq 0 && as_status=1
19068 if test "$4"; then
19069 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19071 fi
19072 printf "%s\n" "$as_me: error: $2" >&2
19073 as_fn_exit $as_status
19074 } # as_fn_error
19075
19076
19077
19078 # as_fn_set_status STATUS
19079 # -----------------------
19080 # Set $? to STATUS, without forking.
19081 as_fn_set_status ()
19082 {
19083 return $1
19084 } # as_fn_set_status
19085
19086 # as_fn_exit STATUS
19087 # -----------------
19088 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19089 as_fn_exit ()
19090 {
19091 set +e
19092 as_fn_set_status $1
19093 exit $1
19094 } # as_fn_exit
19095
19096 # as_fn_unset VAR
19097 # ---------------
19098 # Portably unset VAR.
19099 as_fn_unset ()
19100 {
19101 { eval $1=; unset $1;}
19102 }
19103 as_unset=as_fn_unset
19104
19105 # as_fn_append VAR VALUE
19106 # ----------------------
19107 # Append the text in VALUE to the end of the definition contained in VAR. Take
19108 # advantage of any shell optimizations that allow amortized linear growth over
19109 # repeated appends, instead of the typical quadratic growth present in naive
19110 # implementations.
19111 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19112 then :
19113 eval 'as_fn_append ()
19114 {
19115 eval $1+=\$2
19116 }'
19117 else $as_nop
19118 as_fn_append ()
19119 {
19120 eval $1=\$$1\$2
19121 }
19122 fi # as_fn_append
19123
19124 # as_fn_arith ARG...
19125 # ------------------
19126 # Perform arithmetic evaluation on the ARGs, and store the result in the
19127 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19128 # must be portable across $(()) and expr.
19129 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19130 then :
19131 eval 'as_fn_arith ()
19132 {
19133 as_val=$(( $* ))
19134 }'
19135 else $as_nop
19136 as_fn_arith ()
19137 {
19138 as_val=`expr "$@" || test $? -eq 1`
19139 }
19140 fi # as_fn_arith
19141
19142
19143 if expr a : '\(a\)' >/dev/null 2>&1 &&
19144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19145 as_expr=expr
19146 else
19147 as_expr=false
19148 fi
19149
19150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19151 as_basename=basename
19152 else
19153 as_basename=false
19154 fi
19155
19156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19157 as_dirname=dirname
19158 else
19159 as_dirname=false
19160 fi
19161
19162 as_me=`$as_basename -- "$0" ||
19163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19164 X"$0" : 'X\(//\)$' \| \
19165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19166 printf "%s\n" X/"$0" |
19167 sed '/^.*\/\([^/][^/]*\)\/*$/{
19168 s//\1/
19169 q
19170 }
19171 /^X\/\(\/\/\)$/{
19172 s//\1/
19173 q
19174 }
19175 /^X\/\(\/\).*/{
19176 s//\1/
19177 q
19178 }
19179 s/.*/./; q'`
19180
19181 # Avoid depending upon Character Ranges.
19182 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19183 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19184 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19185 as_cr_digits='0123456789'
19186 as_cr_alnum=$as_cr_Letters$as_cr_digits
19187
19188
19189 # Determine whether it's possible to make 'echo' print without a newline.
19190 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19191 # for compatibility with existing Makefiles.
19192 ECHO_C= ECHO_N= ECHO_T=
19193 case `echo -n x` in #(((((
19194 -n*)
19195 case `echo 'xy\c'` in
19196 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19197 xy) ECHO_C='\c';;
19198 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19199 ECHO_T=' ';;
19200 esac;;
19201 *)
19202 ECHO_N='-n';;
19203 esac
19204
19205 # For backward compatibility with old third-party macros, we provide
19206 # the shell variables $as_echo and $as_echo_n. New code should use
19207 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19208 as_echo='printf %s\n'
19209 as_echo_n='printf %s'
19210
19211 rm -f conf$$ conf$$.exe conf$$.file
19212 if test -d conf$$.dir; then
19213 rm -f conf$$.dir/conf$$.file
19214 else
19215 rm -f conf$$.dir
19216 mkdir conf$$.dir 2>/dev/null
19217 fi
19218 if (echo >conf$$.file) 2>/dev/null; then
19219 if ln -s conf$$.file conf$$ 2>/dev/null; then
19220 as_ln_s='ln -s'
19221 # ... but there are two gotchas:
19222 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19223 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19224 # In both cases, we have to default to `cp -pR'.
19225 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19226 as_ln_s='cp -pR'
19227 elif ln conf$$.file conf$$ 2>/dev/null; then
19228 as_ln_s=ln
19229 else
19230 as_ln_s='cp -pR'
19231 fi
19232 else
19233 as_ln_s='cp -pR'
19234 fi
19235 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19236 rmdir conf$$.dir 2>/dev/null
19237
19238
19239 # as_fn_mkdir_p
19240 # -------------
19241 # Create "$as_dir" as a directory, including parents if necessary.
19242 as_fn_mkdir_p ()
19243 {
19244
19245 case $as_dir in #(
19246 -*) as_dir=./$as_dir;;
19247 esac
19248 test -d "$as_dir" || eval $as_mkdir_p || {
19249 as_dirs=
19250 while :; do
19251 case $as_dir in #(
19252 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19253 *) as_qdir=$as_dir;;
19254 esac
19255 as_dirs="'$as_qdir' $as_dirs"
19256 as_dir=`$as_dirname -- "$as_dir" ||
19257 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19258 X"$as_dir" : 'X\(//\)[^/]' \| \
19259 X"$as_dir" : 'X\(//\)$' \| \
19260 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19261 printf "%s\n" X"$as_dir" |
19262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19263 s//\1/
19264 q
19265 }
19266 /^X\(\/\/\)[^/].*/{
19267 s//\1/
19268 q
19269 }
19270 /^X\(\/\/\)$/{
19271 s//\1/
19272 q
19273 }
19274 /^X\(\/\).*/{
19275 s//\1/
19276 q
19277 }
19278 s/.*/./; q'`
19279 test -d "$as_dir" && break
19280 done
19281 test -z "$as_dirs" || eval "mkdir $as_dirs"
19282 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19283
19284
19285 } # as_fn_mkdir_p
19286 if mkdir -p . 2>/dev/null; then
19287 as_mkdir_p='mkdir -p "$as_dir"'
19288 else
19289 test -d ./-p && rmdir ./-p
19290 as_mkdir_p=false
19291 fi
19292
19293
19294 # as_fn_executable_p FILE
19295 # -----------------------
19296 # Test if FILE is an executable regular file.
19297 as_fn_executable_p ()
19298 {
19299 test -f "$1" && test -x "$1"
19300 } # as_fn_executable_p
19301 as_test_x='test -x'
19302 as_executable_p=as_fn_executable_p
19303
19304 # Sed expression to map a string onto a valid CPP name.
19305 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19306
19307 # Sed expression to map a string onto a valid variable name.
19308 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19309
19310
19311 exec 6>&1
19312 ## ----------------------------------- ##
19313 ## Main body of $CONFIG_STATUS script. ##
19314 ## ----------------------------------- ##
19315 _ASEOF
19316 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19317
19318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19319 # Save the log message, to keep $0 and so on meaningful, and to
19320 # report actual input values of CONFIG_FILES etc. instead of their
19321 # values after options handling.
19322 ac_log="
19323 This file was extended by libusb-1.0 $as_me 1.0.30, which was
19324 generated by GNU Autoconf 2.71. Invocation command line was
19325
19326 CONFIG_FILES = $CONFIG_FILES
19327 CONFIG_HEADERS = $CONFIG_HEADERS
19328 CONFIG_LINKS = $CONFIG_LINKS
19329 CONFIG_COMMANDS = $CONFIG_COMMANDS
19330 $ $0 $@
19331
19332 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19333 "
19334
19335 _ACEOF
19336
19337 case $ac_config_files in *"
19338 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19339 esac
19340
19341 case $ac_config_headers in *"
19342 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19343 esac
19344
19345
19346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19347 # Files that config.status was made for.
19348 config_files="$ac_config_files"
19349 config_headers="$ac_config_headers"
19350 config_commands="$ac_config_commands"
19351
19352 _ACEOF
19353
19354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19355 ac_cs_usage="\
19356 \`$as_me' instantiates files and other configuration actions
19357 from templates according to the current configuration. Unless the files
19358 and actions are specified as TAGs, all are instantiated by default.
19359
19360 Usage: $0 [OPTION]... [TAG]...
19361
19362 -h, --help print this help, then exit
19363 -V, --version print version number and configuration settings, then exit
19364 --config print configuration, then exit
19365 -q, --quiet, --silent
19366 do not print progress messages
19367 -d, --debug don't remove temporary files
19368 --recheck update $as_me by reconfiguring in the same conditions
19369 --file=FILE[:TEMPLATE]
19370 instantiate the configuration file FILE
19371 --header=FILE[:TEMPLATE]
19372 instantiate the configuration header FILE
19373
19374 Configuration files:
19375 $config_files
19376
19377 Configuration headers:
19378 $config_headers
19379
19380 Configuration commands:
19381 $config_commands
19382
19383 Report bugs to <[email protected]>.
19384 libusb-1.0 home page: <https://libusb.info>."
19385
19386 _ACEOF
19387 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19388 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19390 ac_cs_config='$ac_cs_config_escaped'
19391 ac_cs_version="\\
19392 libusb-1.0 config.status 1.0.30
19393 configured by $0, generated by GNU Autoconf 2.71,
19394 with options \\"\$ac_cs_config\\"
19395
19396 Copyright (C) 2021 Free Software Foundation, Inc.
19397 This config.status script is free software; the Free Software Foundation
19398 gives unlimited permission to copy, distribute and modify it."
19399
19400 ac_pwd='$ac_pwd'
19401 srcdir='$srcdir'
19402 INSTALL='$INSTALL'
19403 MKDIR_P='$MKDIR_P'
19404 AWK='$AWK'
19405 test -n "\$AWK" || AWK=awk
19406 _ACEOF
19407
19408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19409 # The default lists apply if the user does not specify any file.
19410 ac_need_defaults=:
19411 while test $# != 0
19412 do
19413 case $1 in
19414 --*=?*)
19415 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19416 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19417 ac_shift=:
19418 ;;
19419 --*=)
19420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19421 ac_optarg=
19422 ac_shift=:
19423 ;;
19424 *)
19425 ac_option=$1
19426 ac_optarg=$2
19427 ac_shift=shift
19428 ;;
19429 esac
19430
19431 case $ac_option in
19432 # Handling of the options.
19433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19434 ac_cs_recheck=: ;;
19435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19436 printf "%s\n" "$ac_cs_version"; exit ;;
19437 --config | --confi | --conf | --con | --co | --c )
19438 printf "%s\n" "$ac_cs_config"; exit ;;
19439 --debug | --debu | --deb | --de | --d | -d )
19440 debug=: ;;
19441 --file | --fil | --fi | --f )
19442 $ac_shift
19443 case $ac_optarg in
19444 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19445 '') as_fn_error $? "missing file argument" ;;
19446 esac
19447 as_fn_append CONFIG_FILES " '$ac_optarg'"
19448 ac_need_defaults=false;;
19449 --header | --heade | --head | --hea )
19450 $ac_shift
19451 case $ac_optarg in
19452 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19453 esac
19454 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19455 ac_need_defaults=false;;
19456 --he | --h)
19457 # Conflict between --help and --header
19458 as_fn_error $? "ambiguous option: \`$1'
19459 Try \`$0 --help' for more information.";;
19460 --help | --hel | -h )
19461 printf "%s\n" "$ac_cs_usage"; exit ;;
19462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19463 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19464 ac_cs_silent=: ;;
19465
19466 # This is an error.
19467 -*) as_fn_error $? "unrecognized option: \`$1'
19468 Try \`$0 --help' for more information." ;;
19469
19470 *) as_fn_append ac_config_targets " $1"
19471 ac_need_defaults=false ;;
19472
19473 esac
19474 shift
19475 done
19476
19477 ac_configure_extra_args=
19478
19479 if $ac_cs_silent; then
19480 exec 6>/dev/null
19481 ac_configure_extra_args="$ac_configure_extra_args --silent"
19482 fi
19483
19484 _ACEOF
19485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19486 if \$ac_cs_recheck; then
19487 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19488 shift
19489 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19490 CONFIG_SHELL='$SHELL'
19491 export CONFIG_SHELL
19492 exec "\$@"
19493 fi
19494
19495 _ACEOF
19496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19497 exec 5>>config.log
19498 {
19499 echo
19500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19501 ## Running $as_me. ##
19502 _ASBOX
19503 printf "%s\n" "$ac_log"
19504 } >&5
19505
19506 _ACEOF
19507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19508 #
19509 # INIT-COMMANDS
19510 #
19511 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19512
19513
19514 # The HP-UX ksh and POSIX shell print the target directory to stdout
19515 # if CDPATH is set.
19516 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19517
19518 sed_quote_subst='$sed_quote_subst'
19519 double_quote_subst='$double_quote_subst'
19520 delay_variable_subst='$delay_variable_subst'
19521 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19522 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19523 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19524 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19525 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19526 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19527 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19528 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19529 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19530 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19531 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19532 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19533 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19534 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19535 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19536 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19537 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19538 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19539 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19540 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19541 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19542 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19543 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19544 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19545 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19546 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19547 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19548 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19549 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19550 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19551 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19552 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19553 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19554 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19555 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
19556 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19557 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19558 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19559 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19560 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19561 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19562 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19563 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19564 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
19565 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19566 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19567 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19568 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19569 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19570 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19571 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19572 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19573 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19574 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19575 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19576 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19577 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19578 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19579 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19580 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19581 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"`'
19582 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19583 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19584 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19585 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19586 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19587 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19588 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19589 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19590 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19591 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19592 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19593 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19594 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19595 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19596 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19597 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19598 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19599 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19600 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19601 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19602 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19603 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19604 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19605 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19606 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19607 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19608 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19609 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19610 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19611 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19612 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19613 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19614 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19615 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19616 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19617 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19618 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19619 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19620 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19621 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19622 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19623 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19624 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19625 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19626 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19627 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19628 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19629 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19630 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19631 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19632 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19633 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19634 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19635 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19636 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19637 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19638 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19639 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19640 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19641 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19642 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19643 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19644 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19645 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19646 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19647 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19648 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19649 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19650 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19651 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19652 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19653 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19654 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19655 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19656 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19657 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19658 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19659 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19660 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19661 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19662 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19663 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19664 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19665 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
19666 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19667 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
19668 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19669 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
19670 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19671 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19672 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19673 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
19674 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19675 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
19676 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19677 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
19678 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19679 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
19680 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19681 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
19682 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19683 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
19684 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19685 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
19686 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19687 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
19688 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19689 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
19690 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19691 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19692 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19693 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19694 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19695 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
19696 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19697 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
19698 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19699 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
19700 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19701 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19702 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19703 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
19704 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19705 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
19706 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19707 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
19708 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19709 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
19710 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19711 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
19712 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19713 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
19714 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19715 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19716 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19717 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
19718 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19719 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
19720 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19721 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
19722 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19723 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
19724 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19725 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
19726 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19727 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
19728 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19729 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
19730 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19731 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
19732 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19733 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
19734 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19735 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
19736 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19737 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
19738 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19739 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
19740 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19741 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
19742 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19743 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
19744 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19745 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
19746 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19747 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
19748 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19749 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
19750 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19751 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
19752 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19753 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
19754 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19755 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
19756 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19757 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
19758 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19759 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
19760
19761 LTCC='$LTCC'
19762 LTCFLAGS='$LTCFLAGS'
19763 compiler='$compiler_DEFAULT'
19764
19765 # A function that is used when there is no print builtin or printf.
19766 func_fallback_echo ()
19767 {
19768 eval 'cat <<_LTECHO_EOF
19769 \$1
19770 _LTECHO_EOF'
19771 }
19772
19773 # Quote evaled strings.
19774 for var in SHELL \
19775 ECHO \
19776 PATH_SEPARATOR \
19777 SED \
19778 GREP \
19779 EGREP \
19780 FGREP \
19781 LD \
19782 NM \
19783 LN_S \
19784 lt_SP2NL \
19785 lt_NL2SP \
19786 reload_flag \
19787 FILECMD \
19788 OBJDUMP \
19789 deplibs_check_method \
19790 file_magic_cmd \
19791 file_magic_glob \
19792 want_nocaseglob \
19793 DLLTOOL \
19794 sharedlib_from_linklib_cmd \
19795 AR \
19796 archiver_list_spec \
19797 STRIP \
19798 RANLIB \
19799 CC \
19800 CFLAGS \
19801 compiler \
19802 lt_cv_sys_global_symbol_pipe \
19803 lt_cv_sys_global_symbol_to_cdecl \
19804 lt_cv_sys_global_symbol_to_import \
19805 lt_cv_sys_global_symbol_to_c_name_address \
19806 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19807 lt_cv_nm_interface \
19808 nm_file_list_spec \
19809 lt_cv_truncate_bin \
19810 lt_prog_compiler_no_builtin_flag \
19811 lt_prog_compiler_pic \
19812 lt_prog_compiler_wl \
19813 lt_prog_compiler_static \
19814 lt_cv_prog_compiler_c_o \
19815 need_locks \
19816 MANIFEST_TOOL \
19817 DSYMUTIL \
19818 NMEDIT \
19819 LIPO \
19820 OTOOL \
19821 OTOOL64 \
19822 shrext_cmds \
19823 export_dynamic_flag_spec \
19824 whole_archive_flag_spec \
19825 compiler_needs_object \
19826 with_gnu_ld \
19827 allow_undefined_flag \
19828 no_undefined_flag \
19829 hardcode_libdir_flag_spec \
19830 hardcode_libdir_separator \
19831 exclude_expsyms \
19832 include_expsyms \
19833 file_list_spec \
19834 variables_saved_for_relink \
19835 libname_spec \
19836 library_names_spec \
19837 soname_spec \
19838 install_override_mode \
19839 finish_eval \
19840 old_striplib \
19841 striplib \
19842 compiler_lib_search_dirs \
19843 predep_objects \
19844 postdep_objects \
19845 predeps \
19846 postdeps \
19847 compiler_lib_search_path \
19848 LD_CXX \
19849 LD_RC \
19850 reload_flag_CXX \
19851 reload_flag_RC \
19852 compiler_CXX \
19853 compiler_RC \
19854 lt_prog_compiler_no_builtin_flag_CXX \
19855 lt_prog_compiler_no_builtin_flag_RC \
19856 lt_prog_compiler_pic_CXX \
19857 lt_prog_compiler_pic_RC \
19858 lt_prog_compiler_wl_CXX \
19859 lt_prog_compiler_wl_RC \
19860 lt_prog_compiler_static_CXX \
19861 lt_prog_compiler_static_RC \
19862 lt_cv_prog_compiler_c_o_CXX \
19863 lt_cv_prog_compiler_c_o_RC \
19864 export_dynamic_flag_spec_CXX \
19865 export_dynamic_flag_spec_RC \
19866 whole_archive_flag_spec_CXX \
19867 whole_archive_flag_spec_RC \
19868 compiler_needs_object_CXX \
19869 compiler_needs_object_RC \
19870 with_gnu_ld_CXX \
19871 with_gnu_ld_RC \
19872 allow_undefined_flag_CXX \
19873 allow_undefined_flag_RC \
19874 no_undefined_flag_CXX \
19875 no_undefined_flag_RC \
19876 hardcode_libdir_flag_spec_CXX \
19877 hardcode_libdir_flag_spec_RC \
19878 hardcode_libdir_separator_CXX \
19879 hardcode_libdir_separator_RC \
19880 exclude_expsyms_CXX \
19881 exclude_expsyms_RC \
19882 include_expsyms_CXX \
19883 include_expsyms_RC \
19884 file_list_spec_CXX \
19885 file_list_spec_RC \
19886 compiler_lib_search_dirs_CXX \
19887 compiler_lib_search_dirs_RC \
19888 predep_objects_CXX \
19889 predep_objects_RC \
19890 postdep_objects_CXX \
19891 postdep_objects_RC \
19892 predeps_CXX \
19893 predeps_RC \
19894 postdeps_CXX \
19895 postdeps_RC \
19896 compiler_lib_search_path_CXX \
19897 compiler_lib_search_path_RC; do
19898 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19899 *[\\\\\\\`\\"\\\$]*)
19900 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19901 ;;
19902 *)
19903 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19904 ;;
19905 esac
19906 done
19907
19908 # Double-quote double-evaled strings.
19909 for var in reload_cmds \
19910 old_postinstall_cmds \
19911 old_postuninstall_cmds \
19912 old_archive_cmds \
19913 extract_expsyms_cmds \
19914 old_archive_from_new_cmds \
19915 old_archive_from_expsyms_cmds \
19916 archive_cmds \
19917 archive_expsym_cmds \
19918 module_cmds \
19919 module_expsym_cmds \
19920 export_symbols_cmds \
19921 prelink_cmds \
19922 postlink_cmds \
19923 postinstall_cmds \
19924 postuninstall_cmds \
19925 finish_cmds \
19926 sys_lib_search_path_spec \
19927 configure_time_dlsearch_path \
19928 configure_time_lt_sys_library_path \
19929 reload_cmds_CXX \
19930 reload_cmds_RC \
19931 old_archive_cmds_CXX \
19932 old_archive_cmds_RC \
19933 old_archive_from_new_cmds_CXX \
19934 old_archive_from_new_cmds_RC \
19935 old_archive_from_expsyms_cmds_CXX \
19936 old_archive_from_expsyms_cmds_RC \
19937 archive_cmds_CXX \
19938 archive_cmds_RC \
19939 archive_expsym_cmds_CXX \
19940 archive_expsym_cmds_RC \
19941 module_cmds_CXX \
19942 module_cmds_RC \
19943 module_expsym_cmds_CXX \
19944 module_expsym_cmds_RC \
19945 export_symbols_cmds_CXX \
19946 export_symbols_cmds_RC \
19947 prelink_cmds_CXX \
19948 prelink_cmds_RC \
19949 postlink_cmds_CXX \
19950 postlink_cmds_RC; do
19951 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19952 *[\\\\\\\`\\"\\\$]*)
19953 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19954 ;;
19955 *)
19956 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19957 ;;
19958 esac
19959 done
19960
19961 ac_aux_dir='$ac_aux_dir'
19962
19963 # See if we are running on zsh, and set the options that allow our
19964 # commands through without removal of \ escapes INIT.
19965 if test -n "\${ZSH_VERSION+set}"; then
19966 setopt NO_GLOB_SUBST
19967 fi
19968
19969
19970 PACKAGE='$PACKAGE'
19971 VERSION='$VERSION'
19972 RM='$RM'
19973 ofile='$ofile'
19974
19975
19976
19977
19978
19979
19980
19981
19982 _ACEOF
19983
19984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19985
19986 # Handling of arguments.
19987 for ac_config_target in $ac_config_targets
19988 do
19989 case $ac_config_target in
19990 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19991 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19992 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19993 "libusb-1.0.pc") CONFIG_FILES="$CONFIG_FILES libusb-1.0.pc" ;;
19994 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19995 "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;;
19996 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19997 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19998 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19999 "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;;
20000
20001 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20002 esac
20003 done
20004
20005
20006 # If the user did not use the arguments to specify the items to instantiate,
20007 # then the envvar interface is used. Set only those that are not.
20008 # We use the long form for the default assignment because of an extremely
20009 # bizarre bug on SunOS 4.1.3.
20010 if $ac_need_defaults; then
20011 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20012 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20013 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20014 fi
20015
20016 # Have a temporary directory for convenience. Make it in the build tree
20017 # simply because there is no reason against having it here, and in addition,
20018 # creating and moving files from /tmp can sometimes cause problems.
20019 # Hook for its removal unless debugging.
20020 # Note that there is a small window in which the directory will not be cleaned:
20021 # after its creation but before its name has been assigned to `$tmp'.
20022 $debug ||
20023 {
20024 tmp= ac_tmp=
20025 trap 'exit_status=$?
20026 : "${ac_tmp:=$tmp}"
20027 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20028 ' 0
20029 trap 'as_fn_exit 1' 1 2 13 15
20030 }
20031 # Create a (secure) tmp directory for tmp files.
20032
20033 {
20034 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20035 test -d "$tmp"
20036 } ||
20037 {
20038 tmp=./conf$$-$RANDOM
20039 (umask 077 && mkdir "$tmp")
20040 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20041 ac_tmp=$tmp
20042
20043 # Set up the scripts for CONFIG_FILES section.
20044 # No need to generate them if there are no CONFIG_FILES.
20045 # This happens for instance with `./config.status config.h'.
20046 if test -n "$CONFIG_FILES"; then
20047
20048
20049 ac_cr=`echo X | tr X '\015'`
20050 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20051 # But we know of no other shell where ac_cr would be empty at this
20052 # point, so we can use a bashism as a fallback.
20053 if test "x$ac_cr" = x; then
20054 eval ac_cr=\$\'\\r\'
20055 fi
20056 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20057 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20058 ac_cs_awk_cr='\\r'
20059 else
20060 ac_cs_awk_cr=$ac_cr
20061 fi
20062
20063 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20064 _ACEOF
20065
20066
20067 {
20068 echo "cat >conf$$subs.awk <<_ACEOF" &&
20069 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20070 echo "_ACEOF"
20071 } >conf$$subs.sh ||
20072 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20073 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20074 ac_delim='%!_!# '
20075 for ac_last_try in false false false false false :; do
20076 . ./conf$$subs.sh ||
20077 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20078
20079 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20080 if test $ac_delim_n = $ac_delim_num; then
20081 break
20082 elif $ac_last_try; then
20083 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20084 else
20085 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20086 fi
20087 done
20088 rm -f conf$$subs.sh
20089
20090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20091 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20092 _ACEOF
20093 sed -n '
20094 h
20095 s/^/S["/; s/!.*/"]=/
20096 p
20097 g
20098 s/^[^!]*!//
20099 :repl
20100 t repl
20101 s/'"$ac_delim"'$//
20102 t delim
20103 :nl
20104 h
20105 s/\(.\{148\}\)..*/\1/
20106 t more1
20107 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20108 p
20109 n
20110 b repl
20111 :more1
20112 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20113 p
20114 g
20115 s/.\{148\}//
20116 t nl
20117 :delim
20118 h
20119 s/\(.\{148\}\)..*/\1/
20120 t more2
20121 s/["\\]/\\&/g; s/^/"/; s/$/"/
20122 p
20123 b
20124 :more2
20125 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20126 p
20127 g
20128 s/.\{148\}//
20129 t delim
20130 ' <conf$$subs.awk | sed '
20131 /^[^""]/{
20132 N
20133 s/\n//
20134 }
20135 ' >>$CONFIG_STATUS || ac_write_fail=1
20136 rm -f conf$$subs.awk
20137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20138 _ACAWK
20139 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20140 for (key in S) S_is_set[key] = 1
20141 FS = ""
20142
20143 }
20144 {
20145 line = $ 0
20146 nfields = split(line, field, "@")
20147 substed = 0
20148 len = length(field[1])
20149 for (i = 2; i < nfields; i++) {
20150 key = field[i]
20151 keylen = length(key)
20152 if (S_is_set[key]) {
20153 value = S[key]
20154 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20155 len += length(value) + length(field[++i])
20156 substed = 1
20157 } else
20158 len += 1 + keylen
20159 }
20160
20161 print line
20162 }
20163
20164 _ACAWK
20165 _ACEOF
20166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20167 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20168 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20169 else
20170 cat
20171 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20172 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20173 _ACEOF
20174
20175 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20176 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20177 # trailing colons and then remove the whole line if VPATH becomes empty
20178 # (actually we leave an empty line to preserve line numbers).
20179 if test "x$srcdir" = x.; then
20180 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20181 h
20182 s///
20183 s/^/:/
20184 s/[ ]*$/:/
20185 s/:\$(srcdir):/:/g
20186 s/:\${srcdir}:/:/g
20187 s/:@srcdir@:/:/g
20188 s/^:*//
20189 s/:*$//
20190 x
20191 s/\(=[ ]*\).*/\1/
20192 G
20193 s/\n//
20194 s/^[^=]*=[ ]*$//
20195 }'
20196 fi
20197
20198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20199 fi # test -n "$CONFIG_FILES"
20200
20201 # Set up the scripts for CONFIG_HEADERS section.
20202 # No need to generate them if there are no CONFIG_HEADERS.
20203 # This happens for instance with `./config.status Makefile'.
20204 if test -n "$CONFIG_HEADERS"; then
20205 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20206 BEGIN {
20207 _ACEOF
20208
20209 # Transform confdefs.h into an awk script `defines.awk', embedded as
20210 # here-document in config.status, that substitutes the proper values into
20211 # config.h.in to produce config.h.
20212
20213 # Create a delimiter string that does not exist in confdefs.h, to ease
20214 # handling of long lines.
20215 ac_delim='%!_!# '
20216 for ac_last_try in false false :; do
20217 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20218 if test -z "$ac_tt"; then
20219 break
20220 elif $ac_last_try; then
20221 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20222 else
20223 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20224 fi
20225 done
20226
20227 # For the awk script, D is an array of macro values keyed by name,
20228 # likewise P contains macro parameters if any. Preserve backslash
20229 # newline sequences.
20230
20231 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20232 sed -n '
20233 s/.\{148\}/&'"$ac_delim"'/g
20234 t rset
20235 :rset
20236 s/^[ ]*#[ ]*define[ ][ ]*/ /
20237 t def
20238 d
20239 :def
20240 s/\\$//
20241 t bsnl
20242 s/["\\]/\\&/g
20243 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20244 D["\1"]=" \3"/p
20245 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20246 d
20247 :bsnl
20248 s/["\\]/\\&/g
20249 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20250 D["\1"]=" \3\\\\\\n"\\/p
20251 t cont
20252 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20253 t cont
20254 d
20255 :cont
20256 n
20257 s/.\{148\}/&'"$ac_delim"'/g
20258 t clear
20259 :clear
20260 s/\\$//
20261 t bsnlc
20262 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20263 d
20264 :bsnlc
20265 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20266 b cont
20267 ' <confdefs.h | sed '
20268 s/'"$ac_delim"'/"\\\
20269 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20270
20271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20272 for (key in D) D_is_set[key] = 1
20273 FS = ""
20274 }
20275 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20276 line = \$ 0
20277 split(line, arg, " ")
20278 if (arg[1] == "#") {
20279 defundef = arg[2]
20280 mac1 = arg[3]
20281 } else {
20282 defundef = substr(arg[1], 2)
20283 mac1 = arg[2]
20284 }
20285 split(mac1, mac2, "(") #)
20286 macro = mac2[1]
20287 prefix = substr(line, 1, index(line, defundef) - 1)
20288 if (D_is_set[macro]) {
20289 # Preserve the white space surrounding the "#".
20290 print prefix "define", macro P[macro] D[macro]
20291 next
20292 } else {
20293 # Replace #undef with comments. This is necessary, for example,
20294 # in the case of _POSIX_SOURCE, which is predefined and required
20295 # on some systems where configure will not decide to define it.
20296 if (defundef == "undef") {
20297 print "/*", prefix defundef, macro, "*/"
20298 next
20299 }
20300 }
20301 }
20302 { print }
20303 _ACAWK
20304 _ACEOF
20305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20306 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20307 fi # test -n "$CONFIG_HEADERS"
20308
20309
20310 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20311 shift
20312 for ac_tag
20313 do
20314 case $ac_tag in
20315 :[FHLC]) ac_mode=$ac_tag; continue;;
20316 esac
20317 case $ac_mode$ac_tag in
20318 :[FHL]*:*);;
20319 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20320 :[FH]-) ac_tag=-:-;;
20321 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20322 esac
20323 ac_save_IFS=$IFS
20324 IFS=:
20325 set x $ac_tag
20326 IFS=$ac_save_IFS
20327 shift
20328 ac_file=$1
20329 shift
20330
20331 case $ac_mode in
20332 :L) ac_source=$1;;
20333 :[FH])
20334 ac_file_inputs=
20335 for ac_f
20336 do
20337 case $ac_f in
20338 -) ac_f="$ac_tmp/stdin";;
20339 *) # Look for the file first in the build tree, then in the source tree
20340 # (if the path is not absolute). The absolute path cannot be DOS-style,
20341 # because $ac_f cannot contain `:'.
20342 test -f "$ac_f" ||
20343 case $ac_f in
20344 [\\/$]*) false;;
20345 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20346 esac ||
20347 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20348 esac
20349 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20350 as_fn_append ac_file_inputs " '$ac_f'"
20351 done
20352
20353 # Let's still pretend it is `configure' which instantiates (i.e., don't
20354 # use $as_me), people would be surprised to read:
20355 # /* config.h. Generated by config.status. */
20356 configure_input='Generated from '`
20357 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20358 `' by configure.'
20359 if test x"$ac_file" != x-; then
20360 configure_input="$ac_file. $configure_input"
20361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20362 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20363 fi
20364 # Neutralize special characters interpreted by sed in replacement strings.
20365 case $configure_input in #(
20366 *\&* | *\|* | *\\* )
20367 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20368 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20369 *) ac_sed_conf_input=$configure_input;;
20370 esac
20371
20372 case $ac_tag in
20373 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20375 esac
20376 ;;
20377 esac
20378
20379 ac_dir=`$as_dirname -- "$ac_file" ||
20380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20381 X"$ac_file" : 'X\(//\)[^/]' \| \
20382 X"$ac_file" : 'X\(//\)$' \| \
20383 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20384 printf "%s\n" X"$ac_file" |
20385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20386 s//\1/
20387 q
20388 }
20389 /^X\(\/\/\)[^/].*/{
20390 s//\1/
20391 q
20392 }
20393 /^X\(\/\/\)$/{
20394 s//\1/
20395 q
20396 }
20397 /^X\(\/\).*/{
20398 s//\1/
20399 q
20400 }
20401 s/.*/./; q'`
20402 as_dir="$ac_dir"; as_fn_mkdir_p
20403 ac_builddir=.
20404
20405 case "$ac_dir" in
20406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20407 *)
20408 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20409 # A ".." for each directory in $ac_dir_suffix.
20410 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20411 case $ac_top_builddir_sub in
20412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20414 esac ;;
20415 esac
20416 ac_abs_top_builddir=$ac_pwd
20417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20418 # for backward compatibility:
20419 ac_top_builddir=$ac_top_build_prefix
20420
20421 case $srcdir in
20422 .) # We are building in place.
20423 ac_srcdir=.
20424 ac_top_srcdir=$ac_top_builddir_sub
20425 ac_abs_top_srcdir=$ac_pwd ;;
20426 [\\/]* | ?:[\\/]* ) # Absolute name.
20427 ac_srcdir=$srcdir$ac_dir_suffix;
20428 ac_top_srcdir=$srcdir
20429 ac_abs_top_srcdir=$srcdir ;;
20430 *) # Relative name.
20431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20432 ac_top_srcdir=$ac_top_build_prefix$srcdir
20433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20434 esac
20435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20436
20437
20438 case $ac_mode in
20439 :F)
20440 #
20441 # CONFIG_FILE
20442 #
20443
20444 case $INSTALL in
20445 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20446 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20447 esac
20448 ac_MKDIR_P=$MKDIR_P
20449 case $MKDIR_P in
20450 [\\/$]* | ?:[\\/]* ) ;;
20451 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20452 esac
20453 _ACEOF
20454
20455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20456 # If the template does not know about datarootdir, expand it.
20457 # FIXME: This hack should be removed a few years after 2.60.
20458 ac_datarootdir_hack=; ac_datarootdir_seen=
20459 ac_sed_dataroot='
20460 /datarootdir/ {
20461 p
20462 q
20463 }
20464 /@datadir@/p
20465 /@docdir@/p
20466 /@infodir@/p
20467 /@localedir@/p
20468 /@mandir@/p'
20469 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20470 *datarootdir*) ac_datarootdir_seen=yes;;
20471 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20473 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20474 _ACEOF
20475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20476 ac_datarootdir_hack='
20477 s&@datadir@&$datadir&g
20478 s&@docdir@&$docdir&g
20479 s&@infodir@&$infodir&g
20480 s&@localedir@&$localedir&g
20481 s&@mandir@&$mandir&g
20482 s&\\\${datarootdir}&$datarootdir&g' ;;
20483 esac
20484 _ACEOF
20485
20486 # Neutralize VPATH when `$srcdir' = `.'.
20487 # Shell code in configure.ac might set extrasub.
20488 # FIXME: do we really want to maintain this feature?
20489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20490 ac_sed_extra="$ac_vpsub
20491 $extrasub
20492 _ACEOF
20493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20494 :t
20495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20496 s|@configure_input@|$ac_sed_conf_input|;t t
20497 s&@top_builddir@&$ac_top_builddir_sub&;t t
20498 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20499 s&@srcdir@&$ac_srcdir&;t t
20500 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20501 s&@top_srcdir@&$ac_top_srcdir&;t t
20502 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20503 s&@builddir@&$ac_builddir&;t t
20504 s&@abs_builddir@&$ac_abs_builddir&;t t
20505 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20506 s&@INSTALL@&$ac_INSTALL&;t t
20507 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20508 $ac_datarootdir_hack
20509 "
20510 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20511 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20512
20513 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20514 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20515 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20516 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20518 which seems to be undefined. Please make sure it is defined" >&5
20519 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20520 which seems to be undefined. Please make sure it is defined" >&2;}
20521
20522 rm -f "$ac_tmp/stdin"
20523 case $ac_file in
20524 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20525 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20526 esac \
20527 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20528 ;;
20529 :H)
20530 #
20531 # CONFIG_HEADER
20532 #
20533 if test x"$ac_file" != x-; then
20534 {
20535 printf "%s\n" "/* $configure_input */" >&1 \
20536 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20537 } >"$ac_tmp/config.h" \
20538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20539 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20541 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20542 else
20543 rm -f "$ac_file"
20544 mv "$ac_tmp/config.h" "$ac_file" \
20545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20546 fi
20547 else
20548 printf "%s\n" "/* $configure_input */" >&1 \
20549 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20550 || as_fn_error $? "could not create -" "$LINENO" 5
20551 fi
20552 # Compute "$ac_file"'s index in $config_headers.
20553 _am_arg="$ac_file"
20554 _am_stamp_count=1
20555 for _am_header in $config_headers :; do
20556 case $_am_header in
20557 $_am_arg | $_am_arg:* )
20558 break ;;
20559 * )
20560 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20561 esac
20562 done
20563 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20564 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20565 X"$_am_arg" : 'X\(//\)[^/]' \| \
20566 X"$_am_arg" : 'X\(//\)$' \| \
20567 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20568 printf "%s\n" X"$_am_arg" |
20569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20570 s//\1/
20571 q
20572 }
20573 /^X\(\/\/\)[^/].*/{
20574 s//\1/
20575 q
20576 }
20577 /^X\(\/\/\)$/{
20578 s//\1/
20579 q
20580 }
20581 /^X\(\/\).*/{
20582 s//\1/
20583 q
20584 }
20585 s/.*/./; q'`/stamp-h$_am_stamp_count
20586 ;;
20587
20588 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20589 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20590 ;;
20591 esac
20592
20593
20594 case $ac_file$ac_mode in
20595 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20596 # Older Autoconf quotes --file arguments for eval, but not when files
20597 # are listed without --file. Let's play safe and only enable the eval
20598 # if we detect the quoting.
20599 # TODO: see whether this extra hack can be removed once we start
20600 # requiring Autoconf 2.70 or later.
20601 case $CONFIG_FILES in #(
20602 *\'*) :
20603 eval set x "$CONFIG_FILES" ;; #(
20604 *) :
20605 set x $CONFIG_FILES ;; #(
20606 *) :
20607 ;;
20608 esac
20609 shift
20610 # Used to flag and report bootstrapping failures.
20611 am_rc=0
20612 for am_mf
20613 do
20614 # Strip MF so we end up with the name of the file.
20615 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20616 # Check whether this is an Automake generated Makefile which includes
20617 # dependency-tracking related rules and includes.
20618 # Grep'ing the whole file directly is not great: AIX grep has a line
20619 # limit of 2048, but all sed's we know have understand at least 4000.
20620 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20621 || continue
20622 am_dirpart=`$as_dirname -- "$am_mf" ||
20623 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20624 X"$am_mf" : 'X\(//\)[^/]' \| \
20625 X"$am_mf" : 'X\(//\)$' \| \
20626 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20627 printf "%s\n" X"$am_mf" |
20628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20629 s//\1/
20630 q
20631 }
20632 /^X\(\/\/\)[^/].*/{
20633 s//\1/
20634 q
20635 }
20636 /^X\(\/\/\)$/{
20637 s//\1/
20638 q
20639 }
20640 /^X\(\/\).*/{
20641 s//\1/
20642 q
20643 }
20644 s/.*/./; q'`
20645 am_filepart=`$as_basename -- "$am_mf" ||
20646 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20647 X"$am_mf" : 'X\(//\)$' \| \
20648 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20649 printf "%s\n" X/"$am_mf" |
20650 sed '/^.*\/\([^/][^/]*\)\/*$/{
20651 s//\1/
20652 q
20653 }
20654 /^X\/\(\/\/\)$/{
20655 s//\1/
20656 q
20657 }
20658 /^X\/\(\/\).*/{
20659 s//\1/
20660 q
20661 }
20662 s/.*/./; q'`
20663 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20664 && sed -e '/# am--include-marker/d' "$am_filepart" \
20665 | $MAKE -f - am--depfiles" >&5
20666 (cd "$am_dirpart" \
20667 && sed -e '/# am--include-marker/d' "$am_filepart" \
20668 | $MAKE -f - am--depfiles) >&5 2>&5
20669 ac_status=$?
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } || am_rc=$?
20672 done
20673 if test $am_rc -ne 0; then
20674 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20675 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20676 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20677 for automatic dependency tracking. If GNU make was not used, consider
20678 re-running the configure script with MAKE=\"gmake\" (or whatever is
20679 necessary). You can also try re-running configure with the
20680 '--disable-dependency-tracking' option to at least be able to build
20681 the package (albeit without support for automatic dependency tracking).
20682 See \`config.log' for more details" "$LINENO" 5; }
20683 fi
20684 { am_dirpart=; unset am_dirpart;}
20685 { am_filepart=; unset am_filepart;}
20686 { am_mf=; unset am_mf;}
20687 { am_rc=; unset am_rc;}
20688 rm -f conftest-deps.mk
20689 }
20690 ;;
20691 "libtool":C)
20692
20693 # See if we are running on zsh, and set the options that allow our
20694 # commands through without removal of \ escapes.
20695 if test -n "${ZSH_VERSION+set}"; then
20696 setopt NO_GLOB_SUBST
20697 fi
20698
20699 cfgfile=${ofile}T
20700 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20701 $RM "$cfgfile"
20702
20703 cat <<_LT_EOF >> "$cfgfile"
20704 #! $SHELL
20705 # Generated automatically by $as_me ($PACKAGE) $VERSION
20706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20707
20708 # Provide generalized library-building support services.
20709 # Written by Gordon Matzigkeit, 1996
20710
20711 # Copyright (C) 2014 Free Software Foundation, Inc.
20712 # This is free software; see the source for copying conditions. There is NO
20713 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20714
20715 # GNU Libtool is free software; you can redistribute it and/or modify
20716 # it under the terms of the GNU General Public License as published by
20717 # the Free Software Foundation; either version 2 of of the License, or
20718 # (at your option) any later version.
20719 #
20720 # As a special exception to the GNU General Public License, if you
20721 # distribute this file as part of a program or library that is built
20722 # using GNU Libtool, you may include this file under the same
20723 # distribution terms that you use for the rest of that program.
20724 #
20725 # GNU Libtool is distributed in the hope that it will be useful, but
20726 # WITHOUT ANY WARRANTY; without even the implied warranty of
20727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20728 # GNU General Public License for more details.
20729 #
20730 # You should have received a copy of the GNU General Public License
20731 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20732
20733
20734 # The names of the tagged configurations supported by this script.
20735 available_tags='CXX RC '
20736
20737 # Configured defaults for sys_lib_dlsearch_path munging.
20738 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20739
20740 # ### BEGIN LIBTOOL CONFIG
20741
20742 # Which release of libtool.m4 was used?
20743 macro_version=$macro_version
20744 macro_revision=$macro_revision
20745
20746 # Whether or not to build shared libraries.
20747 build_libtool_libs=$enable_shared
20748
20749 # Whether or not to build static libraries.
20750 build_old_libs=$enable_static
20751
20752 # What type of objects to build.
20753 pic_mode=$pic_mode
20754
20755 # Whether or not to optimize for fast installation.
20756 fast_install=$enable_fast_install
20757
20758 # Shared archive member basename,for filename based shared library versioning on AIX.
20759 shared_archive_member_spec=$shared_archive_member_spec
20760
20761 # Shell to use when invoking shell scripts.
20762 SHELL=$lt_SHELL
20763
20764 # An echo program that protects backslashes.
20765 ECHO=$lt_ECHO
20766
20767 # The PATH separator for the build system.
20768 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20769
20770 # The host system.
20771 host_alias=$host_alias
20772 host=$host
20773 host_os=$host_os
20774
20775 # The build system.
20776 build_alias=$build_alias
20777 build=$build
20778 build_os=$build_os
20779
20780 # A sed program that does not truncate output.
20781 SED=$lt_SED
20782
20783 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20784 Xsed="\$SED -e 1s/^X//"
20785
20786 # A grep program that handles long lines.
20787 GREP=$lt_GREP
20788
20789 # An ERE matcher.
20790 EGREP=$lt_EGREP
20791
20792 # A literal string matcher.
20793 FGREP=$lt_FGREP
20794
20795 # A BSD- or MS-compatible name lister.
20796 NM=$lt_NM
20797
20798 # Whether we need soft or hard links.
20799 LN_S=$lt_LN_S
20800
20801 # What is the maximum length of a command?
20802 max_cmd_len=$max_cmd_len
20803
20804 # Object file suffix (normally "o").
20805 objext=$ac_objext
20806
20807 # Executable file suffix (normally "").
20808 exeext=$exeext
20809
20810 # whether the shell understands "unset".
20811 lt_unset=$lt_unset
20812
20813 # turn spaces into newlines.
20814 SP2NL=$lt_lt_SP2NL
20815
20816 # turn newlines into spaces.
20817 NL2SP=$lt_lt_NL2SP
20818
20819 # convert \$build file names to \$host format.
20820 to_host_file_cmd=$lt_cv_to_host_file_cmd
20821
20822 # convert \$build files to toolchain format.
20823 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20824
20825 # A file(cmd) program that detects file types.
20826 FILECMD=$lt_FILECMD
20827
20828 # An object symbol dumper.
20829 OBJDUMP=$lt_OBJDUMP
20830
20831 # Method to check whether dependent libraries are shared objects.
20832 deplibs_check_method=$lt_deplibs_check_method
20833
20834 # Command to use when deplibs_check_method = "file_magic".
20835 file_magic_cmd=$lt_file_magic_cmd
20836
20837 # How to find potential files when deplibs_check_method = "file_magic".
20838 file_magic_glob=$lt_file_magic_glob
20839
20840 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20841 want_nocaseglob=$lt_want_nocaseglob
20842
20843 # DLL creation program.
20844 DLLTOOL=$lt_DLLTOOL
20845
20846 # Command to associate shared and link libraries.
20847 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20848
20849 # The archiver.
20850 AR=$lt_AR
20851
20852 # Flags to create an archive (by configure).
20853 lt_ar_flags=$lt_ar_flags
20854
20855 # Flags to create an archive.
20856 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
20857
20858 # How to feed a file listing to the archiver.
20859 archiver_list_spec=$lt_archiver_list_spec
20860
20861 # A symbol stripping program.
20862 STRIP=$lt_STRIP
20863
20864 # Commands used to install an old-style archive.
20865 RANLIB=$lt_RANLIB
20866 old_postinstall_cmds=$lt_old_postinstall_cmds
20867 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20868
20869 # Whether to use a lock for old archive extraction.
20870 lock_old_archive_extraction=$lock_old_archive_extraction
20871
20872 # A C compiler.
20873 LTCC=$lt_CC
20874
20875 # LTCC compiler flags.
20876 LTCFLAGS=$lt_CFLAGS
20877
20878 # Take the output of nm and produce a listing of raw symbols and C names.
20879 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20880
20881 # Transform the output of nm in a proper C declaration.
20882 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20883
20884 # Transform the output of nm into a list of symbols to manually relocate.
20885 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20886
20887 # Transform the output of nm in a C name address pair.
20888 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20889
20890 # Transform the output of nm in a C name address pair when lib prefix is needed.
20891 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20892
20893 # The name lister interface.
20894 nm_interface=$lt_lt_cv_nm_interface
20895
20896 # Specify filename containing input files for \$NM.
20897 nm_file_list_spec=$lt_nm_file_list_spec
20898
20899 # The root where to search for dependent libraries,and where our libraries should be installed.
20900 lt_sysroot=$lt_sysroot
20901
20902 # Command to truncate a binary pipe.
20903 lt_truncate_bin=$lt_lt_cv_truncate_bin
20904
20905 # The name of the directory that contains temporary libtool files.
20906 objdir=$objdir
20907
20908 # Used to examine libraries when file_magic_cmd begins with "file".
20909 MAGIC_CMD=$MAGIC_CMD
20910
20911 # Must we lock files when doing compilation?
20912 need_locks=$lt_need_locks
20913
20914 # Manifest tool.
20915 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20916
20917 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20918 DSYMUTIL=$lt_DSYMUTIL
20919
20920 # Tool to change global to local symbols on Mac OS X.
20921 NMEDIT=$lt_NMEDIT
20922
20923 # Tool to manipulate fat objects and archives on Mac OS X.
20924 LIPO=$lt_LIPO
20925
20926 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20927 OTOOL=$lt_OTOOL
20928
20929 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20930 OTOOL64=$lt_OTOOL64
20931
20932 # Old archive suffix (normally "a").
20933 libext=$libext
20934
20935 # Shared library suffix (normally ".so").
20936 shrext_cmds=$lt_shrext_cmds
20937
20938 # The commands to extract the exported symbol list from a shared archive.
20939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20940
20941 # Variables whose values should be saved in libtool wrapper scripts and
20942 # restored at link time.
20943 variables_saved_for_relink=$lt_variables_saved_for_relink
20944
20945 # Do we need the "lib" prefix for modules?
20946 need_lib_prefix=$need_lib_prefix
20947
20948 # Do we need a version for libraries?
20949 need_version=$need_version
20950
20951 # Library versioning type.
20952 version_type=$version_type
20953
20954 # Shared library runtime path variable.
20955 runpath_var=$runpath_var
20956
20957 # Shared library path variable.
20958 shlibpath_var=$shlibpath_var
20959
20960 # Is shlibpath searched before the hard-coded library search path?
20961 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20962
20963 # Format of library name prefix.
20964 libname_spec=$lt_libname_spec
20965
20966 # List of archive names. First name is the real one, the rest are links.
20967 # The last name is the one that the linker finds with -lNAME
20968 library_names_spec=$lt_library_names_spec
20969
20970 # The coded name of the library, if different from the real name.
20971 soname_spec=$lt_soname_spec
20972
20973 # Permission mode override for installation of shared libraries.
20974 install_override_mode=$lt_install_override_mode
20975
20976 # Command to use after installation of a shared archive.
20977 postinstall_cmds=$lt_postinstall_cmds
20978
20979 # Command to use after uninstallation of a shared archive.
20980 postuninstall_cmds=$lt_postuninstall_cmds
20981
20982 # Commands used to finish a libtool library installation in a directory.
20983 finish_cmds=$lt_finish_cmds
20984
20985 # As "finish_cmds", except a single script fragment to be evaled but
20986 # not shown.
20987 finish_eval=$lt_finish_eval
20988
20989 # Whether we should hardcode library paths into libraries.
20990 hardcode_into_libs=$hardcode_into_libs
20991
20992 # Compile-time system search path for libraries.
20993 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20994
20995 # Detected run-time system search path for libraries.
20996 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20997
20998 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20999 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21000
21001 # Whether dlopen is supported.
21002 dlopen_support=$enable_dlopen
21003
21004 # Whether dlopen of programs is supported.
21005 dlopen_self=$enable_dlopen_self
21006
21007 # Whether dlopen of statically linked programs is supported.
21008 dlopen_self_static=$enable_dlopen_self_static
21009
21010 # Commands to strip libraries.
21011 old_striplib=$lt_old_striplib
21012 striplib=$lt_striplib
21013
21014
21015 # The linker used to build libraries.
21016 LD=$lt_LD
21017
21018 # How to create reloadable object files.
21019 reload_flag=$lt_reload_flag
21020 reload_cmds=$lt_reload_cmds
21021
21022 # Commands used to build an old-style archive.
21023 old_archive_cmds=$lt_old_archive_cmds
21024
21025 # A language specific compiler.
21026 CC=$lt_compiler
21027
21028 # Is the compiler the GNU compiler?
21029 with_gcc=$GCC
21030
21031 # Compiler flag to turn off builtin functions.
21032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21033
21034 # Additional compiler flags for building library objects.
21035 pic_flag=$lt_lt_prog_compiler_pic
21036
21037 # How to pass a linker flag through the compiler.
21038 wl=$lt_lt_prog_compiler_wl
21039
21040 # Compiler flag to prevent dynamic linking.
21041 link_static_flag=$lt_lt_prog_compiler_static
21042
21043 # Does compiler simultaneously support -c and -o options?
21044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21045
21046 # Whether or not to add -lc for building shared libraries.
21047 build_libtool_need_lc=$archive_cmds_need_lc
21048
21049 # Whether or not to disallow shared libs when runtime libs are static.
21050 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21051
21052 # Compiler flag to allow reflexive dlopens.
21053 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21054
21055 # Compiler flag to generate shared objects directly from archives.
21056 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21057
21058 # Whether the compiler copes with passing no objects directly.
21059 compiler_needs_object=$lt_compiler_needs_object
21060
21061 # Create an old-style archive from a shared archive.
21062 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21063
21064 # Create a temporary old-style archive to link instead of a shared archive.
21065 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21066
21067 # Commands used to build a shared archive.
21068 archive_cmds=$lt_archive_cmds
21069 archive_expsym_cmds=$lt_archive_expsym_cmds
21070
21071 # Commands used to build a loadable module if different from building
21072 # a shared archive.
21073 module_cmds=$lt_module_cmds
21074 module_expsym_cmds=$lt_module_expsym_cmds
21075
21076 # Whether we are building with GNU ld or not.
21077 with_gnu_ld=$lt_with_gnu_ld
21078
21079 # Flag that allows shared libraries with undefined symbols to be built.
21080 allow_undefined_flag=$lt_allow_undefined_flag
21081
21082 # Flag that enforces no undefined symbols.
21083 no_undefined_flag=$lt_no_undefined_flag
21084
21085 # Flag to hardcode \$libdir into a binary during linking.
21086 # This must work even if \$libdir does not exist
21087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21088
21089 # Whether we need a single "-rpath" flag with a separated argument.
21090 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21091
21092 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21093 # DIR into the resulting binary.
21094 hardcode_direct=$hardcode_direct
21095
21096 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21097 # DIR into the resulting binary and the resulting library dependency is
21098 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21099 # library is relocated.
21100 hardcode_direct_absolute=$hardcode_direct_absolute
21101
21102 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21103 # into the resulting binary.
21104 hardcode_minus_L=$hardcode_minus_L
21105
21106 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21107 # into the resulting binary.
21108 hardcode_shlibpath_var=$hardcode_shlibpath_var
21109
21110 # Set to "yes" if building a shared library automatically hardcodes DIR
21111 # into the library and all subsequent libraries and executables linked
21112 # against it.
21113 hardcode_automatic=$hardcode_automatic
21114
21115 # Set to yes if linker adds runtime paths of dependent libraries
21116 # to runtime path list.
21117 inherit_rpath=$inherit_rpath
21118
21119 # Whether libtool must link a program against all its dependency libraries.
21120 link_all_deplibs=$link_all_deplibs
21121
21122 # Set to "yes" if exported symbols are required.
21123 always_export_symbols=$always_export_symbols
21124
21125 # The commands to list exported symbols.
21126 export_symbols_cmds=$lt_export_symbols_cmds
21127
21128 # Symbols that should not be listed in the preloaded symbols.
21129 exclude_expsyms=$lt_exclude_expsyms
21130
21131 # Symbols that must always be exported.
21132 include_expsyms=$lt_include_expsyms
21133
21134 # Commands necessary for linking programs (against libraries) with templates.
21135 prelink_cmds=$lt_prelink_cmds
21136
21137 # Commands necessary for finishing linking programs.
21138 postlink_cmds=$lt_postlink_cmds
21139
21140 # Specify filename containing input files.
21141 file_list_spec=$lt_file_list_spec
21142
21143 # How to hardcode a shared library path into an executable.
21144 hardcode_action=$hardcode_action
21145
21146 # The directories searched by this compiler when creating a shared library.
21147 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21148
21149 # Dependencies to place before and after the objects being linked to
21150 # create a shared library.
21151 predep_objects=$lt_predep_objects
21152 postdep_objects=$lt_postdep_objects
21153 predeps=$lt_predeps
21154 postdeps=$lt_postdeps
21155
21156 # The library search path used internally by the compiler when linking
21157 # a shared library.
21158 compiler_lib_search_path=$lt_compiler_lib_search_path
21159
21160 # ### END LIBTOOL CONFIG
21161
21162 _LT_EOF
21163
21164 cat <<'_LT_EOF' >> "$cfgfile"
21165
21166 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21167
21168 # func_munge_path_list VARIABLE PATH
21169 # -----------------------------------
21170 # VARIABLE is name of variable containing _space_ separated list of
21171 # directories to be munged by the contents of PATH, which is string
21172 # having a format:
21173 # "DIR[:DIR]:"
21174 # string "DIR[ DIR]" will be prepended to VARIABLE
21175 # ":DIR[:DIR]"
21176 # string "DIR[ DIR]" will be appended to VARIABLE
21177 # "DIRP[:DIRP]::[DIRA:]DIRA"
21178 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21179 # "DIRA[ DIRA]" will be appended to VARIABLE
21180 # "DIR[:DIR]"
21181 # VARIABLE will be replaced by "DIR[ DIR]"
21182 func_munge_path_list ()
21183 {
21184 case x$2 in
21185 x)
21186 ;;
21187 *:)
21188 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21189 ;;
21190 x:*)
21191 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21192 ;;
21193 *::*)
21194 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21195 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21196 ;;
21197 *)
21198 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21199 ;;
21200 esac
21201 }
21202
21203
21204 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21205 func_cc_basename ()
21206 {
21207 for cc_temp in $*""; do
21208 case $cc_temp in
21209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21211 \-*) ;;
21212 *) break;;
21213 esac
21214 done
21215 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21216 }
21217
21218
21219 # ### END FUNCTIONS SHARED WITH CONFIGURE
21220
21221 _LT_EOF
21222
21223 case $host_os in
21224 aix3*)
21225 cat <<\_LT_EOF >> "$cfgfile"
21226 # AIX sometimes has problems with the GCC collect2 program. For some
21227 # reason, if we set the COLLECT_NAMES environment variable, the problems
21228 # vanish in a puff of smoke.
21229 if test set != "${COLLECT_NAMES+set}"; then
21230 COLLECT_NAMES=
21231 export COLLECT_NAMES
21232 fi
21233 _LT_EOF
21234 ;;
21235 esac
21236
21237
21238
21239 ltmain=$ac_aux_dir/ltmain.sh
21240
21241
21242 # We use sed instead of cat because bash on DJGPP gets confused if
21243 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21244 # text mode, it properly converts lines to CR/LF. This bash problem
21245 # is reportedly fixed, but why not run on old versions too?
21246 $SED '$q' "$ltmain" >> "$cfgfile" \
21247 || (rm -f "$cfgfile"; exit 1)
21248
21249 mv -f "$cfgfile" "$ofile" ||
21250 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21251 chmod +x "$ofile"
21252
21253
21254 cat <<_LT_EOF >> "$ofile"
21255
21256 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21257
21258 # The linker used to build libraries.
21259 LD=$lt_LD_CXX
21260
21261 # How to create reloadable object files.
21262 reload_flag=$lt_reload_flag_CXX
21263 reload_cmds=$lt_reload_cmds_CXX
21264
21265 # Commands used to build an old-style archive.
21266 old_archive_cmds=$lt_old_archive_cmds_CXX
21267
21268 # A language specific compiler.
21269 CC=$lt_compiler_CXX
21270
21271 # Is the compiler the GNU compiler?
21272 with_gcc=$GCC_CXX
21273
21274 # Compiler flag to turn off builtin functions.
21275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21276
21277 # Additional compiler flags for building library objects.
21278 pic_flag=$lt_lt_prog_compiler_pic_CXX
21279
21280 # How to pass a linker flag through the compiler.
21281 wl=$lt_lt_prog_compiler_wl_CXX
21282
21283 # Compiler flag to prevent dynamic linking.
21284 link_static_flag=$lt_lt_prog_compiler_static_CXX
21285
21286 # Does compiler simultaneously support -c and -o options?
21287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21288
21289 # Whether or not to add -lc for building shared libraries.
21290 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21291
21292 # Whether or not to disallow shared libs when runtime libs are static.
21293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21294
21295 # Compiler flag to allow reflexive dlopens.
21296 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21297
21298 # Compiler flag to generate shared objects directly from archives.
21299 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21300
21301 # Whether the compiler copes with passing no objects directly.
21302 compiler_needs_object=$lt_compiler_needs_object_CXX
21303
21304 # Create an old-style archive from a shared archive.
21305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21306
21307 # Create a temporary old-style archive to link instead of a shared archive.
21308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21309
21310 # Commands used to build a shared archive.
21311 archive_cmds=$lt_archive_cmds_CXX
21312 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21313
21314 # Commands used to build a loadable module if different from building
21315 # a shared archive.
21316 module_cmds=$lt_module_cmds_CXX
21317 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21318
21319 # Whether we are building with GNU ld or not.
21320 with_gnu_ld=$lt_with_gnu_ld_CXX
21321
21322 # Flag that allows shared libraries with undefined symbols to be built.
21323 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21324
21325 # Flag that enforces no undefined symbols.
21326 no_undefined_flag=$lt_no_undefined_flag_CXX
21327
21328 # Flag to hardcode \$libdir into a binary during linking.
21329 # This must work even if \$libdir does not exist
21330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21331
21332 # Whether we need a single "-rpath" flag with a separated argument.
21333 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21334
21335 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21336 # DIR into the resulting binary.
21337 hardcode_direct=$hardcode_direct_CXX
21338
21339 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21340 # DIR into the resulting binary and the resulting library dependency is
21341 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21342 # library is relocated.
21343 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21344
21345 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21346 # into the resulting binary.
21347 hardcode_minus_L=$hardcode_minus_L_CXX
21348
21349 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21350 # into the resulting binary.
21351 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21352
21353 # Set to "yes" if building a shared library automatically hardcodes DIR
21354 # into the library and all subsequent libraries and executables linked
21355 # against it.
21356 hardcode_automatic=$hardcode_automatic_CXX
21357
21358 # Set to yes if linker adds runtime paths of dependent libraries
21359 # to runtime path list.
21360 inherit_rpath=$inherit_rpath_CXX
21361
21362 # Whether libtool must link a program against all its dependency libraries.
21363 link_all_deplibs=$link_all_deplibs_CXX
21364
21365 # Set to "yes" if exported symbols are required.
21366 always_export_symbols=$always_export_symbols_CXX
21367
21368 # The commands to list exported symbols.
21369 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21370
21371 # Symbols that should not be listed in the preloaded symbols.
21372 exclude_expsyms=$lt_exclude_expsyms_CXX
21373
21374 # Symbols that must always be exported.
21375 include_expsyms=$lt_include_expsyms_CXX
21376
21377 # Commands necessary for linking programs (against libraries) with templates.
21378 prelink_cmds=$lt_prelink_cmds_CXX
21379
21380 # Commands necessary for finishing linking programs.
21381 postlink_cmds=$lt_postlink_cmds_CXX
21382
21383 # Specify filename containing input files.
21384 file_list_spec=$lt_file_list_spec_CXX
21385
21386 # How to hardcode a shared library path into an executable.
21387 hardcode_action=$hardcode_action_CXX
21388
21389 # The directories searched by this compiler when creating a shared library.
21390 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21391
21392 # Dependencies to place before and after the objects being linked to
21393 # create a shared library.
21394 predep_objects=$lt_predep_objects_CXX
21395 postdep_objects=$lt_postdep_objects_CXX
21396 predeps=$lt_predeps_CXX
21397 postdeps=$lt_postdeps_CXX
21398
21399 # The library search path used internally by the compiler when linking
21400 # a shared library.
21401 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21402
21403 # ### END LIBTOOL TAG CONFIG: CXX
21404 _LT_EOF
21405
21406
21407 cat <<_LT_EOF >> "$ofile"
21408
21409 # ### BEGIN LIBTOOL TAG CONFIG: RC
21410
21411 # The linker used to build libraries.
21412 LD=$lt_LD_RC
21413
21414 # How to create reloadable object files.
21415 reload_flag=$lt_reload_flag_RC
21416 reload_cmds=$lt_reload_cmds_RC
21417
21418 # Commands used to build an old-style archive.
21419 old_archive_cmds=$lt_old_archive_cmds_RC
21420
21421 # A language specific compiler.
21422 CC=$lt_compiler_RC
21423
21424 # Is the compiler the GNU compiler?
21425 with_gcc=$GCC_RC
21426
21427 # Compiler flag to turn off builtin functions.
21428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21429
21430 # Additional compiler flags for building library objects.
21431 pic_flag=$lt_lt_prog_compiler_pic_RC
21432
21433 # How to pass a linker flag through the compiler.
21434 wl=$lt_lt_prog_compiler_wl_RC
21435
21436 # Compiler flag to prevent dynamic linking.
21437 link_static_flag=$lt_lt_prog_compiler_static_RC
21438
21439 # Does compiler simultaneously support -c and -o options?
21440 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21441
21442 # Whether or not to add -lc for building shared libraries.
21443 build_libtool_need_lc=$archive_cmds_need_lc_RC
21444
21445 # Whether or not to disallow shared libs when runtime libs are static.
21446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21447
21448 # Compiler flag to allow reflexive dlopens.
21449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21450
21451 # Compiler flag to generate shared objects directly from archives.
21452 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21453
21454 # Whether the compiler copes with passing no objects directly.
21455 compiler_needs_object=$lt_compiler_needs_object_RC
21456
21457 # Create an old-style archive from a shared archive.
21458 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21459
21460 # Create a temporary old-style archive to link instead of a shared archive.
21461 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21462
21463 # Commands used to build a shared archive.
21464 archive_cmds=$lt_archive_cmds_RC
21465 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21466
21467 # Commands used to build a loadable module if different from building
21468 # a shared archive.
21469 module_cmds=$lt_module_cmds_RC
21470 module_expsym_cmds=$lt_module_expsym_cmds_RC
21471
21472 # Whether we are building with GNU ld or not.
21473 with_gnu_ld=$lt_with_gnu_ld_RC
21474
21475 # Flag that allows shared libraries with undefined symbols to be built.
21476 allow_undefined_flag=$lt_allow_undefined_flag_RC
21477
21478 # Flag that enforces no undefined symbols.
21479 no_undefined_flag=$lt_no_undefined_flag_RC
21480
21481 # Flag to hardcode \$libdir into a binary during linking.
21482 # This must work even if \$libdir does not exist
21483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21484
21485 # Whether we need a single "-rpath" flag with a separated argument.
21486 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21487
21488 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21489 # DIR into the resulting binary.
21490 hardcode_direct=$hardcode_direct_RC
21491
21492 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21493 # DIR into the resulting binary and the resulting library dependency is
21494 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21495 # library is relocated.
21496 hardcode_direct_absolute=$hardcode_direct_absolute_RC
21497
21498 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21499 # into the resulting binary.
21500 hardcode_minus_L=$hardcode_minus_L_RC
21501
21502 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21503 # into the resulting binary.
21504 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21505
21506 # Set to "yes" if building a shared library automatically hardcodes DIR
21507 # into the library and all subsequent libraries and executables linked
21508 # against it.
21509 hardcode_automatic=$hardcode_automatic_RC
21510
21511 # Set to yes if linker adds runtime paths of dependent libraries
21512 # to runtime path list.
21513 inherit_rpath=$inherit_rpath_RC
21514
21515 # Whether libtool must link a program against all its dependency libraries.
21516 link_all_deplibs=$link_all_deplibs_RC
21517
21518 # Set to "yes" if exported symbols are required.
21519 always_export_symbols=$always_export_symbols_RC
21520
21521 # The commands to list exported symbols.
21522 export_symbols_cmds=$lt_export_symbols_cmds_RC
21523
21524 # Symbols that should not be listed in the preloaded symbols.
21525 exclude_expsyms=$lt_exclude_expsyms_RC
21526
21527 # Symbols that must always be exported.
21528 include_expsyms=$lt_include_expsyms_RC
21529
21530 # Commands necessary for linking programs (against libraries) with templates.
21531 prelink_cmds=$lt_prelink_cmds_RC
21532
21533 # Commands necessary for finishing linking programs.
21534 postlink_cmds=$lt_postlink_cmds_RC
21535
21536 # Specify filename containing input files.
21537 file_list_spec=$lt_file_list_spec_RC
21538
21539 # How to hardcode a shared library path into an executable.
21540 hardcode_action=$hardcode_action_RC
21541
21542 # The directories searched by this compiler when creating a shared library.
21543 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21544
21545 # Dependencies to place before and after the objects being linked to
21546 # create a shared library.
21547 predep_objects=$lt_predep_objects_RC
21548 postdep_objects=$lt_postdep_objects_RC
21549 predeps=$lt_predeps_RC
21550 postdeps=$lt_postdeps_RC
21551
21552 # The library search path used internally by the compiler when linking
21553 # a shared library.
21554 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21555
21556 # ### END LIBTOOL TAG CONFIG: RC
21557 _LT_EOF
21558
21559 ;;
21560
21561 esac
21562 done # for ac_tag
21563
21564
21565 as_fn_exit 0
21566 _ACEOF
21567 ac_clean_files=$ac_clean_files_save
21568
21569 test $ac_write_fail = 0 ||
21570 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21571
21572
21573 # configure is writing to config.log, and then calls config.status.
21574 # config.status does its own redirection, appending to config.log.
21575 # Unfortunately, on DOS this fails, as config.log is still kept open
21576 # by configure, so config.status won't be able to write to it; its
21577 # output is simply discarded. So we exec the FD to /dev/null,
21578 # effectively closing config.log, so it can be properly (re)opened and
21579 # appended to by config.status. When coming back to configure, we
21580 # need to make the FD available again.
21581 if test "$no_create" != yes; then
21582 ac_cs_success=:
21583 ac_config_status_args=
21584 test "$silent" = yes &&
21585 ac_config_status_args="$ac_config_status_args --quiet"
21586 exec 5>/dev/null
21587 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21588 exec 5>>config.log
21589 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21590 # would make configure fail if this is the last instruction.
21591 $ac_cs_success || as_fn_exit 1
21592 fi
21593 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21595 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21596 fi
21597
21598