Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for Finit 4.14.
4 #
5 # Report bugs to <https://github.com/troglobit/finit/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: https://github.com/troglobit/finit/issues about your
280 $0: system, 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='Finit'
623 PACKAGE_TARNAME='finit'
624 PACKAGE_VERSION='4.14'
625 PACKAGE_STRING='Finit 4.14'
626 PACKAGE_BUGREPORT='https://github.com/troglobit/finit/issues'
627 PACKAGE_URL='https://troglobit.com/projects/finit/'
628
629 ac_unique_file="src/finit.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 BASH_DIR
667 system_path
668 finit_tmpfiles
669 tmpfiles_path
670 plugin_path
671 pkglibexecdir
672 TESTSERV_FALSE
673 TESTSERV_TRUE
674 CONTRIB_FALSE
675 CONTRIB_TRUE
676 DOC_FALSE
677 DOC_TRUE
678 LIBSYSTEMD_FALSE
679 LIBSYSTEMD_TRUE
680 WATCHDOGD_FALSE
681 WATCHDOGD_TRUE
682 SULOGIN_FALSE
683 SULOGIN_TRUE
684 KEVENTD_FALSE
685 KEVENTD_TRUE
686 STATIC_FALSE
687 STATIC_TRUE
688 BASH_FALSE
689 BASH_TRUE
690 FINIT_RCSD
691 FINIT_CONF
692 BASH_COMPLETION_LIBS
693 BASH_COMPLETION_CFLAGS
694 LOGROTATE_FALSE
695 LOGROTATE_TRUE
696 BUILD_TESTSERV_PLUGIN_FALSE
697 BUILD_TESTSERV_PLUGIN_TRUE
698 BUILD_URANDOM_PLUGIN_FALSE
699 BUILD_URANDOM_PLUGIN_TRUE
700 BUILD_TTY_PLUGIN_FALSE
701 BUILD_TTY_PLUGIN_TRUE
702 BUILD_RTC_PLUGIN_FALSE
703 BUILD_RTC_PLUGIN_TRUE
704 BUILD_HOTPLUG_PLUGIN_FALSE
705 BUILD_HOTPLUG_PLUGIN_TRUE
706 BUILD_HOOK_SCRIPTS_PLUGIN_FALSE
707 BUILD_HOOK_SCRIPTS_PLUGIN_TRUE
708 BUILD_NETLINK_PLUGIN_FALSE
709 BUILD_NETLINK_PLUGIN_TRUE
710 BUILD_X11_COMMON_PLUGIN_FALSE
711 BUILD_X11_COMMON_PLUGIN_TRUE
712 BUILD_RESOLVCONF_PLUGIN_FALSE
713 BUILD_RESOLVCONF_PLUGIN_TRUE
714 BUILD_MODPROBE_PLUGIN_FALSE
715 BUILD_MODPROBE_PLUGIN_TRUE
716 BUILD_MODULES_LOAD_PLUGIN_FALSE
717 BUILD_MODULES_LOAD_PLUGIN_TRUE
718 BUILD_DBUS_PLUGIN_FALSE
719 BUILD_DBUS_PLUGIN_TRUE
720 BUILD_ALSA_UTILS_PLUGIN_FALSE
721 BUILD_ALSA_UTILS_PLUGIN_TRUE
722 lite_LIBS
723 lite_CFLAGS
724 uev_LIBS
725 uev_CFLAGS
726 PKG_CONFIG_LIBDIR
727 PKG_CONFIG_PATH
728 PKG_CONFIG
729 LT_SYS_LIBRARY_PATH
730 OTOOL64
731 OTOOL
732 LIPO
733 NMEDIT
734 DSYMUTIL
735 MANIFEST_TOOL
736 RANLIB
737 ac_ct_AR
738 AR
739 DLLTOOL
740 OBJDUMP
741 FILECMD
742 LN_S
743 NM
744 ac_ct_DUMPBIN
745 DUMPBIN
746 LD
747 FGREP
748 EGREP
749 GREP
750 SED
751 am__fastdepCC_FALSE
752 am__fastdepCC_TRUE
753 CCDEPMODE
754 am__nodep
755 AMDEPBACKSLASH
756 AMDEP_FALSE
757 AMDEP_TRUE
758 am__include
759 DEPDIR
760 OBJEXT
761 EXEEXT
762 ac_ct_CC
763 CPPFLAGS
764 LDFLAGS
765 CFLAGS
766 CC
767 host_os
768 host_vendor
769 host_cpu
770 host
771 build_os
772 build_vendor
773 build_cpu
774 build
775 LIBTOOL
776 AM_BACKSLASH
777 AM_DEFAULT_VERBOSITY
778 AM_DEFAULT_V
779 AM_V
780 CSCOPE
781 ETAGS
782 CTAGS
783 am__untar
784 am__tar
785 AMTAR
786 am__leading_dot
787 SET_MAKE
788 AWK
789 mkdir_p
790 MKDIR_P
791 INSTALL_STRIP_PROGRAM
792 STRIP
793 install_sh
794 MAKEINFO
795 AUTOHEADER
796 AUTOMAKE
797 AUTOCONF
798 ACLOCAL
799 VERSION
800 PACKAGE
801 CYGPATH_W
802 am__isrc
803 INSTALL_DATA
804 INSTALL_SCRIPT
805 INSTALL_PROGRAM
806 target_alias
807 host_alias
808 build_alias
809 LIBS
810 ECHO_T
811 ECHO_N
812 ECHO_C
813 DEFS
814 mandir
815 localedir
816 libdir
817 psdir
818 pdfdir
819 dvidir
820 htmldir
821 infodir
822 docdir
823 oldincludedir
824 includedir
825 runstatedir
826 localstatedir
827 sharedstatedir
828 sysconfdir
829 datadir
830 datarootdir
831 libexecdir
832 sbindir
833 bindir
834 program_transform_name
835 prefix
836 exec_prefix
837 PACKAGE_URL
838 PACKAGE_BUGREPORT
839 PACKAGE_STRING
840 PACKAGE_VERSION
841 PACKAGE_TARNAME
842 PACKAGE_NAME
843 PATH_SEPARATOR
844 SHELL
845 am__quote'
846 ac_subst_files=''
847 ac_user_opts='
848 enable_option_checking
849 enable_silent_rules
850 enable_shared
851 enable_static
852 with_aix_soname
853 enable_fast_install
854 with_pic
855 enable_dependency_tracking
856 with_gnu_ld
857 with_sysroot
858 enable_libtool_lock
859 enable_auto_reload
860 enable_kernel_cmdline
861 enable_fastboot
862 enable_fsckfix
863 enable_cgroup
864 enable_redirect
865 enable_kernel_logging
866 enable_logrotate
867 enable_doc
868 enable_contrib
869 enable_rescue
870 enable_all_plugins
871 enable_alsa_utils_plugin
872 enable_dbus_plugin
873 enable_modules_load_plugin
874 enable_modprobe_plugin
875 enable_resolvconf_plugin
876 enable_x11_common_plugin
877 enable_netlink_plugin
878 enable_hook_scripts_plugin
879 enable_hotplug_plugin
880 enable_rtc_plugin
881 enable_tty_plugin
882 enable_urandom_plugin
883 enable_testserv_plugin
884 with_bash_completion_dir
885 with_fstab
886 with_heading
887 with_config
888 with_rcsd
889 with_rc_local
890 with_sysconfig
891 with_group
892 with_hostname
893 with_runlevel
894 with_random_seed
895 with_keventd
896 with_sulogin
897 with_watchdog
898 with_libsystemd
899 with_hook_scripts_path
900 with_plugin_path
901 with_rtc_date
902 with_rtc_file
903 '
904 ac_precious_vars='build_alias
905 host_alias
906 target_alias
907 CC
908 CFLAGS
909 LDFLAGS
910 LIBS
911 CPPFLAGS
912 LT_SYS_LIBRARY_PATH
913 PKG_CONFIG
914 PKG_CONFIG_PATH
915 PKG_CONFIG_LIBDIR
916 uev_CFLAGS
917 uev_LIBS
918 lite_CFLAGS
919 lite_LIBS
920 BASH_COMPLETION_CFLAGS
921 BASH_COMPLETION_LIBS'
922
923
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 ac_unrecognized_opts=
928 ac_unrecognized_sep=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_libraries=NONE
945
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 runstatedir='${localstatedir}/run'
961 includedir='${prefix}/include'
962 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964 infodir='${datarootdir}/info'
965 htmldir='${docdir}'
966 dvidir='${docdir}'
967 pdfdir='${docdir}'
968 psdir='${docdir}'
969 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man'
972
973 ac_prev=
974 ac_dashdash=
975 for ac_option
976 do
977 # If the previous option needs an argument, assign it.
978 if test -n "$ac_prev"; then
979 eval $ac_prev=\$ac_option
980 ac_prev=
981 continue
982 fi
983
984 case $ac_option in
985 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 *=) ac_optarg= ;;
987 *) ac_optarg=yes ;;
988 esac
989
990 case $ac_dashdash$ac_option in
991 --)
992 ac_dashdash=yes ;;
993
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 ac_prev=bindir ;;
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997 bindir=$ac_optarg ;;
998
999 -build | --build | --buil | --bui | --bu)
1000 ac_prev=build_alias ;;
1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002 build_alias=$ac_optarg ;;
1003
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009 cache_file=$ac_optarg ;;
1010
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
1013
1014 -datadir | --datadir | --datadi | --datad)
1015 ac_prev=datadir ;;
1016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017 datadir=$ac_optarg ;;
1018
1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1025
1026 -disable-* | --disable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=no ;;
1041
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1046
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1051
1052 -enable-* | --enable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=\$ac_optarg ;;
1067
1068 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070 | --exec | --exe | --ex)
1071 ac_prev=exec_prefix ;;
1072 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074 | --exec=* | --exe=* | --ex=*)
1075 exec_prefix=$ac_optarg ;;
1076
1077 -gas | --gas | --ga | --g)
1078 # Obsolete; use --with-gas.
1079 with_gas=yes ;;
1080
1081 -help | --help | --hel | --he | -h)
1082 ac_init_help=long ;;
1083 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084 ac_init_help=recursive ;;
1085 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086 ac_init_help=short ;;
1087
1088 -host | --host | --hos | --ho)
1089 ac_prev=host_alias ;;
1090 -host=* | --host=* | --hos=* | --ho=*)
1091 host_alias=$ac_optarg ;;
1092
1093 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 ac_prev=htmldir ;;
1095 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 | --ht=*)
1097 htmldir=$ac_optarg ;;
1098
1099 -includedir | --includedir | --includedi | --included | --include \
1100 | --includ | --inclu | --incl | --inc)
1101 ac_prev=includedir ;;
1102 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103 | --includ=* | --inclu=* | --incl=* | --inc=*)
1104 includedir=$ac_optarg ;;
1105
1106 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 ac_prev=infodir ;;
1108 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109 infodir=$ac_optarg ;;
1110
1111 -libdir | --libdir | --libdi | --libd)
1112 ac_prev=libdir ;;
1113 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114 libdir=$ac_optarg ;;
1115
1116 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117 | --libexe | --libex | --libe)
1118 ac_prev=libexecdir ;;
1119 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120 | --libexe=* | --libex=* | --libe=*)
1121 libexecdir=$ac_optarg ;;
1122
1123 -localedir | --localedir | --localedi | --localed | --locale)
1124 ac_prev=localedir ;;
1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126 localedir=$ac_optarg ;;
1127
1128 -localstatedir | --localstatedir | --localstatedi | --localstated \
1129 | --localstate | --localstat | --localsta | --localst | --locals)
1130 ac_prev=localstatedir ;;
1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1133 localstatedir=$ac_optarg ;;
1134
1135 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 ac_prev=mandir ;;
1137 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138 mandir=$ac_optarg ;;
1139
1140 -nfp | --nfp | --nf)
1141 # Obsolete; use --without-fp.
1142 with_fp=no ;;
1143
1144 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145 | --no-cr | --no-c | -n)
1146 no_create=yes ;;
1147
1148 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150 no_recursion=yes ;;
1151
1152 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154 | --oldin | --oldi | --old | --ol | --o)
1155 ac_prev=oldincludedir ;;
1156 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159 oldincludedir=$ac_optarg ;;
1160
1161 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 ac_prev=prefix ;;
1163 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164 prefix=$ac_optarg ;;
1165
1166 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167 | --program-pre | --program-pr | --program-p)
1168 ac_prev=program_prefix ;;
1169 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171 program_prefix=$ac_optarg ;;
1172
1173 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174 | --program-suf | --program-su | --program-s)
1175 ac_prev=program_suffix ;;
1176 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178 program_suffix=$ac_optarg ;;
1179
1180 -program-transform-name | --program-transform-name \
1181 | --program-transform-nam | --program-transform-na \
1182 | --program-transform-n | --program-transform- \
1183 | --program-transform | --program-transfor \
1184 | --program-transfo | --program-transf \
1185 | --program-trans | --program-tran \
1186 | --progr-tra | --program-tr | --program-t)
1187 ac_prev=program_transform_name ;;
1188 -program-transform-name=* | --program-transform-name=* \
1189 | --program-transform-nam=* | --program-transform-na=* \
1190 | --program-transform-n=* | --program-transform-=* \
1191 | --program-transform=* | --program-transfor=* \
1192 | --program-transfo=* | --program-transf=* \
1193 | --program-trans=* | --program-tran=* \
1194 | --progr-tra=* | --program-tr=* | --program-t=*)
1195 program_transform_name=$ac_optarg ;;
1196
1197 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 ac_prev=pdfdir ;;
1199 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200 pdfdir=$ac_optarg ;;
1201
1202 -psdir | --psdir | --psdi | --psd | --ps)
1203 ac_prev=psdir ;;
1204 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205 psdir=$ac_optarg ;;
1206
1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208 | -silent | --silent | --silen | --sile | --sil)
1209 silent=yes ;;
1210
1211 -runstatedir | --runstatedir | --runstatedi | --runstated \
1212 | --runstate | --runstat | --runsta | --runst | --runs \
1213 | --run | --ru | --r)
1214 ac_prev=runstatedir ;;
1215 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1216 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1217 | --run=* | --ru=* | --r=*)
1218 runstatedir=$ac_optarg ;;
1219
1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221 ac_prev=sbindir ;;
1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223 | --sbi=* | --sb=*)
1224 sbindir=$ac_optarg ;;
1225
1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1228 | --sharedst | --shareds | --shared | --share | --shar \
1229 | --sha | --sh)
1230 ac_prev=sharedstatedir ;;
1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234 | --sha=* | --sh=*)
1235 sharedstatedir=$ac_optarg ;;
1236
1237 -site | --site | --sit)
1238 ac_prev=site ;;
1239 -site=* | --site=* | --sit=*)
1240 site=$ac_optarg ;;
1241
1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243 ac_prev=srcdir ;;
1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1245 srcdir=$ac_optarg ;;
1246
1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1248 | --syscon | --sysco | --sysc | --sys | --sy)
1249 ac_prev=sysconfdir ;;
1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1252 sysconfdir=$ac_optarg ;;
1253
1254 -target | --target | --targe | --targ | --tar | --ta | --t)
1255 ac_prev=target_alias ;;
1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1257 target_alias=$ac_optarg ;;
1258
1259 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 verbose=yes ;;
1261
1262 -version | --version | --versio | --versi | --vers | -V)
1263 ac_init_version=: ;;
1264
1265 -with-* | --with-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error $? "invalid package name: \`$ac_useropt'"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274 "with_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=\$ac_optarg ;;
1280
1281 -without-* | --without-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error $? "invalid package name: \`$ac_useropt'"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=no ;;
1296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1314
1315 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1316 Try \`$0 --help' for more information"
1317 ;;
1318
1319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 case $ac_envvar in #(
1323 '' | [0-9]* | *[!_$as_cr_alnum]* )
1324 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1325 esac
1326 eval $ac_envvar=\$ac_optarg
1327 export $ac_envvar ;;
1328
1329 *)
1330 # FIXME: should be removed in autoconf 3.0.
1331 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1335 ;;
1336
1337 esac
1338 done
1339
1340 if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 as_fn_error $? "missing argument to $ac_option"
1343 fi
1344
1345 if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1347 no) ;;
1348 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1349 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1350 esac
1351 fi
1352
1353 # Check all directory arguments for consistency.
1354 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1357 libdir localedir mandir runstatedir
1358 do
1359 eval ac_val=\$$ac_var
1360 # Remove trailing slashes.
1361 case $ac_val in
1362 */ )
1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\$ac_val;;
1365 esac
1366 # Be sure to have absolute directory names.
1367 case $ac_val in
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 esac
1371 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1372 done
1373
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1377 build=$build_alias
1378 host=$host_alias
1379 target=$target_alias
1380
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 elif test "x$build_alias" != "x$host_alias"; then
1386 cross_compiling=yes
1387 fi
1388 fi
1389
1390 ac_tool_prefix=
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
1393 test "$silent" = yes && exec 6>/dev/null
1394
1395
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399 as_fn_error $? "working directory cannot be determined"
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 as_fn_error $? "pwd does not report name of working directory"
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$as_myself" ||
1409 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$as_myself" : 'X\(//\)[^/]' \| \
1411 X"$as_myself" : 'X\(//\)$' \| \
1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413 printf "%s\n" X"$as_myself" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\).*/{
1427 s//\1/
1428 q
1429 }
1430 s/.*/./; q'`
1431 srcdir=$ac_confdir
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 srcdir=..
1434 fi
1435 else
1436 ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1441 fi
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443 ac_abs_confdir=`(
1444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1445 pwd)`
1446 # When building in place, set srcdir=.
1447 if test "$ac_abs_confdir" = "$ac_pwd"; then
1448 srcdir=.
1449 fi
1450 # Remove unnecessary trailing slashes from srcdir.
1451 # Double slashes in file names in object file debugging info
1452 # mess up M-x gdb in Emacs.
1453 case $srcdir in
1454 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455 esac
1456 for ac_var in $ac_precious_vars; do
1457 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_env_${ac_var}_value=\$${ac_var}
1459 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 done
1462
1463 #
1464 # Report the --help message.
1465 #
1466 if test "$ac_init_help" = "long"; then
1467 # Omit some internal or obsolete options to make the list less imposing.
1468 # This message is too long to be a string in the A/UX 3.1 sh.
1469 cat <<_ACEOF
1470 \`configure' configures Finit 4.14 to adapt to many kinds of systems.
1471
1472 Usage: $0 [OPTION]... [VAR=VALUE]...
1473
1474 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475 VAR=VALUE. See below for descriptions of some of the useful variables.
1476
1477 Defaults for the options are specified in brackets.
1478
1479 Configuration:
1480 -h, --help display this help and exit
1481 --help=short display options specific to this package
1482 --help=recursive display the short help of all the included packages
1483 -V, --version display version information and exit
1484 -q, --quiet, --silent do not print \`checking ...' messages
1485 --cache-file=FILE cache test results in FILE [disabled]
1486 -C, --config-cache alias for \`--cache-file=config.cache'
1487 -n, --no-create do not create output files
1488 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489
1490 Installation directories:
1491 --prefix=PREFIX install architecture-independent files in PREFIX
1492 [$ac_default_prefix]
1493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1494 [PREFIX]
1495
1496 By default, \`make install' will install all the files in
1497 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1498 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499 for instance \`--prefix=\$HOME'.
1500
1501 For better control, use the options below.
1502
1503 Fine tuning of the installation directories:
1504 --bindir=DIR user executables [EPREFIX/bin]
1505 --sbindir=DIR system admin executables [EPREFIX/sbin]
1506 --libexecdir=DIR program executables [EPREFIX/libexec]
1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1510 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1511 --libdir=DIR object code libraries [EPREFIX/lib]
1512 --includedir=DIR C header files [PREFIX/include]
1513 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1514 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1515 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1516 --infodir=DIR info documentation [DATAROOTDIR/info]
1517 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1518 --mandir=DIR man documentation [DATAROOTDIR/man]
1519 --docdir=DIR documentation root [DATAROOTDIR/doc/finit]
1520 --htmldir=DIR html documentation [DOCDIR]
1521 --dvidir=DIR dvi documentation [DOCDIR]
1522 --pdfdir=DIR pdf documentation [DOCDIR]
1523 --psdir=DIR ps documentation [DOCDIR]
1524 _ACEOF
1525
1526 cat <<\_ACEOF
1527
1528 Program names:
1529 --program-prefix=PREFIX prepend PREFIX to installed program names
1530 --program-suffix=SUFFIX append SUFFIX to installed program names
1531 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1532
1533 System types:
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 _ACEOF
1537 fi
1538
1539 if test -n "$ac_init_help"; then
1540 case $ac_init_help in
1541 short | recursive ) echo "Configuration of Finit 4.14:";;
1542 esac
1543 cat <<\_ACEOF
1544
1545 Optional Features:
1546 --disable-option-checking ignore unrecognized --enable/--with options
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-silent-rules less verbose build output (undo: "make V=1")
1550 --disable-silent-rules verbose build output (undo: "make V=0")
1551 --enable-shared[=PKGS] build shared libraries [default=yes]
1552 --enable-static[=PKGS] build static libraries [default=no]
1553 --enable-fast-install[=PKGS]
1554 optimize for fast installation [default=no]
1555 --enable-dependency-tracking
1556 do not reject slow dependency extractors
1557 --disable-dependency-tracking
1558 speeds up one-time build
1559 --disable-libtool-lock avoid locking (might break parallel builds)
1560 --enable-auto-reload Automatic reload on any .conf change
1561 --enable-kernel-cmdline Parse init args from /proc/cmdline (don't use!)
1562 --enable-fastboot Skip fsck check on filesystems listed in /etc/fstab
1563 --enable-fsckfix Run fsck fix mode (options: -yf) on filesystems
1564 listed in /etc/fstab
1565 --disable-cgroup Disable cgroup v2 support, default: autodetect from
1566 /sys/fs/cgroup
1567 --disable-redirect Disable redirection of service output to /dev/null
1568 --disable-kernel-logging
1569 Disable kernel logging to console (use 'quiet'
1570 instead!
1571 --disable-logrotate Disable built-in rotation of /var/log/wtmp
1572 --disable-doc Disable build and install of doc/ section
1573 --disable-contrib Disable build and install of contrib section
1574 --disable-rescue Disable potentially unsafe rescue mode
1575 --enable-all-plugins Enable all plugins, default: auto
1576
1577 Optional Plugins:
1578 --enable-alsa-utils-plugin
1579 Save and restore ALSA sound settings using alsactl
1580 --enable-dbus-plugin Setup and start system message bus, D-Bus
1581 --enable-modules-load-plugin
1582 Scans /etc/modules-load.d for modules to load
1583 --enable-modprobe-plugin
1584 Coldplug modules using modalias magic
1585 --enable-resolvconf-plugin
1586 Setup necessary files for resolvconf
1587 --enable-x11-common-plugin
1588 Console setup (for X)
1589 --disable-netlink-plugin
1590 Basic netlink plugin for IFUP/IFDN and GW events.
1591 Can be replaced with externally built plugin that
1592 links with libnl or similar.
1593 --enable-hook-scripts-plugin
1594 Trigger script execution from hook points
1595 --disable-hotplug-plugin
1596 Start udevd or mdev kernel event datamon
1597 --disable-rtc-plugin Save and restore RTC using hwclock
1598 --disable-tty-plugin Automatically activate new TTYs, e.g. USB-to-serial
1599 --disable-urandom-plugin
1600 Setup and save random seed at boot/shutdown
1601 --enable-testserv-plugin
1602 Test plugin to start test serv daemon
1603
1604 Optional Packages:
1605 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1606 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1607 --with-aix-soname=aix|svr4|both
1608 shared library versioning (aka "SONAME") variant to
1609 provide on AIX, [default=both].
1610 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1611 both]
1612 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1613 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1614 compiler's sysroot if not specified).
1615 --with-bash-completion-dir=PATH
1616 Directory to install Bash completion, default: auto
1617 --with-fstab=FILE System default fstab, default $sysconfdir/fstab
1618 --with-heading=GREET Heading for boot progress. Default: PRETTY_NAME from
1619 /etc/os-release, fallback to "Finit vX.YY"
1620 --with-config=CONFIG Finit bootstrap config file, default /etc/finit.conf
1621 --with-rcsd=DIR Finit rcS.d/ directory, default /etc/finit.d
1622 --with-rc-local=FILE SysV init /etc/rc.local file, default /etc/rc.local
1623 --with-sysconfig=DIR System environment directory, sourced by .conf
1624 files, default /etc/default & /etc/conf.d
1625 --with-group=NAME Group for /run/finit/socket (initctl), default: root
1626 --with-hostname=NAME If /etc/hostname is missing, default: noname
1627 --with-runlevel=N Runlevel to switch to after bootstrap [1-9],
1628 default: 2
1629 --with-random-seed=FILE Save a random seed for /dev/urandom across reboots,
1630 default /var/lib/misc/random-seed
1631 --with-keventd Enable built-in keventd, default: no
1632 --with-sulogin[=USER] Enable built-in sulogin, optional USER to request
1633 password for (default root), default: no.
1634 --with-watchdog[=DEV] Enable built-in watchdog, default: /dev/watchdog
1635 --with-libsystemd Build replacement libsystemd library, default: yes
1636 --with-hook-scripts-path=DIR
1637 Base directory for hook scripts, default
1638 $libexecdir/finit/hook
1639 --with-plugin-path=DIR Search path for external plugins, default
1640 /usr/lib/finit/plugins:/usr/local/lib/finit/plugins
1641 --with-rtc-date=DATE If RTC date/time is too old, restore to DATE, format
1642 "YYYY-MM-DD HH:MM:SS", default "2000-01-01 00:00:00"
1643 --with-rtc-file=FILE If RTC is missing, save and restore system clock
1644 from this file, default: no
1645
1646 Some influential environment variables:
1647 CC C compiler command
1648 CFLAGS C compiler flags
1649 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1650 nonstandard directory <lib dir>
1651 LIBS libraries to pass to the linker, e.g. -l<library>
1652 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1653 you have headers in a nonstandard directory <include dir>
1654 LT_SYS_LIBRARY_PATH
1655 User-defined run-time library search path.
1656 PKG_CONFIG path to pkg-config utility
1657 PKG_CONFIG_PATH
1658 directories to add to pkg-config's search path
1659 PKG_CONFIG_LIBDIR
1660 path overriding pkg-config's built-in search path
1661 uev_CFLAGS C compiler flags for uev, overriding pkg-config
1662 uev_LIBS linker flags for uev, overriding pkg-config
1663 lite_CFLAGS C compiler flags for lite, overriding pkg-config
1664 lite_LIBS linker flags for lite, overriding pkg-config
1665 BASH_COMPLETION_CFLAGS
1666 C compiler flags for BASH_COMPLETION, overriding pkg-config
1667 BASH_COMPLETION_LIBS
1668 linker flags for BASH_COMPLETION, overriding pkg-config
1669
1670 Use these variables to override the choices made by `configure' or to help
1671 it to find libraries and programs with nonstandard names/locations.
1672
1673 Report bugs to <https://github.com/troglobit/finit/issues>.
1674 Finit home page: <https://troglobit.com/projects/finit/>.
1675 _ACEOF
1676 ac_status=$?
1677 fi
1678
1679 if test "$ac_init_help" = "recursive"; then
1680 # If there are subdirs, report their specific --help.
1681 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1682 test -d "$ac_dir" ||
1683 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1684 continue
1685 ac_builddir=.
1686
1687 case "$ac_dir" in
1688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689 *)
1690 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1691 # A ".." for each directory in $ac_dir_suffix.
1692 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1693 case $ac_top_builddir_sub in
1694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1696 esac ;;
1697 esac
1698 ac_abs_top_builddir=$ac_pwd
1699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1700 # for backward compatibility:
1701 ac_top_builddir=$ac_top_build_prefix
1702
1703 case $srcdir in
1704 .) # We are building in place.
1705 ac_srcdir=.
1706 ac_top_srcdir=$ac_top_builddir_sub
1707 ac_abs_top_srcdir=$ac_pwd ;;
1708 [\\/]* | ?:[\\/]* ) # Absolute name.
1709 ac_srcdir=$srcdir$ac_dir_suffix;
1710 ac_top_srcdir=$srcdir
1711 ac_abs_top_srcdir=$srcdir ;;
1712 *) # Relative name.
1713 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1714 ac_top_srcdir=$ac_top_build_prefix$srcdir
1715 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1716 esac
1717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1718
1719 cd "$ac_dir" || { ac_status=$?; continue; }
1720 # Check for configure.gnu first; this name is used for a wrapper for
1721 # Metaconfig's "Configure" on case-insensitive file systems.
1722 if test -f "$ac_srcdir/configure.gnu"; then
1723 echo &&
1724 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1725 elif test -f "$ac_srcdir/configure"; then
1726 echo &&
1727 $SHELL "$ac_srcdir/configure" --help=recursive
1728 else
1729 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1730 fi || ac_status=$?
1731 cd "$ac_pwd" || { ac_status=$?; break; }
1732 done
1733 fi
1734
1735 test -n "$ac_init_help" && exit $ac_status
1736 if $ac_init_version; then
1737 cat <<\_ACEOF
1738 Finit configure 4.14
1739 generated by GNU Autoconf 2.71
1740
1741 Copyright (C) 2021 Free Software Foundation, Inc.
1742 This configure script is free software; the Free Software Foundation
1743 gives unlimited permission to copy, distribute and modify it.
1744 _ACEOF
1745 exit
1746 fi
1747
1748 ## ------------------------ ##
1749 ## Autoconf initialization. ##
1750 ## ------------------------ ##
1751
1752 # ac_fn_c_try_compile LINENO
1753 # --------------------------
1754 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_c_try_compile ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 rm -f conftest.$ac_objext conftest.beam
1759 if { { ac_try="$ac_compile"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 printf "%s\n" "$ac_try_echo"; } >&5
1766 (eval "$ac_compile") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1772 fi
1773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && {
1775 test -z "$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1777 } && test -s conftest.$ac_objext
1778 then :
1779 ac_retval=0
1780 else $as_nop
1781 printf "%s\n" "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785 fi
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_compile
1790
1791 # ac_fn_c_try_link LINENO
1792 # -----------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_link ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1798 if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 printf "%s\n" "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest$ac_exeext && {
1817 test "$cross_compiling" = yes ||
1818 test -x conftest$ac_exeext
1819 }
1820 then :
1821 ac_retval=0
1822 else $as_nop
1823 printf "%s\n" "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_link
1837
1838 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists and can be compiled using the include files in
1841 # INCLUDES, setting the cache variable VAR accordingly.
1842 ac_fn_c_check_header_compile ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 printf %s "checking for $2... " >&6; }
1847 if eval test \${$3+y}
1848 then :
1849 printf %s "(cached) " >&6
1850 else $as_nop
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 $4
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"
1857 then :
1858 eval "$3=yes"
1859 else $as_nop
1860 eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 printf "%s\n" "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_header_compile
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 printf %s "checking for $2... " >&6; }
1879 if eval test \${$3+y}
1880 then :
1881 printf %s "(cached) " >&6
1882 else $as_nop
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1887 #define $2 innocuous_$2
1888
1889 /* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $2 (); below. */
1891
1892 #include <limits.h>
1893 #undef $2
1894
1895 /* Override any GCC internal prototype to avoid an error.
1896 Use char because int might match the return type of a GCC
1897 builtin and then its argument prototype would still apply. */
1898 #ifdef __cplusplus
1899 extern "C"
1900 #endif
1901 char $2 ();
1902 /* The GNU C library defines this for functions which it implements
1903 to always fail with ENOSYS. Some functions are actually named
1904 something starting with __ and the normal name is an alias. */
1905 #if defined __stub_$2 || defined __stub___$2
1906 choke me
1907 #endif
1908
1909 int
1910 main (void)
1911 {
1912 return $2 ();
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_link "$LINENO"
1918 then :
1919 eval "$3=yes"
1920 else $as_nop
1921 eval "$3=no"
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1924 conftest$ac_exeext conftest.$ac_ext
1925 fi
1926 eval ac_res=\$$3
1927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 printf "%s\n" "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931 } # ac_fn_c_check_func
1932
1933 # ac_fn_c_find_uintX_t LINENO BITS VAR
1934 # ------------------------------------
1935 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1936 # accordingly.
1937 ac_fn_c_find_uintX_t ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1941 printf %s "checking for uint$2_t... " >&6; }
1942 if eval test \${$3+y}
1943 then :
1944 printf %s "(cached) " >&6
1945 else $as_nop
1946 eval "$3=no"
1947 # Order is important - never check a type that is potentially smaller
1948 # than half of the expected target width.
1949 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1950 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $ac_includes_default
1954 int
1955 main (void)
1956 {
1957 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1958 test_array [0] = 0;
1959 return test_array [0];
1960
1961 ;
1962 return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"
1966 then :
1967 case $ac_type in #(
1968 uint$2_t) :
1969 eval "$3=yes" ;; #(
1970 *) :
1971 eval "$3=\$ac_type" ;;
1972 esac
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1975 if eval test \"x\$"$3"\" = x"no"
1976 then :
1977
1978 else $as_nop
1979 break
1980 fi
1981 done
1982 fi
1983 eval ac_res=\$$3
1984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 printf "%s\n" "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988 } # ac_fn_c_find_uintX_t
1989 ac_configure_args_raw=
1990 for ac_arg
1991 do
1992 case $ac_arg in
1993 *\'*)
1994 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1995 esac
1996 as_fn_append ac_configure_args_raw " '$ac_arg'"
1997 done
1998
1999 case $ac_configure_args_raw in
2000 *$as_nl*)
2001 ac_safe_unquote= ;;
2002 *)
2003 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2004 ac_unsafe_a="$ac_unsafe_z#~"
2005 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2006 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2007 esac
2008
2009 cat >config.log <<_ACEOF
2010 This file contains any messages produced by compilers while
2011 running configure, to aid debugging if configure makes a mistake.
2012
2013 It was created by Finit $as_me 4.14, which was
2014 generated by GNU Autoconf 2.71. Invocation command line was
2015
2016 $ $0$ac_configure_args_raw
2017
2018 _ACEOF
2019 exec 5>>config.log
2020 {
2021 cat <<_ASUNAME
2022 ## --------- ##
2023 ## Platform. ##
2024 ## --------- ##
2025
2026 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2027 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2028 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2029 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2030 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2031
2032 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2033 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2034
2035 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2036 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2037 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2038 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2039 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2040 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2041 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2042
2043 _ASUNAME
2044
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048 IFS=$as_save_IFS
2049 case $as_dir in #(((
2050 '') as_dir=./ ;;
2051 */) ;;
2052 *) as_dir=$as_dir/ ;;
2053 esac
2054 printf "%s\n" "PATH: $as_dir"
2055 done
2056 IFS=$as_save_IFS
2057
2058 } >&5
2059
2060 cat >&5 <<_ACEOF
2061
2062
2063 ## ----------- ##
2064 ## Core tests. ##
2065 ## ----------- ##
2066
2067 _ACEOF
2068
2069
2070 # Keep a trace of the command line.
2071 # Strip out --no-create and --no-recursion so they do not pile up.
2072 # Strip out --silent because we don't want to record it for future runs.
2073 # Also quote any args containing shell meta-characters.
2074 # Make two passes to allow for proper duplicate-argument suppression.
2075 ac_configure_args=
2076 ac_configure_args0=
2077 ac_configure_args1=
2078 ac_must_keep_next=false
2079 for ac_pass in 1 2
2080 do
2081 for ac_arg
2082 do
2083 case $ac_arg in
2084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2086 | -silent | --silent | --silen | --sile | --sil)
2087 continue ;;
2088 *\'*)
2089 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2090 esac
2091 case $ac_pass in
2092 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2093 2)
2094 as_fn_append ac_configure_args1 " '$ac_arg'"
2095 if test $ac_must_keep_next = true; then
2096 ac_must_keep_next=false # Got value, back to normal.
2097 else
2098 case $ac_arg in
2099 *=* | --config-cache | -C | -disable-* | --disable-* \
2100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2102 | -with-* | --with-* | -without-* | --without-* | --x)
2103 case "$ac_configure_args0 " in
2104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2105 esac
2106 ;;
2107 -* ) ac_must_keep_next=true ;;
2108 esac
2109 fi
2110 as_fn_append ac_configure_args " '$ac_arg'"
2111 ;;
2112 esac
2113 done
2114 done
2115 { ac_configure_args0=; unset ac_configure_args0;}
2116 { ac_configure_args1=; unset ac_configure_args1;}
2117
2118 # When interrupted or exit'd, cleanup temporary files, and complete
2119 # config.log. We remove comments because anyway the quotes in there
2120 # would cause problems or look ugly.
2121 # WARNING: Use '\'' to represent an apostrophe within the trap.
2122 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2123 trap 'exit_status=$?
2124 # Sanitize IFS.
2125 IFS=" "" $as_nl"
2126 # Save into config.log some information that might help in debugging.
2127 {
2128 echo
2129
2130 printf "%s\n" "## ---------------- ##
2131 ## Cache variables. ##
2132 ## ---------------- ##"
2133 echo
2134 # The following way of writing the cache mishandles newlines in values,
2135 (
2136 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2137 eval ac_val=\$$ac_var
2138 case $ac_val in #(
2139 *${as_nl}*)
2140 case $ac_var in #(
2141 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2142 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2143 esac
2144 case $ac_var in #(
2145 _ | IFS | as_nl) ;; #(
2146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2147 *) { eval $ac_var=; unset $ac_var;} ;;
2148 esac ;;
2149 esac
2150 done
2151 (set) 2>&1 |
2152 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2153 *${as_nl}ac_space=\ *)
2154 sed -n \
2155 "s/'\''/'\''\\\\'\'''\''/g;
2156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2157 ;; #(
2158 *)
2159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2160 ;;
2161 esac |
2162 sort
2163 )
2164 echo
2165
2166 printf "%s\n" "## ----------------- ##
2167 ## Output variables. ##
2168 ## ----------------- ##"
2169 echo
2170 for ac_var in $ac_subst_vars
2171 do
2172 eval ac_val=\$$ac_var
2173 case $ac_val in
2174 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2175 esac
2176 printf "%s\n" "$ac_var='\''$ac_val'\''"
2177 done | sort
2178 echo
2179
2180 if test -n "$ac_subst_files"; then
2181 printf "%s\n" "## ------------------- ##
2182 ## File substitutions. ##
2183 ## ------------------- ##"
2184 echo
2185 for ac_var in $ac_subst_files
2186 do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in
2189 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190 esac
2191 printf "%s\n" "$ac_var='\''$ac_val'\''"
2192 done | sort
2193 echo
2194 fi
2195
2196 if test -s confdefs.h; then
2197 printf "%s\n" "## ----------- ##
2198 ## confdefs.h. ##
2199 ## ----------- ##"
2200 echo
2201 cat confdefs.h
2202 echo
2203 fi
2204 test "$ac_signal" != 0 &&
2205 printf "%s\n" "$as_me: caught signal $ac_signal"
2206 printf "%s\n" "$as_me: exit $exit_status"
2207 } >&5
2208 rm -f core *.core core.conftest.* &&
2209 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2210 exit $exit_status
2211 ' 0
2212 for ac_signal in 1 2 13 15; do
2213 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2214 done
2215 ac_signal=0
2216
2217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2218 rm -f -r conftest* confdefs.h
2219
2220 printf "%s\n" "/* confdefs.h */" > confdefs.h
2221
2222 # Predefined preprocessor variables.
2223
2224 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2225
2226 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2227
2228 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2229
2230 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2231
2232 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2233
2234 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2235
2236
2237 # Let the site file select an alternate cache file if it wants to.
2238 # Prefer an explicitly selected file to automatically selected ones.
2239 if test -n "$CONFIG_SITE"; then
2240 ac_site_files="$CONFIG_SITE"
2241 elif test "x$prefix" != xNONE; then
2242 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2243 else
2244 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2245 fi
2246
2247 for ac_site_file in $ac_site_files
2248 do
2249 case $ac_site_file in #(
2250 */*) :
2251 ;; #(
2252 *) :
2253 ac_site_file=./$ac_site_file ;;
2254 esac
2255 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2257 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2258 sed 's/^/| /' "$ac_site_file" >&5
2259 . "$ac_site_file" \
2260 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2261 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2262 as_fn_error $? "failed to load site script $ac_site_file
2263 See \`config.log' for more details" "$LINENO" 5; }
2264 fi
2265 done
2266
2267 if test -r "$cache_file"; then
2268 # Some versions of bash will fail to source /dev/null (special files
2269 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2270 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2272 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2273 case $cache_file in
2274 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2275 *) . "./$cache_file";;
2276 esac
2277 fi
2278 else
2279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2280 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2281 >$cache_file
2282 fi
2283
2284 # Test code for whether the C compiler supports C89 (global declarations)
2285 ac_c_conftest_c89_globals='
2286 /* Does the compiler advertise C89 conformance?
2287 Do not test the value of __STDC__, because some compilers set it to 0
2288 while being otherwise adequately conformant. */
2289 #if !defined __STDC__
2290 # error "Compiler does not advertise C89 conformance"
2291 #endif
2292
2293 #include <stddef.h>
2294 #include <stdarg.h>
2295 struct stat;
2296 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2297 struct buf { int x; };
2298 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2299 static char *e (p, i)
2300 char **p;
2301 int i;
2302 {
2303 return p[i];
2304 }
2305 static char *f (char * (*g) (char **, int), char **p, ...)
2306 {
2307 char *s;
2308 va_list v;
2309 va_start (v,p);
2310 s = g (p, va_arg (v,int));
2311 va_end (v);
2312 return s;
2313 }
2314
2315 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2316 function prototypes and stuff, but not \xHH hex character constants.
2317 These do not provoke an error unfortunately, instead are silently treated
2318 as an "x". The following induces an error, until -std is added to get
2319 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2320 array size at least. It is necessary to write \x00 == 0 to get something
2321 that is true only with -std. */
2322 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2323
2324 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2325 inside strings and character constants. */
2326 #define FOO(x) '\''x'\''
2327 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2328
2329 int test (int i, double x);
2330 struct s1 {int (*f) (int a);};
2331 struct s2 {int (*f) (double a);};
2332 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2333 int, int);'
2334
2335 # Test code for whether the C compiler supports C89 (body of main).
2336 ac_c_conftest_c89_main='
2337 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2338 '
2339
2340 # Test code for whether the C compiler supports C99 (global declarations)
2341 ac_c_conftest_c99_globals='
2342 // Does the compiler advertise C99 conformance?
2343 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2344 # error "Compiler does not advertise C99 conformance"
2345 #endif
2346
2347 #include <stdbool.h>
2348 extern int puts (const char *);
2349 extern int printf (const char *, ...);
2350 extern int dprintf (int, const char *, ...);
2351 extern void *malloc (size_t);
2352
2353 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2354 // dprintf is used instead of fprintf to avoid needing to declare
2355 // FILE and stderr.
2356 #define debug(...) dprintf (2, __VA_ARGS__)
2357 #define showlist(...) puts (#__VA_ARGS__)
2358 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2359 static void
2360 test_varargs_macros (void)
2361 {
2362 int x = 1234;
2363 int y = 5678;
2364 debug ("Flag");
2365 debug ("X = %d\n", x);
2366 showlist (The first, second, and third items.);
2367 report (x>y, "x is %d but y is %d", x, y);
2368 }
2369
2370 // Check long long types.
2371 #define BIG64 18446744073709551615ull
2372 #define BIG32 4294967295ul
2373 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2374 #if !BIG_OK
2375 #error "your preprocessor is broken"
2376 #endif
2377 #if BIG_OK
2378 #else
2379 #error "your preprocessor is broken"
2380 #endif
2381 static long long int bignum = -9223372036854775807LL;
2382 static unsigned long long int ubignum = BIG64;
2383
2384 struct incomplete_array
2385 {
2386 int datasize;
2387 double data[];
2388 };
2389
2390 struct named_init {
2391 int number;
2392 const wchar_t *name;
2393 double average;
2394 };
2395
2396 typedef const char *ccp;
2397
2398 static inline int
2399 test_restrict (ccp restrict text)
2400 {
2401 // See if C++-style comments work.
2402 // Iterate through items via the restricted pointer.
2403 // Also check for declarations in for loops.
2404 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2405 continue;
2406 return 0;
2407 }
2408
2409 // Check varargs and va_copy.
2410 static bool
2411 test_varargs (const char *format, ...)
2412 {
2413 va_list args;
2414 va_start (args, format);
2415 va_list args_copy;
2416 va_copy (args_copy, args);
2417
2418 const char *str = "";
2419 int number = 0;
2420 float fnumber = 0;
2421
2422 while (*format)
2423 {
2424 switch (*format++)
2425 {
2426 case '\''s'\'': // string
2427 str = va_arg (args_copy, const char *);
2428 break;
2429 case '\''d'\'': // int
2430 number = va_arg (args_copy, int);
2431 break;
2432 case '\''f'\'': // float
2433 fnumber = va_arg (args_copy, double);
2434 break;
2435 default:
2436 break;
2437 }
2438 }
2439 va_end (args_copy);
2440 va_end (args);
2441
2442 return *str && number && fnumber;
2443 }
2444 '
2445
2446 # Test code for whether the C compiler supports C99 (body of main).
2447 ac_c_conftest_c99_main='
2448 // Check bool.
2449 _Bool success = false;
2450 success |= (argc != 0);
2451
2452 // Check restrict.
2453 if (test_restrict ("String literal") == 0)
2454 success = true;
2455 char *restrict newvar = "Another string";
2456
2457 // Check varargs.
2458 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2459 test_varargs_macros ();
2460
2461 // Check flexible array members.
2462 struct incomplete_array *ia =
2463 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2464 ia->datasize = 10;
2465 for (int i = 0; i < ia->datasize; ++i)
2466 ia->data[i] = i * 1.234;
2467
2468 // Check named initializers.
2469 struct named_init ni = {
2470 .number = 34,
2471 .name = L"Test wide string",
2472 .average = 543.34343,
2473 };
2474
2475 ni.number = 58;
2476
2477 int dynamic_array[ni.number];
2478 dynamic_array[0] = argv[0][0];
2479 dynamic_array[ni.number - 1] = 543;
2480
2481 // work around unused variable warnings
2482 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2483 || dynamic_array[ni.number - 1] != 543);
2484 '
2485
2486 # Test code for whether the C compiler supports C11 (global declarations)
2487 ac_c_conftest_c11_globals='
2488 // Does the compiler advertise C11 conformance?
2489 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2490 # error "Compiler does not advertise C11 conformance"
2491 #endif
2492
2493 // Check _Alignas.
2494 char _Alignas (double) aligned_as_double;
2495 char _Alignas (0) no_special_alignment;
2496 extern char aligned_as_int;
2497 char _Alignas (0) _Alignas (int) aligned_as_int;
2498
2499 // Check _Alignof.
2500 enum
2501 {
2502 int_alignment = _Alignof (int),
2503 int_array_alignment = _Alignof (int[100]),
2504 char_alignment = _Alignof (char)
2505 };
2506 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2507
2508 // Check _Noreturn.
2509 int _Noreturn does_not_return (void) { for (;;) continue; }
2510
2511 // Check _Static_assert.
2512 struct test_static_assert
2513 {
2514 int x;
2515 _Static_assert (sizeof (int) <= sizeof (long int),
2516 "_Static_assert does not work in struct");
2517 long int y;
2518 };
2519
2520 // Check UTF-8 literals.
2521 #define u8 syntax error!
2522 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2523
2524 // Check duplicate typedefs.
2525 typedef long *long_ptr;
2526 typedef long int *long_ptr;
2527 typedef long_ptr long_ptr;
2528
2529 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2530 struct anonymous
2531 {
2532 union {
2533 struct { int i; int j; };
2534 struct { int k; long int l; } w;
2535 };
2536 int m;
2537 } v1;
2538 '
2539
2540 # Test code for whether the C compiler supports C11 (body of main).
2541 ac_c_conftest_c11_main='
2542 _Static_assert ((offsetof (struct anonymous, i)
2543 == offsetof (struct anonymous, w.k)),
2544 "Anonymous union alignment botch");
2545 v1.i = 2;
2546 v1.w.k = 5;
2547 ok |= v1.i != 5;
2548 '
2549
2550 # Test code for whether the C compiler supports C11 (complete).
2551 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2552 ${ac_c_conftest_c99_globals}
2553 ${ac_c_conftest_c11_globals}
2554
2555 int
2556 main (int argc, char **argv)
2557 {
2558 int ok = 0;
2559 ${ac_c_conftest_c89_main}
2560 ${ac_c_conftest_c99_main}
2561 ${ac_c_conftest_c11_main}
2562 return ok;
2563 }
2564 "
2565
2566 # Test code for whether the C compiler supports C99 (complete).
2567 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2568 ${ac_c_conftest_c99_globals}
2569
2570 int
2571 main (int argc, char **argv)
2572 {
2573 int ok = 0;
2574 ${ac_c_conftest_c89_main}
2575 ${ac_c_conftest_c99_main}
2576 return ok;
2577 }
2578 "
2579
2580 # Test code for whether the C compiler supports C89 (complete).
2581 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2582
2583 int
2584 main (int argc, char **argv)
2585 {
2586 int ok = 0;
2587 ${ac_c_conftest_c89_main}
2588 return ok;
2589 }
2590 "
2591
2592 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2593 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2594 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2595 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2596 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2597 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2598 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2599 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2600 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2601
2602 # Auxiliary files required by this configure script.
2603 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2604
2605 # Locations in which to look for auxiliary files.
2606 ac_aux_dir_candidates="${srcdir}/aux"
2607
2608 # Search for a directory containing all of the required auxiliary files,
2609 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2610 # If we don't find one directory that contains all the files we need,
2611 # we report the set of missing files from the *first* directory in
2612 # $ac_aux_dir_candidates and give up.
2613 ac_missing_aux_files=""
2614 ac_first_candidate=:
2615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 as_found=false
2618 for as_dir in $ac_aux_dir_candidates
2619 do
2620 IFS=$as_save_IFS
2621 case $as_dir in #(((
2622 '') as_dir=./ ;;
2623 */) ;;
2624 *) as_dir=$as_dir/ ;;
2625 esac
2626 as_found=:
2627
2628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2629 ac_aux_dir_found=yes
2630 ac_install_sh=
2631 for ac_aux in $ac_aux_files
2632 do
2633 # As a special case, if "install-sh" is required, that requirement
2634 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2635 # and $ac_install_sh is set appropriately for whichever one is found.
2636 if test x"$ac_aux" = x"install-sh"
2637 then
2638 if test -f "${as_dir}install-sh"; then
2639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2640 ac_install_sh="${as_dir}install-sh -c"
2641 elif test -f "${as_dir}install.sh"; then
2642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2643 ac_install_sh="${as_dir}install.sh -c"
2644 elif test -f "${as_dir}shtool"; then
2645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2646 ac_install_sh="${as_dir}shtool install -c"
2647 else
2648 ac_aux_dir_found=no
2649 if $ac_first_candidate; then
2650 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2651 else
2652 break
2653 fi
2654 fi
2655 else
2656 if test -f "${as_dir}${ac_aux}"; then
2657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2658 else
2659 ac_aux_dir_found=no
2660 if $ac_first_candidate; then
2661 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2662 else
2663 break
2664 fi
2665 fi
2666 fi
2667 done
2668 if test "$ac_aux_dir_found" = yes; then
2669 ac_aux_dir="$as_dir"
2670 break
2671 fi
2672 ac_first_candidate=false
2673
2674 as_found=false
2675 done
2676 IFS=$as_save_IFS
2677 if $as_found
2678 then :
2679
2680 else $as_nop
2681 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2682 fi
2683
2684
2685 # These three variables are undocumented and unsupported,
2686 # and are intended to be withdrawn in a future Autoconf release.
2687 # They can cause serious problems if a builder's source tree is in a directory
2688 # whose full name contains unusual characters.
2689 if test -f "${ac_aux_dir}config.guess"; then
2690 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2691 fi
2692 if test -f "${ac_aux_dir}config.sub"; then
2693 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2694 fi
2695 if test -f "$ac_aux_dir/configure"; then
2696 ac_configure="$SHELL ${ac_aux_dir}configure"
2697 fi
2698
2699 # Check that the precious variables saved in the cache have kept the same
2700 # value.
2701 ac_cache_corrupted=false
2702 for ac_var in $ac_precious_vars; do
2703 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2704 eval ac_new_set=\$ac_env_${ac_var}_set
2705 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2706 eval ac_new_val=\$ac_env_${ac_var}_value
2707 case $ac_old_set,$ac_new_set in
2708 set,)
2709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2710 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2711 ac_cache_corrupted=: ;;
2712 ,set)
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2714 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2715 ac_cache_corrupted=: ;;
2716 ,);;
2717 *)
2718 if test "x$ac_old_val" != "x$ac_new_val"; then
2719 # differences in whitespace do not lead to failure.
2720 ac_old_val_w=`echo x $ac_old_val`
2721 ac_new_val_w=`echo x $ac_new_val`
2722 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2724 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2725 ac_cache_corrupted=:
2726 else
2727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2728 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2729 eval $ac_var=\$ac_old_val
2730 fi
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2732 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2734 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2735 fi;;
2736 esac
2737 # Pass precious variables to config.status.
2738 if test "$ac_new_set" = set; then
2739 case $ac_new_val in
2740 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2741 *) ac_arg=$ac_var=$ac_new_val ;;
2742 esac
2743 case " $ac_configure_args " in
2744 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2745 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2746 esac
2747 fi
2748 done
2749 if $ac_cache_corrupted; then
2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2751 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2753 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2754 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2755 and start over" "$LINENO" 5
2756 fi
2757 ## -------------------- ##
2758 ## Main body of script. ##
2759 ## -------------------- ##
2760
2761 ac_ext=c
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766
2767
2768
2769 am__api_version='1.16'
2770
2771
2772
2773 # Find a good install program. We prefer a C program (faster),
2774 # so one script is as good as another. But avoid the broken or
2775 # incompatible versions:
2776 # SysV /etc/install, /usr/sbin/install
2777 # SunOS /usr/etc/install
2778 # IRIX /sbin/install
2779 # AIX /bin/install
2780 # AmigaOS /C/install, which installs bootblocks on floppy discs
2781 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2782 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2783 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2784 # OS/2's system install, which has a completely different semantic
2785 # ./install, which can be erroneously created by make from ./install.sh.
2786 # Reject install programs that cannot install multiple files.
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2788 printf %s "checking for a BSD-compatible install... " >&6; }
2789 if test -z "$INSTALL"; then
2790 if test ${ac_cv_path_install+y}
2791 then :
2792 printf %s "(cached) " >&6
2793 else $as_nop
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 case $as_dir in #(((
2799 '') as_dir=./ ;;
2800 */) ;;
2801 *) as_dir=$as_dir/ ;;
2802 esac
2803 # Account for fact that we put trailing slashes in our PATH walk.
2804 case $as_dir in #((
2805 ./ | /[cC]/* | \
2806 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2807 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2808 /usr/ucb/* ) ;;
2809 *)
2810 # OSF1 and SCO ODT 3.0 have their own names for install.
2811 # Don't use installbsd from OSF since it installs stuff as root
2812 # by default.
2813 for ac_prog in ginstall scoinst install; do
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2816 if test $ac_prog = install &&
2817 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2818 # AIX install. It has an incompatible calling convention.
2819 :
2820 elif test $ac_prog = install &&
2821 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2822 # program-specific install script used by HP pwplus--don't use.
2823 :
2824 else
2825 rm -rf conftest.one conftest.two conftest.dir
2826 echo one > conftest.one
2827 echo two > conftest.two
2828 mkdir conftest.dir
2829 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2830 test -s conftest.one && test -s conftest.two &&
2831 test -s conftest.dir/conftest.one &&
2832 test -s conftest.dir/conftest.two
2833 then
2834 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2835 break 3
2836 fi
2837 fi
2838 fi
2839 done
2840 done
2841 ;;
2842 esac
2843
2844 done
2845 IFS=$as_save_IFS
2846
2847 rm -rf conftest.one conftest.two conftest.dir
2848
2849 fi
2850 if test ${ac_cv_path_install+y}; then
2851 INSTALL=$ac_cv_path_install
2852 else
2853 # As a last resort, use the slow shell script. Don't cache a
2854 # value for INSTALL within a source directory, because that will
2855 # break other packages using the cache if that directory is
2856 # removed, or if the value is a relative name.
2857 INSTALL=$ac_install_sh
2858 fi
2859 fi
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2861 printf "%s\n" "$INSTALL" >&6; }
2862
2863 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2864 # It thinks the first close brace ends the variable substitution.
2865 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2866
2867 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2868
2869 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2870
2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2872 printf %s "checking whether build environment is sane... " >&6; }
2873 # Reject unsafe characters in $srcdir or the absolute working directory
2874 # name. Accept space and tab only in the latter.
2875 am_lf='
2876 '
2877 case `pwd` in
2878 *[\\\"\#\$\&\'\`$am_lf]*)
2879 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2880 esac
2881 case $srcdir in
2882 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2883 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2884 esac
2885
2886 # Do 'set' in a subshell so we don't clobber the current shell's
2887 # arguments. Must try -L first in case configure is actually a
2888 # symlink; some systems play weird games with the mod time of symlinks
2889 # (eg FreeBSD returns the mod time of the symlink's containing
2890 # directory).
2891 if (
2892 am_has_slept=no
2893 for am_try in 1 2; do
2894 echo "timestamp, slept: $am_has_slept" > conftest.file
2895 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2896 if test "$*" = "X"; then
2897 # -L didn't work.
2898 set X `ls -t "$srcdir/configure" conftest.file`
2899 fi
2900 if test "$*" != "X $srcdir/configure conftest.file" \
2901 && test "$*" != "X conftest.file $srcdir/configure"; then
2902
2903 # If neither matched, then we have a broken ls. This can happen
2904 # if, for instance, CONFIG_SHELL is bash and it inherits a
2905 # broken ls alias from the environment. This has actually
2906 # happened. Such a system could not be considered "sane".
2907 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2908 alias in your environment" "$LINENO" 5
2909 fi
2910 if test "$2" = conftest.file || test $am_try -eq 2; then
2911 break
2912 fi
2913 # Just in case.
2914 sleep 1
2915 am_has_slept=yes
2916 done
2917 test "$2" = conftest.file
2918 )
2919 then
2920 # Ok.
2921 :
2922 else
2923 as_fn_error $? "newly created file is older than distributed files!
2924 Check your system clock" "$LINENO" 5
2925 fi
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2927 printf "%s\n" "yes" >&6; }
2928 # If we didn't sleep, we still need to ensure time stamps of config.status and
2929 # generated files are strictly newer.
2930 am_sleep_pid=
2931 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2932 ( sleep 1 ) &
2933 am_sleep_pid=$!
2934 fi
2935
2936 rm -f conftest.file
2937
2938 test "$program_prefix" != NONE &&
2939 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2940 # Use a double $ so make ignores it.
2941 test "$program_suffix" != NONE &&
2942 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2943 # Double any \ or $.
2944 # By default was `s,x,x', remove it if useless.
2945 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2946 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2947
2948
2949 # Expand $ac_aux_dir to an absolute path.
2950 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2951
2952
2953 if test x"${MISSING+set}" != xset; then
2954 MISSING="\${SHELL} '$am_aux_dir/missing'"
2955 fi
2956 # Use eval to expand $SHELL
2957 if eval "$MISSING --is-lightweight"; then
2958 am_missing_run="$MISSING "
2959 else
2960 am_missing_run=
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2962 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2963 fi
2964
2965 if test x"${install_sh+set}" != xset; then
2966 case $am_aux_dir in
2967 *\ * | *\ *)
2968 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2969 *)
2970 install_sh="\${SHELL} $am_aux_dir/install-sh"
2971 esac
2972 fi
2973
2974 # Installed binaries are usually stripped using 'strip' when the user
2975 # run "make install-strip". However 'strip' might not be the right
2976 # tool to use in cross-compilation environments, therefore Automake
2977 # will honor the 'STRIP' environment variable to overrule this program.
2978 if test "$cross_compiling" != no; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2981 set dummy ${ac_tool_prefix}strip; ac_word=$2
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 printf %s "checking for $ac_word... " >&6; }
2984 if test ${ac_cv_prog_STRIP+y}
2985 then :
2986 printf %s "(cached) " >&6
2987 else $as_nop
2988 if test -n "$STRIP"; then
2989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994 IFS=$as_save_IFS
2995 case $as_dir in #(((
2996 '') as_dir=./ ;;
2997 */) ;;
2998 *) as_dir=$as_dir/ ;;
2999 esac
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 STRIP=$ac_cv_prog_STRIP
3013 if test -n "$STRIP"; then
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3015 printf "%s\n" "$STRIP" >&6; }
3016 else
3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 printf "%s\n" "no" >&6; }
3019 fi
3020
3021
3022 fi
3023 if test -z "$ac_cv_prog_STRIP"; then
3024 ac_ct_STRIP=$STRIP
3025 # Extract the first word of "strip", so it can be a program name with args.
3026 set dummy strip; ac_word=$2
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 printf %s "checking for $ac_word... " >&6; }
3029 if test ${ac_cv_prog_ac_ct_STRIP+y}
3030 then :
3031 printf %s "(cached) " >&6
3032 else $as_nop
3033 if test -n "$ac_ct_STRIP"; then
3034 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039 IFS=$as_save_IFS
3040 case $as_dir in #(((
3041 '') as_dir=./ ;;
3042 */) ;;
3043 *) as_dir=$as_dir/ ;;
3044 esac
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_ac_ct_STRIP="strip"
3048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi
3056 fi
3057 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3058 if test -n "$ac_ct_STRIP"; then
3059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3060 printf "%s\n" "$ac_ct_STRIP" >&6; }
3061 else
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 printf "%s\n" "no" >&6; }
3064 fi
3065
3066 if test "x$ac_ct_STRIP" = x; then
3067 STRIP=":"
3068 else
3069 case $cross_compiling:$ac_tool_warned in
3070 yes:)
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073 ac_tool_warned=yes ;;
3074 esac
3075 STRIP=$ac_ct_STRIP
3076 fi
3077 else
3078 STRIP="$ac_cv_prog_STRIP"
3079 fi
3080
3081 fi
3082 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3083
3084
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3086 printf %s "checking for a race-free mkdir -p... " >&6; }
3087 if test -z "$MKDIR_P"; then
3088 if test ${ac_cv_path_mkdir+y}
3089 then :
3090 printf %s "(cached) " >&6
3091 else $as_nop
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3094 do
3095 IFS=$as_save_IFS
3096 case $as_dir in #(((
3097 '') as_dir=./ ;;
3098 */) ;;
3099 *) as_dir=$as_dir/ ;;
3100 esac
3101 for ac_prog in mkdir gmkdir; do
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3104 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3105 'mkdir ('*'coreutils) '* | \
3106 'BusyBox '* | \
3107 'mkdir (fileutils) '4.1*)
3108 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3109 break 3;;
3110 esac
3111 done
3112 done
3113 done
3114 IFS=$as_save_IFS
3115
3116 fi
3117
3118 test -d ./--version && rmdir ./--version
3119 if test ${ac_cv_path_mkdir+y}; then
3120 MKDIR_P="$ac_cv_path_mkdir -p"
3121 else
3122 # As a last resort, use the slow shell script. Don't cache a
3123 # value for MKDIR_P within a source directory, because that will
3124 # break other packages using the cache if that directory is
3125 # removed, or if the value is a relative name.
3126 MKDIR_P="$ac_install_sh -d"
3127 fi
3128 fi
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3130 printf "%s\n" "$MKDIR_P" >&6; }
3131
3132 for ac_prog in gawk mawk nawk awk
3133 do
3134 # Extract the first word of "$ac_prog", so it can be a program name with args.
3135 set dummy $ac_prog; ac_word=$2
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 printf %s "checking for $ac_word... " >&6; }
3138 if test ${ac_cv_prog_AWK+y}
3139 then :
3140 printf %s "(cached) " >&6
3141 else $as_nop
3142 if test -n "$AWK"; then
3143 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 case $as_dir in #(((
3150 '') as_dir=./ ;;
3151 */) ;;
3152 *) as_dir=$as_dir/ ;;
3153 esac
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_AWK="$ac_prog"
3157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160 done
3161 done
3162 IFS=$as_save_IFS
3163
3164 fi
3165 fi
3166 AWK=$ac_cv_prog_AWK
3167 if test -n "$AWK"; then
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3169 printf "%s\n" "$AWK" >&6; }
3170 else
3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 printf "%s\n" "no" >&6; }
3173 fi
3174
3175
3176 test -n "$AWK" && break
3177 done
3178
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3180 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3181 set x ${MAKE-make}
3182 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3183 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3184 then :
3185 printf %s "(cached) " >&6
3186 else $as_nop
3187 cat >conftest.make <<\_ACEOF
3188 SHELL = /bin/sh
3189 all:
3190 @echo '@@@%%%=$(MAKE)=@@@%%%'
3191 _ACEOF
3192 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3193 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3194 *@@@%%%=?*=@@@%%%*)
3195 eval ac_cv_prog_make_${ac_make}_set=yes;;
3196 *)
3197 eval ac_cv_prog_make_${ac_make}_set=no;;
3198 esac
3199 rm -f conftest.make
3200 fi
3201 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 printf "%s\n" "yes" >&6; }
3204 SET_MAKE=
3205 else
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 printf "%s\n" "no" >&6; }
3208 SET_MAKE="MAKE=${MAKE-make}"
3209 fi
3210
3211 rm -rf .tst 2>/dev/null
3212 mkdir .tst 2>/dev/null
3213 if test -d .tst; then
3214 am__leading_dot=.
3215 else
3216 am__leading_dot=_
3217 fi
3218 rmdir .tst 2>/dev/null
3219
3220 # Check whether --enable-silent-rules was given.
3221 if test ${enable_silent_rules+y}
3222 then :
3223 enableval=$enable_silent_rules;
3224 fi
3225
3226 case $enable_silent_rules in # (((
3227 yes) AM_DEFAULT_VERBOSITY=0;;
3228 no) AM_DEFAULT_VERBOSITY=1;;
3229 *) AM_DEFAULT_VERBOSITY=1;;
3230 esac
3231 am_make=${MAKE-make}
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3233 printf %s "checking whether $am_make supports nested variables... " >&6; }
3234 if test ${am_cv_make_support_nested_variables+y}
3235 then :
3236 printf %s "(cached) " >&6
3237 else $as_nop
3238 if printf "%s\n" 'TRUE=$(BAR$(V))
3239 BAR0=false
3240 BAR1=true
3241 V=1
3242 am__doit:
3243 @$(TRUE)
3244 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3245 am_cv_make_support_nested_variables=yes
3246 else
3247 am_cv_make_support_nested_variables=no
3248 fi
3249 fi
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3251 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3252 if test $am_cv_make_support_nested_variables = yes; then
3253 AM_V='$(V)'
3254 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3255 else
3256 AM_V=$AM_DEFAULT_VERBOSITY
3257 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3258 fi
3259 AM_BACKSLASH='\'
3260
3261 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3262 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3263 # is not polluted with repeated "-I."
3264 am__isrc=' -I$(srcdir)'
3265 # test to see if srcdir already configured
3266 if test -f $srcdir/config.status; then
3267 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3268 fi
3269 fi
3270
3271 # test whether we have cygpath
3272 if test -z "$CYGPATH_W"; then
3273 if (cygpath --version) >/dev/null 2>/dev/null; then
3274 CYGPATH_W='cygpath -w'
3275 else
3276 CYGPATH_W=echo
3277 fi
3278 fi
3279
3280
3281 # Define the identity of the package.
3282 PACKAGE='finit'
3283 VERSION='4.14'
3284
3285
3286 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3287
3288
3289 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3290
3291 # Some tools Automake needs.
3292
3293 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3294
3295
3296 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3297
3298
3299 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3300
3301
3302 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3303
3304
3305 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3306
3307 # For better backward compatibility. To be removed once Automake 1.9.x
3308 # dies out for good. For more background, see:
3309 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3310 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3311 mkdir_p='$(MKDIR_P)'
3312
3313 # We need awk for the "check" target (and possibly the TAP driver). The
3314 # system "awk" is bad on some platforms.
3315 # Always define AMTAR for backward compatibility. Yes, it's still used
3316 # in the wild :-( We should find a proper way to deprecate it ...
3317 AMTAR='$${TAR-tar}'
3318
3319
3320 # We'll loop over all known methods to create a tar archive until one works.
3321 _am_tools='gnutar pax cpio none'
3322
3323 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3324
3325
3326
3327
3328
3329 # Variables for tags utilities; see am/tags.am
3330 if test -z "$CTAGS"; then
3331 CTAGS=ctags
3332 fi
3333
3334 if test -z "$ETAGS"; then
3335 ETAGS=etags
3336 fi
3337
3338 if test -z "$CSCOPE"; then
3339 CSCOPE=cscope
3340 fi
3341
3342
3343
3344 # POSIX will say in a future version that running "rm -f" with no argument
3345 # is OK; and we want to be able to make that assumption in our Makefile
3346 # recipes. So use an aggressive probe to check that the usage we want is
3347 # actually supported "in the wild" to an acceptable degree.
3348 # See automake bug#10828.
3349 # To make any issue more visible, cause the running configure to be aborted
3350 # by default if the 'rm' program in use doesn't match our expectations; the
3351 # user can still override this though.
3352 if rm -f && rm -fr && rm -rf; then : OK; else
3353 cat >&2 <<'END'
3354 Oops!
3355
3356 Your 'rm' program seems unable to run without file operands specified
3357 on the command line, even when the '-f' option is present. This is contrary
3358 to the behaviour of most rm programs out there, and not conforming with
3359 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3360
3361 Please tell [email protected] about your system, including the value
3362 of your $PATH and any error possibly output before this message. This
3363 can help us improve future automake versions.
3364
3365 END
3366 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3367 echo 'Configuration will proceed anyway, since you have set the' >&2
3368 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3369 echo >&2
3370 else
3371 cat >&2 <<'END'
3372 Aborting the configuration process, to ensure you take notice of the issue.
3373
3374 You can download and install GNU coreutils to get an 'rm' implementation
3375 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3376
3377 If you want to complete the configuration process using your problematic
3378 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3379 to "yes", and re-run configure.
3380
3381 END
3382 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3383 fi
3384 fi
3385
3386 # Check whether --enable-silent-rules was given.
3387 if test ${enable_silent_rules+y}
3388 then :
3389 enableval=$enable_silent_rules;
3390 fi
3391
3392 case $enable_silent_rules in # (((
3393 yes) AM_DEFAULT_VERBOSITY=0;;
3394 no) AM_DEFAULT_VERBOSITY=1;;
3395 *) AM_DEFAULT_VERBOSITY=0;;
3396 esac
3397 am_make=${MAKE-make}
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3399 printf %s "checking whether $am_make supports nested variables... " >&6; }
3400 if test ${am_cv_make_support_nested_variables+y}
3401 then :
3402 printf %s "(cached) " >&6
3403 else $as_nop
3404 if printf "%s\n" 'TRUE=$(BAR$(V))
3405 BAR0=false
3406 BAR1=true
3407 V=1
3408 am__doit:
3409 @$(TRUE)
3410 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3411 am_cv_make_support_nested_variables=yes
3412 else
3413 am_cv_make_support_nested_variables=no
3414 fi
3415 fi
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3417 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3418 if test $am_cv_make_support_nested_variables = yes; then
3419 AM_V='$(V)'
3420 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3421 else
3422 AM_V=$AM_DEFAULT_VERBOSITY
3423 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3424 fi
3425 AM_BACKSLASH='\'
3426
3427
3428
3429 ac_config_headers="$ac_config_headers config.h"
3430
3431 ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/alpine/Makefile contrib/alpine/finit.d/Makefile contrib/alpine/finit.d/available/Makefile contrib/debian/Makefile contrib/debian/finit.d/Makefile contrib/debian/finit.d/available/Makefile contrib/void/Makefile contrib/void/finit.d/Makefile contrib/void/finit.d/available/Makefile doc/Makefile doc/config/Makefile libsystemd/Makefile libsystemd/libsystemd.pc man/Makefile plugins/Makefile src/Makefile system/Makefile system/10-hotplug.conf test/test.env test/Makefile test/lib/Makefile test/src/Makefile tmpfiles.d/Makefile"
3432
3433
3434 # Older versions of autoconf (<2.58) do not have AC_CONFIG_MACRO_DIR()
3435 #m4_include([m4/plugin.m4])
3436 #m4_include([m4/expand.m4])
3437
3438
3439 # Handle building plugins either as dynamically loadable, or built-in
3440 case `pwd` in
3441 *\ * | *\ *)
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3443 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3444 esac
3445
3446
3447
3448 macro_version='2.4.7'
3449 macro_revision='2.4.7'
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464 ltmain=$ac_aux_dir/ltmain.sh
3465
3466
3467
3468 # Make sure we can run config.sub.
3469 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3470 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3471
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3473 printf %s "checking build system type... " >&6; }
3474 if test ${ac_cv_build+y}
3475 then :
3476 printf %s "(cached) " >&6
3477 else $as_nop
3478 ac_build_alias=$build_alias
3479 test "x$ac_build_alias" = x &&
3480 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3481 test "x$ac_build_alias" = x &&
3482 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3483 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3484 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3485
3486 fi
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3488 printf "%s\n" "$ac_cv_build" >&6; }
3489 case $ac_cv_build in
3490 *-*-*) ;;
3491 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3492 esac
3493 build=$ac_cv_build
3494 ac_save_IFS=$IFS; IFS='-'
3495 set x $ac_cv_build
3496 shift
3497 build_cpu=$1
3498 build_vendor=$2
3499 shift; shift
3500 # Remember, the first character of IFS is used to create $*,
3501 # except with old shells:
3502 build_os=$*
3503 IFS=$ac_save_IFS
3504 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3505
3506
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3508 printf %s "checking host system type... " >&6; }
3509 if test ${ac_cv_host+y}
3510 then :
3511 printf %s "(cached) " >&6
3512 else $as_nop
3513 if test "x$host_alias" = x; then
3514 ac_cv_host=$ac_cv_build
3515 else
3516 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3517 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3518 fi
3519
3520 fi
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3522 printf "%s\n" "$ac_cv_host" >&6; }
3523 case $ac_cv_host in
3524 *-*-*) ;;
3525 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3526 esac
3527 host=$ac_cv_host
3528 ac_save_IFS=$IFS; IFS='-'
3529 set x $ac_cv_host
3530 shift
3531 host_cpu=$1
3532 host_vendor=$2
3533 shift; shift
3534 # Remember, the first character of IFS is used to create $*,
3535 # except with old shells:
3536 host_os=$*
3537 IFS=$ac_save_IFS
3538 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3539
3540
3541 # Backslashify metacharacters that are still active within
3542 # double-quoted strings.
3543 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3544
3545 # Same as above, but do not quote variable references.
3546 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3547
3548 # Sed substitution to delay expansion of an escaped shell variable in a
3549 # double_quote_subst'ed string.
3550 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3551
3552 # Sed substitution to delay expansion of an escaped single quote.
3553 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3554
3555 # Sed substitution to avoid accidental globbing in evaled expressions
3556 no_glob_subst='s/\*/\\\*/g'
3557
3558 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3559 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3560 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3561
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3563 printf %s "checking how to print strings... " >&6; }
3564 # Test print first, because it will be a builtin if present.
3565 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3566 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3567 ECHO='print -r --'
3568 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3569 ECHO='printf %s\n'
3570 else
3571 # Use this function as a fallback that always works.
3572 func_fallback_echo ()
3573 {
3574 eval 'cat <<_LTECHO_EOF
3575 $1
3576 _LTECHO_EOF'
3577 }
3578 ECHO='func_fallback_echo'
3579 fi
3580
3581 # func_echo_all arg...
3582 # Invoke $ECHO with all args, space-separated.
3583 func_echo_all ()
3584 {
3585 $ECHO ""
3586 }
3587
3588 case $ECHO in
3589 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3590 printf "%s\n" "printf" >&6; } ;;
3591 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3592 printf "%s\n" "print -r" >&6; } ;;
3593 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3594 printf "%s\n" "cat" >&6; } ;;
3595 esac
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619 DEPDIR="${am__leading_dot}deps"
3620
3621 ac_config_commands="$ac_config_commands depfiles"
3622
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3624 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3625 cat > confinc.mk << 'END'
3626 am__doit:
3627 @echo this is the am__doit target >confinc.out
3628 .PHONY: am__doit
3629 END
3630 am__include="#"
3631 am__quote=
3632 # BSD make does it like this.
3633 echo '.include "confinc.mk" # ignored' > confmf.BSD
3634 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3635 echo 'include confinc.mk # ignored' > confmf.GNU
3636 _am_result=no
3637 for s in GNU BSD; do
3638 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3639 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }
3643 case $?:`cat confinc.out 2>/dev/null` in #(
3644 '0:this is the am__doit target') :
3645 case $s in #(
3646 BSD) :
3647 am__include='.include' am__quote='"' ;; #(
3648 *) :
3649 am__include='include' am__quote='' ;;
3650 esac ;; #(
3651 *) :
3652 ;;
3653 esac
3654 if test "$am__include" != "#"; then
3655 _am_result="yes ($s style)"
3656 break
3657 fi
3658 done
3659 rm -f confinc.* confmf.*
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3661 printf "%s\n" "${_am_result}" >&6; }
3662
3663 # Check whether --enable-dependency-tracking was given.
3664 if test ${enable_dependency_tracking+y}
3665 then :
3666 enableval=$enable_dependency_tracking;
3667 fi
3668
3669 if test "x$enable_dependency_tracking" != xno; then
3670 am_depcomp="$ac_aux_dir/depcomp"
3671 AMDEPBACKSLASH='\'
3672 am__nodep='_no'
3673 fi
3674 if test "x$enable_dependency_tracking" != xno; then
3675 AMDEP_TRUE=
3676 AMDEP_FALSE='#'
3677 else
3678 AMDEP_TRUE='#'
3679 AMDEP_FALSE=
3680 fi
3681
3682
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688 if test -n "$ac_tool_prefix"; then
3689 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3690 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 printf %s "checking for $ac_word... " >&6; }
3693 if test ${ac_cv_prog_CC+y}
3694 then :
3695 printf %s "(cached) " >&6
3696 else $as_nop
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703 IFS=$as_save_IFS
3704 case $as_dir in #(((
3705 '') as_dir=./ ;;
3706 */) ;;
3707 *) as_dir=$as_dir/ ;;
3708 esac
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3713 break 2
3714 fi
3715 done
3716 done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 CC=$ac_cv_prog_CC
3722 if test -n "$CC"; then
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 printf "%s\n" "$CC" >&6; }
3725 else
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 printf "%s\n" "no" >&6; }
3728 fi
3729
3730
3731 fi
3732 if test -z "$ac_cv_prog_CC"; then
3733 ac_ct_CC=$CC
3734 # Extract the first word of "gcc", so it can be a program name with args.
3735 set dummy gcc; ac_word=$2
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 printf %s "checking for $ac_word... " >&6; }
3738 if test ${ac_cv_prog_ac_ct_CC+y}
3739 then :
3740 printf %s "(cached) " >&6
3741 else $as_nop
3742 if test -n "$ac_ct_CC"; then
3743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 case $as_dir in #(((
3750 '') as_dir=./ ;;
3751 */) ;;
3752 *) as_dir=$as_dir/ ;;
3753 esac
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_ac_ct_CC="gcc"
3757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760 done
3761 done
3762 IFS=$as_save_IFS
3763
3764 fi
3765 fi
3766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 printf "%s\n" "$ac_ct_CC" >&6; }
3770 else
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 printf "%s\n" "no" >&6; }
3773 fi
3774
3775 if test "x$ac_ct_CC" = x; then
3776 CC=""
3777 else
3778 case $cross_compiling:$ac_tool_warned in
3779 yes:)
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3781 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3782 ac_tool_warned=yes ;;
3783 esac
3784 CC=$ac_ct_CC
3785 fi
3786 else
3787 CC="$ac_cv_prog_CC"
3788 fi
3789
3790 if test -z "$CC"; then
3791 if test -n "$ac_tool_prefix"; then
3792 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3793 set dummy ${ac_tool_prefix}cc; ac_word=$2
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 printf %s "checking for $ac_word... " >&6; }
3796 if test ${ac_cv_prog_CC+y}
3797 then :
3798 printf %s "(cached) " >&6
3799 else $as_nop
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC="$CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806 IFS=$as_save_IFS
3807 case $as_dir in #(((
3808 '') as_dir=./ ;;
3809 */) ;;
3810 *) as_dir=$as_dir/ ;;
3811 esac
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_CC="${ac_tool_prefix}cc"
3815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818 done
3819 done
3820 IFS=$as_save_IFS
3821
3822 fi
3823 fi
3824 CC=$ac_cv_prog_CC
3825 if test -n "$CC"; then
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3827 printf "%s\n" "$CC" >&6; }
3828 else
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 printf "%s\n" "no" >&6; }
3831 fi
3832
3833
3834 fi
3835 fi
3836 if test -z "$CC"; then
3837 # Extract the first word of "cc", so it can be a program name with args.
3838 set dummy cc; ac_word=$2
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 printf %s "checking for $ac_word... " >&6; }
3841 if test ${ac_cv_prog_CC+y}
3842 then :
3843 printf %s "(cached) " >&6
3844 else $as_nop
3845 if test -n "$CC"; then
3846 ac_cv_prog_CC="$CC" # Let the user override the test.
3847 else
3848 ac_prog_rejected=no
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3851 do
3852 IFS=$as_save_IFS
3853 case $as_dir in #(((
3854 '') as_dir=./ ;;
3855 */) ;;
3856 *) as_dir=$as_dir/ ;;
3857 esac
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3860 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3861 ac_prog_rejected=yes
3862 continue
3863 fi
3864 ac_cv_prog_CC="cc"
3865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3866 break 2
3867 fi
3868 done
3869 done
3870 IFS=$as_save_IFS
3871
3872 if test $ac_prog_rejected = yes; then
3873 # We found a bogon in the path, so make sure we never use it.
3874 set dummy $ac_cv_prog_CC
3875 shift
3876 if test $# != 0; then
3877 # We chose a different compiler from the bogus one.
3878 # However, it has the same basename, so the bogon will be chosen
3879 # first if we set CC to just the basename; use the full file name.
3880 shift
3881 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3882 fi
3883 fi
3884 fi
3885 fi
3886 CC=$ac_cv_prog_CC
3887 if test -n "$CC"; then
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3889 printf "%s\n" "$CC" >&6; }
3890 else
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 printf "%s\n" "no" >&6; }
3893 fi
3894
3895
3896 fi
3897 if test -z "$CC"; then
3898 if test -n "$ac_tool_prefix"; then
3899 for ac_prog in cl.exe
3900 do
3901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 printf %s "checking for $ac_word... " >&6; }
3905 if test ${ac_cv_prog_CC+y}
3906 then :
3907 printf %s "(cached) " >&6
3908 else $as_nop
3909 if test -n "$CC"; then
3910 ac_cv_prog_CC="$CC" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915 IFS=$as_save_IFS
3916 case $as_dir in #(((
3917 '') as_dir=./ ;;
3918 */) ;;
3919 *) as_dir=$as_dir/ ;;
3920 esac
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3925 break 2
3926 fi
3927 done
3928 done
3929 IFS=$as_save_IFS
3930
3931 fi
3932 fi
3933 CC=$ac_cv_prog_CC
3934 if test -n "$CC"; then
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936 printf "%s\n" "$CC" >&6; }
3937 else
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 printf "%s\n" "no" >&6; }
3940 fi
3941
3942
3943 test -n "$CC" && break
3944 done
3945 fi
3946 if test -z "$CC"; then
3947 ac_ct_CC=$CC
3948 for ac_prog in cl.exe
3949 do
3950 # Extract the first word of "$ac_prog", so it can be a program name with args.
3951 set dummy $ac_prog; ac_word=$2
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953 printf %s "checking for $ac_word... " >&6; }
3954 if test ${ac_cv_prog_ac_ct_CC+y}
3955 then :
3956 printf %s "(cached) " >&6
3957 else $as_nop
3958 if test -n "$ac_ct_CC"; then
3959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964 IFS=$as_save_IFS
3965 case $as_dir in #(((
3966 '') as_dir=./ ;;
3967 */) ;;
3968 *) as_dir=$as_dir/ ;;
3969 esac
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3972 ac_cv_prog_ac_ct_CC="$ac_prog"
3973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3974 break 2
3975 fi
3976 done
3977 done
3978 IFS=$as_save_IFS
3979
3980 fi
3981 fi
3982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3983 if test -n "$ac_ct_CC"; then
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3985 printf "%s\n" "$ac_ct_CC" >&6; }
3986 else
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 printf "%s\n" "no" >&6; }
3989 fi
3990
3991
3992 test -n "$ac_ct_CC" && break
3993 done
3994
3995 if test "x$ac_ct_CC" = x; then
3996 CC=""
3997 else
3998 case $cross_compiling:$ac_tool_warned in
3999 yes:)
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002 ac_tool_warned=yes ;;
4003 esac
4004 CC=$ac_ct_CC
4005 fi
4006 fi
4007
4008 fi
4009 if test -z "$CC"; then
4010 if test -n "$ac_tool_prefix"; then
4011 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4012 set dummy ${ac_tool_prefix}clang; ac_word=$2
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 printf %s "checking for $ac_word... " >&6; }
4015 if test ${ac_cv_prog_CC+y}
4016 then :
4017 printf %s "(cached) " >&6
4018 else $as_nop
4019 if test -n "$CC"; then
4020 ac_cv_prog_CC="$CC" # Let the user override the test.
4021 else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4024 do
4025 IFS=$as_save_IFS
4026 case $as_dir in #(((
4027 '') as_dir=./ ;;
4028 */) ;;
4029 *) as_dir=$as_dir/ ;;
4030 esac
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4033 ac_cv_prog_CC="${ac_tool_prefix}clang"
4034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4035 break 2
4036 fi
4037 done
4038 done
4039 IFS=$as_save_IFS
4040
4041 fi
4042 fi
4043 CC=$ac_cv_prog_CC
4044 if test -n "$CC"; then
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4046 printf "%s\n" "$CC" >&6; }
4047 else
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 printf "%s\n" "no" >&6; }
4050 fi
4051
4052
4053 fi
4054 if test -z "$ac_cv_prog_CC"; then
4055 ac_ct_CC=$CC
4056 # Extract the first word of "clang", so it can be a program name with args.
4057 set dummy clang; ac_word=$2
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 printf %s "checking for $ac_word... " >&6; }
4060 if test ${ac_cv_prog_ac_ct_CC+y}
4061 then :
4062 printf %s "(cached) " >&6
4063 else $as_nop
4064 if test -n "$ac_ct_CC"; then
4065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070 IFS=$as_save_IFS
4071 case $as_dir in #(((
4072 '') as_dir=./ ;;
4073 */) ;;
4074 *) as_dir=$as_dir/ ;;
4075 esac
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4078 ac_cv_prog_ac_ct_CC="clang"
4079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4080 break 2
4081 fi
4082 done
4083 done
4084 IFS=$as_save_IFS
4085
4086 fi
4087 fi
4088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4089 if test -n "$ac_ct_CC"; then
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4091 printf "%s\n" "$ac_ct_CC" >&6; }
4092 else
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094 printf "%s\n" "no" >&6; }
4095 fi
4096
4097 if test "x$ac_ct_CC" = x; then
4098 CC=""
4099 else
4100 case $cross_compiling:$ac_tool_warned in
4101 yes:)
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4103 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4104 ac_tool_warned=yes ;;
4105 esac
4106 CC=$ac_ct_CC
4107 fi
4108 else
4109 CC="$ac_cv_prog_CC"
4110 fi
4111
4112 fi
4113
4114
4115 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4117 as_fn_error $? "no acceptable C compiler found in \$PATH
4118 See \`config.log' for more details" "$LINENO" 5; }
4119
4120 # Provide some information about the compiler.
4121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4122 set X $ac_compile
4123 ac_compiler=$2
4124 for ac_option in --version -v -V -qversion -version; do
4125 { { ac_try="$ac_compiler $ac_option >&5"
4126 case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131 printf "%s\n" "$ac_try_echo"; } >&5
4132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4133 ac_status=$?
4134 if test -s conftest.err; then
4135 sed '10a\
4136 ... rest of stderr output deleted ...
4137 10q' conftest.err >conftest.er1
4138 cat conftest.er1 >&5
4139 fi
4140 rm -f conftest.er1 conftest.err
4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4142 test $ac_status = 0; }
4143 done
4144
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147
4148 int
4149 main (void)
4150 {
4151
4152 ;
4153 return 0;
4154 }
4155 _ACEOF
4156 ac_clean_files_save=$ac_clean_files
4157 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4158 # Try to create an executable without -o first, disregard a.out.
4159 # It will help us diagnose broken compilers, and finding out an intuition
4160 # of exeext.
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4162 printf %s "checking whether the C compiler works... " >&6; }
4163 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4164
4165 # The possible output files:
4166 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4167
4168 ac_rmfiles=
4169 for ac_file in $ac_files
4170 do
4171 case $ac_file in
4172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4173 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4174 esac
4175 done
4176 rm -f $ac_rmfiles
4177
4178 if { { ac_try="$ac_link_default"
4179 case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182 esac
4183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184 printf "%s\n" "$ac_try_echo"; } >&5
4185 (eval "$ac_link_default") 2>&5
4186 ac_status=$?
4187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188 test $ac_status = 0; }
4189 then :
4190 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4191 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4192 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4193 # so that the user can short-circuit this test for compilers unknown to
4194 # Autoconf.
4195 for ac_file in $ac_files ''
4196 do
4197 test -f "$ac_file" || continue
4198 case $ac_file in
4199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4200 ;;
4201 [ab].out )
4202 # We found the default executable, but exeext='' is most
4203 # certainly right.
4204 break;;
4205 *.* )
4206 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4207 then :; else
4208 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4209 fi
4210 # We set ac_cv_exeext here because the later test for it is not
4211 # safe: cross compilers may not add the suffix if given an `-o'
4212 # argument, so we may need to know it at that point already.
4213 # Even if this section looks crufty: it has the advantage of
4214 # actually working.
4215 break;;
4216 * )
4217 break;;
4218 esac
4219 done
4220 test "$ac_cv_exeext" = no && ac_cv_exeext=
4221
4222 else $as_nop
4223 ac_file=''
4224 fi
4225 if test -z "$ac_file"
4226 then :
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 printf "%s\n" "no" >&6; }
4229 printf "%s\n" "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4231
4232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4233 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4234 as_fn_error 77 "C compiler cannot create executables
4235 See \`config.log' for more details" "$LINENO" 5; }
4236 else $as_nop
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4238 printf "%s\n" "yes" >&6; }
4239 fi
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4241 printf %s "checking for C compiler default output file name... " >&6; }
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4243 printf "%s\n" "$ac_file" >&6; }
4244 ac_exeext=$ac_cv_exeext
4245
4246 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4247 ac_clean_files=$ac_clean_files_save
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4249 printf %s "checking for suffix of executables... " >&6; }
4250 if { { ac_try="$ac_link"
4251 case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254 esac
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 printf "%s\n" "$ac_try_echo"; } >&5
4257 (eval "$ac_link") 2>&5
4258 ac_status=$?
4259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260 test $ac_status = 0; }
4261 then :
4262 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4263 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4264 # work properly (i.e., refer to `conftest.exe'), while it won't with
4265 # `rm'.
4266 for ac_file in conftest.exe conftest conftest.*; do
4267 test -f "$ac_file" || continue
4268 case $ac_file in
4269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4270 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4271 break;;
4272 * ) break;;
4273 esac
4274 done
4275 else $as_nop
4276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4277 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4278 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4279 See \`config.log' for more details" "$LINENO" 5; }
4280 fi
4281 rm -f conftest conftest$ac_cv_exeext
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4283 printf "%s\n" "$ac_cv_exeext" >&6; }
4284
4285 rm -f conftest.$ac_ext
4286 EXEEXT=$ac_cv_exeext
4287 ac_exeext=$EXEEXT
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 #include <stdio.h>
4291 int
4292 main (void)
4293 {
4294 FILE *f = fopen ("conftest.out", "w");
4295 return ferror (f) || fclose (f) != 0;
4296
4297 ;
4298 return 0;
4299 }
4300 _ACEOF
4301 ac_clean_files="$ac_clean_files conftest.out"
4302 # Check that the compiler produces executables we can run. If not, either
4303 # the compiler is broken, or we cross compile.
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4305 printf %s "checking whether we are cross compiling... " >&6; }
4306 if test "$cross_compiling" != yes; then
4307 { { ac_try="$ac_link"
4308 case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311 esac
4312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313 printf "%s\n" "$ac_try_echo"; } >&5
4314 (eval "$ac_link") 2>&5
4315 ac_status=$?
4316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }
4318 if { ac_try='./conftest$ac_cv_exeext'
4319 { { case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 printf "%s\n" "$ac_try_echo"; } >&5
4325 (eval "$ac_try") 2>&5
4326 ac_status=$?
4327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }; }; then
4329 cross_compiling=no
4330 else
4331 if test "$cross_compiling" = maybe; then
4332 cross_compiling=yes
4333 else
4334 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4335 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4336 as_fn_error 77 "cannot run C compiled programs.
4337 If you meant to cross compile, use \`--host'.
4338 See \`config.log' for more details" "$LINENO" 5; }
4339 fi
4340 fi
4341 fi
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4343 printf "%s\n" "$cross_compiling" >&6; }
4344
4345 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4346 ac_clean_files=$ac_clean_files_save
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4348 printf %s "checking for suffix of object files... " >&6; }
4349 if test ${ac_cv_objext+y}
4350 then :
4351 printf %s "(cached) " >&6
4352 else $as_nop
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355
4356 int
4357 main (void)
4358 {
4359
4360 ;
4361 return 0;
4362 }
4363 _ACEOF
4364 rm -f conftest.o conftest.obj
4365 if { { ac_try="$ac_compile"
4366 case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 printf "%s\n" "$ac_try_echo"; } >&5
4372 (eval "$ac_compile") 2>&5
4373 ac_status=$?
4374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375 test $ac_status = 0; }
4376 then :
4377 for ac_file in conftest.o conftest.obj conftest.*; do
4378 test -f "$ac_file" || continue;
4379 case $ac_file in
4380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4382 break;;
4383 esac
4384 done
4385 else $as_nop
4386 printf "%s\n" "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4390 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4391 as_fn_error $? "cannot compute suffix of object files: cannot compile
4392 See \`config.log' for more details" "$LINENO" 5; }
4393 fi
4394 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4395 fi
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4397 printf "%s\n" "$ac_cv_objext" >&6; }
4398 OBJEXT=$ac_cv_objext
4399 ac_objext=$OBJEXT
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4401 printf %s "checking whether the compiler supports GNU C... " >&6; }
4402 if test ${ac_cv_c_compiler_gnu+y}
4403 then :
4404 printf %s "(cached) " >&6
4405 else $as_nop
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408
4409 int
4410 main (void)
4411 {
4412 #ifndef __GNUC__
4413 choke me
4414 #endif
4415
4416 ;
4417 return 0;
4418 }
4419 _ACEOF
4420 if ac_fn_c_try_compile "$LINENO"
4421 then :
4422 ac_compiler_gnu=yes
4423 else $as_nop
4424 ac_compiler_gnu=no
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4428
4429 fi
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4431 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433
4434 if test $ac_compiler_gnu = yes; then
4435 GCC=yes
4436 else
4437 GCC=
4438 fi
4439 ac_test_CFLAGS=${CFLAGS+y}
4440 ac_save_CFLAGS=$CFLAGS
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4442 printf %s "checking whether $CC accepts -g... " >&6; }
4443 if test ${ac_cv_prog_cc_g+y}
4444 then :
4445 printf %s "(cached) " >&6
4446 else $as_nop
4447 ac_save_c_werror_flag=$ac_c_werror_flag
4448 ac_c_werror_flag=yes
4449 ac_cv_prog_cc_g=no
4450 CFLAGS="-g"
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453
4454 int
4455 main (void)
4456 {
4457
4458 ;
4459 return 0;
4460 }
4461 _ACEOF
4462 if ac_fn_c_try_compile "$LINENO"
4463 then :
4464 ac_cv_prog_cc_g=yes
4465 else $as_nop
4466 CFLAGS=""
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469
4470 int
4471 main (void)
4472 {
4473
4474 ;
4475 return 0;
4476 }
4477 _ACEOF
4478 if ac_fn_c_try_compile "$LINENO"
4479 then :
4480
4481 else $as_nop
4482 ac_c_werror_flag=$ac_save_c_werror_flag
4483 CFLAGS="-g"
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486
4487 int
4488 main (void)
4489 {
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_c_try_compile "$LINENO"
4496 then :
4497 ac_cv_prog_cc_g=yes
4498 fi
4499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4502 fi
4503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4504 ac_c_werror_flag=$ac_save_c_werror_flag
4505 fi
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4507 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4508 if test $ac_test_CFLAGS; then
4509 CFLAGS=$ac_save_CFLAGS
4510 elif test $ac_cv_prog_cc_g = yes; then
4511 if test "$GCC" = yes; then
4512 CFLAGS="-g -O2"
4513 else
4514 CFLAGS="-g"
4515 fi
4516 else
4517 if test "$GCC" = yes; then
4518 CFLAGS="-O2"
4519 else
4520 CFLAGS=
4521 fi
4522 fi
4523 ac_prog_cc_stdc=no
4524 if test x$ac_prog_cc_stdc = xno
4525 then :
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4527 printf %s "checking for $CC option to enable C11 features... " >&6; }
4528 if test ${ac_cv_prog_cc_c11+y}
4529 then :
4530 printf %s "(cached) " >&6
4531 else $as_nop
4532 ac_cv_prog_cc_c11=no
4533 ac_save_CC=$CC
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536 $ac_c_conftest_c11_program
4537 _ACEOF
4538 for ac_arg in '' -std=gnu11
4539 do
4540 CC="$ac_save_CC $ac_arg"
4541 if ac_fn_c_try_compile "$LINENO"
4542 then :
4543 ac_cv_prog_cc_c11=$ac_arg
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext conftest.beam
4546 test "x$ac_cv_prog_cc_c11" != "xno" && break
4547 done
4548 rm -f conftest.$ac_ext
4549 CC=$ac_save_CC
4550 fi
4551
4552 if test "x$ac_cv_prog_cc_c11" = xno
4553 then :
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4555 printf "%s\n" "unsupported" >&6; }
4556 else $as_nop
4557 if test "x$ac_cv_prog_cc_c11" = x
4558 then :
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4560 printf "%s\n" "none needed" >&6; }
4561 else $as_nop
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4563 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4564 CC="$CC $ac_cv_prog_cc_c11"
4565 fi
4566 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4567 ac_prog_cc_stdc=c11
4568 fi
4569 fi
4570 if test x$ac_prog_cc_stdc = xno
4571 then :
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4573 printf %s "checking for $CC option to enable C99 features... " >&6; }
4574 if test ${ac_cv_prog_cc_c99+y}
4575 then :
4576 printf %s "(cached) " >&6
4577 else $as_nop
4578 ac_cv_prog_cc_c99=no
4579 ac_save_CC=$CC
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582 $ac_c_conftest_c99_program
4583 _ACEOF
4584 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4585 do
4586 CC="$ac_save_CC $ac_arg"
4587 if ac_fn_c_try_compile "$LINENO"
4588 then :
4589 ac_cv_prog_cc_c99=$ac_arg
4590 fi
4591 rm -f core conftest.err conftest.$ac_objext conftest.beam
4592 test "x$ac_cv_prog_cc_c99" != "xno" && break
4593 done
4594 rm -f conftest.$ac_ext
4595 CC=$ac_save_CC
4596 fi
4597
4598 if test "x$ac_cv_prog_cc_c99" = xno
4599 then :
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4601 printf "%s\n" "unsupported" >&6; }
4602 else $as_nop
4603 if test "x$ac_cv_prog_cc_c99" = x
4604 then :
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4606 printf "%s\n" "none needed" >&6; }
4607 else $as_nop
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4609 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4610 CC="$CC $ac_cv_prog_cc_c99"
4611 fi
4612 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4613 ac_prog_cc_stdc=c99
4614 fi
4615 fi
4616 if test x$ac_prog_cc_stdc = xno
4617 then :
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4619 printf %s "checking for $CC option to enable C89 features... " >&6; }
4620 if test ${ac_cv_prog_cc_c89+y}
4621 then :
4622 printf %s "(cached) " >&6
4623 else $as_nop
4624 ac_cv_prog_cc_c89=no
4625 ac_save_CC=$CC
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628 $ac_c_conftest_c89_program
4629 _ACEOF
4630 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4631 do
4632 CC="$ac_save_CC $ac_arg"
4633 if ac_fn_c_try_compile "$LINENO"
4634 then :
4635 ac_cv_prog_cc_c89=$ac_arg
4636 fi
4637 rm -f core conftest.err conftest.$ac_objext conftest.beam
4638 test "x$ac_cv_prog_cc_c89" != "xno" && break
4639 done
4640 rm -f conftest.$ac_ext
4641 CC=$ac_save_CC
4642 fi
4643
4644 if test "x$ac_cv_prog_cc_c89" = xno
4645 then :
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4647 printf "%s\n" "unsupported" >&6; }
4648 else $as_nop
4649 if test "x$ac_cv_prog_cc_c89" = x
4650 then :
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4652 printf "%s\n" "none needed" >&6; }
4653 else $as_nop
4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4655 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4656 CC="$CC $ac_cv_prog_cc_c89"
4657 fi
4658 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4659 ac_prog_cc_stdc=c89
4660 fi
4661 fi
4662
4663 ac_ext=c
4664 ac_cpp='$CPP $CPPFLAGS'
4665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4668
4669
4670 ac_ext=c
4671 ac_cpp='$CPP $CPPFLAGS'
4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4676 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4677 if test ${am_cv_prog_cc_c_o+y}
4678 then :
4679 printf %s "(cached) " >&6
4680 else $as_nop
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683
4684 int
4685 main (void)
4686 {
4687
4688 ;
4689 return 0;
4690 }
4691 _ACEOF
4692 # Make sure it works both with $CC and with simple cc.
4693 # Following AC_PROG_CC_C_O, we do the test twice because some
4694 # compilers refuse to overwrite an existing .o file with -o,
4695 # though they will create one.
4696 am_cv_prog_cc_c_o=yes
4697 for am_i in 1 2; do
4698 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4699 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } \
4703 && test -f conftest2.$ac_objext; then
4704 : OK
4705 else
4706 am_cv_prog_cc_c_o=no
4707 break
4708 fi
4709 done
4710 rm -f core conftest*
4711 unset am_i
4712 fi
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4714 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4715 if test "$am_cv_prog_cc_c_o" != yes; then
4716 # Losing compiler, so override with the script.
4717 # FIXME: It is wrong to rewrite CC.
4718 # But if we don't then we get into trouble of one sort or another.
4719 # A longer-term fix would be to have automake use am__CC in this case,
4720 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4721 CC="$am_aux_dir/compile $CC"
4722 fi
4723 ac_ext=c
4724 ac_cpp='$CPP $CPPFLAGS'
4725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4728
4729
4730 depcc="$CC" am_compiler_list=
4731
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4733 printf %s "checking dependency style of $depcc... " >&6; }
4734 if test ${am_cv_CC_dependencies_compiler_type+y}
4735 then :
4736 printf %s "(cached) " >&6
4737 else $as_nop
4738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4739 # We make a subdir and do the tests there. Otherwise we can end up
4740 # making bogus files that we don't know about and never remove. For
4741 # instance it was reported that on HP-UX the gcc test will end up
4742 # making a dummy file named 'D' -- because '-MD' means "put the output
4743 # in D".
4744 rm -rf conftest.dir
4745 mkdir conftest.dir
4746 # Copy depcomp to subdir because otherwise we won't find it if we're
4747 # using a relative directory.
4748 cp "$am_depcomp" conftest.dir
4749 cd conftest.dir
4750 # We will build objects and dependencies in a subdirectory because
4751 # it helps to detect inapplicable dependency modes. For instance
4752 # both Tru64's cc and ICC support -MD to output dependencies as a
4753 # side effect of compilation, but ICC will put the dependencies in
4754 # the current directory while Tru64 will put them in the object
4755 # directory.
4756 mkdir sub
4757
4758 am_cv_CC_dependencies_compiler_type=none
4759 if test "$am_compiler_list" = ""; then
4760 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4761 fi
4762 am__universal=false
4763 case " $depcc " in #(
4764 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4765 esac
4766
4767 for depmode in $am_compiler_list; do
4768 # Setup a source with many dependencies, because some compilers
4769 # like to wrap large dependency lists on column 80 (with \), and
4770 # we should not choose a depcomp mode which is confused by this.
4771 #
4772 # We need to recreate these files for each test, as the compiler may
4773 # overwrite some of them when testing with obscure command lines.
4774 # This happens at least with the AIX C compiler.
4775 : > sub/conftest.c
4776 for i in 1 2 3 4 5 6; do
4777 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4778 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4779 # Solaris 10 /bin/sh.
4780 echo '/* dummy */' > sub/conftst$i.h
4781 done
4782 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4783
4784 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4785 # mode. It turns out that the SunPro C++ compiler does not properly
4786 # handle '-M -o', and we need to detect this. Also, some Intel
4787 # versions had trouble with output in subdirs.
4788 am__obj=sub/conftest.${OBJEXT-o}
4789 am__minus_obj="-o $am__obj"
4790 case $depmode in
4791 gcc)
4792 # This depmode causes a compiler race in universal mode.
4793 test "$am__universal" = false || continue
4794 ;;
4795 nosideeffect)
4796 # After this tag, mechanisms are not by side-effect, so they'll
4797 # only be used when explicitly requested.
4798 if test "x$enable_dependency_tracking" = xyes; then
4799 continue
4800 else
4801 break
4802 fi
4803 ;;
4804 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4805 # This compiler won't grok '-c -o', but also, the minuso test has
4806 # not run yet. These depmodes are late enough in the game, and
4807 # so weak that their functioning should not be impacted.
4808 am__obj=conftest.${OBJEXT-o}
4809 am__minus_obj=
4810 ;;
4811 none) break ;;
4812 esac
4813 if depmode=$depmode \
4814 source=sub/conftest.c object=$am__obj \
4815 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4816 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4817 >/dev/null 2>conftest.err &&
4818 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4819 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4820 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4821 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4822 # icc doesn't choke on unknown options, it will just issue warnings
4823 # or remarks (even with -Werror). So we grep stderr for any message
4824 # that says an option was ignored or not supported.
4825 # When given -MP, icc 7.0 and 7.1 complain thusly:
4826 # icc: Command line warning: ignoring option '-M'; no argument required
4827 # The diagnosis changed in icc 8.0:
4828 # icc: Command line remark: option '-MP' not supported
4829 if (grep 'ignoring option' conftest.err ||
4830 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4831 am_cv_CC_dependencies_compiler_type=$depmode
4832 break
4833 fi
4834 fi
4835 done
4836
4837 cd ..
4838 rm -rf conftest.dir
4839 else
4840 am_cv_CC_dependencies_compiler_type=none
4841 fi
4842
4843 fi
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4845 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4846 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4847
4848 if
4849 test "x$enable_dependency_tracking" != xno \
4850 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4851 am__fastdepCC_TRUE=
4852 am__fastdepCC_FALSE='#'
4853 else
4854 am__fastdepCC_TRUE='#'
4855 am__fastdepCC_FALSE=
4856 fi
4857
4858
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4860 printf %s "checking for a sed that does not truncate output... " >&6; }
4861 if test ${ac_cv_path_SED+y}
4862 then :
4863 printf %s "(cached) " >&6
4864 else $as_nop
4865 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4866 for ac_i in 1 2 3 4 5 6 7; do
4867 ac_script="$ac_script$as_nl$ac_script"
4868 done
4869 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4870 { ac_script=; unset ac_script;}
4871 if test -z "$SED"; then
4872 ac_path_SED_found=false
4873 # Loop through the user's path and test for each of PROGNAME-LIST
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877 IFS=$as_save_IFS
4878 case $as_dir in #(((
4879 '') as_dir=./ ;;
4880 */) ;;
4881 *) as_dir=$as_dir/ ;;
4882 esac
4883 for ac_prog in sed gsed
4884 do
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4887 as_fn_executable_p "$ac_path_SED" || continue
4888 # Check for GNU ac_path_SED and select it if it is found.
4889 # Check for GNU $ac_path_SED
4890 case `"$ac_path_SED" --version 2>&1` in
4891 *GNU*)
4892 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4893 *)
4894 ac_count=0
4895 printf %s 0123456789 >"conftest.in"
4896 while :
4897 do
4898 cat "conftest.in" "conftest.in" >"conftest.tmp"
4899 mv "conftest.tmp" "conftest.in"
4900 cp "conftest.in" "conftest.nl"
4901 printf "%s\n" '' >> "conftest.nl"
4902 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4904 as_fn_arith $ac_count + 1 && ac_count=$as_val
4905 if test $ac_count -gt ${ac_path_SED_max-0}; then
4906 # Best one so far, save it but keep looking for a better one
4907 ac_cv_path_SED="$ac_path_SED"
4908 ac_path_SED_max=$ac_count
4909 fi
4910 # 10*(2^10) chars as input seems more than enough
4911 test $ac_count -gt 10 && break
4912 done
4913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4914 esac
4915
4916 $ac_path_SED_found && break 3
4917 done
4918 done
4919 done
4920 IFS=$as_save_IFS
4921 if test -z "$ac_cv_path_SED"; then
4922 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4923 fi
4924 else
4925 ac_cv_path_SED=$SED
4926 fi
4927
4928 fi
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4930 printf "%s\n" "$ac_cv_path_SED" >&6; }
4931 SED="$ac_cv_path_SED"
4932 rm -f conftest.sed
4933
4934 test -z "$SED" && SED=sed
4935 Xsed="$SED -e 1s/^X//"
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4948 printf %s "checking for grep that handles long lines and -e... " >&6; }
4949 if test ${ac_cv_path_GREP+y}
4950 then :
4951 printf %s "(cached) " >&6
4952 else $as_nop
4953 if test -z "$GREP"; then
4954 ac_path_GREP_found=false
4955 # Loop through the user's path and test for each of PROGNAME-LIST
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4958 do
4959 IFS=$as_save_IFS
4960 case $as_dir in #(((
4961 '') as_dir=./ ;;
4962 */) ;;
4963 *) as_dir=$as_dir/ ;;
4964 esac
4965 for ac_prog in grep ggrep
4966 do
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4969 as_fn_executable_p "$ac_path_GREP" || continue
4970 # Check for GNU ac_path_GREP and select it if it is found.
4971 # Check for GNU $ac_path_GREP
4972 case `"$ac_path_GREP" --version 2>&1` in
4973 *GNU*)
4974 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4975 *)
4976 ac_count=0
4977 printf %s 0123456789 >"conftest.in"
4978 while :
4979 do
4980 cat "conftest.in" "conftest.in" >"conftest.tmp"
4981 mv "conftest.tmp" "conftest.in"
4982 cp "conftest.in" "conftest.nl"
4983 printf "%s\n" 'GREP' >> "conftest.nl"
4984 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4986 as_fn_arith $ac_count + 1 && ac_count=$as_val
4987 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4988 # Best one so far, save it but keep looking for a better one
4989 ac_cv_path_GREP="$ac_path_GREP"
4990 ac_path_GREP_max=$ac_count
4991 fi
4992 # 10*(2^10) chars as input seems more than enough
4993 test $ac_count -gt 10 && break
4994 done
4995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4996 esac
4997
4998 $ac_path_GREP_found && break 3
4999 done
5000 done
5001 done
5002 IFS=$as_save_IFS
5003 if test -z "$ac_cv_path_GREP"; then
5004 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5005 fi
5006 else
5007 ac_cv_path_GREP=$GREP
5008 fi
5009
5010 fi
5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5012 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5013 GREP="$ac_cv_path_GREP"
5014
5015
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5017 printf %s "checking for egrep... " >&6; }
5018 if test ${ac_cv_path_EGREP+y}
5019 then :
5020 printf %s "(cached) " >&6
5021 else $as_nop
5022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5023 then ac_cv_path_EGREP="$GREP -E"
5024 else
5025 if test -z "$EGREP"; then
5026 ac_path_EGREP_found=false
5027 # Loop through the user's path and test for each of PROGNAME-LIST
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5030 do
5031 IFS=$as_save_IFS
5032 case $as_dir in #(((
5033 '') as_dir=./ ;;
5034 */) ;;
5035 *) as_dir=$as_dir/ ;;
5036 esac
5037 for ac_prog in egrep
5038 do
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5041 as_fn_executable_p "$ac_path_EGREP" || continue
5042 # Check for GNU ac_path_EGREP and select it if it is found.
5043 # Check for GNU $ac_path_EGREP
5044 case `"$ac_path_EGREP" --version 2>&1` in
5045 *GNU*)
5046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5047 *)
5048 ac_count=0
5049 printf %s 0123456789 >"conftest.in"
5050 while :
5051 do
5052 cat "conftest.in" "conftest.in" >"conftest.tmp"
5053 mv "conftest.tmp" "conftest.in"
5054 cp "conftest.in" "conftest.nl"
5055 printf "%s\n" 'EGREP' >> "conftest.nl"
5056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5058 as_fn_arith $ac_count + 1 && ac_count=$as_val
5059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5060 # Best one so far, save it but keep looking for a better one
5061 ac_cv_path_EGREP="$ac_path_EGREP"
5062 ac_path_EGREP_max=$ac_count
5063 fi
5064 # 10*(2^10) chars as input seems more than enough
5065 test $ac_count -gt 10 && break
5066 done
5067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5068 esac
5069
5070 $ac_path_EGREP_found && break 3
5071 done
5072 done
5073 done
5074 IFS=$as_save_IFS
5075 if test -z "$ac_cv_path_EGREP"; then
5076 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5077 fi
5078 else
5079 ac_cv_path_EGREP=$EGREP
5080 fi
5081
5082 fi
5083 fi
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5085 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5086 EGREP="$ac_cv_path_EGREP"
5087
5088
5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5090 printf %s "checking for fgrep... " >&6; }
5091 if test ${ac_cv_path_FGREP+y}
5092 then :
5093 printf %s "(cached) " >&6
5094 else $as_nop
5095 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5096 then ac_cv_path_FGREP="$GREP -F"
5097 else
5098 if test -z "$FGREP"; then
5099 ac_path_FGREP_found=false
5100 # Loop through the user's path and test for each of PROGNAME-LIST
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5103 do
5104 IFS=$as_save_IFS
5105 case $as_dir in #(((
5106 '') as_dir=./ ;;
5107 */) ;;
5108 *) as_dir=$as_dir/ ;;
5109 esac
5110 for ac_prog in fgrep
5111 do
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5114 as_fn_executable_p "$ac_path_FGREP" || continue
5115 # Check for GNU ac_path_FGREP and select it if it is found.
5116 # Check for GNU $ac_path_FGREP
5117 case `"$ac_path_FGREP" --version 2>&1` in
5118 *GNU*)
5119 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5120 *)
5121 ac_count=0
5122 printf %s 0123456789 >"conftest.in"
5123 while :
5124 do
5125 cat "conftest.in" "conftest.in" >"conftest.tmp"
5126 mv "conftest.tmp" "conftest.in"
5127 cp "conftest.in" "conftest.nl"
5128 printf "%s\n" 'FGREP' >> "conftest.nl"
5129 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5131 as_fn_arith $ac_count + 1 && ac_count=$as_val
5132 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5133 # Best one so far, save it but keep looking for a better one
5134 ac_cv_path_FGREP="$ac_path_FGREP"
5135 ac_path_FGREP_max=$ac_count
5136 fi
5137 # 10*(2^10) chars as input seems more than enough
5138 test $ac_count -gt 10 && break
5139 done
5140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5141 esac
5142
5143 $ac_path_FGREP_found && break 3
5144 done
5145 done
5146 done
5147 IFS=$as_save_IFS
5148 if test -z "$ac_cv_path_FGREP"; then
5149 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5150 fi
5151 else
5152 ac_cv_path_FGREP=$FGREP
5153 fi
5154
5155 fi
5156 fi
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5158 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5159 FGREP="$ac_cv_path_FGREP"
5160
5161
5162 test -z "$GREP" && GREP=grep
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182 # Check whether --with-gnu-ld was given.
5183 if test ${with_gnu_ld+y}
5184 then :
5185 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5186 else $as_nop
5187 with_gnu_ld=no
5188 fi
5189
5190 ac_prog=ld
5191 if test yes = "$GCC"; then
5192 # Check if gcc -print-prog-name=ld gives a path.
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5194 printf %s "checking for ld used by $CC... " >&6; }
5195 case $host in
5196 *-*-mingw*)
5197 # gcc leaves a trailing carriage return, which upsets mingw
5198 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5199 *)
5200 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5201 esac
5202 case $ac_prog in
5203 # Accept absolute paths.
5204 [\\/]* | ?:[\\/]*)
5205 re_direlt='/[^/][^/]*/\.\./'
5206 # Canonicalize the pathname of ld
5207 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5208 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5209 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5210 done
5211 test -z "$LD" && LD=$ac_prog
5212 ;;
5213 "")
5214 # If it fails, then pretend we aren't using GCC.
5215 ac_prog=ld
5216 ;;
5217 *)
5218 # If it is relative, then search for the first ld in PATH.
5219 with_gnu_ld=unknown
5220 ;;
5221 esac
5222 elif test yes = "$with_gnu_ld"; then
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5224 printf %s "checking for GNU ld... " >&6; }
5225 else
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5227 printf %s "checking for non-GNU ld... " >&6; }
5228 fi
5229 if test ${lt_cv_path_LD+y}
5230 then :
5231 printf %s "(cached) " >&6
5232 else $as_nop
5233 if test -z "$LD"; then
5234 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5235 for ac_dir in $PATH; do
5236 IFS=$lt_save_ifs
5237 test -z "$ac_dir" && ac_dir=.
5238 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5239 lt_cv_path_LD=$ac_dir/$ac_prog
5240 # Check to see if the program is GNU ld. I'd rather use --version,
5241 # but apparently some variants of GNU ld only accept -v.
5242 # Break only if it was the GNU/non-GNU ld that we prefer.
5243 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5244 *GNU* | *'with BFD'*)
5245 test no != "$with_gnu_ld" && break
5246 ;;
5247 *)
5248 test yes != "$with_gnu_ld" && break
5249 ;;
5250 esac
5251 fi
5252 done
5253 IFS=$lt_save_ifs
5254 else
5255 lt_cv_path_LD=$LD # Let the user override the test with a path.
5256 fi
5257 fi
5258
5259 LD=$lt_cv_path_LD
5260 if test -n "$LD"; then
5261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5262 printf "%s\n" "$LD" >&6; }
5263 else
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 printf "%s\n" "no" >&6; }
5266 fi
5267 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5269 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5270 if test ${lt_cv_prog_gnu_ld+y}
5271 then :
5272 printf %s "(cached) " >&6
5273 else $as_nop
5274 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5275 case `$LD -v 2>&1 </dev/null` in
5276 *GNU* | *'with BFD'*)
5277 lt_cv_prog_gnu_ld=yes
5278 ;;
5279 *)
5280 lt_cv_prog_gnu_ld=no
5281 ;;
5282 esac
5283 fi
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5285 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5286 with_gnu_ld=$lt_cv_prog_gnu_ld
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5297 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5298 if test ${lt_cv_path_NM+y}
5299 then :
5300 printf %s "(cached) " >&6
5301 else $as_nop
5302 if test -n "$NM"; then
5303 # Let the user override the test.
5304 lt_cv_path_NM=$NM
5305 else
5306 lt_nm_to_check=${ac_tool_prefix}nm
5307 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5308 lt_nm_to_check="$lt_nm_to_check nm"
5309 fi
5310 for lt_tmp_nm in $lt_nm_to_check; do
5311 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5312 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5313 IFS=$lt_save_ifs
5314 test -z "$ac_dir" && ac_dir=.
5315 tmp_nm=$ac_dir/$lt_tmp_nm
5316 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5317 # Check to see if the nm accepts a BSD-compat flag.
5318 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5319 # nm: unknown option "B" ignored
5320 # Tru64's nm complains that /dev/null is an invalid object file
5321 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5322 case $build_os in
5323 mingw*) lt_bad_file=conftest.nm/nofile ;;
5324 *) lt_bad_file=/dev/null ;;
5325 esac
5326 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5327 *$lt_bad_file* | *'Invalid file or object type'*)
5328 lt_cv_path_NM="$tmp_nm -B"
5329 break 2
5330 ;;
5331 *)
5332 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5333 */dev/null*)
5334 lt_cv_path_NM="$tmp_nm -p"
5335 break 2
5336 ;;
5337 *)
5338 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5339 continue # so that we can try to find one that supports BSD flags
5340 ;;
5341 esac
5342 ;;
5343 esac
5344 fi
5345 done
5346 IFS=$lt_save_ifs
5347 done
5348 : ${lt_cv_path_NM=no}
5349 fi
5350 fi
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5352 printf "%s\n" "$lt_cv_path_NM" >&6; }
5353 if test no != "$lt_cv_path_NM"; then
5354 NM=$lt_cv_path_NM
5355 else
5356 # Didn't find any BSD compatible name lister, look for dumpbin.
5357 if test -n "$DUMPBIN"; then :
5358 # Let the user override the test.
5359 else
5360 if test -n "$ac_tool_prefix"; then
5361 for ac_prog in dumpbin "link -dump"
5362 do
5363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 printf %s "checking for $ac_word... " >&6; }
5367 if test ${ac_cv_prog_DUMPBIN+y}
5368 then :
5369 printf %s "(cached) " >&6
5370 else $as_nop
5371 if test -n "$DUMPBIN"; then
5372 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377 IFS=$as_save_IFS
5378 case $as_dir in #(((
5379 '') as_dir=./ ;;
5380 */) ;;
5381 *) as_dir=$as_dir/ ;;
5382 esac
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5387 break 2
5388 fi
5389 done
5390 done
5391 IFS=$as_save_IFS
5392
5393 fi
5394 fi
5395 DUMPBIN=$ac_cv_prog_DUMPBIN
5396 if test -n "$DUMPBIN"; then
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5398 printf "%s\n" "$DUMPBIN" >&6; }
5399 else
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 printf "%s\n" "no" >&6; }
5402 fi
5403
5404
5405 test -n "$DUMPBIN" && break
5406 done
5407 fi
5408 if test -z "$DUMPBIN"; then
5409 ac_ct_DUMPBIN=$DUMPBIN
5410 for ac_prog in dumpbin "link -dump"
5411 do
5412 # Extract the first word of "$ac_prog", so it can be a program name with args.
5413 set dummy $ac_prog; ac_word=$2
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 printf %s "checking for $ac_word... " >&6; }
5416 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5417 then :
5418 printf %s "(cached) " >&6
5419 else $as_nop
5420 if test -n "$ac_ct_DUMPBIN"; then
5421 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426 IFS=$as_save_IFS
5427 case $as_dir in #(((
5428 '') as_dir=./ ;;
5429 */) ;;
5430 *) as_dir=$as_dir/ ;;
5431 esac
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5436 break 2
5437 fi
5438 done
5439 done
5440 IFS=$as_save_IFS
5441
5442 fi
5443 fi
5444 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5445 if test -n "$ac_ct_DUMPBIN"; then
5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5447 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5448 else
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 printf "%s\n" "no" >&6; }
5451 fi
5452
5453
5454 test -n "$ac_ct_DUMPBIN" && break
5455 done
5456
5457 if test "x$ac_ct_DUMPBIN" = x; then
5458 DUMPBIN=":"
5459 else
5460 case $cross_compiling:$ac_tool_warned in
5461 yes:)
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5463 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5464 ac_tool_warned=yes ;;
5465 esac
5466 DUMPBIN=$ac_ct_DUMPBIN
5467 fi
5468 fi
5469
5470 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5471 *COFF*)
5472 DUMPBIN="$DUMPBIN -symbols -headers"
5473 ;;
5474 *)
5475 DUMPBIN=:
5476 ;;
5477 esac
5478 fi
5479
5480 if test : != "$DUMPBIN"; then
5481 NM=$DUMPBIN
5482 fi
5483 fi
5484 test -z "$NM" && NM=nm
5485
5486
5487
5488
5489
5490
5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5492 printf %s "checking the name lister ($NM) interface... " >&6; }
5493 if test ${lt_cv_nm_interface+y}
5494 then :
5495 printf %s "(cached) " >&6
5496 else $as_nop
5497 lt_cv_nm_interface="BSD nm"
5498 echo "int some_variable = 0;" > conftest.$ac_ext
5499 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5500 (eval "$ac_compile" 2>conftest.err)
5501 cat conftest.err >&5
5502 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5503 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5504 cat conftest.err >&5
5505 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5506 cat conftest.out >&5
5507 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5508 lt_cv_nm_interface="MS dumpbin"
5509 fi
5510 rm -f conftest*
5511 fi
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5513 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5514
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5516 printf %s "checking whether ln -s works... " >&6; }
5517 LN_S=$as_ln_s
5518 if test "$LN_S" = "ln -s"; then
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5520 printf "%s\n" "yes" >&6; }
5521 else
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5523 printf "%s\n" "no, using $LN_S" >&6; }
5524 fi
5525
5526 # find the maximum length of command line arguments
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5528 printf %s "checking the maximum length of command line arguments... " >&6; }
5529 if test ${lt_cv_sys_max_cmd_len+y}
5530 then :
5531 printf %s "(cached) " >&6
5532 else $as_nop
5533 i=0
5534 teststring=ABCD
5535
5536 case $build_os in
5537 msdosdjgpp*)
5538 # On DJGPP, this test can blow up pretty badly due to problems in libc
5539 # (any single argument exceeding 2000 bytes causes a buffer overrun
5540 # during glob expansion). Even if it were fixed, the result of this
5541 # check would be larger than it should be.
5542 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5543 ;;
5544
5545 gnu*)
5546 # Under GNU Hurd, this test is not required because there is
5547 # no limit to the length of command line arguments.
5548 # Libtool will interpret -1 as no limit whatsoever
5549 lt_cv_sys_max_cmd_len=-1;
5550 ;;
5551
5552 cygwin* | mingw* | cegcc*)
5553 # On Win9x/ME, this test blows up -- it succeeds, but takes
5554 # about 5 minutes as the teststring grows exponentially.
5555 # Worse, since 9x/ME are not pre-emptively multitasking,
5556 # you end up with a "frozen" computer, even though with patience
5557 # the test eventually succeeds (with a max line length of 256k).
5558 # Instead, let's just punt: use the minimum linelength reported by
5559 # all of the supported platforms: 8192 (on NT/2K/XP).
5560 lt_cv_sys_max_cmd_len=8192;
5561 ;;
5562
5563 mint*)
5564 # On MiNT this can take a long time and run out of memory.
5565 lt_cv_sys_max_cmd_len=8192;
5566 ;;
5567
5568 amigaos*)
5569 # On AmigaOS with pdksh, this test takes hours, literally.
5570 # So we just punt and use a minimum line length of 8192.
5571 lt_cv_sys_max_cmd_len=8192;
5572 ;;
5573
5574 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5575 # This has been around since 386BSD, at least. Likely further.
5576 if test -x /sbin/sysctl; then
5577 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5578 elif test -x /usr/sbin/sysctl; then
5579 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5580 else
5581 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5582 fi
5583 # And add a safety zone
5584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5586 ;;
5587
5588 interix*)
5589 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5590 lt_cv_sys_max_cmd_len=196608
5591 ;;
5592
5593 os2*)
5594 # The test takes a long time on OS/2.
5595 lt_cv_sys_max_cmd_len=8192
5596 ;;
5597
5598 osf*)
5599 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5600 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5601 # nice to cause kernel panics so lets avoid the loop below.
5602 # First set a reasonable default.
5603 lt_cv_sys_max_cmd_len=16384
5604 #
5605 if test -x /sbin/sysconfig; then
5606 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5607 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5608 esac
5609 fi
5610 ;;
5611 sco3.2v5*)
5612 lt_cv_sys_max_cmd_len=102400
5613 ;;
5614 sysv5* | sco5v6* | sysv4.2uw2*)
5615 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5616 if test -n "$kargmax"; then
5617 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5618 else
5619 lt_cv_sys_max_cmd_len=32768
5620 fi
5621 ;;
5622 *)
5623 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5624 if test -n "$lt_cv_sys_max_cmd_len" && \
5625 test undefined != "$lt_cv_sys_max_cmd_len"; then
5626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5628 else
5629 # Make teststring a little bigger before we do anything with it.
5630 # a 1K string should be a reasonable start.
5631 for i in 1 2 3 4 5 6 7 8; do
5632 teststring=$teststring$teststring
5633 done
5634 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5635 # If test is not a shell built-in, we'll probably end up computing a
5636 # maximum length that is only half of the actual maximum length, but
5637 # we can't tell.
5638 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5639 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5640 test 17 != "$i" # 1/2 MB should be enough
5641 do
5642 i=`expr $i + 1`
5643 teststring=$teststring$teststring
5644 done
5645 # Only check the string length outside the loop.
5646 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5647 teststring=
5648 # Add a significant safety factor because C++ compilers can tack on
5649 # massive amounts of additional arguments before passing them to the
5650 # linker. It appears as though 1/2 is a usable value.
5651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5652 fi
5653 ;;
5654 esac
5655
5656 fi
5657
5658 if test -n "$lt_cv_sys_max_cmd_len"; then
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5660 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5661 else
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5663 printf "%s\n" "none" >&6; }
5664 fi
5665 max_cmd_len=$lt_cv_sys_max_cmd_len
5666
5667
5668
5669
5670
5671
5672 : ${CP="cp -f"}
5673 : ${MV="mv -f"}
5674 : ${RM="rm -f"}
5675
5676 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5677 lt_unset=unset
5678 else
5679 lt_unset=false
5680 fi
5681
5682
5683
5684
5685
5686 # test EBCDIC or ASCII
5687 case `echo X|tr X '\101'` in
5688 A) # ASCII based system
5689 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5690 lt_SP2NL='tr \040 \012'
5691 lt_NL2SP='tr \015\012 \040\040'
5692 ;;
5693 *) # EBCDIC based system
5694 lt_SP2NL='tr \100 \n'
5695 lt_NL2SP='tr \r\n \100\100'
5696 ;;
5697 esac
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5708 printf %s "checking how to convert $build file names to $host format... " >&6; }
5709 if test ${lt_cv_to_host_file_cmd+y}
5710 then :
5711 printf %s "(cached) " >&6
5712 else $as_nop
5713 case $host in
5714 *-*-mingw* )
5715 case $build in
5716 *-*-mingw* ) # actually msys
5717 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5718 ;;
5719 *-*-cygwin* )
5720 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5721 ;;
5722 * ) # otherwise, assume *nix
5723 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5724 ;;
5725 esac
5726 ;;
5727 *-*-cygwin* )
5728 case $build in
5729 *-*-mingw* ) # actually msys
5730 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5731 ;;
5732 *-*-cygwin* )
5733 lt_cv_to_host_file_cmd=func_convert_file_noop
5734 ;;
5735 * ) # otherwise, assume *nix
5736 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5737 ;;
5738 esac
5739 ;;
5740 * ) # unhandled hosts (and "normal" native builds)
5741 lt_cv_to_host_file_cmd=func_convert_file_noop
5742 ;;
5743 esac
5744
5745 fi
5746
5747 to_host_file_cmd=$lt_cv_to_host_file_cmd
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5749 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5750
5751
5752
5753
5754
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5756 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5757 if test ${lt_cv_to_tool_file_cmd+y}
5758 then :
5759 printf %s "(cached) " >&6
5760 else $as_nop
5761 #assume ordinary cross tools, or native build.
5762 lt_cv_to_tool_file_cmd=func_convert_file_noop
5763 case $host in
5764 *-*-mingw* )
5765 case $build in
5766 *-*-mingw* ) # actually msys
5767 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5768 ;;
5769 esac
5770 ;;
5771 esac
5772
5773 fi
5774
5775 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5777 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5778
5779
5780
5781
5782
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5784 printf %s "checking for $LD option to reload object files... " >&6; }
5785 if test ${lt_cv_ld_reload_flag+y}
5786 then :
5787 printf %s "(cached) " >&6
5788 else $as_nop
5789 lt_cv_ld_reload_flag='-r'
5790 fi
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5792 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5793 reload_flag=$lt_cv_ld_reload_flag
5794 case $reload_flag in
5795 "" | " "*) ;;
5796 *) reload_flag=" $reload_flag" ;;
5797 esac
5798 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5799 case $host_os in
5800 cygwin* | mingw* | pw32* | cegcc*)
5801 if test yes != "$GCC"; then
5802 reload_cmds=false
5803 fi
5804 ;;
5805 darwin*)
5806 if test yes = "$GCC"; then
5807 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5808 else
5809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5810 fi
5811 ;;
5812 esac
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822 if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5824 set dummy ${ac_tool_prefix}file; ac_word=$2
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 printf %s "checking for $ac_word... " >&6; }
5827 if test ${ac_cv_prog_FILECMD+y}
5828 then :
5829 printf %s "(cached) " >&6
5830 else $as_nop
5831 if test -n "$FILECMD"; then
5832 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5833 else
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837 IFS=$as_save_IFS
5838 case $as_dir in #(((
5839 '') as_dir=./ ;;
5840 */) ;;
5841 *) as_dir=$as_dir/ ;;
5842 esac
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5845 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5847 break 2
5848 fi
5849 done
5850 done
5851 IFS=$as_save_IFS
5852
5853 fi
5854 fi
5855 FILECMD=$ac_cv_prog_FILECMD
5856 if test -n "$FILECMD"; then
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5858 printf "%s\n" "$FILECMD" >&6; }
5859 else
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861 printf "%s\n" "no" >&6; }
5862 fi
5863
5864
5865 fi
5866 if test -z "$ac_cv_prog_FILECMD"; then
5867 ac_ct_FILECMD=$FILECMD
5868 # Extract the first word of "file", so it can be a program name with args.
5869 set dummy file; ac_word=$2
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 printf %s "checking for $ac_word... " >&6; }
5872 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5873 then :
5874 printf %s "(cached) " >&6
5875 else $as_nop
5876 if test -n "$ac_ct_FILECMD"; then
5877 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882 IFS=$as_save_IFS
5883 case $as_dir in #(((
5884 '') as_dir=./ ;;
5885 */) ;;
5886 *) as_dir=$as_dir/ ;;
5887 esac
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_ac_ct_FILECMD="file"
5891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894 done
5895 done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5901 if test -n "$ac_ct_FILECMD"; then
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5903 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5904 else
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 printf "%s\n" "no" >&6; }
5907 fi
5908
5909 if test "x$ac_ct_FILECMD" = x; then
5910 FILECMD=":"
5911 else
5912 case $cross_compiling:$ac_tool_warned in
5913 yes:)
5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916 ac_tool_warned=yes ;;
5917 esac
5918 FILECMD=$ac_ct_FILECMD
5919 fi
5920 else
5921 FILECMD="$ac_cv_prog_FILECMD"
5922 fi
5923
5924
5925
5926
5927
5928
5929
5930 if test -n "$ac_tool_prefix"; then
5931 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5932 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 printf %s "checking for $ac_word... " >&6; }
5935 if test ${ac_cv_prog_OBJDUMP+y}
5936 then :
5937 printf %s "(cached) " >&6
5938 else $as_nop
5939 if test -n "$OBJDUMP"; then
5940 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945 IFS=$as_save_IFS
5946 case $as_dir in #(((
5947 '') as_dir=./ ;;
5948 */) ;;
5949 *) as_dir=$as_dir/ ;;
5950 esac
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5953 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5955 break 2
5956 fi
5957 done
5958 done
5959 IFS=$as_save_IFS
5960
5961 fi
5962 fi
5963 OBJDUMP=$ac_cv_prog_OBJDUMP
5964 if test -n "$OBJDUMP"; then
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5966 printf "%s\n" "$OBJDUMP" >&6; }
5967 else
5968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 printf "%s\n" "no" >&6; }
5970 fi
5971
5972
5973 fi
5974 if test -z "$ac_cv_prog_OBJDUMP"; then
5975 ac_ct_OBJDUMP=$OBJDUMP
5976 # Extract the first word of "objdump", so it can be a program name with args.
5977 set dummy objdump; ac_word=$2
5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 printf %s "checking for $ac_word... " >&6; }
5980 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5981 then :
5982 printf %s "(cached) " >&6
5983 else $as_nop
5984 if test -n "$ac_ct_OBJDUMP"; then
5985 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990 IFS=$as_save_IFS
5991 case $as_dir in #(((
5992 '') as_dir=./ ;;
5993 */) ;;
5994 *) as_dir=$as_dir/ ;;
5995 esac
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6000 break 2
6001 fi
6002 done
6003 done
6004 IFS=$as_save_IFS
6005
6006 fi
6007 fi
6008 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6009 if test -n "$ac_ct_OBJDUMP"; then
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6011 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6012 else
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 printf "%s\n" "no" >&6; }
6015 fi
6016
6017 if test "x$ac_ct_OBJDUMP" = x; then
6018 OBJDUMP="false"
6019 else
6020 case $cross_compiling:$ac_tool_warned in
6021 yes:)
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024 ac_tool_warned=yes ;;
6025 esac
6026 OBJDUMP=$ac_ct_OBJDUMP
6027 fi
6028 else
6029 OBJDUMP="$ac_cv_prog_OBJDUMP"
6030 fi
6031
6032 test -z "$OBJDUMP" && OBJDUMP=objdump
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6043 printf %s "checking how to recognize dependent libraries... " >&6; }
6044 if test ${lt_cv_deplibs_check_method+y}
6045 then :
6046 printf %s "(cached) " >&6
6047 else $as_nop
6048 lt_cv_file_magic_cmd='$MAGIC_CMD'
6049 lt_cv_file_magic_test_file=
6050 lt_cv_deplibs_check_method='unknown'
6051 # Need to set the preceding variable on all platforms that support
6052 # interlibrary dependencies.
6053 # 'none' -- dependencies not supported.
6054 # 'unknown' -- same as none, but documents that we really don't know.
6055 # 'pass_all' -- all dependencies passed with no checks.
6056 # 'test_compile' -- check by making test program.
6057 # 'file_magic [[regex]]' -- check by looking for files in library path
6058 # that responds to the $file_magic_cmd with a given extended regex.
6059 # If you have 'file' or equivalent on your system and you're not sure
6060 # whether 'pass_all' will *always* work, you probably want this one.
6061
6062 case $host_os in
6063 aix[4-9]*)
6064 lt_cv_deplibs_check_method=pass_all
6065 ;;
6066
6067 beos*)
6068 lt_cv_deplibs_check_method=pass_all
6069 ;;
6070
6071 bsdi[45]*)
6072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6073 lt_cv_file_magic_cmd='$FILECMD -L'
6074 lt_cv_file_magic_test_file=/shlib/libc.so
6075 ;;
6076
6077 cygwin*)
6078 # func_win32_libid is a shell function defined in ltmain.sh
6079 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6080 lt_cv_file_magic_cmd='func_win32_libid'
6081 ;;
6082
6083 mingw* | pw32*)
6084 # Base MSYS/MinGW do not provide the 'file' command needed by
6085 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6086 # unless we find 'file', for example because we are cross-compiling.
6087 if ( file / ) >/dev/null 2>&1; then
6088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6089 lt_cv_file_magic_cmd='func_win32_libid'
6090 else
6091 # Keep this pattern in sync with the one in func_win32_libid.
6092 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6093 lt_cv_file_magic_cmd='$OBJDUMP -f'
6094 fi
6095 ;;
6096
6097 cegcc*)
6098 # use the weaker test based on 'objdump'. See mingw*.
6099 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6100 lt_cv_file_magic_cmd='$OBJDUMP -f'
6101 ;;
6102
6103 darwin* | rhapsody*)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107 freebsd* | dragonfly* | midnightbsd*)
6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6109 case $host_cpu in
6110 i*86 )
6111 # Not sure whether the presence of OpenBSD here was a mistake.
6112 # Let's accept both of them until this is cleared up.
6113 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6114 lt_cv_file_magic_cmd=$FILECMD
6115 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6116 ;;
6117 esac
6118 else
6119 lt_cv_deplibs_check_method=pass_all
6120 fi
6121 ;;
6122
6123 haiku*)
6124 lt_cv_deplibs_check_method=pass_all
6125 ;;
6126
6127 hpux10.20* | hpux11*)
6128 lt_cv_file_magic_cmd=$FILECMD
6129 case $host_cpu in
6130 ia64*)
6131 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6132 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6133 ;;
6134 hppa*64*)
6135 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]'
6136 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6137 ;;
6138 *)
6139 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6140 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6141 ;;
6142 esac
6143 ;;
6144
6145 interix[3-9]*)
6146 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6148 ;;
6149
6150 irix5* | irix6* | nonstopux*)
6151 case $LD in
6152 *-32|*"-32 ") libmagic=32-bit;;
6153 *-n32|*"-n32 ") libmagic=N32;;
6154 *-64|*"-64 ") libmagic=64-bit;;
6155 *) libmagic=never-match;;
6156 esac
6157 lt_cv_deplibs_check_method=pass_all
6158 ;;
6159
6160 # This must be glibc/ELF.
6161 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6162 lt_cv_deplibs_check_method=pass_all
6163 ;;
6164
6165 netbsd* | netbsdelf*-gnu)
6166 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6168 else
6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6170 fi
6171 ;;
6172
6173 newos6*)
6174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6175 lt_cv_file_magic_cmd=$FILECMD
6176 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6177 ;;
6178
6179 *nto* | *qnx*)
6180 lt_cv_deplibs_check_method=pass_all
6181 ;;
6182
6183 openbsd* | bitrig*)
6184 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6186 else
6187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6188 fi
6189 ;;
6190
6191 osf3* | osf4* | osf5*)
6192 lt_cv_deplibs_check_method=pass_all
6193 ;;
6194
6195 rdos*)
6196 lt_cv_deplibs_check_method=pass_all
6197 ;;
6198
6199 solaris*)
6200 lt_cv_deplibs_check_method=pass_all
6201 ;;
6202
6203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6204 lt_cv_deplibs_check_method=pass_all
6205 ;;
6206
6207 sysv4 | sysv4.3*)
6208 case $host_vendor in
6209 motorola)
6210 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]'
6211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6212 ;;
6213 ncr)
6214 lt_cv_deplibs_check_method=pass_all
6215 ;;
6216 sequent)
6217 lt_cv_file_magic_cmd='/bin/file'
6218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6219 ;;
6220 sni)
6221 lt_cv_file_magic_cmd='/bin/file'
6222 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6223 lt_cv_file_magic_test_file=/lib/libc.so
6224 ;;
6225 siemens)
6226 lt_cv_deplibs_check_method=pass_all
6227 ;;
6228 pc)
6229 lt_cv_deplibs_check_method=pass_all
6230 ;;
6231 esac
6232 ;;
6233
6234 tpf*)
6235 lt_cv_deplibs_check_method=pass_all
6236 ;;
6237 os2*)
6238 lt_cv_deplibs_check_method=pass_all
6239 ;;
6240 esac
6241
6242 fi
6243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6244 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6245
6246 file_magic_glob=
6247 want_nocaseglob=no
6248 if test "$build" = "$host"; then
6249 case $host_os in
6250 mingw* | pw32*)
6251 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6252 want_nocaseglob=yes
6253 else
6254 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6255 fi
6256 ;;
6257 esac
6258 fi
6259
6260 file_magic_cmd=$lt_cv_file_magic_cmd
6261 deplibs_check_method=$lt_cv_deplibs_check_method
6262 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285 if test -n "$ac_tool_prefix"; then
6286 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6287 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 printf %s "checking for $ac_word... " >&6; }
6290 if test ${ac_cv_prog_DLLTOOL+y}
6291 then :
6292 printf %s "(cached) " >&6
6293 else $as_nop
6294 if test -n "$DLLTOOL"; then
6295 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300 IFS=$as_save_IFS
6301 case $as_dir in #(((
6302 '') as_dir=./ ;;
6303 */) ;;
6304 *) as_dir=$as_dir/ ;;
6305 esac
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6308 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6310 break 2
6311 fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 DLLTOOL=$ac_cv_prog_DLLTOOL
6319 if test -n "$DLLTOOL"; then
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6321 printf "%s\n" "$DLLTOOL" >&6; }
6322 else
6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 printf "%s\n" "no" >&6; }
6325 fi
6326
6327
6328 fi
6329 if test -z "$ac_cv_prog_DLLTOOL"; then
6330 ac_ct_DLLTOOL=$DLLTOOL
6331 # Extract the first word of "dlltool", so it can be a program name with args.
6332 set dummy dlltool; ac_word=$2
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 printf %s "checking for $ac_word... " >&6; }
6335 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6336 then :
6337 printf %s "(cached) " >&6
6338 else $as_nop
6339 if test -n "$ac_ct_DLLTOOL"; then
6340 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345 IFS=$as_save_IFS
6346 case $as_dir in #(((
6347 '') as_dir=./ ;;
6348 */) ;;
6349 *) as_dir=$as_dir/ ;;
6350 esac
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357 done
6358 done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6364 if test -n "$ac_ct_DLLTOOL"; then
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6366 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6367 else
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 printf "%s\n" "no" >&6; }
6370 fi
6371
6372 if test "x$ac_ct_DLLTOOL" = x; then
6373 DLLTOOL="false"
6374 else
6375 case $cross_compiling:$ac_tool_warned in
6376 yes:)
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned=yes ;;
6380 esac
6381 DLLTOOL=$ac_ct_DLLTOOL
6382 fi
6383 else
6384 DLLTOOL="$ac_cv_prog_DLLTOOL"
6385 fi
6386
6387 test -z "$DLLTOOL" && DLLTOOL=dlltool
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6399 printf %s "checking how to associate runtime and link libraries... " >&6; }
6400 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6401 then :
6402 printf %s "(cached) " >&6
6403 else $as_nop
6404 lt_cv_sharedlib_from_linklib_cmd='unknown'
6405
6406 case $host_os in
6407 cygwin* | mingw* | pw32* | cegcc*)
6408 # two different shell functions defined in ltmain.sh;
6409 # decide which one to use based on capabilities of $DLLTOOL
6410 case `$DLLTOOL --help 2>&1` in
6411 *--identify-strict*)
6412 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6413 ;;
6414 *)
6415 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6416 ;;
6417 esac
6418 ;;
6419 *)
6420 # fallback: assume linklib IS sharedlib
6421 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6422 ;;
6423 esac
6424
6425 fi
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6427 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6428 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6429 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6430
6431
6432
6433
6434
6435
6436
6437
6438 if test -n "$ac_tool_prefix"; then
6439 for ac_prog in ar
6440 do
6441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 printf %s "checking for $ac_word... " >&6; }
6445 if test ${ac_cv_prog_AR+y}
6446 then :
6447 printf %s "(cached) " >&6
6448 else $as_nop
6449 if test -n "$AR"; then
6450 ac_cv_prog_AR="$AR" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455 IFS=$as_save_IFS
6456 case $as_dir in #(((
6457 '') as_dir=./ ;;
6458 */) ;;
6459 *) as_dir=$as_dir/ ;;
6460 esac
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6463 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467 done
6468 done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 AR=$ac_cv_prog_AR
6474 if test -n "$AR"; then
6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6476 printf "%s\n" "$AR" >&6; }
6477 else
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 printf "%s\n" "no" >&6; }
6480 fi
6481
6482
6483 test -n "$AR" && break
6484 done
6485 fi
6486 if test -z "$AR"; then
6487 ac_ct_AR=$AR
6488 for ac_prog in ar
6489 do
6490 # Extract the first word of "$ac_prog", so it can be a program name with args.
6491 set dummy $ac_prog; ac_word=$2
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 printf %s "checking for $ac_word... " >&6; }
6494 if test ${ac_cv_prog_ac_ct_AR+y}
6495 then :
6496 printf %s "(cached) " >&6
6497 else $as_nop
6498 if test -n "$ac_ct_AR"; then
6499 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504 IFS=$as_save_IFS
6505 case $as_dir in #(((
6506 '') as_dir=./ ;;
6507 */) ;;
6508 *) as_dir=$as_dir/ ;;
6509 esac
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6512 ac_cv_prog_ac_ct_AR="$ac_prog"
6513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516 done
6517 done
6518 IFS=$as_save_IFS
6519
6520 fi
6521 fi
6522 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6523 if test -n "$ac_ct_AR"; then
6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6525 printf "%s\n" "$ac_ct_AR" >&6; }
6526 else
6527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 printf "%s\n" "no" >&6; }
6529 fi
6530
6531
6532 test -n "$ac_ct_AR" && break
6533 done
6534
6535 if test "x$ac_ct_AR" = x; then
6536 AR="false"
6537 else
6538 case $cross_compiling:$ac_tool_warned in
6539 yes:)
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6543 esac
6544 AR=$ac_ct_AR
6545 fi
6546 fi
6547
6548 : ${AR=ar}
6549
6550
6551
6552
6553
6554
6555 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6556 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6557 # higher priority because thats what people were doing historically (setting
6558 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6559 # variable obsoleted/removed.
6560
6561 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6562 lt_ar_flags=$AR_FLAGS
6563
6564
6565
6566
6567
6568
6569 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6570 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6571
6572
6573
6574
6575
6576
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6578 printf %s "checking for archiver @FILE support... " >&6; }
6579 if test ${lt_cv_ar_at_file+y}
6580 then :
6581 printf %s "(cached) " >&6
6582 else $as_nop
6583 lt_cv_ar_at_file=no
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6586
6587 int
6588 main (void)
6589 {
6590
6591 ;
6592 return 0;
6593 }
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"
6596 then :
6597 echo conftest.$ac_objext > conftest.lst
6598 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6600 (eval $lt_ar_try) 2>&5
6601 ac_status=$?
6602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; }
6604 if test 0 -eq "$ac_status"; then
6605 # Ensure the archiver fails upon bogus file names.
6606 rm -f conftest.$ac_objext libconftest.a
6607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6608 (eval $lt_ar_try) 2>&5
6609 ac_status=$?
6610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; }
6612 if test 0 -ne "$ac_status"; then
6613 lt_cv_ar_at_file=@
6614 fi
6615 fi
6616 rm -f conftest.* libconftest.a
6617
6618 fi
6619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6620
6621 fi
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6623 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6624
6625 if test no = "$lt_cv_ar_at_file"; then
6626 archiver_list_spec=
6627 else
6628 archiver_list_spec=$lt_cv_ar_at_file
6629 fi
6630
6631
6632
6633
6634
6635
6636
6637 if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}strip; ac_word=$2
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 printf %s "checking for $ac_word... " >&6; }
6642 if test ${ac_cv_prog_STRIP+y}
6643 then :
6644 printf %s "(cached) " >&6
6645 else $as_nop
6646 if test -n "$STRIP"; then
6647 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652 IFS=$as_save_IFS
6653 case $as_dir in #(((
6654 '') as_dir=./ ;;
6655 */) ;;
6656 *) as_dir=$as_dir/ ;;
6657 esac
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6662 break 2
6663 fi
6664 done
6665 done
6666 IFS=$as_save_IFS
6667
6668 fi
6669 fi
6670 STRIP=$ac_cv_prog_STRIP
6671 if test -n "$STRIP"; then
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6673 printf "%s\n" "$STRIP" >&6; }
6674 else
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 printf "%s\n" "no" >&6; }
6677 fi
6678
6679
6680 fi
6681 if test -z "$ac_cv_prog_STRIP"; then
6682 ac_ct_STRIP=$STRIP
6683 # Extract the first word of "strip", so it can be a program name with args.
6684 set dummy strip; ac_word=$2
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 printf %s "checking for $ac_word... " >&6; }
6687 if test ${ac_cv_prog_ac_ct_STRIP+y}
6688 then :
6689 printf %s "(cached) " >&6
6690 else $as_nop
6691 if test -n "$ac_ct_STRIP"; then
6692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6693 else
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697 IFS=$as_save_IFS
6698 case $as_dir in #(((
6699 '') as_dir=./ ;;
6700 */) ;;
6701 *) as_dir=$as_dir/ ;;
6702 esac
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6705 ac_cv_prog_ac_ct_STRIP="strip"
6706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709 done
6710 done
6711 IFS=$as_save_IFS
6712
6713 fi
6714 fi
6715 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6716 if test -n "$ac_ct_STRIP"; then
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6718 printf "%s\n" "$ac_ct_STRIP" >&6; }
6719 else
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 printf "%s\n" "no" >&6; }
6722 fi
6723
6724 if test "x$ac_ct_STRIP" = x; then
6725 STRIP=":"
6726 else
6727 case $cross_compiling:$ac_tool_warned in
6728 yes:)
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6730 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6731 ac_tool_warned=yes ;;
6732 esac
6733 STRIP=$ac_ct_STRIP
6734 fi
6735 else
6736 STRIP="$ac_cv_prog_STRIP"
6737 fi
6738
6739 test -z "$STRIP" && STRIP=:
6740
6741
6742
6743
6744
6745
6746 if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 printf %s "checking for $ac_word... " >&6; }
6751 if test ${ac_cv_prog_RANLIB+y}
6752 then :
6753 printf %s "(cached) " >&6
6754 else $as_nop
6755 if test -n "$RANLIB"; then
6756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761 IFS=$as_save_IFS
6762 case $as_dir in #(((
6763 '') as_dir=./ ;;
6764 */) ;;
6765 *) as_dir=$as_dir/ ;;
6766 esac
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 RANLIB=$ac_cv_prog_RANLIB
6780 if test -n "$RANLIB"; then
6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6782 printf "%s\n" "$RANLIB" >&6; }
6783 else
6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 printf "%s\n" "no" >&6; }
6786 fi
6787
6788
6789 fi
6790 if test -z "$ac_cv_prog_RANLIB"; then
6791 ac_ct_RANLIB=$RANLIB
6792 # Extract the first word of "ranlib", so it can be a program name with args.
6793 set dummy ranlib; ac_word=$2
6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 printf %s "checking for $ac_word... " >&6; }
6796 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6797 then :
6798 printf %s "(cached) " >&6
6799 else $as_nop
6800 if test -n "$ac_ct_RANLIB"; then
6801 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806 IFS=$as_save_IFS
6807 case $as_dir in #(((
6808 '') as_dir=./ ;;
6809 */) ;;
6810 *) as_dir=$as_dir/ ;;
6811 esac
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6814 ac_cv_prog_ac_ct_RANLIB="ranlib"
6815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818 done
6819 done
6820 IFS=$as_save_IFS
6821
6822 fi
6823 fi
6824 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6825 if test -n "$ac_ct_RANLIB"; then
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6827 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6828 else
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 printf "%s\n" "no" >&6; }
6831 fi
6832
6833 if test "x$ac_ct_RANLIB" = x; then
6834 RANLIB=":"
6835 else
6836 case $cross_compiling:$ac_tool_warned in
6837 yes:)
6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840 ac_tool_warned=yes ;;
6841 esac
6842 RANLIB=$ac_ct_RANLIB
6843 fi
6844 else
6845 RANLIB="$ac_cv_prog_RANLIB"
6846 fi
6847
6848 test -z "$RANLIB" && RANLIB=:
6849
6850
6851
6852
6853
6854
6855 # Determine commands to create old-style static archives.
6856 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6857 old_postinstall_cmds='chmod 644 $oldlib'
6858 old_postuninstall_cmds=
6859
6860 if test -n "$RANLIB"; then
6861 case $host_os in
6862 bitrig* | openbsd*)
6863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6864 ;;
6865 *)
6866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6867 ;;
6868 esac
6869 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6870 fi
6871
6872 case $host_os in
6873 darwin*)
6874 lock_old_archive_extraction=yes ;;
6875 *)
6876 lock_old_archive_extraction=no ;;
6877 esac
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917 # If no C compiler was specified, use CC.
6918 LTCC=${LTCC-"$CC"}
6919
6920 # If no C compiler flags were specified, use CFLAGS.
6921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6922
6923 # Allow CC to be a program name with arguments.
6924 compiler=$CC
6925
6926
6927 # Check for command to grab the raw symbol name followed by C symbol from nm.
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6929 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6930 if test ${lt_cv_sys_global_symbol_pipe+y}
6931 then :
6932 printf %s "(cached) " >&6
6933 else $as_nop
6934
6935 # These are sane defaults that work on at least a few old systems.
6936 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6937
6938 # Character class describing NM global symbol codes.
6939 symcode='[BCDEGRST]'
6940
6941 # Regexp to match symbols that can be accessed directly from C.
6942 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6943
6944 # Define system-specific variables.
6945 case $host_os in
6946 aix*)
6947 symcode='[BCDT]'
6948 ;;
6949 cygwin* | mingw* | pw32* | cegcc*)
6950 symcode='[ABCDGISTW]'
6951 ;;
6952 hpux*)
6953 if test ia64 = "$host_cpu"; then
6954 symcode='[ABCDEGRST]'
6955 fi
6956 ;;
6957 irix* | nonstopux*)
6958 symcode='[BCDEGRST]'
6959 ;;
6960 osf*)
6961 symcode='[BCDEGQRST]'
6962 ;;
6963 solaris*)
6964 symcode='[BDRT]'
6965 ;;
6966 sco3.2v5*)
6967 symcode='[DT]'
6968 ;;
6969 sysv4.2uw2*)
6970 symcode='[DT]'
6971 ;;
6972 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6973 symcode='[ABDT]'
6974 ;;
6975 sysv4)
6976 symcode='[DFNSTU]'
6977 ;;
6978 esac
6979
6980 # If we're using GNU nm, then use its standard symbol codes.
6981 case `$NM -V 2>&1` in
6982 *GNU* | *'with BFD'*)
6983 symcode='[ABCDGIRSTW]' ;;
6984 esac
6985
6986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6987 # Gets list of data symbols to import.
6988 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6989 # Adjust the below global symbol transforms to fixup imported variables.
6990 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6991 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6992 lt_c_name_lib_hook="\
6993 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6994 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6995 else
6996 # Disable hooks by default.
6997 lt_cv_sys_global_symbol_to_import=
6998 lt_cdecl_hook=
6999 lt_c_name_hook=
7000 lt_c_name_lib_hook=
7001 fi
7002
7003 # Transform an extracted symbol line into a proper C declaration.
7004 # Some systems (esp. on ia64) link data and code symbols differently,
7005 # so use this general approach.
7006 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7007 $lt_cdecl_hook\
7008 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7009 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7010
7011 # Transform an extracted symbol line into symbol name and symbol address
7012 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7013 $lt_c_name_hook\
7014 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7015 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7016
7017 # Transform an extracted symbol line into symbol name with lib prefix and
7018 # symbol address.
7019 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7020 $lt_c_name_lib_hook\
7021 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7022 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7023 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7024
7025 # Handle CRLF in mingw tool chain
7026 opt_cr=
7027 case $build_os in
7028 mingw*)
7029 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7030 ;;
7031 esac
7032
7033 # Try without a prefix underscore, then with it.
7034 for ac_symprfx in "" "_"; do
7035
7036 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7037 symxfrm="\\1 $ac_symprfx\\2 \\2"
7038
7039 # Write the raw and C identifiers.
7040 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7041 # Fake it for dumpbin and say T for any non-static function,
7042 # D for any global variable and I for any imported variable.
7043 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7044 # which start with @ or ?.
7045 lt_cv_sys_global_symbol_pipe="$AWK '"\
7046 " {last_section=section; section=\$ 3};"\
7047 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7048 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7049 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7050 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7051 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7052 " \$ 0!~/External *\|/{next};"\
7053 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7054 " {if(hide[section]) next};"\
7055 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7056 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7057 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7058 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7059 " ' prfx=^$ac_symprfx"
7060 else
7061 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7062 fi
7063 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7064
7065 # Check to see that the pipe works correctly.
7066 pipe_works=no
7067
7068 rm -f conftest*
7069 cat > conftest.$ac_ext <<_LT_EOF
7070 #ifdef __cplusplus
7071 extern "C" {
7072 #endif
7073 char nm_test_var;
7074 void nm_test_func(void);
7075 void nm_test_func(void){}
7076 #ifdef __cplusplus
7077 }
7078 #endif
7079 int main(){nm_test_var='a';nm_test_func();return(0);}
7080 _LT_EOF
7081
7082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7083 (eval $ac_compile) 2>&5
7084 ac_status=$?
7085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086 test $ac_status = 0; }; then
7087 # Now try to grab the symbols.
7088 nlist=conftest.nm
7089 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7090 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7091 # Try sorting and uniquifying the output.
7092 if sort "$nlist" | uniq > "$nlist"T; then
7093 mv -f "$nlist"T "$nlist"
7094 else
7095 rm -f "$nlist"T
7096 fi
7097
7098 # Make sure that we snagged all the symbols we need.
7099 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7100 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7101 cat <<_LT_EOF > conftest.$ac_ext
7102 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7103 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7104 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7105 relocations are performed -- see ld's documentation on pseudo-relocs. */
7106 # define LT_DLSYM_CONST
7107 #elif defined __osf__
7108 /* This system does not cope well with relocations in const data. */
7109 # define LT_DLSYM_CONST
7110 #else
7111 # define LT_DLSYM_CONST const
7112 #endif
7113
7114 #ifdef __cplusplus
7115 extern "C" {
7116 #endif
7117
7118 _LT_EOF
7119 # Now generate the symbol file.
7120 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7121
7122 cat <<_LT_EOF >> conftest.$ac_ext
7123
7124 /* The mapping between symbol names and symbols. */
7125 LT_DLSYM_CONST struct {
7126 const char *name;
7127 void *address;
7128 }
7129 lt__PROGRAM__LTX_preloaded_symbols[] =
7130 {
7131 { "@PROGRAM@", (void *) 0 },
7132 _LT_EOF
7133 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7134 cat <<\_LT_EOF >> conftest.$ac_ext
7135 {0, (void *) 0}
7136 };
7137
7138 /* This works around a problem in FreeBSD linker */
7139 #ifdef FREEBSD_WORKAROUND
7140 static const void *lt_preloaded_setup() {
7141 return lt__PROGRAM__LTX_preloaded_symbols;
7142 }
7143 #endif
7144
7145 #ifdef __cplusplus
7146 }
7147 #endif
7148 _LT_EOF
7149 # Now try linking the two files.
7150 mv conftest.$ac_objext conftstm.$ac_objext
7151 lt_globsym_save_LIBS=$LIBS
7152 lt_globsym_save_CFLAGS=$CFLAGS
7153 LIBS=conftstm.$ac_objext
7154 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7156 (eval $ac_link) 2>&5
7157 ac_status=$?
7158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7159 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7160 pipe_works=yes
7161 fi
7162 LIBS=$lt_globsym_save_LIBS
7163 CFLAGS=$lt_globsym_save_CFLAGS
7164 else
7165 echo "cannot find nm_test_func in $nlist" >&5
7166 fi
7167 else
7168 echo "cannot find nm_test_var in $nlist" >&5
7169 fi
7170 else
7171 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7172 fi
7173 else
7174 echo "$progname: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7176 fi
7177 rm -rf conftest* conftst*
7178
7179 # Do not use the global_symbol_pipe unless it works.
7180 if test yes = "$pipe_works"; then
7181 break
7182 else
7183 lt_cv_sys_global_symbol_pipe=
7184 fi
7185 done
7186
7187 fi
7188
7189 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7190 lt_cv_sys_global_symbol_to_cdecl=
7191 fi
7192 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7194 printf "%s\n" "failed" >&6; }
7195 else
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7197 printf "%s\n" "ok" >&6; }
7198 fi
7199
7200 # Response file support.
7201 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7202 nm_file_list_spec='@'
7203 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7204 nm_file_list_spec='@'
7205 fi
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7244 printf %s "checking for sysroot... " >&6; }
7245
7246 # Check whether --with-sysroot was given.
7247 if test ${with_sysroot+y}
7248 then :
7249 withval=$with_sysroot;
7250 else $as_nop
7251 with_sysroot=no
7252 fi
7253
7254
7255 lt_sysroot=
7256 case $with_sysroot in #(
7257 yes)
7258 if test yes = "$GCC"; then
7259 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7260 fi
7261 ;; #(
7262 /*)
7263 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7264 ;; #(
7265 no|'')
7266 ;; #(
7267 *)
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7269 printf "%s\n" "$with_sysroot" >&6; }
7270 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7271 ;;
7272 esac
7273
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7275 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7276
7277
7278
7279
7280
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7282 printf %s "checking for a working dd... " >&6; }
7283 if test ${ac_cv_path_lt_DD+y}
7284 then :
7285 printf %s "(cached) " >&6
7286 else $as_nop
7287 printf 0123456789abcdef0123456789abcdef >conftest.i
7288 cat conftest.i conftest.i >conftest2.i
7289 : ${lt_DD:=$DD}
7290 if test -z "$lt_DD"; then
7291 ac_path_lt_DD_found=false
7292 # Loop through the user's path and test for each of PROGNAME-LIST
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296 IFS=$as_save_IFS
7297 case $as_dir in #(((
7298 '') as_dir=./ ;;
7299 */) ;;
7300 *) as_dir=$as_dir/ ;;
7301 esac
7302 for ac_prog in dd
7303 do
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7306 as_fn_executable_p "$ac_path_lt_DD" || continue
7307 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7308 cmp -s conftest.i conftest.out \
7309 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7310 fi
7311 $ac_path_lt_DD_found && break 3
7312 done
7313 done
7314 done
7315 IFS=$as_save_IFS
7316 if test -z "$ac_cv_path_lt_DD"; then
7317 :
7318 fi
7319 else
7320 ac_cv_path_lt_DD=$lt_DD
7321 fi
7322
7323 rm -f conftest.i conftest2.i conftest.out
7324 fi
7325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7326 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7327
7328
7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7330 printf %s "checking how to truncate binary pipes... " >&6; }
7331 if test ${lt_cv_truncate_bin+y}
7332 then :
7333 printf %s "(cached) " >&6
7334 else $as_nop
7335 printf 0123456789abcdef0123456789abcdef >conftest.i
7336 cat conftest.i conftest.i >conftest2.i
7337 lt_cv_truncate_bin=
7338 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7339 cmp -s conftest.i conftest.out \
7340 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7341 fi
7342 rm -f conftest.i conftest2.i conftest.out
7343 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7344 fi
7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7346 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7347
7348
7349
7350
7351
7352
7353
7354 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7355 func_cc_basename ()
7356 {
7357 for cc_temp in $*""; do
7358 case $cc_temp in
7359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7361 \-*) ;;
7362 *) break;;
7363 esac
7364 done
7365 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7366 }
7367
7368 # Check whether --enable-libtool-lock was given.
7369 if test ${enable_libtool_lock+y}
7370 then :
7371 enableval=$enable_libtool_lock;
7372 fi
7373
7374 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7375
7376 # Some flags need to be propagated to the compiler or linker for good
7377 # libtool support.
7378 case $host in
7379 ia64-*-hpux*)
7380 # Find out what ABI is being produced by ac_compile, and set mode
7381 # options accordingly.
7382 echo 'int i;' > conftest.$ac_ext
7383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7384 (eval $ac_compile) 2>&5
7385 ac_status=$?
7386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7387 test $ac_status = 0; }; then
7388 case `$FILECMD conftest.$ac_objext` in
7389 *ELF-32*)
7390 HPUX_IA64_MODE=32
7391 ;;
7392 *ELF-64*)
7393 HPUX_IA64_MODE=64
7394 ;;
7395 esac
7396 fi
7397 rm -rf conftest*
7398 ;;
7399 *-*-irix6*)
7400 # Find out what ABI is being produced by ac_compile, and set linker
7401 # options accordingly.
7402 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7404 (eval $ac_compile) 2>&5
7405 ac_status=$?
7406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407 test $ac_status = 0; }; then
7408 if test yes = "$lt_cv_prog_gnu_ld"; then
7409 case `$FILECMD conftest.$ac_objext` in
7410 *32-bit*)
7411 LD="${LD-ld} -melf32bsmip"
7412 ;;
7413 *N32*)
7414 LD="${LD-ld} -melf32bmipn32"
7415 ;;
7416 *64-bit*)
7417 LD="${LD-ld} -melf64bmip"
7418 ;;
7419 esac
7420 else
7421 case `$FILECMD conftest.$ac_objext` in
7422 *32-bit*)
7423 LD="${LD-ld} -32"
7424 ;;
7425 *N32*)
7426 LD="${LD-ld} -n32"
7427 ;;
7428 *64-bit*)
7429 LD="${LD-ld} -64"
7430 ;;
7431 esac
7432 fi
7433 fi
7434 rm -rf conftest*
7435 ;;
7436
7437 mips64*-*linux*)
7438 # Find out what ABI is being produced by ac_compile, and set linker
7439 # options accordingly.
7440 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7442 (eval $ac_compile) 2>&5
7443 ac_status=$?
7444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445 test $ac_status = 0; }; then
7446 emul=elf
7447 case `$FILECMD conftest.$ac_objext` in
7448 *32-bit*)
7449 emul="${emul}32"
7450 ;;
7451 *64-bit*)
7452 emul="${emul}64"
7453 ;;
7454 esac
7455 case `$FILECMD conftest.$ac_objext` in
7456 *MSB*)
7457 emul="${emul}btsmip"
7458 ;;
7459 *LSB*)
7460 emul="${emul}ltsmip"
7461 ;;
7462 esac
7463 case `$FILECMD conftest.$ac_objext` in
7464 *N32*)
7465 emul="${emul}n32"
7466 ;;
7467 esac
7468 LD="${LD-ld} -m $emul"
7469 fi
7470 rm -rf conftest*
7471 ;;
7472
7473 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7474 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7475 # Find out what ABI is being produced by ac_compile, and set linker
7476 # options accordingly. Note that the listed cases only cover the
7477 # situations where additional linker options are needed (such as when
7478 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7479 # vice versa); the common cases where no linker options are needed do
7480 # not appear in the list.
7481 echo 'int i;' > conftest.$ac_ext
7482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7483 (eval $ac_compile) 2>&5
7484 ac_status=$?
7485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7486 test $ac_status = 0; }; then
7487 case `$FILECMD conftest.o` in
7488 *32-bit*)
7489 case $host in
7490 x86_64-*kfreebsd*-gnu)
7491 LD="${LD-ld} -m elf_i386_fbsd"
7492 ;;
7493 x86_64-*linux*)
7494 case `$FILECMD conftest.o` in
7495 *x86-64*)
7496 LD="${LD-ld} -m elf32_x86_64"
7497 ;;
7498 *)
7499 LD="${LD-ld} -m elf_i386"
7500 ;;
7501 esac
7502 ;;
7503 powerpc64le-*linux*)
7504 LD="${LD-ld} -m elf32lppclinux"
7505 ;;
7506 powerpc64-*linux*)
7507 LD="${LD-ld} -m elf32ppclinux"
7508 ;;
7509 s390x-*linux*)
7510 LD="${LD-ld} -m elf_s390"
7511 ;;
7512 sparc64-*linux*)
7513 LD="${LD-ld} -m elf32_sparc"
7514 ;;
7515 esac
7516 ;;
7517 *64-bit*)
7518 case $host in
7519 x86_64-*kfreebsd*-gnu)
7520 LD="${LD-ld} -m elf_x86_64_fbsd"
7521 ;;
7522 x86_64-*linux*)
7523 LD="${LD-ld} -m elf_x86_64"
7524 ;;
7525 powerpcle-*linux*)
7526 LD="${LD-ld} -m elf64lppc"
7527 ;;
7528 powerpc-*linux*)
7529 LD="${LD-ld} -m elf64ppc"
7530 ;;
7531 s390*-*linux*|s390*-*tpf*)
7532 LD="${LD-ld} -m elf64_s390"
7533 ;;
7534 sparc*-*linux*)
7535 LD="${LD-ld} -m elf64_sparc"
7536 ;;
7537 esac
7538 ;;
7539 esac
7540 fi
7541 rm -rf conftest*
7542 ;;
7543
7544 *-*-sco3.2v5*)
7545 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7546 SAVE_CFLAGS=$CFLAGS
7547 CFLAGS="$CFLAGS -belf"
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7549 printf %s "checking whether the C compiler needs -belf... " >&6; }
7550 if test ${lt_cv_cc_needs_belf+y}
7551 then :
7552 printf %s "(cached) " >&6
7553 else $as_nop
7554 ac_ext=c
7555 ac_cpp='$CPP $CPPFLAGS'
7556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7562
7563 int
7564 main (void)
7565 {
7566
7567 ;
7568 return 0;
7569 }
7570 _ACEOF
7571 if ac_fn_c_try_link "$LINENO"
7572 then :
7573 lt_cv_cc_needs_belf=yes
7574 else $as_nop
7575 lt_cv_cc_needs_belf=no
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7578 conftest$ac_exeext conftest.$ac_ext
7579 ac_ext=c
7580 ac_cpp='$CPP $CPPFLAGS'
7581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7584
7585 fi
7586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7587 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7588 if test yes != "$lt_cv_cc_needs_belf"; then
7589 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7590 CFLAGS=$SAVE_CFLAGS
7591 fi
7592 ;;
7593 *-*solaris*)
7594 # Find out what ABI is being produced by ac_compile, and set linker
7595 # options accordingly.
7596 echo 'int i;' > conftest.$ac_ext
7597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7598 (eval $ac_compile) 2>&5
7599 ac_status=$?
7600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7601 test $ac_status = 0; }; then
7602 case `$FILECMD conftest.o` in
7603 *64-bit*)
7604 case $lt_cv_prog_gnu_ld in
7605 yes*)
7606 case $host in
7607 i?86-*-solaris*|x86_64-*-solaris*)
7608 LD="${LD-ld} -m elf_x86_64"
7609 ;;
7610 sparc*-*-solaris*)
7611 LD="${LD-ld} -m elf64_sparc"
7612 ;;
7613 esac
7614 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7615 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7616 LD=${LD-ld}_sol2
7617 fi
7618 ;;
7619 *)
7620 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7621 LD="${LD-ld} -64"
7622 fi
7623 ;;
7624 esac
7625 ;;
7626 esac
7627 fi
7628 rm -rf conftest*
7629 ;;
7630 esac
7631
7632 need_locks=$enable_libtool_lock
7633
7634 if test -n "$ac_tool_prefix"; then
7635 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7636 set dummy ${ac_tool_prefix}mt; ac_word=$2
7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 printf %s "checking for $ac_word... " >&6; }
7639 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7640 then :
7641 printf %s "(cached) " >&6
7642 else $as_nop
7643 if test -n "$MANIFEST_TOOL"; then
7644 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649 IFS=$as_save_IFS
7650 case $as_dir in #(((
7651 '') as_dir=./ ;;
7652 */) ;;
7653 *) as_dir=$as_dir/ ;;
7654 esac
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661 done
7662 done
7663 IFS=$as_save_IFS
7664
7665 fi
7666 fi
7667 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7668 if test -n "$MANIFEST_TOOL"; then
7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7670 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7671 else
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 printf "%s\n" "no" >&6; }
7674 fi
7675
7676
7677 fi
7678 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7679 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7680 # Extract the first word of "mt", so it can be a program name with args.
7681 set dummy mt; ac_word=$2
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 printf %s "checking for $ac_word... " >&6; }
7684 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7685 then :
7686 printf %s "(cached) " >&6
7687 else $as_nop
7688 if test -n "$ac_ct_MANIFEST_TOOL"; then
7689 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7690 else
7691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 for as_dir in $PATH
7693 do
7694 IFS=$as_save_IFS
7695 case $as_dir in #(((
7696 '') as_dir=./ ;;
7697 */) ;;
7698 *) as_dir=$as_dir/ ;;
7699 esac
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7702 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710 fi
7711 fi
7712 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7713 if test -n "$ac_ct_MANIFEST_TOOL"; then
7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7715 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7716 else
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 printf "%s\n" "no" >&6; }
7719 fi
7720
7721 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7722 MANIFEST_TOOL=":"
7723 else
7724 case $cross_compiling:$ac_tool_warned in
7725 yes:)
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7727 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7728 ac_tool_warned=yes ;;
7729 esac
7730 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7731 fi
7732 else
7733 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7734 fi
7735
7736 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7738 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7739 if test ${lt_cv_path_mainfest_tool+y}
7740 then :
7741 printf %s "(cached) " >&6
7742 else $as_nop
7743 lt_cv_path_mainfest_tool=no
7744 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7745 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7746 cat conftest.err >&5
7747 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7748 lt_cv_path_mainfest_tool=yes
7749 fi
7750 rm -f conftest*
7751 fi
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7753 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7754 if test yes != "$lt_cv_path_mainfest_tool"; then
7755 MANIFEST_TOOL=:
7756 fi
7757
7758
7759
7760
7761
7762
7763 case $host_os in
7764 rhapsody* | darwin*)
7765 if test -n "$ac_tool_prefix"; then
7766 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7767 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 printf %s "checking for $ac_word... " >&6; }
7770 if test ${ac_cv_prog_DSYMUTIL+y}
7771 then :
7772 printf %s "(cached) " >&6
7773 else $as_nop
7774 if test -n "$DSYMUTIL"; then
7775 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780 IFS=$as_save_IFS
7781 case $as_dir in #(((
7782 '') as_dir=./ ;;
7783 */) ;;
7784 *) as_dir=$as_dir/ ;;
7785 esac
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7788 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792 done
7793 done
7794 IFS=$as_save_IFS
7795
7796 fi
7797 fi
7798 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7799 if test -n "$DSYMUTIL"; then
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7801 printf "%s\n" "$DSYMUTIL" >&6; }
7802 else
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 printf "%s\n" "no" >&6; }
7805 fi
7806
7807
7808 fi
7809 if test -z "$ac_cv_prog_DSYMUTIL"; then
7810 ac_ct_DSYMUTIL=$DSYMUTIL
7811 # Extract the first word of "dsymutil", so it can be a program name with args.
7812 set dummy dsymutil; ac_word=$2
7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 printf %s "checking for $ac_word... " >&6; }
7815 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7816 then :
7817 printf %s "(cached) " >&6
7818 else $as_nop
7819 if test -n "$ac_ct_DSYMUTIL"; then
7820 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825 IFS=$as_save_IFS
7826 case $as_dir in #(((
7827 '') as_dir=./ ;;
7828 */) ;;
7829 *) as_dir=$as_dir/ ;;
7830 esac
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837 done
7838 done
7839 IFS=$as_save_IFS
7840
7841 fi
7842 fi
7843 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7844 if test -n "$ac_ct_DSYMUTIL"; then
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7846 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7847 else
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 printf "%s\n" "no" >&6; }
7850 fi
7851
7852 if test "x$ac_ct_DSYMUTIL" = x; then
7853 DSYMUTIL=":"
7854 else
7855 case $cross_compiling:$ac_tool_warned in
7856 yes:)
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859 ac_tool_warned=yes ;;
7860 esac
7861 DSYMUTIL=$ac_ct_DSYMUTIL
7862 fi
7863 else
7864 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7865 fi
7866
7867 if test -n "$ac_tool_prefix"; then
7868 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7869 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871 printf %s "checking for $ac_word... " >&6; }
7872 if test ${ac_cv_prog_NMEDIT+y}
7873 then :
7874 printf %s "(cached) " >&6
7875 else $as_nop
7876 if test -n "$NMEDIT"; then
7877 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7878 else
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7881 do
7882 IFS=$as_save_IFS
7883 case $as_dir in #(((
7884 '') as_dir=./ ;;
7885 */) ;;
7886 *) as_dir=$as_dir/ ;;
7887 esac
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7890 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7892 break 2
7893 fi
7894 done
7895 done
7896 IFS=$as_save_IFS
7897
7898 fi
7899 fi
7900 NMEDIT=$ac_cv_prog_NMEDIT
7901 if test -n "$NMEDIT"; then
7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7903 printf "%s\n" "$NMEDIT" >&6; }
7904 else
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 printf "%s\n" "no" >&6; }
7907 fi
7908
7909
7910 fi
7911 if test -z "$ac_cv_prog_NMEDIT"; then
7912 ac_ct_NMEDIT=$NMEDIT
7913 # Extract the first word of "nmedit", so it can be a program name with args.
7914 set dummy nmedit; ac_word=$2
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 printf %s "checking for $ac_word... " >&6; }
7917 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7918 then :
7919 printf %s "(cached) " >&6
7920 else $as_nop
7921 if test -n "$ac_ct_NMEDIT"; then
7922 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 case $as_dir in #(((
7929 '') as_dir=./ ;;
7930 */) ;;
7931 *) as_dir=$as_dir/ ;;
7932 esac
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7935 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7937 break 2
7938 fi
7939 done
7940 done
7941 IFS=$as_save_IFS
7942
7943 fi
7944 fi
7945 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7946 if test -n "$ac_ct_NMEDIT"; then
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7948 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7949 else
7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 printf "%s\n" "no" >&6; }
7952 fi
7953
7954 if test "x$ac_ct_NMEDIT" = x; then
7955 NMEDIT=":"
7956 else
7957 case $cross_compiling:$ac_tool_warned in
7958 yes:)
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7961 ac_tool_warned=yes ;;
7962 esac
7963 NMEDIT=$ac_ct_NMEDIT
7964 fi
7965 else
7966 NMEDIT="$ac_cv_prog_NMEDIT"
7967 fi
7968
7969 if test -n "$ac_tool_prefix"; then
7970 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7971 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 printf %s "checking for $ac_word... " >&6; }
7974 if test ${ac_cv_prog_LIPO+y}
7975 then :
7976 printf %s "(cached) " >&6
7977 else $as_nop
7978 if test -n "$LIPO"; then
7979 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984 IFS=$as_save_IFS
7985 case $as_dir in #(((
7986 '') as_dir=./ ;;
7987 */) ;;
7988 *) as_dir=$as_dir/ ;;
7989 esac
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7994 break 2
7995 fi
7996 done
7997 done
7998 IFS=$as_save_IFS
7999
8000 fi
8001 fi
8002 LIPO=$ac_cv_prog_LIPO
8003 if test -n "$LIPO"; then
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8005 printf "%s\n" "$LIPO" >&6; }
8006 else
8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 printf "%s\n" "no" >&6; }
8009 fi
8010
8011
8012 fi
8013 if test -z "$ac_cv_prog_LIPO"; then
8014 ac_ct_LIPO=$LIPO
8015 # Extract the first word of "lipo", so it can be a program name with args.
8016 set dummy lipo; ac_word=$2
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 printf %s "checking for $ac_word... " >&6; }
8019 if test ${ac_cv_prog_ac_ct_LIPO+y}
8020 then :
8021 printf %s "(cached) " >&6
8022 else $as_nop
8023 if test -n "$ac_ct_LIPO"; then
8024 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029 IFS=$as_save_IFS
8030 case $as_dir in #(((
8031 '') as_dir=./ ;;
8032 */) ;;
8033 *) as_dir=$as_dir/ ;;
8034 esac
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8037 ac_cv_prog_ac_ct_LIPO="lipo"
8038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041 done
8042 done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8048 if test -n "$ac_ct_LIPO"; then
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8050 printf "%s\n" "$ac_ct_LIPO" >&6; }
8051 else
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 printf "%s\n" "no" >&6; }
8054 fi
8055
8056 if test "x$ac_ct_LIPO" = x; then
8057 LIPO=":"
8058 else
8059 case $cross_compiling:$ac_tool_warned in
8060 yes:)
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063 ac_tool_warned=yes ;;
8064 esac
8065 LIPO=$ac_ct_LIPO
8066 fi
8067 else
8068 LIPO="$ac_cv_prog_LIPO"
8069 fi
8070
8071 if test -n "$ac_tool_prefix"; then
8072 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8073 set dummy ${ac_tool_prefix}otool; ac_word=$2
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 printf %s "checking for $ac_word... " >&6; }
8076 if test ${ac_cv_prog_OTOOL+y}
8077 then :
8078 printf %s "(cached) " >&6
8079 else $as_nop
8080 if test -n "$OTOOL"; then
8081 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086 IFS=$as_save_IFS
8087 case $as_dir in #(((
8088 '') as_dir=./ ;;
8089 */) ;;
8090 *) as_dir=$as_dir/ ;;
8091 esac
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8094 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098 done
8099 done
8100 IFS=$as_save_IFS
8101
8102 fi
8103 fi
8104 OTOOL=$ac_cv_prog_OTOOL
8105 if test -n "$OTOOL"; then
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8107 printf "%s\n" "$OTOOL" >&6; }
8108 else
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 printf "%s\n" "no" >&6; }
8111 fi
8112
8113
8114 fi
8115 if test -z "$ac_cv_prog_OTOOL"; then
8116 ac_ct_OTOOL=$OTOOL
8117 # Extract the first word of "otool", so it can be a program name with args.
8118 set dummy otool; ac_word=$2
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 printf %s "checking for $ac_word... " >&6; }
8121 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8122 then :
8123 printf %s "(cached) " >&6
8124 else $as_nop
8125 if test -n "$ac_ct_OTOOL"; then
8126 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131 IFS=$as_save_IFS
8132 case $as_dir in #(((
8133 '') as_dir=./ ;;
8134 */) ;;
8135 *) as_dir=$as_dir/ ;;
8136 esac
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8139 ac_cv_prog_ac_ct_OTOOL="otool"
8140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8141 break 2
8142 fi
8143 done
8144 done
8145 IFS=$as_save_IFS
8146
8147 fi
8148 fi
8149 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8150 if test -n "$ac_ct_OTOOL"; then
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8152 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8153 else
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 printf "%s\n" "no" >&6; }
8156 fi
8157
8158 if test "x$ac_ct_OTOOL" = x; then
8159 OTOOL=":"
8160 else
8161 case $cross_compiling:$ac_tool_warned in
8162 yes:)
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8164 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8165 ac_tool_warned=yes ;;
8166 esac
8167 OTOOL=$ac_ct_OTOOL
8168 fi
8169 else
8170 OTOOL="$ac_cv_prog_OTOOL"
8171 fi
8172
8173 if test -n "$ac_tool_prefix"; then
8174 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8175 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177 printf %s "checking for $ac_word... " >&6; }
8178 if test ${ac_cv_prog_OTOOL64+y}
8179 then :
8180 printf %s "(cached) " >&6
8181 else $as_nop
8182 if test -n "$OTOOL64"; then
8183 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8184 else
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8187 do
8188 IFS=$as_save_IFS
8189 case $as_dir in #(((
8190 '') as_dir=./ ;;
8191 */) ;;
8192 *) as_dir=$as_dir/ ;;
8193 esac
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8196 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8198 break 2
8199 fi
8200 done
8201 done
8202 IFS=$as_save_IFS
8203
8204 fi
8205 fi
8206 OTOOL64=$ac_cv_prog_OTOOL64
8207 if test -n "$OTOOL64"; then
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8209 printf "%s\n" "$OTOOL64" >&6; }
8210 else
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 printf "%s\n" "no" >&6; }
8213 fi
8214
8215
8216 fi
8217 if test -z "$ac_cv_prog_OTOOL64"; then
8218 ac_ct_OTOOL64=$OTOOL64
8219 # Extract the first word of "otool64", so it can be a program name with args.
8220 set dummy otool64; ac_word=$2
8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 printf %s "checking for $ac_word... " >&6; }
8223 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8224 then :
8225 printf %s "(cached) " >&6
8226 else $as_nop
8227 if test -n "$ac_ct_OTOOL64"; then
8228 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8229 else
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8232 do
8233 IFS=$as_save_IFS
8234 case $as_dir in #(((
8235 '') as_dir=./ ;;
8236 */) ;;
8237 *) as_dir=$as_dir/ ;;
8238 esac
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_ac_ct_OTOOL64="otool64"
8242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245 done
8246 done
8247 IFS=$as_save_IFS
8248
8249 fi
8250 fi
8251 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8252 if test -n "$ac_ct_OTOOL64"; then
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8254 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8255 else
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 printf "%s\n" "no" >&6; }
8258 fi
8259
8260 if test "x$ac_ct_OTOOL64" = x; then
8261 OTOOL64=":"
8262 else
8263 case $cross_compiling:$ac_tool_warned in
8264 yes:)
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8266 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8267 ac_tool_warned=yes ;;
8268 esac
8269 OTOOL64=$ac_ct_OTOOL64
8270 fi
8271 else
8272 OTOOL64="$ac_cv_prog_OTOOL64"
8273 fi
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8302 printf %s "checking for -single_module linker flag... " >&6; }
8303 if test ${lt_cv_apple_cc_single_mod+y}
8304 then :
8305 printf %s "(cached) " >&6
8306 else $as_nop
8307 lt_cv_apple_cc_single_mod=no
8308 if test -z "$LT_MULTI_MODULE"; then
8309 # By default we will add the -single_module flag. You can override
8310 # by either setting the environment variable LT_MULTI_MODULE
8311 # non-empty at configure time, or by adding -multi_module to the
8312 # link flags.
8313 rm -rf libconftest.dylib*
8314 echo "int foo(void){return 1;}" > conftest.c
8315 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8316 -dynamiclib -Wl,-single_module conftest.c" >&5
8317 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8318 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8319 _lt_result=$?
8320 # If there is a non-empty error log, and "single_module"
8321 # appears in it, assume the flag caused a linker warning
8322 if test -s conftest.err && $GREP single_module conftest.err; then
8323 cat conftest.err >&5
8324 # Otherwise, if the output was created with a 0 exit code from
8325 # the compiler, it worked.
8326 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8327 lt_cv_apple_cc_single_mod=yes
8328 else
8329 cat conftest.err >&5
8330 fi
8331 rm -rf libconftest.dylib*
8332 rm -f conftest.*
8333 fi
8334 fi
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8336 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8337
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8339 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8340 if test ${lt_cv_ld_exported_symbols_list+y}
8341 then :
8342 printf %s "(cached) " >&6
8343 else $as_nop
8344 lt_cv_ld_exported_symbols_list=no
8345 save_LDFLAGS=$LDFLAGS
8346 echo "_main" > conftest.sym
8347 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h. */
8350
8351 int
8352 main (void)
8353 {
8354
8355 ;
8356 return 0;
8357 }
8358 _ACEOF
8359 if ac_fn_c_try_link "$LINENO"
8360 then :
8361 lt_cv_ld_exported_symbols_list=yes
8362 else $as_nop
8363 lt_cv_ld_exported_symbols_list=no
8364 fi
8365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8366 conftest$ac_exeext conftest.$ac_ext
8367 LDFLAGS=$save_LDFLAGS
8368
8369 fi
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8371 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8372
8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8374 printf %s "checking for -force_load linker flag... " >&6; }
8375 if test ${lt_cv_ld_force_load+y}
8376 then :
8377 printf %s "(cached) " >&6
8378 else $as_nop
8379 lt_cv_ld_force_load=no
8380 cat > conftest.c << _LT_EOF
8381 int forced_loaded() { return 2;}
8382 _LT_EOF
8383 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8384 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8385 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8386 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8387 echo "$RANLIB libconftest.a" >&5
8388 $RANLIB libconftest.a 2>&5
8389 cat > conftest.c << _LT_EOF
8390 int main() { return 0;}
8391 _LT_EOF
8392 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8393 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8394 _lt_result=$?
8395 if test -s conftest.err && $GREP force_load conftest.err; then
8396 cat conftest.err >&5
8397 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8398 lt_cv_ld_force_load=yes
8399 else
8400 cat conftest.err >&5
8401 fi
8402 rm -f conftest.err libconftest.a conftest conftest.c
8403 rm -rf conftest.dSYM
8404
8405 fi
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8407 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8408 case $host_os in
8409 rhapsody* | darwin1.[012])
8410 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8411 darwin1.*)
8412 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8413 darwin*)
8414 case $MACOSX_DEPLOYMENT_TARGET,$host in
8415 10.[012],*|,*powerpc*-darwin[5-8]*)
8416 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8417 *)
8418 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8419 esac
8420 ;;
8421 esac
8422 if test yes = "$lt_cv_apple_cc_single_mod"; then
8423 _lt_dar_single_mod='$single_module'
8424 fi
8425 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8426 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8427 else
8428 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8429 fi
8430 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8431 _lt_dsymutil='~$DSYMUTIL $lib || :'
8432 else
8433 _lt_dsymutil=
8434 fi
8435 ;;
8436 esac
8437
8438 # func_munge_path_list VARIABLE PATH
8439 # -----------------------------------
8440 # VARIABLE is name of variable containing _space_ separated list of
8441 # directories to be munged by the contents of PATH, which is string
8442 # having a format:
8443 # "DIR[:DIR]:"
8444 # string "DIR[ DIR]" will be prepended to VARIABLE
8445 # ":DIR[:DIR]"
8446 # string "DIR[ DIR]" will be appended to VARIABLE
8447 # "DIRP[:DIRP]::[DIRA:]DIRA"
8448 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8449 # "DIRA[ DIRA]" will be appended to VARIABLE
8450 # "DIR[:DIR]"
8451 # VARIABLE will be replaced by "DIR[ DIR]"
8452 func_munge_path_list ()
8453 {
8454 case x$2 in
8455 x)
8456 ;;
8457 *:)
8458 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8459 ;;
8460 x:*)
8461 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8462 ;;
8463 *::*)
8464 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8465 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8466 ;;
8467 *)
8468 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8469 ;;
8470 esac
8471 }
8472
8473 ac_header= ac_cache=
8474 for ac_item in $ac_header_c_list
8475 do
8476 if test $ac_cache; then
8477 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8478 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8479 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8480 fi
8481 ac_header= ac_cache=
8482 elif test $ac_header; then
8483 ac_cache=$ac_item
8484 else
8485 ac_header=$ac_item
8486 fi
8487 done
8488
8489
8490
8491
8492
8493
8494
8495
8496 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8497 then :
8498
8499 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8500
8501 fi
8502 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8503 "
8504 if test "x$ac_cv_header_dlfcn_h" = xyes
8505 then :
8506 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8507
8508 fi
8509
8510
8511
8512
8513
8514 # Set options
8515 # Check whether --enable-shared was given.
8516 if test ${enable_shared+y}
8517 then :
8518 enableval=$enable_shared; p=${PACKAGE-default}
8519 case $enableval in
8520 yes) enable_shared=yes ;;
8521 no) enable_shared=no ;;
8522 *)
8523 enable_shared=no
8524 # Look at the argument we got. We use all the common list separators.
8525 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8526 for pkg in $enableval; do
8527 IFS=$lt_save_ifs
8528 if test "X$pkg" = "X$p"; then
8529 enable_shared=yes
8530 fi
8531 done
8532 IFS=$lt_save_ifs
8533 ;;
8534 esac
8535 else $as_nop
8536 enable_shared=yes
8537 fi
8538
8539
8540
8541
8542
8543
8544
8545 # Check whether --enable-static was given.
8546 if test ${enable_static+y}
8547 then :
8548 enableval=$enable_static; p=${PACKAGE-default}
8549 case $enableval in
8550 yes) enable_static=yes ;;
8551 no) enable_static=no ;;
8552 *)
8553 enable_static=no
8554 # Look at the argument we got. We use all the common list separators.
8555 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8556 for pkg in $enableval; do
8557 IFS=$lt_save_ifs
8558 if test "X$pkg" = "X$p"; then
8559 enable_static=yes
8560 fi
8561 done
8562 IFS=$lt_save_ifs
8563 ;;
8564 esac
8565 else $as_nop
8566 enable_static=no
8567 fi
8568
8569
8570
8571
8572
8573
8574
8575 enable_dlopen=yes
8576 shared_archive_member_spec=
8577 case $host,$enable_shared in
8578 power*-*-aix[5-9]*,yes)
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8580 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8581
8582 # Check whether --with-aix-soname was given.
8583 if test ${with_aix_soname+y}
8584 then :
8585 withval=$with_aix_soname; case $withval in
8586 aix|svr4|both)
8587 ;;
8588 *)
8589 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8590 ;;
8591 esac
8592 lt_cv_with_aix_soname=$with_aix_soname
8593 else $as_nop
8594 if test ${lt_cv_with_aix_soname+y}
8595 then :
8596 printf %s "(cached) " >&6
8597 else $as_nop
8598 lt_cv_with_aix_soname=both
8599 fi
8600
8601 with_aix_soname=$lt_cv_with_aix_soname
8602 fi
8603
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8605 printf "%s\n" "$with_aix_soname" >&6; }
8606 if test aix != "$with_aix_soname"; then
8607 # For the AIX way of multilib, we name the shared archive member
8608 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8609 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8610 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8611 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8612 if test 64 = "${OBJECT_MODE-32}"; then
8613 shared_archive_member_spec=shr_64
8614 else
8615 shared_archive_member_spec=shr
8616 fi
8617 fi
8618 ;;
8619 *)
8620 with_aix_soname=aix
8621 ;;
8622 esac
8623
8624
8625
8626
8627
8628 # Check whether --enable-fast-install was given.
8629 if test ${enable_fast_install+y}
8630 then :
8631 enableval=$enable_fast_install; p=${PACKAGE-default}
8632 case $enableval in
8633 yes) enable_fast_install=yes ;;
8634 no) enable_fast_install=no ;;
8635 *)
8636 enable_fast_install=no
8637 # Look at the argument we got. We use all the common list separators.
8638 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8639 for pkg in $enableval; do
8640 IFS=$lt_save_ifs
8641 if test "X$pkg" = "X$p"; then
8642 enable_fast_install=yes
8643 fi
8644 done
8645 IFS=$lt_save_ifs
8646 ;;
8647 esac
8648 else $as_nop
8649 enable_fast_install=no
8650 fi
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661 enable_win32_dll=no
8662
8663
8664
8665
8666
8667 # Check whether --with-pic was given.
8668 if test ${with_pic+y}
8669 then :
8670 withval=$with_pic; lt_p=${PACKAGE-default}
8671 case $withval in
8672 yes|no) pic_mode=$withval ;;
8673 *)
8674 pic_mode=default
8675 # Look at the argument we got. We use all the common list separators.
8676 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8677 for lt_pkg in $withval; do
8678 IFS=$lt_save_ifs
8679 if test "X$lt_pkg" = "X$lt_p"; then
8680 pic_mode=yes
8681 fi
8682 done
8683 IFS=$lt_save_ifs
8684 ;;
8685 esac
8686 else $as_nop
8687 pic_mode=default
8688 fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702 # This can be used to rebuild libtool when needed
8703 LIBTOOL_DEPS=$ltmain
8704
8705 # Always use our own libtool.
8706 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737 test -z "$LN_S" && LN_S="ln -s"
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752 if test -n "${ZSH_VERSION+set}"; then
8753 setopt NO_GLOB_SUBST
8754 fi
8755
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8757 printf %s "checking for objdir... " >&6; }
8758 if test ${lt_cv_objdir+y}
8759 then :
8760 printf %s "(cached) " >&6
8761 else $as_nop
8762 rm -f .libs 2>/dev/null
8763 mkdir .libs 2>/dev/null
8764 if test -d .libs; then
8765 lt_cv_objdir=.libs
8766 else
8767 # MS-DOS does not allow filenames that begin with a dot.
8768 lt_cv_objdir=_libs
8769 fi
8770 rmdir .libs 2>/dev/null
8771 fi
8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8773 printf "%s\n" "$lt_cv_objdir" >&6; }
8774 objdir=$lt_cv_objdir
8775
8776
8777
8778
8779
8780 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8781
8782
8783
8784
8785 case $host_os in
8786 aix3*)
8787 # AIX sometimes has problems with the GCC collect2 program. For some
8788 # reason, if we set the COLLECT_NAMES environment variable, the problems
8789 # vanish in a puff of smoke.
8790 if test set != "${COLLECT_NAMES+set}"; then
8791 COLLECT_NAMES=
8792 export COLLECT_NAMES
8793 fi
8794 ;;
8795 esac
8796
8797 # Global variables:
8798 ofile=libtool
8799 can_build_shared=yes
8800
8801 # All known linkers require a '.a' archive for static linking (except MSVC and
8802 # ICC, which need '.lib').
8803 libext=a
8804
8805 with_gnu_ld=$lt_cv_prog_gnu_ld
8806
8807 old_CC=$CC
8808 old_CFLAGS=$CFLAGS
8809
8810 # Set sane defaults for various variables
8811 test -z "$CC" && CC=cc
8812 test -z "$LTCC" && LTCC=$CC
8813 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8814 test -z "$LD" && LD=ld
8815 test -z "$ac_objext" && ac_objext=o
8816
8817 func_cc_basename $compiler
8818 cc_basename=$func_cc_basename_result
8819
8820
8821 # Only perform the check for file, if the check method requires it
8822 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8823 case $deplibs_check_method in
8824 file_magic*)
8825 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8827 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8828 if test ${lt_cv_path_MAGIC_CMD+y}
8829 then :
8830 printf %s "(cached) " >&6
8831 else $as_nop
8832 case $MAGIC_CMD in
8833 [\\/*] | ?:[\\/]*)
8834 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8835 ;;
8836 *)
8837 lt_save_MAGIC_CMD=$MAGIC_CMD
8838 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8839 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8840 for ac_dir in $ac_dummy; do
8841 IFS=$lt_save_ifs
8842 test -z "$ac_dir" && ac_dir=.
8843 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8844 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8845 if test -n "$file_magic_test_file"; then
8846 case $deplibs_check_method in
8847 "file_magic "*)
8848 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8849 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8850 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8851 $EGREP "$file_magic_regex" > /dev/null; then
8852 :
8853 else
8854 cat <<_LT_EOF 1>&2
8855
8856 *** Warning: the command libtool uses to detect shared libraries,
8857 *** $file_magic_cmd, produces output that libtool cannot recognize.
8858 *** The result is that libtool may fail to recognize shared libraries
8859 *** as such. This will affect the creation of libtool libraries that
8860 *** depend on shared libraries, but programs linked with such libtool
8861 *** libraries will work regardless of this problem. Nevertheless, you
8862 *** may want to report the problem to your system manager and/or to
8863 *** [email protected]
8864
8865 _LT_EOF
8866 fi ;;
8867 esac
8868 fi
8869 break
8870 fi
8871 done
8872 IFS=$lt_save_ifs
8873 MAGIC_CMD=$lt_save_MAGIC_CMD
8874 ;;
8875 esac
8876 fi
8877
8878 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8879 if test -n "$MAGIC_CMD"; then
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8881 printf "%s\n" "$MAGIC_CMD" >&6; }
8882 else
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 printf "%s\n" "no" >&6; }
8885 fi
8886
8887
8888
8889
8890
8891 if test -z "$lt_cv_path_MAGIC_CMD"; then
8892 if test -n "$ac_tool_prefix"; then
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8894 printf %s "checking for file... " >&6; }
8895 if test ${lt_cv_path_MAGIC_CMD+y}
8896 then :
8897 printf %s "(cached) " >&6
8898 else $as_nop
8899 case $MAGIC_CMD in
8900 [\\/*] | ?:[\\/]*)
8901 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8902 ;;
8903 *)
8904 lt_save_MAGIC_CMD=$MAGIC_CMD
8905 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8906 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8907 for ac_dir in $ac_dummy; do
8908 IFS=$lt_save_ifs
8909 test -z "$ac_dir" && ac_dir=.
8910 if test -f "$ac_dir/file"; then
8911 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8912 if test -n "$file_magic_test_file"; then
8913 case $deplibs_check_method in
8914 "file_magic "*)
8915 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8916 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8917 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8918 $EGREP "$file_magic_regex" > /dev/null; then
8919 :
8920 else
8921 cat <<_LT_EOF 1>&2
8922
8923 *** Warning: the command libtool uses to detect shared libraries,
8924 *** $file_magic_cmd, produces output that libtool cannot recognize.
8925 *** The result is that libtool may fail to recognize shared libraries
8926 *** as such. This will affect the creation of libtool libraries that
8927 *** depend on shared libraries, but programs linked with such libtool
8928 *** libraries will work regardless of this problem. Nevertheless, you
8929 *** may want to report the problem to your system manager and/or to
8930 *** [email protected]
8931
8932 _LT_EOF
8933 fi ;;
8934 esac
8935 fi
8936 break
8937 fi
8938 done
8939 IFS=$lt_save_ifs
8940 MAGIC_CMD=$lt_save_MAGIC_CMD
8941 ;;
8942 esac
8943 fi
8944
8945 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8946 if test -n "$MAGIC_CMD"; then
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8948 printf "%s\n" "$MAGIC_CMD" >&6; }
8949 else
8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 printf "%s\n" "no" >&6; }
8952 fi
8953
8954
8955 else
8956 MAGIC_CMD=:
8957 fi
8958 fi
8959
8960 fi
8961 ;;
8962 esac
8963
8964 # Use C for the default configuration in the libtool script
8965
8966 lt_save_CC=$CC
8967 ac_ext=c
8968 ac_cpp='$CPP $CPPFLAGS'
8969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8972
8973
8974 # Source file extension for C test sources.
8975 ac_ext=c
8976
8977 # Object file extension for compiled C test sources.
8978 objext=o
8979 objext=$objext
8980
8981 # Code to be used in simple compile tests
8982 lt_simple_compile_test_code="int some_variable = 0;"
8983
8984 # Code to be used in simple link tests
8985 lt_simple_link_test_code='int main(){return(0);}'
8986
8987
8988
8989
8990
8991
8992
8993 # If no C compiler was specified, use CC.
8994 LTCC=${LTCC-"$CC"}
8995
8996 # If no C compiler flags were specified, use CFLAGS.
8997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8998
8999 # Allow CC to be a program name with arguments.
9000 compiler=$CC
9001
9002 # Save the default compiler, since it gets overwritten when the other
9003 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9004 compiler_DEFAULT=$CC
9005
9006 # save warnings/boilerplate of simple test code
9007 ac_outfile=conftest.$ac_objext
9008 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9009 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9010 _lt_compiler_boilerplate=`cat conftest.err`
9011 $RM conftest*
9012
9013 ac_outfile=conftest.$ac_objext
9014 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9015 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9016 _lt_linker_boilerplate=`cat conftest.err`
9017 $RM -r conftest*
9018
9019
9020 ## CAVEAT EMPTOR:
9021 ## There is no encapsulation within the following macros, do not change
9022 ## the running order or otherwise move them around unless you know exactly
9023 ## what you are doing...
9024 if test -n "$compiler"; then
9025
9026 lt_prog_compiler_no_builtin_flag=
9027
9028 if test yes = "$GCC"; then
9029 case $cc_basename in
9030 nvcc*)
9031 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9032 *)
9033 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9034 esac
9035
9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9037 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9038 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9039 then :
9040 printf %s "(cached) " >&6
9041 else $as_nop
9042 lt_cv_prog_compiler_rtti_exceptions=no
9043 ac_outfile=conftest.$ac_objext
9044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9045 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9046 # Insert the option either (1) after the last *FLAGS variable, or
9047 # (2) before a word containing "conftest.", or (3) at the end.
9048 # Note that $ac_compile itself does not contain backslashes and begins
9049 # with a dollar sign (not a hyphen), so the echo should work correctly.
9050 # The option is referenced via a variable to avoid confusing sed.
9051 lt_compile=`echo "$ac_compile" | $SED \
9052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9054 -e 's:$: $lt_compiler_flag:'`
9055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9056 (eval "$lt_compile" 2>conftest.err)
9057 ac_status=$?
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 if (exit $ac_status) && test -s "$ac_outfile"; then
9061 # The compiler can only warn and ignore the option if not recognized
9062 # So say no if there are warnings other than the usual output.
9063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9065 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9066 lt_cv_prog_compiler_rtti_exceptions=yes
9067 fi
9068 fi
9069 $RM conftest*
9070
9071 fi
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9073 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9074
9075 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9076 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9077 else
9078 :
9079 fi
9080
9081 fi
9082
9083
9084
9085
9086
9087
9088 lt_prog_compiler_wl=
9089 lt_prog_compiler_pic=
9090 lt_prog_compiler_static=
9091
9092
9093 if test yes = "$GCC"; then
9094 lt_prog_compiler_wl='-Wl,'
9095 lt_prog_compiler_static='-static'
9096
9097 case $host_os in
9098 aix*)
9099 # All AIX code is PIC.
9100 if test ia64 = "$host_cpu"; then
9101 # AIX 5 now supports IA64 processor
9102 lt_prog_compiler_static='-Bstatic'
9103 fi
9104 lt_prog_compiler_pic='-fPIC'
9105 ;;
9106
9107 amigaos*)
9108 case $host_cpu in
9109 powerpc)
9110 # see comment about AmigaOS4 .so support
9111 lt_prog_compiler_pic='-fPIC'
9112 ;;
9113 m68k)
9114 # FIXME: we need at least 68020 code to build shared libraries, but
9115 # adding the '-m68020' flag to GCC prevents building anything better,
9116 # like '-m68040'.
9117 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9118 ;;
9119 esac
9120 ;;
9121
9122 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9123 # PIC is the default for these OSes.
9124 ;;
9125
9126 mingw* | cygwin* | pw32* | os2* | cegcc*)
9127 # This hack is so that the source file can tell whether it is being
9128 # built for inclusion in a dll (and should export symbols for example).
9129 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9130 # (--disable-auto-import) libraries
9131 lt_prog_compiler_pic='-DDLL_EXPORT'
9132 case $host_os in
9133 os2*)
9134 lt_prog_compiler_static='$wl-static'
9135 ;;
9136 esac
9137 ;;
9138
9139 darwin* | rhapsody*)
9140 # PIC is the default on this platform
9141 # Common symbols not allowed in MH_DYLIB files
9142 lt_prog_compiler_pic='-fno-common'
9143 ;;
9144
9145 haiku*)
9146 # PIC is the default for Haiku.
9147 # The "-static" flag exists, but is broken.
9148 lt_prog_compiler_static=
9149 ;;
9150
9151 hpux*)
9152 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9153 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9154 # sets the default TLS model and affects inlining.
9155 case $host_cpu in
9156 hppa*64*)
9157 # +Z the default
9158 ;;
9159 *)
9160 lt_prog_compiler_pic='-fPIC'
9161 ;;
9162 esac
9163 ;;
9164
9165 interix[3-9]*)
9166 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9167 # Instead, we relocate shared libraries at runtime.
9168 ;;
9169
9170 msdosdjgpp*)
9171 # Just because we use GCC doesn't mean we suddenly get shared libraries
9172 # on systems that don't support them.
9173 lt_prog_compiler_can_build_shared=no
9174 enable_shared=no
9175 ;;
9176
9177 *nto* | *qnx*)
9178 # QNX uses GNU C++, but need to define -shared option too, otherwise
9179 # it will coredump.
9180 lt_prog_compiler_pic='-fPIC -shared'
9181 ;;
9182
9183 sysv4*MP*)
9184 if test -d /usr/nec; then
9185 lt_prog_compiler_pic=-Kconform_pic
9186 fi
9187 ;;
9188
9189 *)
9190 lt_prog_compiler_pic='-fPIC'
9191 ;;
9192 esac
9193
9194 case $cc_basename in
9195 nvcc*) # Cuda Compiler Driver 2.2
9196 lt_prog_compiler_wl='-Xlinker '
9197 if test -n "$lt_prog_compiler_pic"; then
9198 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9199 fi
9200 ;;
9201 esac
9202 else
9203 # PORTME Check for flag to pass linker flags through the system compiler.
9204 case $host_os in
9205 aix*)
9206 lt_prog_compiler_wl='-Wl,'
9207 if test ia64 = "$host_cpu"; then
9208 # AIX 5 now supports IA64 processor
9209 lt_prog_compiler_static='-Bstatic'
9210 else
9211 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9212 fi
9213 ;;
9214
9215 darwin* | rhapsody*)
9216 # PIC is the default on this platform
9217 # Common symbols not allowed in MH_DYLIB files
9218 lt_prog_compiler_pic='-fno-common'
9219 case $cc_basename in
9220 nagfor*)
9221 # NAG Fortran compiler
9222 lt_prog_compiler_wl='-Wl,-Wl,,'
9223 lt_prog_compiler_pic='-PIC'
9224 lt_prog_compiler_static='-Bstatic'
9225 ;;
9226 esac
9227 ;;
9228
9229 mingw* | cygwin* | pw32* | os2* | cegcc*)
9230 # This hack is so that the source file can tell whether it is being
9231 # built for inclusion in a dll (and should export symbols for example).
9232 lt_prog_compiler_pic='-DDLL_EXPORT'
9233 case $host_os in
9234 os2*)
9235 lt_prog_compiler_static='$wl-static'
9236 ;;
9237 esac
9238 ;;
9239
9240 hpux9* | hpux10* | hpux11*)
9241 lt_prog_compiler_wl='-Wl,'
9242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9243 # not for PA HP-UX.
9244 case $host_cpu in
9245 hppa*64*|ia64*)
9246 # +Z the default
9247 ;;
9248 *)
9249 lt_prog_compiler_pic='+Z'
9250 ;;
9251 esac
9252 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9253 lt_prog_compiler_static='$wl-a ${wl}archive'
9254 ;;
9255
9256 irix5* | irix6* | nonstopux*)
9257 lt_prog_compiler_wl='-Wl,'
9258 # PIC (with -KPIC) is the default.
9259 lt_prog_compiler_static='-non_shared'
9260 ;;
9261
9262 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9263 case $cc_basename in
9264 # old Intel for x86_64, which still supported -KPIC.
9265 ecc*)
9266 lt_prog_compiler_wl='-Wl,'
9267 lt_prog_compiler_pic='-KPIC'
9268 lt_prog_compiler_static='-static'
9269 ;;
9270 # flang / f18. f95 an alias for gfortran or flang on Debian
9271 flang* | f18* | f95*)
9272 lt_prog_compiler_wl='-Wl,'
9273 lt_prog_compiler_pic='-fPIC'
9274 lt_prog_compiler_static='-static'
9275 ;;
9276 # icc used to be incompatible with GCC.
9277 # ICC 10 doesn't accept -KPIC any more.
9278 icc* | ifort*)
9279 lt_prog_compiler_wl='-Wl,'
9280 lt_prog_compiler_pic='-fPIC'
9281 lt_prog_compiler_static='-static'
9282 ;;
9283 # Lahey Fortran 8.1.
9284 lf95*)
9285 lt_prog_compiler_wl='-Wl,'
9286 lt_prog_compiler_pic='--shared'
9287 lt_prog_compiler_static='--static'
9288 ;;
9289 nagfor*)
9290 # NAG Fortran compiler
9291 lt_prog_compiler_wl='-Wl,-Wl,,'
9292 lt_prog_compiler_pic='-PIC'
9293 lt_prog_compiler_static='-Bstatic'
9294 ;;
9295 tcc*)
9296 # Fabrice Bellard et al's Tiny C Compiler
9297 lt_prog_compiler_wl='-Wl,'
9298 lt_prog_compiler_pic='-fPIC'
9299 lt_prog_compiler_static='-static'
9300 ;;
9301 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9302 # Portland Group compilers (*not* the Pentium gcc compiler,
9303 # which looks to be a dead project)
9304 lt_prog_compiler_wl='-Wl,'
9305 lt_prog_compiler_pic='-fpic'
9306 lt_prog_compiler_static='-Bstatic'
9307 ;;
9308 ccc*)
9309 lt_prog_compiler_wl='-Wl,'
9310 # All Alpha code is PIC.
9311 lt_prog_compiler_static='-non_shared'
9312 ;;
9313 xl* | bgxl* | bgf* | mpixl*)
9314 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9315 lt_prog_compiler_wl='-Wl,'
9316 lt_prog_compiler_pic='-qpic'
9317 lt_prog_compiler_static='-qstaticlink'
9318 ;;
9319 *)
9320 case `$CC -V 2>&1 | $SED 5q` in
9321 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9322 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9323 lt_prog_compiler_pic='-KPIC'
9324 lt_prog_compiler_static='-Bstatic'
9325 lt_prog_compiler_wl=''
9326 ;;
9327 *Sun\ F* | *Sun*Fortran*)
9328 lt_prog_compiler_pic='-KPIC'
9329 lt_prog_compiler_static='-Bstatic'
9330 lt_prog_compiler_wl='-Qoption ld '
9331 ;;
9332 *Sun\ C*)
9333 # Sun C 5.9
9334 lt_prog_compiler_pic='-KPIC'
9335 lt_prog_compiler_static='-Bstatic'
9336 lt_prog_compiler_wl='-Wl,'
9337 ;;
9338 *Intel*\ [CF]*Compiler*)
9339 lt_prog_compiler_wl='-Wl,'
9340 lt_prog_compiler_pic='-fPIC'
9341 lt_prog_compiler_static='-static'
9342 ;;
9343 *Portland\ Group*)
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-fpic'
9346 lt_prog_compiler_static='-Bstatic'
9347 ;;
9348 esac
9349 ;;
9350 esac
9351 ;;
9352
9353 newsos6)
9354 lt_prog_compiler_pic='-KPIC'
9355 lt_prog_compiler_static='-Bstatic'
9356 ;;
9357
9358 *nto* | *qnx*)
9359 # QNX uses GNU C++, but need to define -shared option too, otherwise
9360 # it will coredump.
9361 lt_prog_compiler_pic='-fPIC -shared'
9362 ;;
9363
9364 osf3* | osf4* | osf5*)
9365 lt_prog_compiler_wl='-Wl,'
9366 # All OSF/1 code is PIC.
9367 lt_prog_compiler_static='-non_shared'
9368 ;;
9369
9370 rdos*)
9371 lt_prog_compiler_static='-non_shared'
9372 ;;
9373
9374 solaris*)
9375 lt_prog_compiler_pic='-KPIC'
9376 lt_prog_compiler_static='-Bstatic'
9377 case $cc_basename in
9378 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9379 lt_prog_compiler_wl='-Qoption ld ';;
9380 *)
9381 lt_prog_compiler_wl='-Wl,';;
9382 esac
9383 ;;
9384
9385 sunos4*)
9386 lt_prog_compiler_wl='-Qoption ld '
9387 lt_prog_compiler_pic='-PIC'
9388 lt_prog_compiler_static='-Bstatic'
9389 ;;
9390
9391 sysv4 | sysv4.2uw2* | sysv4.3*)
9392 lt_prog_compiler_wl='-Wl,'
9393 lt_prog_compiler_pic='-KPIC'
9394 lt_prog_compiler_static='-Bstatic'
9395 ;;
9396
9397 sysv4*MP*)
9398 if test -d /usr/nec; then
9399 lt_prog_compiler_pic='-Kconform_pic'
9400 lt_prog_compiler_static='-Bstatic'
9401 fi
9402 ;;
9403
9404 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9405 lt_prog_compiler_wl='-Wl,'
9406 lt_prog_compiler_pic='-KPIC'
9407 lt_prog_compiler_static='-Bstatic'
9408 ;;
9409
9410 unicos*)
9411 lt_prog_compiler_wl='-Wl,'
9412 lt_prog_compiler_can_build_shared=no
9413 ;;
9414
9415 uts4*)
9416 lt_prog_compiler_pic='-pic'
9417 lt_prog_compiler_static='-Bstatic'
9418 ;;
9419
9420 *)
9421 lt_prog_compiler_can_build_shared=no
9422 ;;
9423 esac
9424 fi
9425
9426 case $host_os in
9427 # For platforms that do not support PIC, -DPIC is meaningless:
9428 *djgpp*)
9429 lt_prog_compiler_pic=
9430 ;;
9431 *)
9432 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9433 ;;
9434 esac
9435
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9437 printf %s "checking for $compiler option to produce PIC... " >&6; }
9438 if test ${lt_cv_prog_compiler_pic+y}
9439 then :
9440 printf %s "(cached) " >&6
9441 else $as_nop
9442 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9443 fi
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9445 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9446 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9447
9448 #
9449 # Check to make sure the PIC flag actually works.
9450 #
9451 if test -n "$lt_prog_compiler_pic"; then
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9453 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9454 if test ${lt_cv_prog_compiler_pic_works+y}
9455 then :
9456 printf %s "(cached) " >&6
9457 else $as_nop
9458 lt_cv_prog_compiler_pic_works=no
9459 ac_outfile=conftest.$ac_objext
9460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9461 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9462 # Insert the option either (1) after the last *FLAGS variable, or
9463 # (2) before a word containing "conftest.", or (3) at the end.
9464 # Note that $ac_compile itself does not contain backslashes and begins
9465 # with a dollar sign (not a hyphen), so the echo should work correctly.
9466 # The option is referenced via a variable to avoid confusing sed.
9467 lt_compile=`echo "$ac_compile" | $SED \
9468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9470 -e 's:$: $lt_compiler_flag:'`
9471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9472 (eval "$lt_compile" 2>conftest.err)
9473 ac_status=$?
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 if (exit $ac_status) && test -s "$ac_outfile"; then
9477 # The compiler can only warn and ignore the option if not recognized
9478 # So say no if there are warnings other than the usual output.
9479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9481 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9482 lt_cv_prog_compiler_pic_works=yes
9483 fi
9484 fi
9485 $RM conftest*
9486
9487 fi
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9489 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9490
9491 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9492 case $lt_prog_compiler_pic in
9493 "" | " "*) ;;
9494 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9495 esac
9496 else
9497 lt_prog_compiler_pic=
9498 lt_prog_compiler_can_build_shared=no
9499 fi
9500
9501 fi
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513 #
9514 # Check to make sure the static flag actually works.
9515 #
9516 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9518 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9519 if test ${lt_cv_prog_compiler_static_works+y}
9520 then :
9521 printf %s "(cached) " >&6
9522 else $as_nop
9523 lt_cv_prog_compiler_static_works=no
9524 save_LDFLAGS=$LDFLAGS
9525 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9526 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9527 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9528 # The linker can only warn and ignore the option if not recognized
9529 # So say no if there are warnings
9530 if test -s conftest.err; then
9531 # Append any errors to the config.log.
9532 cat conftest.err 1>&5
9533 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9535 if diff conftest.exp conftest.er2 >/dev/null; then
9536 lt_cv_prog_compiler_static_works=yes
9537 fi
9538 else
9539 lt_cv_prog_compiler_static_works=yes
9540 fi
9541 fi
9542 $RM -r conftest*
9543 LDFLAGS=$save_LDFLAGS
9544
9545 fi
9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9547 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9548
9549 if test yes = "$lt_cv_prog_compiler_static_works"; then
9550 :
9551 else
9552 lt_prog_compiler_static=
9553 fi
9554
9555
9556
9557
9558
9559
9560
9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9562 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9563 if test ${lt_cv_prog_compiler_c_o+y}
9564 then :
9565 printf %s "(cached) " >&6
9566 else $as_nop
9567 lt_cv_prog_compiler_c_o=no
9568 $RM -r conftest 2>/dev/null
9569 mkdir conftest
9570 cd conftest
9571 mkdir out
9572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9573
9574 lt_compiler_flag="-o out/conftest2.$ac_objext"
9575 # Insert the option either (1) after the last *FLAGS variable, or
9576 # (2) before a word containing "conftest.", or (3) at the end.
9577 # Note that $ac_compile itself does not contain backslashes and begins
9578 # with a dollar sign (not a hyphen), so the echo should work correctly.
9579 lt_compile=`echo "$ac_compile" | $SED \
9580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9582 -e 's:$: $lt_compiler_flag:'`
9583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9584 (eval "$lt_compile" 2>out/conftest.err)
9585 ac_status=$?
9586 cat out/conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9589 then
9590 # The compiler can only warn and ignore the option if not recognized
9591 # So say no if there are warnings
9592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9593 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9594 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9595 lt_cv_prog_compiler_c_o=yes
9596 fi
9597 fi
9598 chmod u+w . 2>&5
9599 $RM conftest*
9600 # SGI C++ compiler will create directory out/ii_files/ for
9601 # template instantiation
9602 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9603 $RM out/* && rmdir out
9604 cd ..
9605 $RM -r conftest
9606 $RM conftest*
9607
9608 fi
9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9610 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9611
9612
9613
9614
9615
9616
9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9618 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9619 if test ${lt_cv_prog_compiler_c_o+y}
9620 then :
9621 printf %s "(cached) " >&6
9622 else $as_nop
9623 lt_cv_prog_compiler_c_o=no
9624 $RM -r conftest 2>/dev/null
9625 mkdir conftest
9626 cd conftest
9627 mkdir out
9628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9629
9630 lt_compiler_flag="-o out/conftest2.$ac_objext"
9631 # Insert the option either (1) after the last *FLAGS variable, or
9632 # (2) before a word containing "conftest.", or (3) at the end.
9633 # Note that $ac_compile itself does not contain backslashes and begins
9634 # with a dollar sign (not a hyphen), so the echo should work correctly.
9635 lt_compile=`echo "$ac_compile" | $SED \
9636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9638 -e 's:$: $lt_compiler_flag:'`
9639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9640 (eval "$lt_compile" 2>out/conftest.err)
9641 ac_status=$?
9642 cat out/conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9645 then
9646 # The compiler can only warn and ignore the option if not recognized
9647 # So say no if there are warnings
9648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9649 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9650 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9651 lt_cv_prog_compiler_c_o=yes
9652 fi
9653 fi
9654 chmod u+w . 2>&5
9655 $RM conftest*
9656 # SGI C++ compiler will create directory out/ii_files/ for
9657 # template instantiation
9658 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9659 $RM out/* && rmdir out
9660 cd ..
9661 $RM -r conftest
9662 $RM conftest*
9663
9664 fi
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9666 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9667
9668
9669
9670
9671 hard_links=nottested
9672 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9673 # do not overwrite the value of need_locks provided by the user
9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9675 printf %s "checking if we can lock with hard links... " >&6; }
9676 hard_links=yes
9677 $RM conftest*
9678 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9679 touch conftest.a
9680 ln conftest.a conftest.b 2>&5 || hard_links=no
9681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9683 printf "%s\n" "$hard_links" >&6; }
9684 if test no = "$hard_links"; then
9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9686 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9687 need_locks=warn
9688 fi
9689 else
9690 need_locks=no
9691 fi
9692
9693
9694
9695
9696
9697
9698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9699 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9700
9701 runpath_var=
9702 allow_undefined_flag=
9703 always_export_symbols=no
9704 archive_cmds=
9705 archive_expsym_cmds=
9706 compiler_needs_object=no
9707 enable_shared_with_static_runtimes=no
9708 export_dynamic_flag_spec=
9709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9710 hardcode_automatic=no
9711 hardcode_direct=no
9712 hardcode_direct_absolute=no
9713 hardcode_libdir_flag_spec=
9714 hardcode_libdir_separator=
9715 hardcode_minus_L=no
9716 hardcode_shlibpath_var=unsupported
9717 inherit_rpath=no
9718 link_all_deplibs=unknown
9719 module_cmds=
9720 module_expsym_cmds=
9721 old_archive_from_new_cmds=
9722 old_archive_from_expsyms_cmds=
9723 thread_safe_flag_spec=
9724 whole_archive_flag_spec=
9725 # include_expsyms should be a list of space-separated symbols to be *always*
9726 # included in the symbol list
9727 include_expsyms=
9728 # exclude_expsyms can be an extended regexp of symbols to exclude
9729 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9730 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9731 # as well as any symbol that contains 'd'.
9732 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9733 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9734 # platforms (ab)use it in PIC code, but their linkers get confused if
9735 # the symbol is explicitly referenced. Since portable code cannot
9736 # rely on this symbol name, it's probably fine to never include it in
9737 # preloaded symbol tables.
9738 # Exclude shared library initialization/finalization symbols.
9739 extract_expsyms_cmds=
9740
9741 case $host_os in
9742 cygwin* | mingw* | pw32* | cegcc*)
9743 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9744 # When not using gcc, we currently assume that we are using
9745 # Microsoft Visual C++ or Intel C++ Compiler.
9746 if test yes != "$GCC"; then
9747 with_gnu_ld=no
9748 fi
9749 ;;
9750 interix*)
9751 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9752 with_gnu_ld=yes
9753 ;;
9754 openbsd* | bitrig*)
9755 with_gnu_ld=no
9756 ;;
9757 linux* | k*bsd*-gnu | gnu*)
9758 link_all_deplibs=no
9759 ;;
9760 esac
9761
9762 ld_shlibs=yes
9763
9764 # On some targets, GNU ld is compatible enough with the native linker
9765 # that we're better off using the native interface for both.
9766 lt_use_gnu_ld_interface=no
9767 if test yes = "$with_gnu_ld"; then
9768 case $host_os in
9769 aix*)
9770 # The AIX port of GNU ld has always aspired to compatibility
9771 # with the native linker. However, as the warning in the GNU ld
9772 # block says, versions before 2.19.5* couldn't really create working
9773 # shared libraries, regardless of the interface used.
9774 case `$LD -v 2>&1` in
9775 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9776 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9777 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9778 *)
9779 lt_use_gnu_ld_interface=yes
9780 ;;
9781 esac
9782 ;;
9783 *)
9784 lt_use_gnu_ld_interface=yes
9785 ;;
9786 esac
9787 fi
9788
9789 if test yes = "$lt_use_gnu_ld_interface"; then
9790 # If archive_cmds runs LD, not CC, wlarc should be empty
9791 wlarc='$wl'
9792
9793 # Set some defaults for GNU ld with shared library support. These
9794 # are reset later if shared libraries are not supported. Putting them
9795 # here allows them to be overridden if necessary.
9796 runpath_var=LD_RUN_PATH
9797 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9798 export_dynamic_flag_spec='$wl--export-dynamic'
9799 # ancient GNU ld didn't support --whole-archive et. al.
9800 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9801 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9802 else
9803 whole_archive_flag_spec=
9804 fi
9805 supports_anon_versioning=no
9806 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9807 *GNU\ gold*) supports_anon_versioning=yes ;;
9808 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9809 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9810 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9811 *\ 2.11.*) ;; # other 2.11 versions
9812 *) supports_anon_versioning=yes ;;
9813 esac
9814
9815 # See if GNU ld supports shared libraries.
9816 case $host_os in
9817 aix[3-9]*)
9818 # On AIX/PPC, the GNU linker is very broken
9819 if test ia64 != "$host_cpu"; then
9820 ld_shlibs=no
9821 cat <<_LT_EOF 1>&2
9822
9823 *** Warning: the GNU linker, at least up to release 2.19, is reported
9824 *** to be unable to reliably create shared libraries on AIX.
9825 *** Therefore, libtool is disabling shared libraries support. If you
9826 *** really care for shared libraries, you may want to install binutils
9827 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9828 *** You will then need to restart the configuration process.
9829
9830 _LT_EOF
9831 fi
9832 ;;
9833
9834 amigaos*)
9835 case $host_cpu in
9836 powerpc)
9837 # see comment about AmigaOS4 .so support
9838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9839 archive_expsym_cmds=''
9840 ;;
9841 m68k)
9842 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)'
9843 hardcode_libdir_flag_spec='-L$libdir'
9844 hardcode_minus_L=yes
9845 ;;
9846 esac
9847 ;;
9848
9849 beos*)
9850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9851 allow_undefined_flag=unsupported
9852 # Joseph Beckenbach <[email protected]> says some releases of gcc
9853 # support --undefined. This deserves some investigation. FIXME
9854 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9855 else
9856 ld_shlibs=no
9857 fi
9858 ;;
9859
9860 cygwin* | mingw* | pw32* | cegcc*)
9861 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9862 # as there is no search path for DLLs.
9863 hardcode_libdir_flag_spec='-L$libdir'
9864 export_dynamic_flag_spec='$wl--export-all-symbols'
9865 allow_undefined_flag=unsupported
9866 always_export_symbols=no
9867 enable_shared_with_static_runtimes=yes
9868 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'
9869 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9870
9871 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9873 # If the export-symbols file already is a .def file, use it as
9874 # is; otherwise, prepend EXPORTS...
9875 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9876 cp $export_symbols $output_objdir/$soname.def;
9877 else
9878 echo EXPORTS > $output_objdir/$soname.def;
9879 cat $export_symbols >> $output_objdir/$soname.def;
9880 fi~
9881 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9882 else
9883 ld_shlibs=no
9884 fi
9885 ;;
9886
9887 haiku*)
9888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9889 link_all_deplibs=yes
9890 ;;
9891
9892 os2*)
9893 hardcode_libdir_flag_spec='-L$libdir'
9894 hardcode_minus_L=yes
9895 allow_undefined_flag=unsupported
9896 shrext_cmds=.dll
9897 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9898 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9899 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9900 $ECHO EXPORTS >> $output_objdir/$libname.def~
9901 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9902 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9903 emximp -o $lib $output_objdir/$libname.def'
9904 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9905 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9906 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9907 $ECHO EXPORTS >> $output_objdir/$libname.def~
9908 prefix_cmds="$SED"~
9909 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9910 prefix_cmds="$prefix_cmds -e 1d";
9911 fi~
9912 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9913 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9914 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9915 emximp -o $lib $output_objdir/$libname.def'
9916 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9917 enable_shared_with_static_runtimes=yes
9918 file_list_spec='@'
9919 ;;
9920
9921 interix[3-9]*)
9922 hardcode_direct=no
9923 hardcode_shlibpath_var=no
9924 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9925 export_dynamic_flag_spec='$wl-E'
9926 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9927 # Instead, shared libraries are loaded at an image base (0x10000000 by
9928 # default) and relocated if they conflict, which is a slow very memory
9929 # consuming and fragmenting process. To avoid this, we pick a random,
9930 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9931 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9933 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'
9934 ;;
9935
9936 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9937 tmp_diet=no
9938 if test linux-dietlibc = "$host_os"; then
9939 case $cc_basename in
9940 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9941 esac
9942 fi
9943 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9944 && test no = "$tmp_diet"
9945 then
9946 tmp_addflag=' $pic_flag'
9947 tmp_sharedflag='-shared'
9948 case $cc_basename,$host_cpu in
9949 pgcc*) # Portland Group C compiler
9950 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'
9951 tmp_addflag=' $pic_flag'
9952 ;;
9953 pgf77* | pgf90* | pgf95* | pgfortran*)
9954 # Portland Group f77 and f90 compilers
9955 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'
9956 tmp_addflag=' $pic_flag -Mnomain' ;;
9957 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9958 tmp_addflag=' -i_dynamic' ;;
9959 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9960 tmp_addflag=' -i_dynamic -nofor_main' ;;
9961 ifc* | ifort*) # Intel Fortran compiler
9962 tmp_addflag=' -nofor_main' ;;
9963 lf95*) # Lahey Fortran 8.1
9964 whole_archive_flag_spec=
9965 tmp_sharedflag='--shared' ;;
9966 nagfor*) # NAGFOR 5.3
9967 tmp_sharedflag='-Wl,-shared' ;;
9968 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9969 tmp_sharedflag='-qmkshrobj'
9970 tmp_addflag= ;;
9971 nvcc*) # Cuda Compiler Driver 2.2
9972 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'
9973 compiler_needs_object=yes
9974 ;;
9975 esac
9976 case `$CC -V 2>&1 | $SED 5q` in
9977 *Sun\ C*) # Sun C 5.9
9978 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'
9979 compiler_needs_object=yes
9980 tmp_sharedflag='-G' ;;
9981 *Sun\ F*) # Sun Fortran 8.3
9982 tmp_sharedflag='-G' ;;
9983 esac
9984 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9985
9986 if test yes = "$supports_anon_versioning"; then
9987 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9988 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9989 echo "local: *; };" >> $output_objdir/$libname.ver~
9990 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9991 fi
9992
9993 case $cc_basename in
9994 tcc*)
9995 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9996 export_dynamic_flag_spec='-rdynamic'
9997 ;;
9998 xlf* | bgf* | bgxlf* | mpixlf*)
9999 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10000 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10001 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10002 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10003 if test yes = "$supports_anon_versioning"; then
10004 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10005 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10006 echo "local: *; };" >> $output_objdir/$libname.ver~
10007 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10008 fi
10009 ;;
10010 esac
10011 else
10012 ld_shlibs=no
10013 fi
10014 ;;
10015
10016 netbsd* | netbsdelf*-gnu)
10017 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10018 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10019 wlarc=
10020 else
10021 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10022 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10023 fi
10024 ;;
10025
10026 solaris*)
10027 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10028 ld_shlibs=no
10029 cat <<_LT_EOF 1>&2
10030
10031 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10032 *** create shared libraries on Solaris systems. Therefore, libtool
10033 *** is disabling shared libraries support. We urge you to upgrade GNU
10034 *** binutils to release 2.9.1 or newer. Another option is to modify
10035 *** your PATH or compiler configuration so that the native linker is
10036 *** used, and then restart.
10037
10038 _LT_EOF
10039 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10041 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10042 else
10043 ld_shlibs=no
10044 fi
10045 ;;
10046
10047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10048 case `$LD -v 2>&1` in
10049 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10050 ld_shlibs=no
10051 cat <<_LT_EOF 1>&2
10052
10053 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10054 *** reliably create shared libraries on SCO systems. Therefore, libtool
10055 *** is disabling shared libraries support. We urge you to upgrade GNU
10056 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10057 *** your PATH or compiler configuration so that the native linker is
10058 *** used, and then restart.
10059
10060 _LT_EOF
10061 ;;
10062 *)
10063 # For security reasons, it is highly recommended that you always
10064 # use absolute paths for naming shared libraries, and exclude the
10065 # DT_RUNPATH tag from executables and libraries. But doing so
10066 # requires that you compile everything twice, which is a pain.
10067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10068 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10070 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10071 else
10072 ld_shlibs=no
10073 fi
10074 ;;
10075 esac
10076 ;;
10077
10078 sunos4*)
10079 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10080 wlarc=
10081 hardcode_direct=yes
10082 hardcode_shlibpath_var=no
10083 ;;
10084
10085 *)
10086 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10087 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10088 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10089 else
10090 ld_shlibs=no
10091 fi
10092 ;;
10093 esac
10094
10095 if test no = "$ld_shlibs"; then
10096 runpath_var=
10097 hardcode_libdir_flag_spec=
10098 export_dynamic_flag_spec=
10099 whole_archive_flag_spec=
10100 fi
10101 else
10102 # PORTME fill in a description of your system's linker (not GNU ld)
10103 case $host_os in
10104 aix3*)
10105 allow_undefined_flag=unsupported
10106 always_export_symbols=yes
10107 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'
10108 # Note: this linker hardcodes the directories in LIBPATH if there
10109 # are no directories specified by -L.
10110 hardcode_minus_L=yes
10111 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10112 # Neither direct hardcoding nor static linking is supported with a
10113 # broken collect2.
10114 hardcode_direct=unsupported
10115 fi
10116 ;;
10117
10118 aix[4-9]*)
10119 if test ia64 = "$host_cpu"; then
10120 # On IA64, the linker does run time linking by default, so we don't
10121 # have to do anything special.
10122 aix_use_runtimelinking=no
10123 exp_sym_flag='-Bexport'
10124 no_entry_flag=
10125 else
10126 # If we're using GNU nm, then we don't want the "-C" option.
10127 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10128 # Without the "-l" option, or with the "-B" option, AIX nm treats
10129 # weak defined symbols like other global defined symbols, whereas
10130 # GNU nm marks them as "W".
10131 # While the 'weak' keyword is ignored in the Export File, we need
10132 # it in the Import File for the 'aix-soname' feature, so we have
10133 # to replace the "-B" option with "-P" for AIX nm.
10134 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10135 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'
10136 else
10137 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'
10138 fi
10139 aix_use_runtimelinking=no
10140
10141 # Test if we are trying to use run time linking or normal
10142 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10143 # have runtime linking enabled, and use it for executables.
10144 # For shared libraries, we enable/disable runtime linking
10145 # depending on the kind of the shared library created -
10146 # when "with_aix_soname,aix_use_runtimelinking" is:
10147 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10148 # "aix,yes" lib.so shared, rtl:yes, for executables
10149 # lib.a static archive
10150 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10151 # lib.a(lib.so.V) shared, rtl:no, for executables
10152 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10153 # lib.a(lib.so.V) shared, rtl:no
10154 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10155 # lib.a static archive
10156 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10157 for ld_flag in $LDFLAGS; do
10158 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10159 aix_use_runtimelinking=yes
10160 break
10161 fi
10162 done
10163 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10164 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10165 # so we don't have lib.a shared libs to link our executables.
10166 # We have to force runtime linking in this case.
10167 aix_use_runtimelinking=yes
10168 LDFLAGS="$LDFLAGS -Wl,-brtl"
10169 fi
10170 ;;
10171 esac
10172
10173 exp_sym_flag='-bexport'
10174 no_entry_flag='-bnoentry'
10175 fi
10176
10177 # When large executables or shared objects are built, AIX ld can
10178 # have problems creating the table of contents. If linking a library
10179 # or program results in "error TOC overflow" add -mminimal-toc to
10180 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10181 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10182
10183 archive_cmds=''
10184 hardcode_direct=yes
10185 hardcode_direct_absolute=yes
10186 hardcode_libdir_separator=':'
10187 link_all_deplibs=yes
10188 file_list_spec='$wl-f,'
10189 case $with_aix_soname,$aix_use_runtimelinking in
10190 aix,*) ;; # traditional, no import file
10191 svr4,* | *,yes) # use import file
10192 # The Import File defines what to hardcode.
10193 hardcode_direct=no
10194 hardcode_direct_absolute=no
10195 ;;
10196 esac
10197
10198 if test yes = "$GCC"; then
10199 case $host_os in aix4.[012]|aix4.[012].*)
10200 # We only want to do this on AIX 4.2 and lower, the check
10201 # below for broken collect2 doesn't work under 4.3+
10202 collect2name=`$CC -print-prog-name=collect2`
10203 if test -f "$collect2name" &&
10204 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10205 then
10206 # We have reworked collect2
10207 :
10208 else
10209 # We have old collect2
10210 hardcode_direct=unsupported
10211 # It fails to find uninstalled libraries when the uninstalled
10212 # path is not listed in the libpath. Setting hardcode_minus_L
10213 # to unsupported forces relinking
10214 hardcode_minus_L=yes
10215 hardcode_libdir_flag_spec='-L$libdir'
10216 hardcode_libdir_separator=
10217 fi
10218 ;;
10219 esac
10220 shared_flag='-shared'
10221 if test yes = "$aix_use_runtimelinking"; then
10222 shared_flag="$shared_flag "'$wl-G'
10223 fi
10224 # Need to ensure runtime linking is disabled for the traditional
10225 # shared library, or the linker may eventually find shared libraries
10226 # /with/ Import File - we do not want to mix them.
10227 shared_flag_aix='-shared'
10228 shared_flag_svr4='-shared $wl-G'
10229 else
10230 # not using gcc
10231 if test ia64 = "$host_cpu"; then
10232 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10233 # chokes on -Wl,-G. The following line is correct:
10234 shared_flag='-G'
10235 else
10236 if test yes = "$aix_use_runtimelinking"; then
10237 shared_flag='$wl-G'
10238 else
10239 shared_flag='$wl-bM:SRE'
10240 fi
10241 shared_flag_aix='$wl-bM:SRE'
10242 shared_flag_svr4='$wl-G'
10243 fi
10244 fi
10245
10246 export_dynamic_flag_spec='$wl-bexpall'
10247 # It seems that -bexpall does not export symbols beginning with
10248 # underscore (_), so it is better to generate a list of symbols to export.
10249 always_export_symbols=yes
10250 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10251 # Warning - without using the other runtime loading flags (-brtl),
10252 # -berok will link without error, but may produce a broken library.
10253 allow_undefined_flag='-berok'
10254 # Determine the default libpath from the value encoded in an
10255 # empty executable.
10256 if test set = "${lt_cv_aix_libpath+set}"; then
10257 aix_libpath=$lt_cv_aix_libpath
10258 else
10259 if test ${lt_cv_aix_libpath_+y}
10260 then :
10261 printf %s "(cached) " >&6
10262 else $as_nop
10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10265
10266 int
10267 main (void)
10268 {
10269
10270 ;
10271 return 0;
10272 }
10273 _ACEOF
10274 if ac_fn_c_try_link "$LINENO"
10275 then :
10276
10277 lt_aix_libpath_sed='
10278 /Import File Strings/,/^$/ {
10279 /^0/ {
10280 s/^0 *\([^ ]*\) *$/\1/
10281 p
10282 }
10283 }'
10284 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10285 # Check for a 64-bit object if we didn't find anything.
10286 if test -z "$lt_cv_aix_libpath_"; then
10287 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10288 fi
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10291 conftest$ac_exeext conftest.$ac_ext
10292 if test -z "$lt_cv_aix_libpath_"; then
10293 lt_cv_aix_libpath_=/usr/lib:/lib
10294 fi
10295
10296 fi
10297
10298 aix_libpath=$lt_cv_aix_libpath_
10299 fi
10300
10301 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10302 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
10303 else
10304 if test ia64 = "$host_cpu"; then
10305 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10306 allow_undefined_flag="-z nodefs"
10307 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"
10308 else
10309 # Determine the default libpath from the value encoded in an
10310 # empty executable.
10311 if test set = "${lt_cv_aix_libpath+set}"; then
10312 aix_libpath=$lt_cv_aix_libpath
10313 else
10314 if test ${lt_cv_aix_libpath_+y}
10315 then :
10316 printf %s "(cached) " >&6
10317 else $as_nop
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10320
10321 int
10322 main (void)
10323 {
10324
10325 ;
10326 return 0;
10327 }
10328 _ACEOF
10329 if ac_fn_c_try_link "$LINENO"
10330 then :
10331
10332 lt_aix_libpath_sed='
10333 /Import File Strings/,/^$/ {
10334 /^0/ {
10335 s/^0 *\([^ ]*\) *$/\1/
10336 p
10337 }
10338 }'
10339 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10340 # Check for a 64-bit object if we didn't find anything.
10341 if test -z "$lt_cv_aix_libpath_"; then
10342 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10343 fi
10344 fi
10345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10346 conftest$ac_exeext conftest.$ac_ext
10347 if test -z "$lt_cv_aix_libpath_"; then
10348 lt_cv_aix_libpath_=/usr/lib:/lib
10349 fi
10350
10351 fi
10352
10353 aix_libpath=$lt_cv_aix_libpath_
10354 fi
10355
10356 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10357 # Warning - without using the other run time loading flags,
10358 # -berok will link without error, but may produce a broken library.
10359 no_undefined_flag=' $wl-bernotok'
10360 allow_undefined_flag=' $wl-berok'
10361 if test yes = "$with_gnu_ld"; then
10362 # We only use this code for GNU lds that support --whole-archive.
10363 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10364 else
10365 # Exported symbols can be pulled into shared objects from archives
10366 whole_archive_flag_spec='$convenience'
10367 fi
10368 archive_cmds_need_lc=yes
10369 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10370 # -brtl affects multiple linker settings, -berok does not and is overridden later
10371 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10372 if test svr4 != "$with_aix_soname"; then
10373 # This is similar to how AIX traditionally builds its shared libraries.
10374 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'
10375 fi
10376 if test aix != "$with_aix_soname"; then
10377 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'
10378 else
10379 # used by -dlpreopen to get the symbols
10380 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10381 fi
10382 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10383 fi
10384 fi
10385 ;;
10386
10387 amigaos*)
10388 case $host_cpu in
10389 powerpc)
10390 # see comment about AmigaOS4 .so support
10391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10392 archive_expsym_cmds=''
10393 ;;
10394 m68k)
10395 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)'
10396 hardcode_libdir_flag_spec='-L$libdir'
10397 hardcode_minus_L=yes
10398 ;;
10399 esac
10400 ;;
10401
10402 bsdi[45]*)
10403 export_dynamic_flag_spec=-rdynamic
10404 ;;
10405
10406 cygwin* | mingw* | pw32* | cegcc*)
10407 # When not using gcc, we currently assume that we are using
10408 # Microsoft Visual C++ or Intel C++ Compiler.
10409 # hardcode_libdir_flag_spec is actually meaningless, as there is
10410 # no search path for DLLs.
10411 case $cc_basename in
10412 cl* | icl*)
10413 # Native MSVC or ICC
10414 hardcode_libdir_flag_spec=' '
10415 allow_undefined_flag=unsupported
10416 always_export_symbols=yes
10417 file_list_spec='@'
10418 # Tell ltmain to make .lib files, not .a files.
10419 libext=lib
10420 # Tell ltmain to make .dll files, not .so files.
10421 shrext_cmds=.dll
10422 # FIXME: Setting linknames here is a bad hack.
10423 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10424 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10425 cp "$export_symbols" "$output_objdir/$soname.def";
10426 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10427 else
10428 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10429 fi~
10430 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10431 linknames='
10432 # The linker will not automatically build a static lib if we build a DLL.
10433 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10434 enable_shared_with_static_runtimes=yes
10435 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10436 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10437 # Don't use ranlib
10438 old_postinstall_cmds='chmod 644 $oldlib'
10439 postlink_cmds='lt_outputfile="@OUTPUT@"~
10440 lt_tool_outputfile="@TOOL_OUTPUT@"~
10441 case $lt_outputfile in
10442 *.exe|*.EXE) ;;
10443 *)
10444 lt_outputfile=$lt_outputfile.exe
10445 lt_tool_outputfile=$lt_tool_outputfile.exe
10446 ;;
10447 esac~
10448 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10449 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10450 $RM "$lt_outputfile.manifest";
10451 fi'
10452 ;;
10453 *)
10454 # Assume MSVC and ICC wrapper
10455 hardcode_libdir_flag_spec=' '
10456 allow_undefined_flag=unsupported
10457 # Tell ltmain to make .lib files, not .a files.
10458 libext=lib
10459 # Tell ltmain to make .dll files, not .so files.
10460 shrext_cmds=.dll
10461 # FIXME: Setting linknames here is a bad hack.
10462 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10463 # The linker will automatically build a .lib file if we build a DLL.
10464 old_archive_from_new_cmds='true'
10465 # FIXME: Should let the user specify the lib program.
10466 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10467 enable_shared_with_static_runtimes=yes
10468 ;;
10469 esac
10470 ;;
10471
10472 darwin* | rhapsody*)
10473
10474
10475 archive_cmds_need_lc=no
10476 hardcode_direct=no
10477 hardcode_automatic=yes
10478 hardcode_shlibpath_var=unsupported
10479 if test yes = "$lt_cv_ld_force_load"; then
10480 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\"`'
10481
10482 else
10483 whole_archive_flag_spec=''
10484 fi
10485 link_all_deplibs=yes
10486 allow_undefined_flag=$_lt_dar_allow_undefined
10487 case $cc_basename in
10488 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10489 *) _lt_dar_can_shared=$GCC ;;
10490 esac
10491 if test yes = "$_lt_dar_can_shared"; then
10492 output_verbose_link_cmd=func_echo_all
10493 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10494 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10495 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"
10496 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"
10497
10498 else
10499 ld_shlibs=no
10500 fi
10501
10502 ;;
10503
10504 dgux*)
10505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10506 hardcode_libdir_flag_spec='-L$libdir'
10507 hardcode_shlibpath_var=no
10508 ;;
10509
10510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10511 # support. Future versions do this automatically, but an explicit c++rt0.o
10512 # does not break anything, and helps significantly (at the cost of a little
10513 # extra space).
10514 freebsd2.2*)
10515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10516 hardcode_libdir_flag_spec='-R$libdir'
10517 hardcode_direct=yes
10518 hardcode_shlibpath_var=no
10519 ;;
10520
10521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10522 freebsd2.*)
10523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10524 hardcode_direct=yes
10525 hardcode_minus_L=yes
10526 hardcode_shlibpath_var=no
10527 ;;
10528
10529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10530 freebsd* | dragonfly* | midnightbsd*)
10531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10532 hardcode_libdir_flag_spec='-R$libdir'
10533 hardcode_direct=yes
10534 hardcode_shlibpath_var=no
10535 ;;
10536
10537 hpux9*)
10538 if test yes = "$GCC"; then
10539 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'
10540 else
10541 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'
10542 fi
10543 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10544 hardcode_libdir_separator=:
10545 hardcode_direct=yes
10546
10547 # hardcode_minus_L: Not really in the search PATH,
10548 # but as the default location of the library.
10549 hardcode_minus_L=yes
10550 export_dynamic_flag_spec='$wl-E'
10551 ;;
10552
10553 hpux10*)
10554 if test yes,no = "$GCC,$with_gnu_ld"; then
10555 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10556 else
10557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10558 fi
10559 if test no = "$with_gnu_ld"; then
10560 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10561 hardcode_libdir_separator=:
10562 hardcode_direct=yes
10563 hardcode_direct_absolute=yes
10564 export_dynamic_flag_spec='$wl-E'
10565 # hardcode_minus_L: Not really in the search PATH,
10566 # but as the default location of the library.
10567 hardcode_minus_L=yes
10568 fi
10569 ;;
10570
10571 hpux11*)
10572 if test yes,no = "$GCC,$with_gnu_ld"; then
10573 case $host_cpu in
10574 hppa*64*)
10575 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10576 ;;
10577 ia64*)
10578 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10579 ;;
10580 *)
10581 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10582 ;;
10583 esac
10584 else
10585 case $host_cpu in
10586 hppa*64*)
10587 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10588 ;;
10589 ia64*)
10590 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10591 ;;
10592 *)
10593
10594 # Older versions of the 11.00 compiler do not understand -b yet
10595 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10597 printf %s "checking if $CC understands -b... " >&6; }
10598 if test ${lt_cv_prog_compiler__b+y}
10599 then :
10600 printf %s "(cached) " >&6
10601 else $as_nop
10602 lt_cv_prog_compiler__b=no
10603 save_LDFLAGS=$LDFLAGS
10604 LDFLAGS="$LDFLAGS -b"
10605 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10606 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10607 # The linker can only warn and ignore the option if not recognized
10608 # So say no if there are warnings
10609 if test -s conftest.err; then
10610 # Append any errors to the config.log.
10611 cat conftest.err 1>&5
10612 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10614 if diff conftest.exp conftest.er2 >/dev/null; then
10615 lt_cv_prog_compiler__b=yes
10616 fi
10617 else
10618 lt_cv_prog_compiler__b=yes
10619 fi
10620 fi
10621 $RM -r conftest*
10622 LDFLAGS=$save_LDFLAGS
10623
10624 fi
10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10626 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10627
10628 if test yes = "$lt_cv_prog_compiler__b"; then
10629 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10630 else
10631 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10632 fi
10633
10634 ;;
10635 esac
10636 fi
10637 if test no = "$with_gnu_ld"; then
10638 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10639 hardcode_libdir_separator=:
10640
10641 case $host_cpu in
10642 hppa*64*|ia64*)
10643 hardcode_direct=no
10644 hardcode_shlibpath_var=no
10645 ;;
10646 *)
10647 hardcode_direct=yes
10648 hardcode_direct_absolute=yes
10649 export_dynamic_flag_spec='$wl-E'
10650
10651 # hardcode_minus_L: Not really in the search PATH,
10652 # but as the default location of the library.
10653 hardcode_minus_L=yes
10654 ;;
10655 esac
10656 fi
10657 ;;
10658
10659 irix5* | irix6* | nonstopux*)
10660 if test yes = "$GCC"; then
10661 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'
10662 # Try to use the -exported_symbol ld option, if it does not
10663 # work, assume that -exports_file does not work either and
10664 # implicitly export all symbols.
10665 # This should be the same for all languages, so no per-tag cache variable.
10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10667 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10668 if test ${lt_cv_irix_exported_symbol+y}
10669 then :
10670 printf %s "(cached) " >&6
10671 else $as_nop
10672 save_LDFLAGS=$LDFLAGS
10673 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 int foo (void) { return 0; }
10677 _ACEOF
10678 if ac_fn_c_try_link "$LINENO"
10679 then :
10680 lt_cv_irix_exported_symbol=yes
10681 else $as_nop
10682 lt_cv_irix_exported_symbol=no
10683 fi
10684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10685 conftest$ac_exeext conftest.$ac_ext
10686 LDFLAGS=$save_LDFLAGS
10687 fi
10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10689 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10690 if test yes = "$lt_cv_irix_exported_symbol"; then
10691 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'
10692 fi
10693 link_all_deplibs=no
10694 else
10695 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'
10696 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'
10697 fi
10698 archive_cmds_need_lc='no'
10699 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10700 hardcode_libdir_separator=:
10701 inherit_rpath=yes
10702 link_all_deplibs=yes
10703 ;;
10704
10705 linux*)
10706 case $cc_basename in
10707 tcc*)
10708 # Fabrice Bellard et al's Tiny C Compiler
10709 ld_shlibs=yes
10710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10711 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10712 ;;
10713 esac
10714 ;;
10715
10716 netbsd* | netbsdelf*-gnu)
10717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10719 else
10720 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10721 fi
10722 hardcode_libdir_flag_spec='-R$libdir'
10723 hardcode_direct=yes
10724 hardcode_shlibpath_var=no
10725 ;;
10726
10727 newsos6)
10728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729 hardcode_direct=yes
10730 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10731 hardcode_libdir_separator=:
10732 hardcode_shlibpath_var=no
10733 ;;
10734
10735 *nto* | *qnx*)
10736 ;;
10737
10738 openbsd* | bitrig*)
10739 if test -f /usr/libexec/ld.so; then
10740 hardcode_direct=yes
10741 hardcode_shlibpath_var=no
10742 hardcode_direct_absolute=yes
10743 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10745 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10746 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10747 export_dynamic_flag_spec='$wl-E'
10748 else
10749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10750 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10751 fi
10752 else
10753 ld_shlibs=no
10754 fi
10755 ;;
10756
10757 os2*)
10758 hardcode_libdir_flag_spec='-L$libdir'
10759 hardcode_minus_L=yes
10760 allow_undefined_flag=unsupported
10761 shrext_cmds=.dll
10762 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10763 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10764 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10765 $ECHO EXPORTS >> $output_objdir/$libname.def~
10766 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10767 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10768 emximp -o $lib $output_objdir/$libname.def'
10769 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10770 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10771 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10772 $ECHO EXPORTS >> $output_objdir/$libname.def~
10773 prefix_cmds="$SED"~
10774 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10775 prefix_cmds="$prefix_cmds -e 1d";
10776 fi~
10777 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10778 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10779 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10780 emximp -o $lib $output_objdir/$libname.def'
10781 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10782 enable_shared_with_static_runtimes=yes
10783 file_list_spec='@'
10784 ;;
10785
10786 osf3*)
10787 if test yes = "$GCC"; then
10788 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10789 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'
10790 else
10791 allow_undefined_flag=' -expect_unresolved \*'
10792 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'
10793 fi
10794 archive_cmds_need_lc='no'
10795 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10796 hardcode_libdir_separator=:
10797 ;;
10798
10799 osf4* | osf5*) # as osf3* with the addition of -msym flag
10800 if test yes = "$GCC"; then
10801 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10802 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'
10803 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10804 else
10805 allow_undefined_flag=' -expect_unresolved \*'
10806 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'
10807 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~
10808 $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'
10809
10810 # Both c and cxx compiler support -rpath directly
10811 hardcode_libdir_flag_spec='-rpath $libdir'
10812 fi
10813 archive_cmds_need_lc='no'
10814 hardcode_libdir_separator=:
10815 ;;
10816
10817 solaris*)
10818 no_undefined_flag=' -z defs'
10819 if test yes = "$GCC"; then
10820 wlarc='$wl'
10821 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10823 $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'
10824 else
10825 case `$CC -V 2>&1` in
10826 *"Compilers 5.0"*)
10827 wlarc=''
10828 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10830 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10831 ;;
10832 *)
10833 wlarc='$wl'
10834 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10836 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10837 ;;
10838 esac
10839 fi
10840 hardcode_libdir_flag_spec='-R$libdir'
10841 hardcode_shlibpath_var=no
10842 case $host_os in
10843 solaris2.[0-5] | solaris2.[0-5].*) ;;
10844 *)
10845 # The compiler driver will combine and reorder linker options,
10846 # but understands '-z linker_flag'. GCC discards it without '$wl',
10847 # but is careful enough not to reorder.
10848 # Supported since Solaris 2.6 (maybe 2.5.1?)
10849 if test yes = "$GCC"; then
10850 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10851 else
10852 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10853 fi
10854 ;;
10855 esac
10856 link_all_deplibs=yes
10857 ;;
10858
10859 sunos4*)
10860 if test sequent = "$host_vendor"; then
10861 # Use $CC to link under sequent, because it throws in some extra .o
10862 # files that make .init and .fini sections work.
10863 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10864 else
10865 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10866 fi
10867 hardcode_libdir_flag_spec='-L$libdir'
10868 hardcode_direct=yes
10869 hardcode_minus_L=yes
10870 hardcode_shlibpath_var=no
10871 ;;
10872
10873 sysv4)
10874 case $host_vendor in
10875 sni)
10876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10877 hardcode_direct=yes # is this really true???
10878 ;;
10879 siemens)
10880 ## LD is ld it makes a PLAMLIB
10881 ## CC just makes a GrossModule.
10882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10883 reload_cmds='$CC -r -o $output$reload_objs'
10884 hardcode_direct=no
10885 ;;
10886 motorola)
10887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10888 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10889 ;;
10890 esac
10891 runpath_var='LD_RUN_PATH'
10892 hardcode_shlibpath_var=no
10893 ;;
10894
10895 sysv4.3*)
10896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10897 hardcode_shlibpath_var=no
10898 export_dynamic_flag_spec='-Bexport'
10899 ;;
10900
10901 sysv4*MP*)
10902 if test -d /usr/nec; then
10903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_shlibpath_var=no
10905 runpath_var=LD_RUN_PATH
10906 hardcode_runpath_var=yes
10907 ld_shlibs=yes
10908 fi
10909 ;;
10910
10911 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10912 no_undefined_flag='$wl-z,text'
10913 archive_cmds_need_lc=no
10914 hardcode_shlibpath_var=no
10915 runpath_var='LD_RUN_PATH'
10916
10917 if test yes = "$GCC"; then
10918 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10919 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10920 else
10921 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923 fi
10924 ;;
10925
10926 sysv5* | sco3.2v5* | sco5v6*)
10927 # Note: We CANNOT use -z defs as we might desire, because we do not
10928 # link with -lc, and that would cause any symbols used from libc to
10929 # always be unresolved, which means just about no library would
10930 # ever link correctly. If we're not using GNU ld we use -z text
10931 # though, which does catch some bad symbols but isn't as heavy-handed
10932 # as -z defs.
10933 no_undefined_flag='$wl-z,text'
10934 allow_undefined_flag='$wl-z,nodefs'
10935 archive_cmds_need_lc=no
10936 hardcode_shlibpath_var=no
10937 hardcode_libdir_flag_spec='$wl-R,$libdir'
10938 hardcode_libdir_separator=':'
10939 link_all_deplibs=yes
10940 export_dynamic_flag_spec='$wl-Bexport'
10941 runpath_var='LD_RUN_PATH'
10942
10943 if test yes = "$GCC"; then
10944 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 else
10947 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 fi
10950 ;;
10951
10952 uts4*)
10953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10954 hardcode_libdir_flag_spec='-L$libdir'
10955 hardcode_shlibpath_var=no
10956 ;;
10957
10958 *)
10959 ld_shlibs=no
10960 ;;
10961 esac
10962
10963 if test sni = "$host_vendor"; then
10964 case $host in
10965 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10966 export_dynamic_flag_spec='$wl-Blargedynsym'
10967 ;;
10968 esac
10969 fi
10970 fi
10971
10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10973 printf "%s\n" "$ld_shlibs" >&6; }
10974 test no = "$ld_shlibs" && can_build_shared=no
10975
10976 with_gnu_ld=$with_gnu_ld
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992 #
10993 # Do we need to explicitly link libc?
10994 #
10995 case "x$archive_cmds_need_lc" in
10996 x|xyes)
10997 # Assume -lc should be added
10998 archive_cmds_need_lc=yes
10999
11000 if test yes,yes = "$GCC,$enable_shared"; then
11001 case $archive_cmds in
11002 *'~'*)
11003 # FIXME: we may have to deal with multi-command sequences.
11004 ;;
11005 '$CC '*)
11006 # Test whether the compiler implicitly links with -lc since on some
11007 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11008 # to ld, don't add -lc before -lgcc.
11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11010 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11011 if test ${lt_cv_archive_cmds_need_lc+y}
11012 then :
11013 printf %s "(cached) " >&6
11014 else $as_nop
11015 $RM conftest*
11016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11017
11018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11019 (eval $ac_compile) 2>&5
11020 ac_status=$?
11021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11022 test $ac_status = 0; } 2>conftest.err; then
11023 soname=conftest
11024 lib=conftest
11025 libobjs=conftest.$ac_objext
11026 deplibs=
11027 wl=$lt_prog_compiler_wl
11028 pic_flag=$lt_prog_compiler_pic
11029 compiler_flags=-v
11030 linker_flags=-v
11031 verstring=
11032 output_objdir=.
11033 libname=conftest
11034 lt_save_allow_undefined_flag=$allow_undefined_flag
11035 allow_undefined_flag=
11036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11037 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11038 ac_status=$?
11039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11040 test $ac_status = 0; }
11041 then
11042 lt_cv_archive_cmds_need_lc=no
11043 else
11044 lt_cv_archive_cmds_need_lc=yes
11045 fi
11046 allow_undefined_flag=$lt_save_allow_undefined_flag
11047 else
11048 cat conftest.err 1>&5
11049 fi
11050 $RM conftest*
11051
11052 fi
11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11054 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11055 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11056 ;;
11057 esac
11058 fi
11059 ;;
11060 esac
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11214 printf %s "checking dynamic linker characteristics... " >&6; }
11215
11216 if test yes = "$GCC"; then
11217 case $host_os in
11218 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11219 *) lt_awk_arg='/^libraries:/' ;;
11220 esac
11221 case $host_os in
11222 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11223 *) lt_sed_strip_eq='s|=/|/|g' ;;
11224 esac
11225 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11226 case $lt_search_path_spec in
11227 *\;*)
11228 # if the path contains ";" then we assume it to be the separator
11229 # otherwise default to the standard path separator (i.e. ":") - it is
11230 # assumed that no part of a normal pathname contains ";" but that should
11231 # okay in the real world where ";" in dirpaths is itself problematic.
11232 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11233 ;;
11234 *)
11235 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11236 ;;
11237 esac
11238 # Ok, now we have the path, separated by spaces, we can step through it
11239 # and add multilib dir if necessary...
11240 lt_tmp_lt_search_path_spec=
11241 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11242 # ...but if some path component already ends with the multilib dir we assume
11243 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11244 case "$lt_multi_os_dir; $lt_search_path_spec " in
11245 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11246 lt_multi_os_dir=
11247 ;;
11248 esac
11249 for lt_sys_path in $lt_search_path_spec; do
11250 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11251 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11252 elif test -n "$lt_multi_os_dir"; then
11253 test -d "$lt_sys_path" && \
11254 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11255 fi
11256 done
11257 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11258 BEGIN {RS = " "; FS = "/|\n";} {
11259 lt_foo = "";
11260 lt_count = 0;
11261 for (lt_i = NF; lt_i > 0; lt_i--) {
11262 if ($lt_i != "" && $lt_i != ".") {
11263 if ($lt_i == "..") {
11264 lt_count++;
11265 } else {
11266 if (lt_count == 0) {
11267 lt_foo = "/" $lt_i lt_foo;
11268 } else {
11269 lt_count--;
11270 }
11271 }
11272 }
11273 }
11274 if (lt_foo != "") { lt_freq[lt_foo]++; }
11275 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11276 }'`
11277 # AWK program above erroneously prepends '/' to C:/dos/paths
11278 # for these hosts.
11279 case $host_os in
11280 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11281 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11282 esac
11283 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11284 else
11285 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11286 fi
11287 library_names_spec=
11288 libname_spec='lib$name'
11289 soname_spec=
11290 shrext_cmds=.so
11291 postinstall_cmds=
11292 postuninstall_cmds=
11293 finish_cmds=
11294 finish_eval=
11295 shlibpath_var=
11296 shlibpath_overrides_runpath=unknown
11297 version_type=none
11298 dynamic_linker="$host_os ld.so"
11299 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11300 need_lib_prefix=unknown
11301 hardcode_into_libs=no
11302
11303 # when you set need_version to no, make sure it does not cause -set_version
11304 # flags to be left without arguments
11305 need_version=unknown
11306
11307
11308
11309 case $host_os in
11310 aix3*)
11311 version_type=linux # correct to gnu/linux during the next big refactor
11312 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11313 shlibpath_var=LIBPATH
11314
11315 # AIX 3 has no versioning support, so we append a major version to the name.
11316 soname_spec='$libname$release$shared_ext$major'
11317 ;;
11318
11319 aix[4-9]*)
11320 version_type=linux # correct to gnu/linux during the next big refactor
11321 need_lib_prefix=no
11322 need_version=no
11323 hardcode_into_libs=yes
11324 if test ia64 = "$host_cpu"; then
11325 # AIX 5 supports IA64
11326 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 else
11329 # With GCC up to 2.95.x, collect2 would create an import file
11330 # for dependence libraries. The import file would start with
11331 # the line '#! .'. This would cause the generated library to
11332 # depend on '.', always an invalid library. This was fixed in
11333 # development snapshots of GCC prior to 3.0.
11334 case $host_os in
11335 aix4 | aix4.[01] | aix4.[01].*)
11336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11337 echo ' yes '
11338 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11339 :
11340 else
11341 can_build_shared=no
11342 fi
11343 ;;
11344 esac
11345 # Using Import Files as archive members, it is possible to support
11346 # filename-based versioning of shared library archives on AIX. While
11347 # this would work for both with and without runtime linking, it will
11348 # prevent static linking of such archives. So we do filename-based
11349 # shared library versioning with .so extension only, which is used
11350 # when both runtime linking and shared linking is enabled.
11351 # Unfortunately, runtime linking may impact performance, so we do
11352 # not want this to be the default eventually. Also, we use the
11353 # versioned .so libs for executables only if there is the -brtl
11354 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11355 # To allow for filename-based versioning support, we need to create
11356 # libNAME.so.V as an archive file, containing:
11357 # *) an Import File, referring to the versioned filename of the
11358 # archive as well as the shared archive member, telling the
11359 # bitwidth (32 or 64) of that shared object, and providing the
11360 # list of exported symbols of that shared object, eventually
11361 # decorated with the 'weak' keyword
11362 # *) the shared object with the F_LOADONLY flag set, to really avoid
11363 # it being seen by the linker.
11364 # At run time we better use the real file rather than another symlink,
11365 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11366
11367 case $with_aix_soname,$aix_use_runtimelinking in
11368 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11369 # soname into executable. Probably we can add versioning support to
11370 # collect2, so additional links can be useful in future.
11371 aix,yes) # traditional libtool
11372 dynamic_linker='AIX unversionable lib.so'
11373 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11374 # instead of lib<name>.a to let people know that these are not
11375 # typical AIX shared libraries.
11376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11377 ;;
11378 aix,no) # traditional AIX only
11379 dynamic_linker='AIX lib.a(lib.so.V)'
11380 # We preserve .a as extension for shared libraries through AIX4.2
11381 # and later when we are not doing run time linking.
11382 library_names_spec='$libname$release.a $libname.a'
11383 soname_spec='$libname$release$shared_ext$major'
11384 ;;
11385 svr4,*) # full svr4 only
11386 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11387 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11388 # We do not specify a path in Import Files, so LIBPATH fires.
11389 shlibpath_overrides_runpath=yes
11390 ;;
11391 *,yes) # both, prefer svr4
11392 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11393 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11394 # unpreferred sharedlib libNAME.a needs extra handling
11395 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"'
11396 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"'
11397 # We do not specify a path in Import Files, so LIBPATH fires.
11398 shlibpath_overrides_runpath=yes
11399 ;;
11400 *,no) # both, prefer aix
11401 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11402 library_names_spec='$libname$release.a $libname.a'
11403 soname_spec='$libname$release$shared_ext$major'
11404 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11405 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)'
11406 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"'
11407 ;;
11408 esac
11409 shlibpath_var=LIBPATH
11410 fi
11411 ;;
11412
11413 amigaos*)
11414 case $host_cpu in
11415 powerpc)
11416 # Since July 2007 AmigaOS4 officially supports .so libraries.
11417 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11419 ;;
11420 m68k)
11421 library_names_spec='$libname.ixlibrary $libname.a'
11422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11423 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'
11424 ;;
11425 esac
11426 ;;
11427
11428 beos*)
11429 library_names_spec='$libname$shared_ext'
11430 dynamic_linker="$host_os ld.so"
11431 shlibpath_var=LIBRARY_PATH
11432 ;;
11433
11434 bsdi[45]*)
11435 version_type=linux # correct to gnu/linux during the next big refactor
11436 need_version=no
11437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11438 soname_spec='$libname$release$shared_ext$major'
11439 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11440 shlibpath_var=LD_LIBRARY_PATH
11441 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11442 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11443 # the default ld.so.conf also contains /usr/contrib/lib and
11444 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11445 # libtool to hard-code these into programs
11446 ;;
11447
11448 cygwin* | mingw* | pw32* | cegcc*)
11449 version_type=windows
11450 shrext_cmds=.dll
11451 need_version=no
11452 need_lib_prefix=no
11453
11454 case $GCC,$cc_basename in
11455 yes,*)
11456 # gcc
11457 library_names_spec='$libname.dll.a'
11458 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11459 postinstall_cmds='base_file=`basename \$file`~
11460 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11461 dldir=$destdir/`dirname \$dlpath`~
11462 test -d \$dldir || mkdir -p \$dldir~
11463 $install_prog $dir/$dlname \$dldir/$dlname~
11464 chmod a+x \$dldir/$dlname~
11465 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11466 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11467 fi'
11468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11469 dlpath=$dir/\$dldll~
11470 $RM \$dlpath'
11471 shlibpath_overrides_runpath=yes
11472
11473 case $host_os in
11474 cygwin*)
11475 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11476 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11477
11478 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11479 ;;
11480 mingw* | cegcc*)
11481 # MinGW DLLs use traditional 'lib' prefix
11482 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11483 ;;
11484 pw32*)
11485 # pw32 DLLs use 'pw' prefix rather than 'lib'
11486 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11487 ;;
11488 esac
11489 dynamic_linker='Win32 ld.exe'
11490 ;;
11491
11492 *,cl* | *,icl*)
11493 # Native MSVC or ICC
11494 libname_spec='$name'
11495 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11496 library_names_spec='$libname.dll.lib'
11497
11498 case $build_os in
11499 mingw*)
11500 sys_lib_search_path_spec=
11501 lt_save_ifs=$IFS
11502 IFS=';'
11503 for lt_path in $LIB
11504 do
11505 IFS=$lt_save_ifs
11506 # Let DOS variable expansion print the short 8.3 style file name.
11507 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11508 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11509 done
11510 IFS=$lt_save_ifs
11511 # Convert to MSYS style.
11512 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11513 ;;
11514 cygwin*)
11515 # Convert to unix form, then to dos form, then back to unix form
11516 # but this time dos style (no spaces!) so that the unix form looks
11517 # like /cygdrive/c/PROGRA~1:/cygdr...
11518 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11519 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11520 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11521 ;;
11522 *)
11523 sys_lib_search_path_spec=$LIB
11524 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11525 # It is most probably a Windows format PATH.
11526 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11527 else
11528 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11529 fi
11530 # FIXME: find the short name or the path components, as spaces are
11531 # common. (e.g. "Program Files" -> "PROGRA~1")
11532 ;;
11533 esac
11534
11535 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11536 postinstall_cmds='base_file=`basename \$file`~
11537 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11538 dldir=$destdir/`dirname \$dlpath`~
11539 test -d \$dldir || mkdir -p \$dldir~
11540 $install_prog $dir/$dlname \$dldir/$dlname'
11541 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11542 dlpath=$dir/\$dldll~
11543 $RM \$dlpath'
11544 shlibpath_overrides_runpath=yes
11545 dynamic_linker='Win32 link.exe'
11546 ;;
11547
11548 *)
11549 # Assume MSVC and ICC wrapper
11550 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11551 dynamic_linker='Win32 ld.exe'
11552 ;;
11553 esac
11554 # FIXME: first we should search . and the directory the executable is in
11555 shlibpath_var=PATH
11556 ;;
11557
11558 darwin* | rhapsody*)
11559 dynamic_linker="$host_os dyld"
11560 version_type=darwin
11561 need_lib_prefix=no
11562 need_version=no
11563 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11564 soname_spec='$libname$release$major$shared_ext'
11565 shlibpath_overrides_runpath=yes
11566 shlibpath_var=DYLD_LIBRARY_PATH
11567 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11568
11569 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11570 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11571 ;;
11572
11573 dgux*)
11574 version_type=linux # correct to gnu/linux during the next big refactor
11575 need_lib_prefix=no
11576 need_version=no
11577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11578 soname_spec='$libname$release$shared_ext$major'
11579 shlibpath_var=LD_LIBRARY_PATH
11580 ;;
11581
11582 freebsd* | dragonfly* | midnightbsd*)
11583 # DragonFly does not have aout. When/if they implement a new
11584 # versioning mechanism, adjust this.
11585 if test -x /usr/bin/objformat; then
11586 objformat=`/usr/bin/objformat`
11587 else
11588 case $host_os in
11589 freebsd[23].*) objformat=aout ;;
11590 *) objformat=elf ;;
11591 esac
11592 fi
11593 version_type=freebsd-$objformat
11594 case $version_type in
11595 freebsd-elf*)
11596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11597 soname_spec='$libname$release$shared_ext$major'
11598 need_version=no
11599 need_lib_prefix=no
11600 ;;
11601 freebsd-*)
11602 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11603 need_version=yes
11604 ;;
11605 esac
11606 shlibpath_var=LD_LIBRARY_PATH
11607 case $host_os in
11608 freebsd2.*)
11609 shlibpath_overrides_runpath=yes
11610 ;;
11611 freebsd3.[01]* | freebsdelf3.[01]*)
11612 shlibpath_overrides_runpath=yes
11613 hardcode_into_libs=yes
11614 ;;
11615 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11616 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11617 shlibpath_overrides_runpath=no
11618 hardcode_into_libs=yes
11619 ;;
11620 *) # from 4.6 on, and DragonFly
11621 shlibpath_overrides_runpath=yes
11622 hardcode_into_libs=yes
11623 ;;
11624 esac
11625 ;;
11626
11627 haiku*)
11628 version_type=linux # correct to gnu/linux during the next big refactor
11629 need_lib_prefix=no
11630 need_version=no
11631 dynamic_linker="$host_os runtime_loader"
11632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11633 soname_spec='$libname$release$shared_ext$major'
11634 shlibpath_var=LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11636 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11637 hardcode_into_libs=yes
11638 ;;
11639
11640 hpux9* | hpux10* | hpux11*)
11641 # Give a soname corresponding to the major version so that dld.sl refuses to
11642 # link against other versions.
11643 version_type=sunos
11644 need_lib_prefix=no
11645 need_version=no
11646 case $host_cpu in
11647 ia64*)
11648 shrext_cmds='.so'
11649 hardcode_into_libs=yes
11650 dynamic_linker="$host_os dld.so"
11651 shlibpath_var=LD_LIBRARY_PATH
11652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11654 soname_spec='$libname$release$shared_ext$major'
11655 if test 32 = "$HPUX_IA64_MODE"; then
11656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11657 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11658 else
11659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11660 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11661 fi
11662 ;;
11663 hppa*64*)
11664 shrext_cmds='.sl'
11665 hardcode_into_libs=yes
11666 dynamic_linker="$host_os dld.sl"
11667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11670 soname_spec='$libname$release$shared_ext$major'
11671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11673 ;;
11674 *)
11675 shrext_cmds='.sl'
11676 dynamic_linker="$host_os dld.sl"
11677 shlibpath_var=SHLIB_PATH
11678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11680 soname_spec='$libname$release$shared_ext$major'
11681 ;;
11682 esac
11683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11684 postinstall_cmds='chmod 555 $lib'
11685 # or fails outright, so override atomically:
11686 install_override_mode=555
11687 ;;
11688
11689 interix[3-9]*)
11690 version_type=linux # correct to gnu/linux during the next big refactor
11691 need_lib_prefix=no
11692 need_version=no
11693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11694 soname_spec='$libname$release$shared_ext$major'
11695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=no
11698 hardcode_into_libs=yes
11699 ;;
11700
11701 irix5* | irix6* | nonstopux*)
11702 case $host_os in
11703 nonstopux*) version_type=nonstopux ;;
11704 *)
11705 if test yes = "$lt_cv_prog_gnu_ld"; then
11706 version_type=linux # correct to gnu/linux during the next big refactor
11707 else
11708 version_type=irix
11709 fi ;;
11710 esac
11711 need_lib_prefix=no
11712 need_version=no
11713 soname_spec='$libname$release$shared_ext$major'
11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11715 case $host_os in
11716 irix5* | nonstopux*)
11717 libsuff= shlibsuff=
11718 ;;
11719 *)
11720 case $LD in # libtool.m4 will add one of these switches to LD
11721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11722 libsuff= shlibsuff= libmagic=32-bit;;
11723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11724 libsuff=32 shlibsuff=N32 libmagic=N32;;
11725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11727 *) libsuff= shlibsuff= libmagic=never-match;;
11728 esac
11729 ;;
11730 esac
11731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11732 shlibpath_overrides_runpath=no
11733 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11734 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11735 hardcode_into_libs=yes
11736 ;;
11737
11738 # No shared lib support for Linux oldld, aout, or coff.
11739 linux*oldld* | linux*aout* | linux*coff*)
11740 dynamic_linker=no
11741 ;;
11742
11743 linux*android*)
11744 version_type=none # Android doesn't support versioned libraries.
11745 need_lib_prefix=no
11746 need_version=no
11747 library_names_spec='$libname$release$shared_ext'
11748 soname_spec='$libname$release$shared_ext'
11749 finish_cmds=
11750 shlibpath_var=LD_LIBRARY_PATH
11751 shlibpath_overrides_runpath=yes
11752
11753 # This implies no fast_install, which is unacceptable.
11754 # Some rework will be needed to allow for fast_install
11755 # before this can be enabled.
11756 hardcode_into_libs=yes
11757
11758 dynamic_linker='Android linker'
11759 # Don't embed -rpath directories since the linker doesn't support them.
11760 hardcode_libdir_flag_spec='-L$libdir'
11761 ;;
11762
11763 # This must be glibc/ELF.
11764 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11765 version_type=linux # correct to gnu/linux during the next big refactor
11766 need_lib_prefix=no
11767 need_version=no
11768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11769 soname_spec='$libname$release$shared_ext$major'
11770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11771 shlibpath_var=LD_LIBRARY_PATH
11772 shlibpath_overrides_runpath=no
11773
11774 # Some binutils ld are patched to set DT_RUNPATH
11775 if test ${lt_cv_shlibpath_overrides_runpath+y}
11776 then :
11777 printf %s "(cached) " >&6
11778 else $as_nop
11779 lt_cv_shlibpath_overrides_runpath=no
11780 save_LDFLAGS=$LDFLAGS
11781 save_libdir=$libdir
11782 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11783 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11786
11787 int
11788 main (void)
11789 {
11790
11791 ;
11792 return 0;
11793 }
11794 _ACEOF
11795 if ac_fn_c_try_link "$LINENO"
11796 then :
11797 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11798 then :
11799 lt_cv_shlibpath_overrides_runpath=yes
11800 fi
11801 fi
11802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11803 conftest$ac_exeext conftest.$ac_ext
11804 LDFLAGS=$save_LDFLAGS
11805 libdir=$save_libdir
11806
11807 fi
11808
11809 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11810
11811 # This implies no fast_install, which is unacceptable.
11812 # Some rework will be needed to allow for fast_install
11813 # before this can be enabled.
11814 hardcode_into_libs=yes
11815
11816 # Ideally, we could use ldconfig to report *all* directores which are
11817 # searched for libraries, however this is still not possible. Aside from not
11818 # being certain /sbin/ldconfig is available, command
11819 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11820 # even though it is searched at run-time. Try to do the best guess by
11821 # appending ld.so.conf contents (and includes) to the search path.
11822 if test -f /etc/ld.so.conf; then
11823 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' ' '`
11824 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11825 fi
11826
11827 # We used to test for /lib/ld.so.1 and disable shared libraries on
11828 # powerpc, because MkLinux only supported shared libraries with the
11829 # GNU dynamic linker. Since this was broken with cross compilers,
11830 # most powerpc-linux boxes support dynamic linking these days and
11831 # people can always --disable-shared, the test was removed, and we
11832 # assume the GNU/Linux dynamic linker is in use.
11833 dynamic_linker='GNU/Linux ld.so'
11834 ;;
11835
11836 netbsdelf*-gnu)
11837 version_type=linux
11838 need_lib_prefix=no
11839 need_version=no
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 shlibpath_var=LD_LIBRARY_PATH
11843 shlibpath_overrides_runpath=no
11844 hardcode_into_libs=yes
11845 dynamic_linker='NetBSD ld.elf_so'
11846 ;;
11847
11848 netbsd*)
11849 version_type=sunos
11850 need_lib_prefix=no
11851 need_version=no
11852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11853 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11855 dynamic_linker='NetBSD (a.out) ld.so'
11856 else
11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858 soname_spec='$libname$release$shared_ext$major'
11859 dynamic_linker='NetBSD ld.elf_so'
11860 fi
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=yes
11863 hardcode_into_libs=yes
11864 ;;
11865
11866 newsos6)
11867 version_type=linux # correct to gnu/linux during the next big refactor
11868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11869 shlibpath_var=LD_LIBRARY_PATH
11870 shlibpath_overrides_runpath=yes
11871 ;;
11872
11873 *nto* | *qnx*)
11874 version_type=qnx
11875 need_lib_prefix=no
11876 need_version=no
11877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11878 soname_spec='$libname$release$shared_ext$major'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=no
11881 hardcode_into_libs=yes
11882 dynamic_linker='ldqnx.so'
11883 ;;
11884
11885 openbsd* | bitrig*)
11886 version_type=sunos
11887 sys_lib_dlsearch_path_spec=/usr/lib
11888 need_lib_prefix=no
11889 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11890 need_version=no
11891 else
11892 need_version=yes
11893 fi
11894 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 shlibpath_overrides_runpath=yes
11898 ;;
11899
11900 os2*)
11901 libname_spec='$name'
11902 version_type=windows
11903 shrext_cmds=.dll
11904 need_version=no
11905 need_lib_prefix=no
11906 # OS/2 can only load a DLL with a base name of 8 characters or less.
11907 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11908 v=$($ECHO $release$versuffix | tr -d .-);
11909 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11910 $ECHO $n$v`$shared_ext'
11911 library_names_spec='${libname}_dll.$libext'
11912 dynamic_linker='OS/2 ld.exe'
11913 shlibpath_var=BEGINLIBPATH
11914 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11916 postinstall_cmds='base_file=`basename \$file`~
11917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11918 dldir=$destdir/`dirname \$dlpath`~
11919 test -d \$dldir || mkdir -p \$dldir~
11920 $install_prog $dir/$dlname \$dldir/$dlname~
11921 chmod a+x \$dldir/$dlname~
11922 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11923 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11924 fi'
11925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11926 dlpath=$dir/\$dldll~
11927 $RM \$dlpath'
11928 ;;
11929
11930 osf3* | osf4* | osf5*)
11931 version_type=osf
11932 need_lib_prefix=no
11933 need_version=no
11934 soname_spec='$libname$release$shared_ext$major'
11935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11936 shlibpath_var=LD_LIBRARY_PATH
11937 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11939 ;;
11940
11941 rdos*)
11942 dynamic_linker=no
11943 ;;
11944
11945 solaris*)
11946 version_type=linux # correct to gnu/linux during the next big refactor
11947 need_lib_prefix=no
11948 need_version=no
11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11950 soname_spec='$libname$release$shared_ext$major'
11951 shlibpath_var=LD_LIBRARY_PATH
11952 shlibpath_overrides_runpath=yes
11953 hardcode_into_libs=yes
11954 # ldd complains unless libraries are executable
11955 postinstall_cmds='chmod +x $lib'
11956 ;;
11957
11958 sunos4*)
11959 version_type=sunos
11960 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11961 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=yes
11964 if test yes = "$with_gnu_ld"; then
11965 need_lib_prefix=no
11966 fi
11967 need_version=yes
11968 ;;
11969
11970 sysv4 | sysv4.3*)
11971 version_type=linux # correct to gnu/linux during the next big refactor
11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11973 soname_spec='$libname$release$shared_ext$major'
11974 shlibpath_var=LD_LIBRARY_PATH
11975 case $host_vendor in
11976 sni)
11977 shlibpath_overrides_runpath=no
11978 need_lib_prefix=no
11979 runpath_var=LD_RUN_PATH
11980 ;;
11981 siemens)
11982 need_lib_prefix=no
11983 ;;
11984 motorola)
11985 need_lib_prefix=no
11986 need_version=no
11987 shlibpath_overrides_runpath=no
11988 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11989 ;;
11990 esac
11991 ;;
11992
11993 sysv4*MP*)
11994 if test -d /usr/nec; then
11995 version_type=linux # correct to gnu/linux during the next big refactor
11996 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11997 soname_spec='$libname$shared_ext.$major'
11998 shlibpath_var=LD_LIBRARY_PATH
11999 fi
12000 ;;
12001
12002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12003 version_type=sco
12004 need_lib_prefix=no
12005 need_version=no
12006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12007 soname_spec='$libname$release$shared_ext$major'
12008 shlibpath_var=LD_LIBRARY_PATH
12009 shlibpath_overrides_runpath=yes
12010 hardcode_into_libs=yes
12011 if test yes = "$with_gnu_ld"; then
12012 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12013 else
12014 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12015 case $host_os in
12016 sco3.2v5*)
12017 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12018 ;;
12019 esac
12020 fi
12021 sys_lib_dlsearch_path_spec='/usr/lib'
12022 ;;
12023
12024 tpf*)
12025 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12026 version_type=linux # correct to gnu/linux during the next big refactor
12027 need_lib_prefix=no
12028 need_version=no
12029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12030 shlibpath_var=LD_LIBRARY_PATH
12031 shlibpath_overrides_runpath=no
12032 hardcode_into_libs=yes
12033 ;;
12034
12035 uts4*)
12036 version_type=linux # correct to gnu/linux during the next big refactor
12037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12038 soname_spec='$libname$release$shared_ext$major'
12039 shlibpath_var=LD_LIBRARY_PATH
12040 ;;
12041
12042 *)
12043 dynamic_linker=no
12044 ;;
12045 esac
12046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12047 printf "%s\n" "$dynamic_linker" >&6; }
12048 test no = "$dynamic_linker" && can_build_shared=no
12049
12050 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12051 if test yes = "$GCC"; then
12052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12053 fi
12054
12055 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12056 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12057 fi
12058
12059 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12060 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12061 fi
12062
12063 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12064 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12065
12066 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12067 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12068
12069 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12070 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12169 printf %s "checking how to hardcode library paths into programs... " >&6; }
12170 hardcode_action=
12171 if test -n "$hardcode_libdir_flag_spec" ||
12172 test -n "$runpath_var" ||
12173 test yes = "$hardcode_automatic"; then
12174
12175 # We can hardcode non-existent directories.
12176 if test no != "$hardcode_direct" &&
12177 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12178 # have to relink, otherwise we might link with an installed library
12179 # when we should be linking with a yet-to-be-installed one
12180 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12181 test no != "$hardcode_minus_L"; then
12182 # Linking always hardcodes the temporary library directory.
12183 hardcode_action=relink
12184 else
12185 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12186 hardcode_action=immediate
12187 fi
12188 else
12189 # We cannot hardcode anything, or else we can only hardcode existing
12190 # directories.
12191 hardcode_action=unsupported
12192 fi
12193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12194 printf "%s\n" "$hardcode_action" >&6; }
12195
12196 if test relink = "$hardcode_action" ||
12197 test yes = "$inherit_rpath"; then
12198 # Fast installation is not supported
12199 enable_fast_install=no
12200 elif test yes = "$shlibpath_overrides_runpath" ||
12201 test no = "$enable_shared"; then
12202 # Fast installation is not necessary
12203 enable_fast_install=needless
12204 fi
12205
12206
12207
12208
12209
12210
12211 if test yes != "$enable_dlopen"; then
12212 enable_dlopen=unknown
12213 enable_dlopen_self=unknown
12214 enable_dlopen_self_static=unknown
12215 else
12216 lt_cv_dlopen=no
12217 lt_cv_dlopen_libs=
12218
12219 case $host_os in
12220 beos*)
12221 lt_cv_dlopen=load_add_on
12222 lt_cv_dlopen_libs=
12223 lt_cv_dlopen_self=yes
12224 ;;
12225
12226 mingw* | pw32* | cegcc*)
12227 lt_cv_dlopen=LoadLibrary
12228 lt_cv_dlopen_libs=
12229 ;;
12230
12231 cygwin*)
12232 lt_cv_dlopen=dlopen
12233 lt_cv_dlopen_libs=
12234 ;;
12235
12236 darwin*)
12237 # if libdl is installed we need to link against it
12238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12239 printf %s "checking for dlopen in -ldl... " >&6; }
12240 if test ${ac_cv_lib_dl_dlopen+y}
12241 then :
12242 printf %s "(cached) " >&6
12243 else $as_nop
12244 ac_check_lib_save_LIBS=$LIBS
12245 LIBS="-ldl $LIBS"
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12248
12249 /* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12252 char dlopen ();
12253 int
12254 main (void)
12255 {
12256 return dlopen ();
12257 ;
12258 return 0;
12259 }
12260 _ACEOF
12261 if ac_fn_c_try_link "$LINENO"
12262 then :
12263 ac_cv_lib_dl_dlopen=yes
12264 else $as_nop
12265 ac_cv_lib_dl_dlopen=no
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12268 conftest$ac_exeext conftest.$ac_ext
12269 LIBS=$ac_check_lib_save_LIBS
12270 fi
12271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12272 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12273 if test "x$ac_cv_lib_dl_dlopen" = xyes
12274 then :
12275 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12276 else $as_nop
12277
12278 lt_cv_dlopen=dyld
12279 lt_cv_dlopen_libs=
12280 lt_cv_dlopen_self=yes
12281
12282 fi
12283
12284 ;;
12285
12286 tpf*)
12287 # Don't try to run any link tests for TPF. We know it's impossible
12288 # because TPF is a cross-compiler, and we know how we open DSOs.
12289 lt_cv_dlopen=dlopen
12290 lt_cv_dlopen_libs=
12291 lt_cv_dlopen_self=no
12292 ;;
12293
12294 *)
12295 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12296 if test "x$ac_cv_func_shl_load" = xyes
12297 then :
12298 lt_cv_dlopen=shl_load
12299 else $as_nop
12300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12301 printf %s "checking for shl_load in -ldld... " >&6; }
12302 if test ${ac_cv_lib_dld_shl_load+y}
12303 then :
12304 printf %s "(cached) " >&6
12305 else $as_nop
12306 ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-ldld $LIBS"
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12310
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12314 char shl_load ();
12315 int
12316 main (void)
12317 {
12318 return shl_load ();
12319 ;
12320 return 0;
12321 }
12322 _ACEOF
12323 if ac_fn_c_try_link "$LINENO"
12324 then :
12325 ac_cv_lib_dld_shl_load=yes
12326 else $as_nop
12327 ac_cv_lib_dld_shl_load=no
12328 fi
12329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12330 conftest$ac_exeext conftest.$ac_ext
12331 LIBS=$ac_check_lib_save_LIBS
12332 fi
12333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12334 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12335 if test "x$ac_cv_lib_dld_shl_load" = xyes
12336 then :
12337 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12338 else $as_nop
12339 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12340 if test "x$ac_cv_func_dlopen" = xyes
12341 then :
12342 lt_cv_dlopen=dlopen
12343 else $as_nop
12344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12345 printf %s "checking for dlopen in -ldl... " >&6; }
12346 if test ${ac_cv_lib_dl_dlopen+y}
12347 then :
12348 printf %s "(cached) " >&6
12349 else $as_nop
12350 ac_check_lib_save_LIBS=$LIBS
12351 LIBS="-ldl $LIBS"
12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353 /* end confdefs.h. */
12354
12355 /* Override any GCC internal prototype to avoid an error.
12356 Use char because int might match the return type of a GCC
12357 builtin and then its argument prototype would still apply. */
12358 char dlopen ();
12359 int
12360 main (void)
12361 {
12362 return dlopen ();
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 if ac_fn_c_try_link "$LINENO"
12368 then :
12369 ac_cv_lib_dl_dlopen=yes
12370 else $as_nop
12371 ac_cv_lib_dl_dlopen=no
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12374 conftest$ac_exeext conftest.$ac_ext
12375 LIBS=$ac_check_lib_save_LIBS
12376 fi
12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12378 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12379 if test "x$ac_cv_lib_dl_dlopen" = xyes
12380 then :
12381 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12382 else $as_nop
12383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12384 printf %s "checking for dlopen in -lsvld... " >&6; }
12385 if test ${ac_cv_lib_svld_dlopen+y}
12386 then :
12387 printf %s "(cached) " >&6
12388 else $as_nop
12389 ac_check_lib_save_LIBS=$LIBS
12390 LIBS="-lsvld $LIBS"
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12397 char dlopen ();
12398 int
12399 main (void)
12400 {
12401 return dlopen ();
12402 ;
12403 return 0;
12404 }
12405 _ACEOF
12406 if ac_fn_c_try_link "$LINENO"
12407 then :
12408 ac_cv_lib_svld_dlopen=yes
12409 else $as_nop
12410 ac_cv_lib_svld_dlopen=no
12411 fi
12412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12413 conftest$ac_exeext conftest.$ac_ext
12414 LIBS=$ac_check_lib_save_LIBS
12415 fi
12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12417 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12418 if test "x$ac_cv_lib_svld_dlopen" = xyes
12419 then :
12420 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12421 else $as_nop
12422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12423 printf %s "checking for dld_link in -ldld... " >&6; }
12424 if test ${ac_cv_lib_dld_dld_link+y}
12425 then :
12426 printf %s "(cached) " >&6
12427 else $as_nop
12428 ac_check_lib_save_LIBS=$LIBS
12429 LIBS="-ldld $LIBS"
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436 char dld_link ();
12437 int
12438 main (void)
12439 {
12440 return dld_link ();
12441 ;
12442 return 0;
12443 }
12444 _ACEOF
12445 if ac_fn_c_try_link "$LINENO"
12446 then :
12447 ac_cv_lib_dld_dld_link=yes
12448 else $as_nop
12449 ac_cv_lib_dld_dld_link=no
12450 fi
12451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12452 conftest$ac_exeext conftest.$ac_ext
12453 LIBS=$ac_check_lib_save_LIBS
12454 fi
12455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12456 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12457 if test "x$ac_cv_lib_dld_dld_link" = xyes
12458 then :
12459 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12460 fi
12461
12462
12463 fi
12464
12465
12466 fi
12467
12468
12469 fi
12470
12471
12472 fi
12473
12474
12475 fi
12476
12477 ;;
12478 esac
12479
12480 if test no = "$lt_cv_dlopen"; then
12481 enable_dlopen=no
12482 else
12483 enable_dlopen=yes
12484 fi
12485
12486 case $lt_cv_dlopen in
12487 dlopen)
12488 save_CPPFLAGS=$CPPFLAGS
12489 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12490
12491 save_LDFLAGS=$LDFLAGS
12492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12493
12494 save_LIBS=$LIBS
12495 LIBS="$lt_cv_dlopen_libs $LIBS"
12496
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12498 printf %s "checking whether a program can dlopen itself... " >&6; }
12499 if test ${lt_cv_dlopen_self+y}
12500 then :
12501 printf %s "(cached) " >&6
12502 else $as_nop
12503 if test yes = "$cross_compiling"; then :
12504 lt_cv_dlopen_self=cross
12505 else
12506 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12507 lt_status=$lt_dlunknown
12508 cat > conftest.$ac_ext <<_LT_EOF
12509 #line $LINENO "configure"
12510 #include "confdefs.h"
12511
12512 #if HAVE_DLFCN_H
12513 #include <dlfcn.h>
12514 #endif
12515
12516 #include <stdio.h>
12517
12518 #ifdef RTLD_GLOBAL
12519 # define LT_DLGLOBAL RTLD_GLOBAL
12520 #else
12521 # ifdef DL_GLOBAL
12522 # define LT_DLGLOBAL DL_GLOBAL
12523 # else
12524 # define LT_DLGLOBAL 0
12525 # endif
12526 #endif
12527
12528 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12529 find out it does not work in some platform. */
12530 #ifndef LT_DLLAZY_OR_NOW
12531 # ifdef RTLD_LAZY
12532 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12533 # else
12534 # ifdef DL_LAZY
12535 # define LT_DLLAZY_OR_NOW DL_LAZY
12536 # else
12537 # ifdef RTLD_NOW
12538 # define LT_DLLAZY_OR_NOW RTLD_NOW
12539 # else
12540 # ifdef DL_NOW
12541 # define LT_DLLAZY_OR_NOW DL_NOW
12542 # else
12543 # define LT_DLLAZY_OR_NOW 0
12544 # endif
12545 # endif
12546 # endif
12547 # endif
12548 #endif
12549
12550 /* When -fvisibility=hidden is used, assume the code has been annotated
12551 correspondingly for the symbols needed. */
12552 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12553 int fnord () __attribute__((visibility("default")));
12554 #endif
12555
12556 int fnord () { return 42; }
12557 int main ()
12558 {
12559 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12560 int status = $lt_dlunknown;
12561
12562 if (self)
12563 {
12564 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12565 else
12566 {
12567 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12568 else puts (dlerror ());
12569 }
12570 /* dlclose (self); */
12571 }
12572 else
12573 puts (dlerror ());
12574
12575 return status;
12576 }
12577 _LT_EOF
12578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12579 (eval $ac_link) 2>&5
12580 ac_status=$?
12581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12582 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12583 (./conftest; exit; ) >&5 2>/dev/null
12584 lt_status=$?
12585 case x$lt_status in
12586 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12587 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12588 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12589 esac
12590 else :
12591 # compilation failed
12592 lt_cv_dlopen_self=no
12593 fi
12594 fi
12595 rm -fr conftest*
12596
12597
12598 fi
12599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12600 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12601
12602 if test yes = "$lt_cv_dlopen_self"; then
12603 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12605 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12606 if test ${lt_cv_dlopen_self_static+y}
12607 then :
12608 printf %s "(cached) " >&6
12609 else $as_nop
12610 if test yes = "$cross_compiling"; then :
12611 lt_cv_dlopen_self_static=cross
12612 else
12613 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12614 lt_status=$lt_dlunknown
12615 cat > conftest.$ac_ext <<_LT_EOF
12616 #line $LINENO "configure"
12617 #include "confdefs.h"
12618
12619 #if HAVE_DLFCN_H
12620 #include <dlfcn.h>
12621 #endif
12622
12623 #include <stdio.h>
12624
12625 #ifdef RTLD_GLOBAL
12626 # define LT_DLGLOBAL RTLD_GLOBAL
12627 #else
12628 # ifdef DL_GLOBAL
12629 # define LT_DLGLOBAL DL_GLOBAL
12630 # else
12631 # define LT_DLGLOBAL 0
12632 # endif
12633 #endif
12634
12635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12636 find out it does not work in some platform. */
12637 #ifndef LT_DLLAZY_OR_NOW
12638 # ifdef RTLD_LAZY
12639 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12640 # else
12641 # ifdef DL_LAZY
12642 # define LT_DLLAZY_OR_NOW DL_LAZY
12643 # else
12644 # ifdef RTLD_NOW
12645 # define LT_DLLAZY_OR_NOW RTLD_NOW
12646 # else
12647 # ifdef DL_NOW
12648 # define LT_DLLAZY_OR_NOW DL_NOW
12649 # else
12650 # define LT_DLLAZY_OR_NOW 0
12651 # endif
12652 # endif
12653 # endif
12654 # endif
12655 #endif
12656
12657 /* When -fvisibility=hidden is used, assume the code has been annotated
12658 correspondingly for the symbols needed. */
12659 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12660 int fnord () __attribute__((visibility("default")));
12661 #endif
12662
12663 int fnord () { return 42; }
12664 int main ()
12665 {
12666 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12667 int status = $lt_dlunknown;
12668
12669 if (self)
12670 {
12671 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12672 else
12673 {
12674 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12675 else puts (dlerror ());
12676 }
12677 /* dlclose (self); */
12678 }
12679 else
12680 puts (dlerror ());
12681
12682 return status;
12683 }
12684 _LT_EOF
12685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12686 (eval $ac_link) 2>&5
12687 ac_status=$?
12688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12689 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12690 (./conftest; exit; ) >&5 2>/dev/null
12691 lt_status=$?
12692 case x$lt_status in
12693 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12694 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12695 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12696 esac
12697 else :
12698 # compilation failed
12699 lt_cv_dlopen_self_static=no
12700 fi
12701 fi
12702 rm -fr conftest*
12703
12704
12705 fi
12706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12707 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12708 fi
12709
12710 CPPFLAGS=$save_CPPFLAGS
12711 LDFLAGS=$save_LDFLAGS
12712 LIBS=$save_LIBS
12713 ;;
12714 esac
12715
12716 case $lt_cv_dlopen_self in
12717 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12718 *) enable_dlopen_self=unknown ;;
12719 esac
12720
12721 case $lt_cv_dlopen_self_static in
12722 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12723 *) enable_dlopen_self_static=unknown ;;
12724 esac
12725 fi
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743 striplib=
12744 old_striplib=
12745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12746 printf %s "checking whether stripping libraries is possible... " >&6; }
12747 if test -z "$STRIP"; then
12748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 printf "%s\n" "no" >&6; }
12750 else
12751 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12752 old_striplib="$STRIP --strip-debug"
12753 striplib="$STRIP --strip-unneeded"
12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12755 printf "%s\n" "yes" >&6; }
12756 else
12757 case $host_os in
12758 darwin*)
12759 # FIXME - insert some real tests, host_os isn't really good enough
12760 striplib="$STRIP -x"
12761 old_striplib="$STRIP -S"
12762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12763 printf "%s\n" "yes" >&6; }
12764 ;;
12765 freebsd*)
12766 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12767 old_striplib="$STRIP --strip-debug"
12768 striplib="$STRIP --strip-unneeded"
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12770 printf "%s\n" "yes" >&6; }
12771 else
12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773 printf "%s\n" "no" >&6; }
12774 fi
12775 ;;
12776 *)
12777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 printf "%s\n" "no" >&6; }
12779 ;;
12780 esac
12781 fi
12782 fi
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795 # Report what library types will actually be built
12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12797 printf %s "checking if libtool supports shared libraries... " >&6; }
12798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12799 printf "%s\n" "$can_build_shared" >&6; }
12800
12801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12802 printf %s "checking whether to build shared libraries... " >&6; }
12803 test no = "$can_build_shared" && enable_shared=no
12804
12805 # On AIX, shared libraries and static libraries use the same namespace, and
12806 # are all built from PIC.
12807 case $host_os in
12808 aix3*)
12809 test yes = "$enable_shared" && enable_static=no
12810 if test -n "$RANLIB"; then
12811 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12812 postinstall_cmds='$RANLIB $lib'
12813 fi
12814 ;;
12815
12816 aix[4-9]*)
12817 if test ia64 != "$host_cpu"; then
12818 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12819 yes,aix,yes) ;; # shared object as lib.so file only
12820 yes,svr4,*) ;; # shared object as lib.so archive member only
12821 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12822 esac
12823 fi
12824 ;;
12825 esac
12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12827 printf "%s\n" "$enable_shared" >&6; }
12828
12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12830 printf %s "checking whether to build static libraries... " >&6; }
12831 # Make sure either enable_shared or enable_static is yes.
12832 test yes = "$enable_shared" || enable_static=yes
12833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12834 printf "%s\n" "$enable_static" >&6; }
12835
12836
12837
12838
12839 fi
12840 ac_ext=c
12841 ac_cpp='$CPP $CPPFLAGS'
12842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12845
12846 CC=$lt_save_CC
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862 ac_config_commands="$ac_config_commands libtool"
12863
12864
12865
12866
12867 # Only expand once:
12868
12869
12870
12871 # Checks for programs.
12872 ac_ext=c
12873 ac_cpp='$CPP $CPPFLAGS'
12874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12877 if test -n "$ac_tool_prefix"; then
12878 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12879 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881 printf %s "checking for $ac_word... " >&6; }
12882 if test ${ac_cv_prog_CC+y}
12883 then :
12884 printf %s "(cached) " >&6
12885 else $as_nop
12886 if test -n "$CC"; then
12887 ac_cv_prog_CC="$CC" # Let the user override the test.
12888 else
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12891 do
12892 IFS=$as_save_IFS
12893 case $as_dir in #(((
12894 '') as_dir=./ ;;
12895 */) ;;
12896 *) as_dir=$as_dir/ ;;
12897 esac
12898 for ac_exec_ext in '' $ac_executable_extensions; do
12899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12900 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12902 break 2
12903 fi
12904 done
12905 done
12906 IFS=$as_save_IFS
12907
12908 fi
12909 fi
12910 CC=$ac_cv_prog_CC
12911 if test -n "$CC"; then
12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12913 printf "%s\n" "$CC" >&6; }
12914 else
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 printf "%s\n" "no" >&6; }
12917 fi
12918
12919
12920 fi
12921 if test -z "$ac_cv_prog_CC"; then
12922 ac_ct_CC=$CC
12923 # Extract the first word of "gcc", so it can be a program name with args.
12924 set dummy gcc; ac_word=$2
12925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12926 printf %s "checking for $ac_word... " >&6; }
12927 if test ${ac_cv_prog_ac_ct_CC+y}
12928 then :
12929 printf %s "(cached) " >&6
12930 else $as_nop
12931 if test -n "$ac_ct_CC"; then
12932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12933 else
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12936 do
12937 IFS=$as_save_IFS
12938 case $as_dir in #(((
12939 '') as_dir=./ ;;
12940 */) ;;
12941 *) as_dir=$as_dir/ ;;
12942 esac
12943 for ac_exec_ext in '' $ac_executable_extensions; do
12944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12945 ac_cv_prog_ac_ct_CC="gcc"
12946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12947 break 2
12948 fi
12949 done
12950 done
12951 IFS=$as_save_IFS
12952
12953 fi
12954 fi
12955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12956 if test -n "$ac_ct_CC"; then
12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12958 printf "%s\n" "$ac_ct_CC" >&6; }
12959 else
12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 printf "%s\n" "no" >&6; }
12962 fi
12963
12964 if test "x$ac_ct_CC" = x; then
12965 CC=""
12966 else
12967 case $cross_compiling:$ac_tool_warned in
12968 yes:)
12969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12970 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12971 ac_tool_warned=yes ;;
12972 esac
12973 CC=$ac_ct_CC
12974 fi
12975 else
12976 CC="$ac_cv_prog_CC"
12977 fi
12978
12979 if test -z "$CC"; then
12980 if test -n "$ac_tool_prefix"; then
12981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12982 set dummy ${ac_tool_prefix}cc; ac_word=$2
12983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984 printf %s "checking for $ac_word... " >&6; }
12985 if test ${ac_cv_prog_CC+y}
12986 then :
12987 printf %s "(cached) " >&6
12988 else $as_nop
12989 if test -n "$CC"; then
12990 ac_cv_prog_CC="$CC" # Let the user override the test.
12991 else
12992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993 for as_dir in $PATH
12994 do
12995 IFS=$as_save_IFS
12996 case $as_dir in #(((
12997 '') as_dir=./ ;;
12998 */) ;;
12999 *) as_dir=$as_dir/ ;;
13000 esac
13001 for ac_exec_ext in '' $ac_executable_extensions; do
13002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13003 ac_cv_prog_CC="${ac_tool_prefix}cc"
13004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13005 break 2
13006 fi
13007 done
13008 done
13009 IFS=$as_save_IFS
13010
13011 fi
13012 fi
13013 CC=$ac_cv_prog_CC
13014 if test -n "$CC"; then
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13016 printf "%s\n" "$CC" >&6; }
13017 else
13018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13019 printf "%s\n" "no" >&6; }
13020 fi
13021
13022
13023 fi
13024 fi
13025 if test -z "$CC"; then
13026 # Extract the first word of "cc", so it can be a program name with args.
13027 set dummy cc; ac_word=$2
13028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029 printf %s "checking for $ac_word... " >&6; }
13030 if test ${ac_cv_prog_CC+y}
13031 then :
13032 printf %s "(cached) " >&6
13033 else $as_nop
13034 if test -n "$CC"; then
13035 ac_cv_prog_CC="$CC" # Let the user override the test.
13036 else
13037 ac_prog_rejected=no
13038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13039 for as_dir in $PATH
13040 do
13041 IFS=$as_save_IFS
13042 case $as_dir in #(((
13043 '') as_dir=./ ;;
13044 */) ;;
13045 *) as_dir=$as_dir/ ;;
13046 esac
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13049 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13050 ac_prog_rejected=yes
13051 continue
13052 fi
13053 ac_cv_prog_CC="cc"
13054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13055 break 2
13056 fi
13057 done
13058 done
13059 IFS=$as_save_IFS
13060
13061 if test $ac_prog_rejected = yes; then
13062 # We found a bogon in the path, so make sure we never use it.
13063 set dummy $ac_cv_prog_CC
13064 shift
13065 if test $# != 0; then
13066 # We chose a different compiler from the bogus one.
13067 # However, it has the same basename, so the bogon will be chosen
13068 # first if we set CC to just the basename; use the full file name.
13069 shift
13070 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13071 fi
13072 fi
13073 fi
13074 fi
13075 CC=$ac_cv_prog_CC
13076 if test -n "$CC"; then
13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13078 printf "%s\n" "$CC" >&6; }
13079 else
13080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 printf "%s\n" "no" >&6; }
13082 fi
13083
13084
13085 fi
13086 if test -z "$CC"; then
13087 if test -n "$ac_tool_prefix"; then
13088 for ac_prog in cl.exe
13089 do
13090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13093 printf %s "checking for $ac_word... " >&6; }
13094 if test ${ac_cv_prog_CC+y}
13095 then :
13096 printf %s "(cached) " >&6
13097 else $as_nop
13098 if test -n "$CC"; then
13099 ac_cv_prog_CC="$CC" # Let the user override the test.
13100 else
13101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102 for as_dir in $PATH
13103 do
13104 IFS=$as_save_IFS
13105 case $as_dir in #(((
13106 '') as_dir=./ ;;
13107 */) ;;
13108 *) as_dir=$as_dir/ ;;
13109 esac
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13112 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13114 break 2
13115 fi
13116 done
13117 done
13118 IFS=$as_save_IFS
13119
13120 fi
13121 fi
13122 CC=$ac_cv_prog_CC
13123 if test -n "$CC"; then
13124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13125 printf "%s\n" "$CC" >&6; }
13126 else
13127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 printf "%s\n" "no" >&6; }
13129 fi
13130
13131
13132 test -n "$CC" && break
13133 done
13134 fi
13135 if test -z "$CC"; then
13136 ac_ct_CC=$CC
13137 for ac_prog in cl.exe
13138 do
13139 # Extract the first word of "$ac_prog", so it can be a program name with args.
13140 set dummy $ac_prog; ac_word=$2
13141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 printf %s "checking for $ac_word... " >&6; }
13143 if test ${ac_cv_prog_ac_ct_CC+y}
13144 then :
13145 printf %s "(cached) " >&6
13146 else $as_nop
13147 if test -n "$ac_ct_CC"; then
13148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13149 else
13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151 for as_dir in $PATH
13152 do
13153 IFS=$as_save_IFS
13154 case $as_dir in #(((
13155 '') as_dir=./ ;;
13156 */) ;;
13157 *) as_dir=$as_dir/ ;;
13158 esac
13159 for ac_exec_ext in '' $ac_executable_extensions; do
13160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13161 ac_cv_prog_ac_ct_CC="$ac_prog"
13162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13163 break 2
13164 fi
13165 done
13166 done
13167 IFS=$as_save_IFS
13168
13169 fi
13170 fi
13171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13172 if test -n "$ac_ct_CC"; then
13173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13174 printf "%s\n" "$ac_ct_CC" >&6; }
13175 else
13176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177 printf "%s\n" "no" >&6; }
13178 fi
13179
13180
13181 test -n "$ac_ct_CC" && break
13182 done
13183
13184 if test "x$ac_ct_CC" = x; then
13185 CC=""
13186 else
13187 case $cross_compiling:$ac_tool_warned in
13188 yes:)
13189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13190 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13191 ac_tool_warned=yes ;;
13192 esac
13193 CC=$ac_ct_CC
13194 fi
13195 fi
13196
13197 fi
13198 if test -z "$CC"; then
13199 if test -n "$ac_tool_prefix"; then
13200 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13201 set dummy ${ac_tool_prefix}clang; ac_word=$2
13202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13203 printf %s "checking for $ac_word... " >&6; }
13204 if test ${ac_cv_prog_CC+y}
13205 then :
13206 printf %s "(cached) " >&6
13207 else $as_nop
13208 if test -n "$CC"; then
13209 ac_cv_prog_CC="$CC" # Let the user override the test.
13210 else
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13213 do
13214 IFS=$as_save_IFS
13215 case $as_dir in #(((
13216 '') as_dir=./ ;;
13217 */) ;;
13218 *) as_dir=$as_dir/ ;;
13219 esac
13220 for ac_exec_ext in '' $ac_executable_extensions; do
13221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13222 ac_cv_prog_CC="${ac_tool_prefix}clang"
13223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13224 break 2
13225 fi
13226 done
13227 done
13228 IFS=$as_save_IFS
13229
13230 fi
13231 fi
13232 CC=$ac_cv_prog_CC
13233 if test -n "$CC"; then
13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13235 printf "%s\n" "$CC" >&6; }
13236 else
13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 printf "%s\n" "no" >&6; }
13239 fi
13240
13241
13242 fi
13243 if test -z "$ac_cv_prog_CC"; then
13244 ac_ct_CC=$CC
13245 # Extract the first word of "clang", so it can be a program name with args.
13246 set dummy clang; ac_word=$2
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 printf %s "checking for $ac_word... " >&6; }
13249 if test ${ac_cv_prog_ac_ct_CC+y}
13250 then :
13251 printf %s "(cached) " >&6
13252 else $as_nop
13253 if test -n "$ac_ct_CC"; then
13254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13255 else
13256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13257 for as_dir in $PATH
13258 do
13259 IFS=$as_save_IFS
13260 case $as_dir in #(((
13261 '') as_dir=./ ;;
13262 */) ;;
13263 *) as_dir=$as_dir/ ;;
13264 esac
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13267 ac_cv_prog_ac_ct_CC="clang"
13268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13269 break 2
13270 fi
13271 done
13272 done
13273 IFS=$as_save_IFS
13274
13275 fi
13276 fi
13277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13278 if test -n "$ac_ct_CC"; then
13279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13280 printf "%s\n" "$ac_ct_CC" >&6; }
13281 else
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 printf "%s\n" "no" >&6; }
13284 fi
13285
13286 if test "x$ac_ct_CC" = x; then
13287 CC=""
13288 else
13289 case $cross_compiling:$ac_tool_warned in
13290 yes:)
13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13292 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13293 ac_tool_warned=yes ;;
13294 esac
13295 CC=$ac_ct_CC
13296 fi
13297 else
13298 CC="$ac_cv_prog_CC"
13299 fi
13300
13301 fi
13302
13303
13304 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13305 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13306 as_fn_error $? "no acceptable C compiler found in \$PATH
13307 See \`config.log' for more details" "$LINENO" 5; }
13308
13309 # Provide some information about the compiler.
13310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13311 set X $ac_compile
13312 ac_compiler=$2
13313 for ac_option in --version -v -V -qversion -version; do
13314 { { ac_try="$ac_compiler $ac_option >&5"
13315 case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318 esac
13319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13320 printf "%s\n" "$ac_try_echo"; } >&5
13321 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13322 ac_status=$?
13323 if test -s conftest.err; then
13324 sed '10a\
13325 ... rest of stderr output deleted ...
13326 10q' conftest.err >conftest.er1
13327 cat conftest.er1 >&5
13328 fi
13329 rm -f conftest.er1 conftest.err
13330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13331 test $ac_status = 0; }
13332 done
13333
13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13335 printf %s "checking whether the compiler supports GNU C... " >&6; }
13336 if test ${ac_cv_c_compiler_gnu+y}
13337 then :
13338 printf %s "(cached) " >&6
13339 else $as_nop
13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13342
13343 int
13344 main (void)
13345 {
13346 #ifndef __GNUC__
13347 choke me
13348 #endif
13349
13350 ;
13351 return 0;
13352 }
13353 _ACEOF
13354 if ac_fn_c_try_compile "$LINENO"
13355 then :
13356 ac_compiler_gnu=yes
13357 else $as_nop
13358 ac_compiler_gnu=no
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13362
13363 fi
13364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13365 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13367
13368 if test $ac_compiler_gnu = yes; then
13369 GCC=yes
13370 else
13371 GCC=
13372 fi
13373 ac_test_CFLAGS=${CFLAGS+y}
13374 ac_save_CFLAGS=$CFLAGS
13375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13376 printf %s "checking whether $CC accepts -g... " >&6; }
13377 if test ${ac_cv_prog_cc_g+y}
13378 then :
13379 printf %s "(cached) " >&6
13380 else $as_nop
13381 ac_save_c_werror_flag=$ac_c_werror_flag
13382 ac_c_werror_flag=yes
13383 ac_cv_prog_cc_g=no
13384 CFLAGS="-g"
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387
13388 int
13389 main (void)
13390 {
13391
13392 ;
13393 return 0;
13394 }
13395 _ACEOF
13396 if ac_fn_c_try_compile "$LINENO"
13397 then :
13398 ac_cv_prog_cc_g=yes
13399 else $as_nop
13400 CFLAGS=""
13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13403
13404 int
13405 main (void)
13406 {
13407
13408 ;
13409 return 0;
13410 }
13411 _ACEOF
13412 if ac_fn_c_try_compile "$LINENO"
13413 then :
13414
13415 else $as_nop
13416 ac_c_werror_flag=$ac_save_c_werror_flag
13417 CFLAGS="-g"
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h. */
13420
13421 int
13422 main (void)
13423 {
13424
13425 ;
13426 return 0;
13427 }
13428 _ACEOF
13429 if ac_fn_c_try_compile "$LINENO"
13430 then :
13431 ac_cv_prog_cc_g=yes
13432 fi
13433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13434 fi
13435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13436 fi
13437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13438 ac_c_werror_flag=$ac_save_c_werror_flag
13439 fi
13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13441 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13442 if test $ac_test_CFLAGS; then
13443 CFLAGS=$ac_save_CFLAGS
13444 elif test $ac_cv_prog_cc_g = yes; then
13445 if test "$GCC" = yes; then
13446 CFLAGS="-g -O2"
13447 else
13448 CFLAGS="-g"
13449 fi
13450 else
13451 if test "$GCC" = yes; then
13452 CFLAGS="-O2"
13453 else
13454 CFLAGS=
13455 fi
13456 fi
13457 ac_prog_cc_stdc=no
13458 if test x$ac_prog_cc_stdc = xno
13459 then :
13460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13461 printf %s "checking for $CC option to enable C11 features... " >&6; }
13462 if test ${ac_cv_prog_cc_c11+y}
13463 then :
13464 printf %s "(cached) " >&6
13465 else $as_nop
13466 ac_cv_prog_cc_c11=no
13467 ac_save_CC=$CC
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13470 $ac_c_conftest_c11_program
13471 _ACEOF
13472 for ac_arg in '' -std=gnu11
13473 do
13474 CC="$ac_save_CC $ac_arg"
13475 if ac_fn_c_try_compile "$LINENO"
13476 then :
13477 ac_cv_prog_cc_c11=$ac_arg
13478 fi
13479 rm -f core conftest.err conftest.$ac_objext conftest.beam
13480 test "x$ac_cv_prog_cc_c11" != "xno" && break
13481 done
13482 rm -f conftest.$ac_ext
13483 CC=$ac_save_CC
13484 fi
13485
13486 if test "x$ac_cv_prog_cc_c11" = xno
13487 then :
13488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13489 printf "%s\n" "unsupported" >&6; }
13490 else $as_nop
13491 if test "x$ac_cv_prog_cc_c11" = x
13492 then :
13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13494 printf "%s\n" "none needed" >&6; }
13495 else $as_nop
13496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13497 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13498 CC="$CC $ac_cv_prog_cc_c11"
13499 fi
13500 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13501 ac_prog_cc_stdc=c11
13502 fi
13503 fi
13504 if test x$ac_prog_cc_stdc = xno
13505 then :
13506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13507 printf %s "checking for $CC option to enable C99 features... " >&6; }
13508 if test ${ac_cv_prog_cc_c99+y}
13509 then :
13510 printf %s "(cached) " >&6
13511 else $as_nop
13512 ac_cv_prog_cc_c99=no
13513 ac_save_CC=$CC
13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13516 $ac_c_conftest_c99_program
13517 _ACEOF
13518 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13519 do
13520 CC="$ac_save_CC $ac_arg"
13521 if ac_fn_c_try_compile "$LINENO"
13522 then :
13523 ac_cv_prog_cc_c99=$ac_arg
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext conftest.beam
13526 test "x$ac_cv_prog_cc_c99" != "xno" && break
13527 done
13528 rm -f conftest.$ac_ext
13529 CC=$ac_save_CC
13530 fi
13531
13532 if test "x$ac_cv_prog_cc_c99" = xno
13533 then :
13534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13535 printf "%s\n" "unsupported" >&6; }
13536 else $as_nop
13537 if test "x$ac_cv_prog_cc_c99" = x
13538 then :
13539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13540 printf "%s\n" "none needed" >&6; }
13541 else $as_nop
13542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13543 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13544 CC="$CC $ac_cv_prog_cc_c99"
13545 fi
13546 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13547 ac_prog_cc_stdc=c99
13548 fi
13549 fi
13550 if test x$ac_prog_cc_stdc = xno
13551 then :
13552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13553 printf %s "checking for $CC option to enable C89 features... " >&6; }
13554 if test ${ac_cv_prog_cc_c89+y}
13555 then :
13556 printf %s "(cached) " >&6
13557 else $as_nop
13558 ac_cv_prog_cc_c89=no
13559 ac_save_CC=$CC
13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13562 $ac_c_conftest_c89_program
13563 _ACEOF
13564 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13565 do
13566 CC="$ac_save_CC $ac_arg"
13567 if ac_fn_c_try_compile "$LINENO"
13568 then :
13569 ac_cv_prog_cc_c89=$ac_arg
13570 fi
13571 rm -f core conftest.err conftest.$ac_objext conftest.beam
13572 test "x$ac_cv_prog_cc_c89" != "xno" && break
13573 done
13574 rm -f conftest.$ac_ext
13575 CC=$ac_save_CC
13576 fi
13577
13578 if test "x$ac_cv_prog_cc_c89" = xno
13579 then :
13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13581 printf "%s\n" "unsupported" >&6; }
13582 else $as_nop
13583 if test "x$ac_cv_prog_cc_c89" = x
13584 then :
13585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13586 printf "%s\n" "none needed" >&6; }
13587 else $as_nop
13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13589 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13590 CC="$CC $ac_cv_prog_cc_c89"
13591 fi
13592 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13593 ac_prog_cc_stdc=c89
13594 fi
13595 fi
13596
13597 ac_ext=c
13598 ac_cpp='$CPP $CPPFLAGS'
13599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13602
13603
13604 ac_ext=c
13605 ac_cpp='$CPP $CPPFLAGS'
13606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13610 printf %s "checking whether $CC understands -c and -o together... " >&6; }
13611 if test ${am_cv_prog_cc_c_o+y}
13612 then :
13613 printf %s "(cached) " >&6
13614 else $as_nop
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13617
13618 int
13619 main (void)
13620 {
13621
13622 ;
13623 return 0;
13624 }
13625 _ACEOF
13626 # Make sure it works both with $CC and with simple cc.
13627 # Following AC_PROG_CC_C_O, we do the test twice because some
13628 # compilers refuse to overwrite an existing .o file with -o,
13629 # though they will create one.
13630 am_cv_prog_cc_c_o=yes
13631 for am_i in 1 2; do
13632 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13633 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } \
13637 && test -f conftest2.$ac_objext; then
13638 : OK
13639 else
13640 am_cv_prog_cc_c_o=no
13641 break
13642 fi
13643 done
13644 rm -f core conftest*
13645 unset am_i
13646 fi
13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13648 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13649 if test "$am_cv_prog_cc_c_o" != yes; then
13650 # Losing compiler, so override with the script.
13651 # FIXME: It is wrong to rewrite CC.
13652 # But if we don't then we get into trouble of one sort or another.
13653 # A longer-term fix would be to have automake use am__CC in this case,
13654 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13655 CC="$am_aux_dir/compile $CC"
13656 fi
13657 ac_ext=c
13658 ac_cpp='$CPP $CPPFLAGS'
13659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13662
13663
13664 depcc="$CC" am_compiler_list=
13665
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13667 printf %s "checking dependency style of $depcc... " >&6; }
13668 if test ${am_cv_CC_dependencies_compiler_type+y}
13669 then :
13670 printf %s "(cached) " >&6
13671 else $as_nop
13672 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13673 # We make a subdir and do the tests there. Otherwise we can end up
13674 # making bogus files that we don't know about and never remove. For
13675 # instance it was reported that on HP-UX the gcc test will end up
13676 # making a dummy file named 'D' -- because '-MD' means "put the output
13677 # in D".
13678 rm -rf conftest.dir
13679 mkdir conftest.dir
13680 # Copy depcomp to subdir because otherwise we won't find it if we're
13681 # using a relative directory.
13682 cp "$am_depcomp" conftest.dir
13683 cd conftest.dir
13684 # We will build objects and dependencies in a subdirectory because
13685 # it helps to detect inapplicable dependency modes. For instance
13686 # both Tru64's cc and ICC support -MD to output dependencies as a
13687 # side effect of compilation, but ICC will put the dependencies in
13688 # the current directory while Tru64 will put them in the object
13689 # directory.
13690 mkdir sub
13691
13692 am_cv_CC_dependencies_compiler_type=none
13693 if test "$am_compiler_list" = ""; then
13694 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13695 fi
13696 am__universal=false
13697 case " $depcc " in #(
13698 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13699 esac
13700
13701 for depmode in $am_compiler_list; do
13702 # Setup a source with many dependencies, because some compilers
13703 # like to wrap large dependency lists on column 80 (with \), and
13704 # we should not choose a depcomp mode which is confused by this.
13705 #
13706 # We need to recreate these files for each test, as the compiler may
13707 # overwrite some of them when testing with obscure command lines.
13708 # This happens at least with the AIX C compiler.
13709 : > sub/conftest.c
13710 for i in 1 2 3 4 5 6; do
13711 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13712 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13713 # Solaris 10 /bin/sh.
13714 echo '/* dummy */' > sub/conftst$i.h
13715 done
13716 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13717
13718 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13719 # mode. It turns out that the SunPro C++ compiler does not properly
13720 # handle '-M -o', and we need to detect this. Also, some Intel
13721 # versions had trouble with output in subdirs.
13722 am__obj=sub/conftest.${OBJEXT-o}
13723 am__minus_obj="-o $am__obj"
13724 case $depmode in
13725 gcc)
13726 # This depmode causes a compiler race in universal mode.
13727 test "$am__universal" = false || continue
13728 ;;
13729 nosideeffect)
13730 # After this tag, mechanisms are not by side-effect, so they'll
13731 # only be used when explicitly requested.
13732 if test "x$enable_dependency_tracking" = xyes; then
13733 continue
13734 else
13735 break
13736 fi
13737 ;;
13738 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13739 # This compiler won't grok '-c -o', but also, the minuso test has
13740 # not run yet. These depmodes are late enough in the game, and
13741 # so weak that their functioning should not be impacted.
13742 am__obj=conftest.${OBJEXT-o}
13743 am__minus_obj=
13744 ;;
13745 none) break ;;
13746 esac
13747 if depmode=$depmode \
13748 source=sub/conftest.c object=$am__obj \
13749 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13750 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13751 >/dev/null 2>conftest.err &&
13752 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13753 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13754 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13756 # icc doesn't choke on unknown options, it will just issue warnings
13757 # or remarks (even with -Werror). So we grep stderr for any message
13758 # that says an option was ignored or not supported.
13759 # When given -MP, icc 7.0 and 7.1 complain thusly:
13760 # icc: Command line warning: ignoring option '-M'; no argument required
13761 # The diagnosis changed in icc 8.0:
13762 # icc: Command line remark: option '-MP' not supported
13763 if (grep 'ignoring option' conftest.err ||
13764 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13765 am_cv_CC_dependencies_compiler_type=$depmode
13766 break
13767 fi
13768 fi
13769 done
13770
13771 cd ..
13772 rm -rf conftest.dir
13773 else
13774 am_cv_CC_dependencies_compiler_type=none
13775 fi
13776
13777 fi
13778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13779 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
13780 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13781
13782 if
13783 test "x$enable_dependency_tracking" != xno \
13784 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13785 am__fastdepCC_TRUE=
13786 am__fastdepCC_FALSE='#'
13787 else
13788 am__fastdepCC_TRUE='#'
13789 am__fastdepCC_FALSE=
13790 fi
13791
13792
13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13794 printf %s "checking whether ln -s works... " >&6; }
13795 LN_S=$as_ln_s
13796 if test "$LN_S" = "ln -s"; then
13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13798 printf "%s\n" "yes" >&6; }
13799 else
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13801 printf "%s\n" "no, using $LN_S" >&6; }
13802 fi
13803
13804
13805
13806
13807 # Configuration.
13808 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
13809 if test "x$ac_cv_header_termios_h" = xyes
13810 then :
13811 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
13812
13813 fi
13814 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13815 if test "x$ac_cv_header_sys_ioctl_h" = xyes
13816 then :
13817 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
13818
13819 fi
13820 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
13821 if test "x$ac_cv_header_mntent_h" = xyes
13822 then :
13823 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
13824
13825 fi
13826 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13827 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
13828 then :
13829 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
13830
13831 fi
13832
13833 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
13834 if test "x$ac_cv_func_strstr" = xyes
13835 then :
13836 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
13837
13838 fi
13839 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
13840 if test "x$ac_cv_func_getopt" = xyes
13841 then :
13842 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
13843
13844 fi
13845 ac_fn_c_check_func "$LINENO" "getmntent" "ac_cv_func_getmntent"
13846 if test "x$ac_cv_func_getmntent" = xyes
13847 then :
13848 printf "%s\n" "#define HAVE_GETMNTENT 1" >>confdefs.h
13849
13850 fi
13851 ac_fn_c_check_func "$LINENO" "getmntent_r" "ac_cv_func_getmntent_r"
13852 if test "x$ac_cv_func_getmntent_r" = xyes
13853 then :
13854 printf "%s\n" "#define HAVE_GETMNTENT_R 1" >>confdefs.h
13855
13856 fi
13857
13858
13859 # Check for uint[8,16,32]_t
13860 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13861 case $ac_cv_c_uint8_t in #(
13862 no|yes) ;; #(
13863 *)
13864
13865 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
13866
13867
13868 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
13869 ;;
13870 esac
13871
13872 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13873 case $ac_cv_c_uint16_t in #(
13874 no|yes) ;; #(
13875 *)
13876
13877
13878 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
13879 ;;
13880 esac
13881
13882 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13883 case $ac_cv_c_uint32_t in #(
13884 no|yes) ;; #(
13885 *)
13886
13887 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
13888
13889
13890 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
13891 ;;
13892 esac
13893
13894
13895 # Check for pkg-config first, warn if it's not installed
13896
13897
13898
13899
13900
13901
13902
13903 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13904 if test -n "$ac_tool_prefix"; then
13905 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13906 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13908 printf %s "checking for $ac_word... " >&6; }
13909 if test ${ac_cv_path_PKG_CONFIG+y}
13910 then :
13911 printf %s "(cached) " >&6
13912 else $as_nop
13913 case $PKG_CONFIG in
13914 [\\/]* | ?:[\\/]*)
13915 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13916 ;;
13917 *)
13918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13919 for as_dir in $PATH
13920 do
13921 IFS=$as_save_IFS
13922 case $as_dir in #(((
13923 '') as_dir=./ ;;
13924 */) ;;
13925 *) as_dir=$as_dir/ ;;
13926 esac
13927 for ac_exec_ext in '' $ac_executable_extensions; do
13928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13929 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13931 break 2
13932 fi
13933 done
13934 done
13935 IFS=$as_save_IFS
13936
13937 ;;
13938 esac
13939 fi
13940 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13941 if test -n "$PKG_CONFIG"; then
13942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13943 printf "%s\n" "$PKG_CONFIG" >&6; }
13944 else
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13946 printf "%s\n" "no" >&6; }
13947 fi
13948
13949
13950 fi
13951 if test -z "$ac_cv_path_PKG_CONFIG"; then
13952 ac_pt_PKG_CONFIG=$PKG_CONFIG
13953 # Extract the first word of "pkg-config", so it can be a program name with args.
13954 set dummy pkg-config; ac_word=$2
13955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13956 printf %s "checking for $ac_word... " >&6; }
13957 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13958 then :
13959 printf %s "(cached) " >&6
13960 else $as_nop
13961 case $ac_pt_PKG_CONFIG in
13962 [\\/]* | ?:[\\/]*)
13963 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13964 ;;
13965 *)
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13968 do
13969 IFS=$as_save_IFS
13970 case $as_dir in #(((
13971 '') as_dir=./ ;;
13972 */) ;;
13973 *) as_dir=$as_dir/ ;;
13974 esac
13975 for ac_exec_ext in '' $ac_executable_extensions; do
13976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13977 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13979 break 2
13980 fi
13981 done
13982 done
13983 IFS=$as_save_IFS
13984
13985 ;;
13986 esac
13987 fi
13988 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13989 if test -n "$ac_pt_PKG_CONFIG"; then
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13991 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13992 else
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994 printf "%s\n" "no" >&6; }
13995 fi
13996
13997 if test "x$ac_pt_PKG_CONFIG" = x; then
13998 PKG_CONFIG=""
13999 else
14000 case $cross_compiling:$ac_tool_warned in
14001 yes:)
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14003 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14004 ac_tool_warned=yes ;;
14005 esac
14006 PKG_CONFIG=$ac_pt_PKG_CONFIG
14007 fi
14008 else
14009 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14010 fi
14011
14012 fi
14013 if test -n "$PKG_CONFIG"; then
14014 _pkg_min_version=0.9.0
14015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14016 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14017 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14019 printf "%s\n" "yes" >&6; }
14020 else
14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 printf "%s\n" "no" >&6; }
14023 PKG_CONFIG=""
14024 fi
14025 fi
14026
14027 # Check for required libraries
14028
14029 pkg_failed=no
14030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuev >= 2.2.0" >&5
14031 printf %s "checking for libuev >= 2.2.0... " >&6; }
14032
14033 if test -n "$uev_CFLAGS"; then
14034 pkg_cv_uev_CFLAGS="$uev_CFLAGS"
14035 elif test -n "$PKG_CONFIG"; then
14036 if test -n "$PKG_CONFIG" && \
14037 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuev >= 2.2.0\""; } >&5
14038 ($PKG_CONFIG --exists --print-errors "libuev >= 2.2.0") 2>&5
14039 ac_status=$?
14040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14041 test $ac_status = 0; }; then
14042 pkg_cv_uev_CFLAGS=`$PKG_CONFIG --cflags "libuev >= 2.2.0" 2>/dev/null`
14043 test "x$?" != "x0" && pkg_failed=yes
14044 else
14045 pkg_failed=yes
14046 fi
14047 else
14048 pkg_failed=untried
14049 fi
14050 if test -n "$uev_LIBS"; then
14051 pkg_cv_uev_LIBS="$uev_LIBS"
14052 elif test -n "$PKG_CONFIG"; then
14053 if test -n "$PKG_CONFIG" && \
14054 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuev >= 2.2.0\""; } >&5
14055 ($PKG_CONFIG --exists --print-errors "libuev >= 2.2.0") 2>&5
14056 ac_status=$?
14057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14058 test $ac_status = 0; }; then
14059 pkg_cv_uev_LIBS=`$PKG_CONFIG --libs "libuev >= 2.2.0" 2>/dev/null`
14060 test "x$?" != "x0" && pkg_failed=yes
14061 else
14062 pkg_failed=yes
14063 fi
14064 else
14065 pkg_failed=untried
14066 fi
14067
14068
14069
14070 if test $pkg_failed = yes; then
14071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 printf "%s\n" "no" >&6; }
14073
14074 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14075 _pkg_short_errors_supported=yes
14076 else
14077 _pkg_short_errors_supported=no
14078 fi
14079 if test $_pkg_short_errors_supported = yes; then
14080 uev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuev >= 2.2.0" 2>&1`
14081 else
14082 uev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuev >= 2.2.0" 2>&1`
14083 fi
14084 # Put the nasty error message in config.log where it belongs
14085 echo "$uev_PKG_ERRORS" >&5
14086
14087 as_fn_error $? "Package requirements (libuev >= 2.2.0) were not met:
14088
14089 $uev_PKG_ERRORS
14090
14091 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14092 installed software in a non-standard prefix.
14093
14094 Alternatively, you may set the environment variables uev_CFLAGS
14095 and uev_LIBS to avoid the need to call pkg-config.
14096 See the pkg-config man page for more details." "$LINENO" 5
14097 elif test $pkg_failed = untried; then
14098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099 printf "%s\n" "no" >&6; }
14100 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14101 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14102 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14103 is in your PATH or set the PKG_CONFIG environment variable to the full
14104 path to pkg-config.
14105
14106 Alternatively, you may set the environment variables uev_CFLAGS
14107 and uev_LIBS to avoid the need to call pkg-config.
14108 See the pkg-config man page for more details.
14109
14110 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14111 See \`config.log' for more details" "$LINENO" 5; }
14112 else
14113 uev_CFLAGS=$pkg_cv_uev_CFLAGS
14114 uev_LIBS=$pkg_cv_uev_LIBS
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14116 printf "%s\n" "yes" >&6; }
14117
14118 fi
14119
14120 pkg_failed=no
14121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libite >= 2.2.0" >&5
14122 printf %s "checking for libite >= 2.2.0... " >&6; }
14123
14124 if test -n "$lite_CFLAGS"; then
14125 pkg_cv_lite_CFLAGS="$lite_CFLAGS"
14126 elif test -n "$PKG_CONFIG"; then
14127 if test -n "$PKG_CONFIG" && \
14128 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libite >= 2.2.0\""; } >&5
14129 ($PKG_CONFIG --exists --print-errors "libite >= 2.2.0") 2>&5
14130 ac_status=$?
14131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14132 test $ac_status = 0; }; then
14133 pkg_cv_lite_CFLAGS=`$PKG_CONFIG --cflags "libite >= 2.2.0" 2>/dev/null`
14134 test "x$?" != "x0" && pkg_failed=yes
14135 else
14136 pkg_failed=yes
14137 fi
14138 else
14139 pkg_failed=untried
14140 fi
14141 if test -n "$lite_LIBS"; then
14142 pkg_cv_lite_LIBS="$lite_LIBS"
14143 elif test -n "$PKG_CONFIG"; then
14144 if test -n "$PKG_CONFIG" && \
14145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libite >= 2.2.0\""; } >&5
14146 ($PKG_CONFIG --exists --print-errors "libite >= 2.2.0") 2>&5
14147 ac_status=$?
14148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14149 test $ac_status = 0; }; then
14150 pkg_cv_lite_LIBS=`$PKG_CONFIG --libs "libite >= 2.2.0" 2>/dev/null`
14151 test "x$?" != "x0" && pkg_failed=yes
14152 else
14153 pkg_failed=yes
14154 fi
14155 else
14156 pkg_failed=untried
14157 fi
14158
14159
14160
14161 if test $pkg_failed = yes; then
14162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14163 printf "%s\n" "no" >&6; }
14164
14165 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14166 _pkg_short_errors_supported=yes
14167 else
14168 _pkg_short_errors_supported=no
14169 fi
14170 if test $_pkg_short_errors_supported = yes; then
14171 lite_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libite >= 2.2.0" 2>&1`
14172 else
14173 lite_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libite >= 2.2.0" 2>&1`
14174 fi
14175 # Put the nasty error message in config.log where it belongs
14176 echo "$lite_PKG_ERRORS" >&5
14177
14178 as_fn_error $? "Package requirements (libite >= 2.2.0) were not met:
14179
14180 $lite_PKG_ERRORS
14181
14182 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14183 installed software in a non-standard prefix.
14184
14185 Alternatively, you may set the environment variables lite_CFLAGS
14186 and lite_LIBS to avoid the need to call pkg-config.
14187 See the pkg-config man page for more details." "$LINENO" 5
14188 elif test $pkg_failed = untried; then
14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14190 printf "%s\n" "no" >&6; }
14191 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14192 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14193 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14194 is in your PATH or set the PKG_CONFIG environment variable to the full
14195 path to pkg-config.
14196
14197 Alternatively, you may set the environment variables lite_CFLAGS
14198 and lite_LIBS to avoid the need to call pkg-config.
14199 See the pkg-config man page for more details.
14200
14201 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14202 See \`config.log' for more details" "$LINENO" 5; }
14203 else
14204 lite_CFLAGS=$pkg_cv_lite_CFLAGS
14205 lite_LIBS=$pkg_cv_lite_LIBS
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14207 printf "%s\n" "yes" >&6; }
14208
14209 fi
14210
14211 # Check for configured Finit features
14212 # Check whether --enable-auto_reload was given.
14213 if test ${enable_auto_reload+y}
14214 then :
14215 enableval=$enable_auto_reload;
14216 else $as_nop
14217
14218 enable_auto_reload=no
14219 fi
14220
14221
14222 # Check whether --enable-kernel_cmdline was given.
14223 if test ${enable_kernel_cmdline+y}
14224 then :
14225 enableval=$enable_kernel_cmdline;
14226 else $as_nop
14227
14228 enable_kernel_cmdline=no
14229 fi
14230
14231
14232 # Check whether --enable-fastboot was given.
14233 if test ${enable_fastboot+y}
14234 then :
14235 enableval=$enable_fastboot;
14236 else $as_nop
14237
14238 enable_fastboot=no
14239 fi
14240
14241
14242 # Check whether --enable-fsckfix was given.
14243 if test ${enable_fsckfix+y}
14244 then :
14245 enableval=$enable_fsckfix;
14246 else $as_nop
14247
14248 enable_fsckfix=no
14249 fi
14250
14251
14252 # Check whether --enable-cgroup was given.
14253 if test ${enable_cgroup+y}
14254 then :
14255 enableval=$enable_cgroup;
14256 else $as_nop
14257
14258 enable_cgroup=yes
14259 fi
14260
14261
14262 # Check whether --enable-redirect was given.
14263 if test ${enable_redirect+y}
14264 then :
14265 enableval=$enable_redirect;
14266 else $as_nop
14267
14268 enable_redirect=yes
14269 fi
14270
14271
14272 # Check whether --enable-kernel_logging was given.
14273 if test ${enable_kernel_logging+y}
14274 then :
14275 enableval=$enable_kernel_logging;
14276 else $as_nop
14277
14278 enable_kernel_logging=yes
14279 fi
14280
14281
14282 # Check whether --enable-logrotate was given.
14283 if test ${enable_logrotate+y}
14284 then :
14285 enableval=$enable_logrotate;
14286 else $as_nop
14287
14288 enable_logrotate=yes
14289 fi
14290
14291
14292 # Check whether --enable-doc was given.
14293 if test ${enable_doc+y}
14294 then :
14295 enableval=$enable_doc;
14296 else $as_nop
14297
14298 enable_doc=yes
14299 fi
14300
14301
14302 # Check whether --enable-contrib was given.
14303 if test ${enable_contrib+y}
14304 then :
14305 enableval=$enable_contrib;
14306 else $as_nop
14307
14308 enable_contrib=yes
14309 fi
14310
14311
14312 # Check whether --enable-rescue was given.
14313 if test ${enable_rescue+y}
14314 then :
14315 enableval=$enable_rescue;
14316 else $as_nop
14317 enable_rescue=yes
14318 fi
14319
14320
14321 # Check for extra plugins to enable
14322 # Check whether --enable-all_plugins was given.
14323 if test ${enable_all_plugins+y}
14324 then :
14325 enableval=$enable_all_plugins; enable_all_plugins=$enableval
14326 else $as_nop
14327 enable_all_plugins=auto
14328 fi
14329
14330
14331
14332 # Check whether --enable-alsa-utils-plugin was given.
14333 if test ${enable_alsa_utils_plugin+y}
14334 then :
14335 enableval=$enable_alsa_utils_plugin;
14336 if test "x$enableval" = "xyes"; then
14337 enable_plugin="yes"
14338 else
14339 enable_plugin="no"
14340 fi
14341 else $as_nop
14342
14343 if test "x$enable_all_plugins" = "xauto"; then
14344 if test "xno" = "xyes"; then
14345 enable_plugin="yes"
14346 else
14347 enable_plugin="no"
14348 fi
14349 else
14350 enable_plugin="$enable_all_plugins"
14351 fi
14352 fi
14353
14354 if test "x$enable_plugin" = "xyes"; then
14355
14356 printf "%s\n" "#define HAVE_ALSA_UTILS_PLUGIN 1" >>confdefs.h
14357
14358 plugins="alsa-utils $plugins"
14359 fi
14360
14361 if test "x$enable_plugin" = "xyes"; then
14362 BUILD_ALSA_UTILS_PLUGIN_TRUE=
14363 BUILD_ALSA_UTILS_PLUGIN_FALSE='#'
14364 else
14365 BUILD_ALSA_UTILS_PLUGIN_TRUE='#'
14366 BUILD_ALSA_UTILS_PLUGIN_FALSE=
14367 fi
14368
14369
14370
14371 # Check whether --enable-dbus-plugin was given.
14372 if test ${enable_dbus_plugin+y}
14373 then :
14374 enableval=$enable_dbus_plugin;
14375 if test "x$enableval" = "xyes"; then
14376 enable_plugin="yes"
14377 else
14378 enable_plugin="no"
14379 fi
14380 else $as_nop
14381
14382 if test "x$enable_all_plugins" = "xauto"; then
14383 if test "xno" = "xyes"; then
14384 enable_plugin="yes"
14385 else
14386 enable_plugin="no"
14387 fi
14388 else
14389 enable_plugin="$enable_all_plugins"
14390 fi
14391 fi
14392
14393 if test "x$enable_plugin" = "xyes"; then
14394
14395 printf "%s\n" "#define HAVE_DBUS_PLUGIN 1" >>confdefs.h
14396
14397 plugins="dbus $plugins"
14398 fi
14399
14400 if test "x$enable_plugin" = "xyes"; then
14401 BUILD_DBUS_PLUGIN_TRUE=
14402 BUILD_DBUS_PLUGIN_FALSE='#'
14403 else
14404 BUILD_DBUS_PLUGIN_TRUE='#'
14405 BUILD_DBUS_PLUGIN_FALSE=
14406 fi
14407
14408
14409
14410 # Check whether --enable-modules-load-plugin was given.
14411 if test ${enable_modules_load_plugin+y}
14412 then :
14413 enableval=$enable_modules_load_plugin;
14414 if test "x$enableval" = "xyes"; then
14415 enable_plugin="yes"
14416 else
14417 enable_plugin="no"
14418 fi
14419 else $as_nop
14420
14421 if test "x$enable_all_plugins" = "xauto"; then
14422 if test "xno" = "xyes"; then
14423 enable_plugin="yes"
14424 else
14425 enable_plugin="no"
14426 fi
14427 else
14428 enable_plugin="$enable_all_plugins"
14429 fi
14430 fi
14431
14432 if test "x$enable_plugin" = "xyes"; then
14433
14434 printf "%s\n" "#define HAVE_MODULES_LOAD_PLUGIN 1" >>confdefs.h
14435
14436 plugins="modules-load $plugins"
14437 fi
14438
14439 if test "x$enable_plugin" = "xyes"; then
14440 BUILD_MODULES_LOAD_PLUGIN_TRUE=
14441 BUILD_MODULES_LOAD_PLUGIN_FALSE='#'
14442 else
14443 BUILD_MODULES_LOAD_PLUGIN_TRUE='#'
14444 BUILD_MODULES_LOAD_PLUGIN_FALSE=
14445 fi
14446
14447
14448
14449 # Check whether --enable-modprobe-plugin was given.
14450 if test ${enable_modprobe_plugin+y}
14451 then :
14452 enableval=$enable_modprobe_plugin;
14453 if test "x$enableval" = "xyes"; then
14454 enable_plugin="yes"
14455 else
14456 enable_plugin="no"
14457 fi
14458 else $as_nop
14459
14460 if test "x$enable_all_plugins" = "xauto"; then
14461 if test "xno" = "xyes"; then
14462 enable_plugin="yes"
14463 else
14464 enable_plugin="no"
14465 fi
14466 else
14467 enable_plugin="$enable_all_plugins"
14468 fi
14469 fi
14470
14471 if test "x$enable_plugin" = "xyes"; then
14472
14473 printf "%s\n" "#define HAVE_MODPROBE_PLUGIN 1" >>confdefs.h
14474
14475 plugins="modprobe $plugins"
14476 fi
14477
14478 if test "x$enable_plugin" = "xyes"; then
14479 BUILD_MODPROBE_PLUGIN_TRUE=
14480 BUILD_MODPROBE_PLUGIN_FALSE='#'
14481 else
14482 BUILD_MODPROBE_PLUGIN_TRUE='#'
14483 BUILD_MODPROBE_PLUGIN_FALSE=
14484 fi
14485
14486
14487
14488 # Check whether --enable-resolvconf-plugin was given.
14489 if test ${enable_resolvconf_plugin+y}
14490 then :
14491 enableval=$enable_resolvconf_plugin;
14492 if test "x$enableval" = "xyes"; then
14493 enable_plugin="yes"
14494 else
14495 enable_plugin="no"
14496 fi
14497 else $as_nop
14498
14499 if test "x$enable_all_plugins" = "xauto"; then
14500 if test "xno" = "xyes"; then
14501 enable_plugin="yes"
14502 else
14503 enable_plugin="no"
14504 fi
14505 else
14506 enable_plugin="$enable_all_plugins"
14507 fi
14508 fi
14509
14510 if test "x$enable_plugin" = "xyes"; then
14511
14512 printf "%s\n" "#define HAVE_RESOLVCONF_PLUGIN 1" >>confdefs.h
14513
14514 plugins="resolvconf $plugins"
14515 fi
14516
14517 if test "x$enable_plugin" = "xyes"; then
14518 BUILD_RESOLVCONF_PLUGIN_TRUE=
14519 BUILD_RESOLVCONF_PLUGIN_FALSE='#'
14520 else
14521 BUILD_RESOLVCONF_PLUGIN_TRUE='#'
14522 BUILD_RESOLVCONF_PLUGIN_FALSE=
14523 fi
14524
14525
14526
14527 # Check whether --enable-x11-common-plugin was given.
14528 if test ${enable_x11_common_plugin+y}
14529 then :
14530 enableval=$enable_x11_common_plugin;
14531 if test "x$enableval" = "xyes"; then
14532 enable_plugin="yes"
14533 else
14534 enable_plugin="no"
14535 fi
14536 else $as_nop
14537
14538 if test "x$enable_all_plugins" = "xauto"; then
14539 if test "xno" = "xyes"; then
14540 enable_plugin="yes"
14541 else
14542 enable_plugin="no"
14543 fi
14544 else
14545 enable_plugin="$enable_all_plugins"
14546 fi
14547 fi
14548
14549 if test "x$enable_plugin" = "xyes"; then
14550
14551 printf "%s\n" "#define HAVE_X11_COMMON_PLUGIN 1" >>confdefs.h
14552
14553 plugins="x11-common $plugins"
14554 fi
14555
14556 if test "x$enable_plugin" = "xyes"; then
14557 BUILD_X11_COMMON_PLUGIN_TRUE=
14558 BUILD_X11_COMMON_PLUGIN_FALSE='#'
14559 else
14560 BUILD_X11_COMMON_PLUGIN_TRUE='#'
14561 BUILD_X11_COMMON_PLUGIN_FALSE=
14562 fi
14563
14564
14565
14566 # Check whether --enable-netlink-plugin was given.
14567 if test ${enable_netlink_plugin+y}
14568 then :
14569 enableval=$enable_netlink_plugin;
14570 if test "x$enableval" = "xyes"; then
14571 enable_plugin="yes"
14572 else
14573 enable_plugin="no"
14574 fi
14575 else $as_nop
14576
14577 if test "x$enable_all_plugins" = "xauto"; then
14578 if test "xyes" = "xyes"; then
14579 enable_plugin="yes"
14580 else
14581 enable_plugin="no"
14582 fi
14583 else
14584 enable_plugin="$enable_all_plugins"
14585 fi
14586 fi
14587
14588 if test "x$enable_plugin" = "xyes"; then
14589
14590 printf "%s\n" "#define HAVE_NETLINK_PLUGIN 1" >>confdefs.h
14591
14592 plugins="netlink $plugins"
14593 fi
14594
14595 if test "x$enable_plugin" = "xyes"; then
14596 BUILD_NETLINK_PLUGIN_TRUE=
14597 BUILD_NETLINK_PLUGIN_FALSE='#'
14598 else
14599 BUILD_NETLINK_PLUGIN_TRUE='#'
14600 BUILD_NETLINK_PLUGIN_FALSE=
14601 fi
14602
14603
14604
14605 # Check whether --enable-hook-scripts-plugin was given.
14606 if test ${enable_hook_scripts_plugin+y}
14607 then :
14608 enableval=$enable_hook_scripts_plugin;
14609 if test "x$enableval" = "xyes"; then
14610 enable_plugin="yes"
14611 else
14612 enable_plugin="no"
14613 fi
14614 else $as_nop
14615
14616 if test "x$enable_all_plugins" = "xauto"; then
14617 if test "xno" = "xyes"; then
14618 enable_plugin="yes"
14619 else
14620 enable_plugin="no"
14621 fi
14622 else
14623 enable_plugin="$enable_all_plugins"
14624 fi
14625 fi
14626
14627 if test "x$enable_plugin" = "xyes"; then
14628
14629 printf "%s\n" "#define HAVE_HOOK_SCRIPTS_PLUGIN 1" >>confdefs.h
14630
14631 plugins="hook-scripts $plugins"
14632 fi
14633
14634 if test "x$enable_plugin" = "xyes"; then
14635 BUILD_HOOK_SCRIPTS_PLUGIN_TRUE=
14636 BUILD_HOOK_SCRIPTS_PLUGIN_FALSE='#'
14637 else
14638 BUILD_HOOK_SCRIPTS_PLUGIN_TRUE='#'
14639 BUILD_HOOK_SCRIPTS_PLUGIN_FALSE=
14640 fi
14641
14642
14643
14644 # Check whether --enable-hotplug-plugin was given.
14645 if test ${enable_hotplug_plugin+y}
14646 then :
14647 enableval=$enable_hotplug_plugin;
14648 if test "x$enableval" = "xyes"; then
14649 enable_plugin="yes"
14650 else
14651 enable_plugin="no"
14652 fi
14653 else $as_nop
14654
14655 if test "x$enable_all_plugins" = "xauto"; then
14656 if test "xyes" = "xyes"; then
14657 enable_plugin="yes"
14658 else
14659 enable_plugin="no"
14660 fi
14661 else
14662 enable_plugin="$enable_all_plugins"
14663 fi
14664 fi
14665
14666 if test "x$enable_plugin" = "xyes"; then
14667
14668 printf "%s\n" "#define HAVE_HOTPLUG_PLUGIN 1" >>confdefs.h
14669
14670 plugins="hotplug $plugins"
14671 fi
14672
14673 if test "x$enable_plugin" = "xyes"; then
14674 BUILD_HOTPLUG_PLUGIN_TRUE=
14675 BUILD_HOTPLUG_PLUGIN_FALSE='#'
14676 else
14677 BUILD_HOTPLUG_PLUGIN_TRUE='#'
14678 BUILD_HOTPLUG_PLUGIN_FALSE=
14679 fi
14680
14681
14682
14683 # Check whether --enable-rtc-plugin was given.
14684 if test ${enable_rtc_plugin+y}
14685 then :
14686 enableval=$enable_rtc_plugin;
14687 if test "x$enableval" = "xyes"; then
14688 enable_plugin="yes"
14689 else
14690 enable_plugin="no"
14691 fi
14692 else $as_nop
14693
14694 if test "x$enable_all_plugins" = "xauto"; then
14695 if test "xyes" = "xyes"; then
14696 enable_plugin="yes"
14697 else
14698 enable_plugin="no"
14699 fi
14700 else
14701 enable_plugin="$enable_all_plugins"
14702 fi
14703 fi
14704
14705 if test "x$enable_plugin" = "xyes"; then
14706
14707 printf "%s\n" "#define HAVE_RTC_PLUGIN 1" >>confdefs.h
14708
14709 plugins="rtc $plugins"
14710 fi
14711
14712 if test "x$enable_plugin" = "xyes"; then
14713 BUILD_RTC_PLUGIN_TRUE=
14714 BUILD_RTC_PLUGIN_FALSE='#'
14715 else
14716 BUILD_RTC_PLUGIN_TRUE='#'
14717 BUILD_RTC_PLUGIN_FALSE=
14718 fi
14719
14720
14721
14722 # Check whether --enable-tty-plugin was given.
14723 if test ${enable_tty_plugin+y}
14724 then :
14725 enableval=$enable_tty_plugin;
14726 if test "x$enableval" = "xyes"; then
14727 enable_plugin="yes"
14728 else
14729 enable_plugin="no"
14730 fi
14731 else $as_nop
14732
14733 if test "x$enable_all_plugins" = "xauto"; then
14734 if test "xyes" = "xyes"; then
14735 enable_plugin="yes"
14736 else
14737 enable_plugin="no"
14738 fi
14739 else
14740 enable_plugin="$enable_all_plugins"
14741 fi
14742 fi
14743
14744 if test "x$enable_plugin" = "xyes"; then
14745
14746 printf "%s\n" "#define HAVE_TTY_PLUGIN 1" >>confdefs.h
14747
14748 plugins="tty $plugins"
14749 fi
14750
14751 if test "x$enable_plugin" = "xyes"; then
14752 BUILD_TTY_PLUGIN_TRUE=
14753 BUILD_TTY_PLUGIN_FALSE='#'
14754 else
14755 BUILD_TTY_PLUGIN_TRUE='#'
14756 BUILD_TTY_PLUGIN_FALSE=
14757 fi
14758
14759
14760
14761 # Check whether --enable-urandom-plugin was given.
14762 if test ${enable_urandom_plugin+y}
14763 then :
14764 enableval=$enable_urandom_plugin;
14765 if test "x$enableval" = "xyes"; then
14766 enable_plugin="yes"
14767 else
14768 enable_plugin="no"
14769 fi
14770 else $as_nop
14771
14772 if test "x$enable_all_plugins" = "xauto"; then
14773 if test "xyes" = "xyes"; then
14774 enable_plugin="yes"
14775 else
14776 enable_plugin="no"
14777 fi
14778 else
14779 enable_plugin="$enable_all_plugins"
14780 fi
14781 fi
14782
14783 if test "x$enable_plugin" = "xyes"; then
14784
14785 printf "%s\n" "#define HAVE_URANDOM_PLUGIN 1" >>confdefs.h
14786
14787 plugins="urandom $plugins"
14788 fi
14789
14790 if test "x$enable_plugin" = "xyes"; then
14791 BUILD_URANDOM_PLUGIN_TRUE=
14792 BUILD_URANDOM_PLUGIN_FALSE='#'
14793 else
14794 BUILD_URANDOM_PLUGIN_TRUE='#'
14795 BUILD_URANDOM_PLUGIN_FALSE=
14796 fi
14797
14798
14799
14800 # Check whether --enable-testserv-plugin was given.
14801 if test ${enable_testserv_plugin+y}
14802 then :
14803 enableval=$enable_testserv_plugin;
14804 if test "x$enableval" = "xyes"; then
14805 enable_plugin="yes"
14806 else
14807 enable_plugin="no"
14808 fi
14809 else $as_nop
14810
14811 if test "x$enable_all_plugins" = "xauto"; then
14812 if test "xno" = "xyes"; then
14813 enable_plugin="yes"
14814 else
14815 enable_plugin="no"
14816 fi
14817 else
14818 enable_plugin="$enable_all_plugins"
14819 fi
14820 fi
14821
14822 if test "x$enable_plugin" = "xyes"; then
14823
14824 printf "%s\n" "#define HAVE_TESTSERV_PLUGIN 1" >>confdefs.h
14825
14826 plugins="testserv $plugins"
14827 fi
14828
14829 if test "x$enable_plugin" = "xyes"; then
14830 BUILD_TESTSERV_PLUGIN_TRUE=
14831 BUILD_TESTSERV_PLUGIN_FALSE='#'
14832 else
14833 BUILD_TESTSERV_PLUGIN_TRUE='#'
14834 BUILD_TESTSERV_PLUGIN_FALSE=
14835 fi
14836
14837
14838 # Check for extra arguments or packages
14839
14840 # Check whether --with-bash-completion-dir was given.
14841 if test ${with_bash_completion_dir+y}
14842 then :
14843 withval=$with_bash_completion_dir; bash_dir=$withval
14844 else $as_nop
14845 bash_dir=yes
14846 fi
14847
14848
14849
14850 # Check whether --with-fstab was given.
14851 if test ${with_fstab+y}
14852 then :
14853 withval=$with_fstab; fstab=$withval
14854 else $as_nop
14855 fstab=yes
14856 fi
14857
14858
14859
14860 # Check whether --with-heading was given.
14861 if test ${with_heading+y}
14862 then :
14863 withval=$with_heading; heading=$withval
14864 else $as_nop
14865 heading=yes
14866 fi
14867
14868
14869
14870 # Check whether --with-config was given.
14871 if test ${with_config+y}
14872 then :
14873 withval=$with_config; conf=$withval
14874 else $as_nop
14875 conf=yes
14876 fi
14877
14878
14879
14880 # Check whether --with-rcsd was given.
14881 if test ${with_rcsd+y}
14882 then :
14883 withval=$with_rcsd; rcsd=$withval
14884 else $as_nop
14885 rcsd=yes
14886 fi
14887
14888
14889
14890 # Check whether --with-rc-local was given.
14891 if test ${with_rc_local+y}
14892 then :
14893 withval=$with_rc_local; rclocal=$withval
14894 else $as_nop
14895 rclocal=yes
14896 fi
14897
14898
14899
14900 # Check whether --with-sysconfig was given.
14901 if test ${with_sysconfig+y}
14902 then :
14903 withval=$with_sysconfig; sysconfig=$withval
14904 else $as_nop
14905 sysconfig=default
14906 fi
14907
14908
14909
14910 # Check whether --with-group was given.
14911 if test ${with_group+y}
14912 then :
14913 withval=$with_group; group=$withval
14914 else $as_nop
14915 group=root
14916 fi
14917
14918
14919
14920 # Check whether --with-hostname was given.
14921 if test ${with_hostname+y}
14922 then :
14923 withval=$with_hostname; hostname=$withval
14924 else $as_nop
14925 hostname=yes
14926 fi
14927
14928
14929
14930 # Check whether --with-runlevel was given.
14931 if test ${with_runlevel+y}
14932 then :
14933 withval=$with_runlevel; runlevel=$withval
14934 else $as_nop
14935 runlevel=yes
14936 fi
14937
14938
14939
14940 # Check whether --with-random-seed was given.
14941 if test ${with_random_seed+y}
14942 then :
14943 withval=$with_random_seed; random_seed=$withval
14944 else $as_nop
14945 random_seed=yes
14946 fi
14947
14948
14949
14950 # Check whether --with-keventd was given.
14951 if test ${with_keventd+y}
14952 then :
14953 withval=$with_keventd;
14954 else $as_nop
14955 with_keventd=no
14956 fi
14957
14958
14959
14960 # Check whether --with-sulogin was given.
14961 if test ${with_sulogin+y}
14962 then :
14963 withval=$with_sulogin; sulogin=$withval
14964 else $as_nop
14965 with_sulogin=no
14966 fi
14967
14968
14969
14970 # Check whether --with-watchdog was given.
14971 if test ${with_watchdog+y}
14972 then :
14973 withval=$with_watchdog; watchdog=$withval
14974 else $as_nop
14975 with_watchdog=no watchdog=
14976 fi
14977
14978
14979
14980 # Check whether --with-libsystemd was given.
14981 if test ${with_libsystemd+y}
14982 then :
14983 withval=$with_libsystemd; with_libsystemd=$withval
14984 else $as_nop
14985 with_libsystemd=no
14986 fi
14987
14988
14989
14990 # Check whether --with-hook-scripts-path was given.
14991 if test ${with_hook_scripts_path+y}
14992 then :
14993 withval=$with_hook_scripts_path; hook_scripts_path=$withval
14994 else $as_nop
14995 hook_scripts_path=yes
14996 fi
14997
14998
14999
15000 # Check whether --with-plugin-path was given.
15001 if test ${with_plugin_path+y}
15002 then :
15003 withval=$with_plugin_path; plugin_path=$withval
15004 else $as_nop
15005 plugin_path=yes
15006 fi
15007
15008
15009
15010 # Check whether --with-rtc-date was given.
15011 if test ${with_rtc_date+y}
15012 then :
15013 withval=$with_rtc_date; rtc_date=$withval
15014 else $as_nop
15015 rtc_date=no
15016 fi
15017
15018
15019
15020 # Check whether --with-rtc-file was given.
15021 if test ${with_rtc_file+y}
15022 then :
15023 withval=$with_rtc_file; rtc_file=$withval
15024 else $as_nop
15025 rtc_file=no
15026 fi
15027
15028
15029 ### Enable features ###########################################################################
15030
15031 # Create config.h from selected features and fallback defaults
15032 if test "x$enable_auto_reload" = "xyes"
15033 then :
15034
15035
15036 printf "%s\n" "#define AUTO_RELOAD 1" >>confdefs.h
15037
15038 fi
15039
15040 if test "x$enable_kernel_cmdline" = "xyes"
15041 then :
15042
15043
15044 printf "%s\n" "#define KERNEL_CMDLINE 1" >>confdefs.h
15045
15046 fi
15047
15048 if test "x$enable_kernel_logging" = "xyes"
15049 then :
15050
15051
15052 printf "%s\n" "#define KERNEL_LOGGING 1" >>confdefs.h
15053
15054 fi
15055
15056 if test "x$enable_cgroup" = "xyes"
15057 then :
15058
15059
15060 printf "%s\n" "#define CGROUP2_ENABLED 1" >>confdefs.h
15061
15062 fi
15063
15064 if test "x$enable_fastboot" = "xyes"
15065 then :
15066
15067
15068 printf "%s\n" "#define FAST_BOOT 1" >>confdefs.h
15069
15070 fi
15071
15072 if test "x$enable_fsckfix" = "xyes"
15073 then :
15074
15075
15076 printf "%s\n" "#define FSCK_FIX 1" >>confdefs.h
15077
15078 fi
15079
15080 if test "x$enable_redirect" = "xyes"
15081 then :
15082
15083
15084 printf "%s\n" "#define REDIRECT_OUTPUT 1" >>confdefs.h
15085
15086 fi
15087
15088 ### Disable features ###########################################################################
15089 if test "x$enable_logrotate" != "xno"
15090 then :
15091
15092
15093 printf "%s\n" "#define LOGROTATE_ENABLED 1" >>confdefs.h
15094
15095 fi
15096
15097 if test "x$enable_rescue" != "xno"
15098 then :
15099
15100
15101 printf "%s\n" "#define RESCUE_MODE 1" >>confdefs.h
15102
15103 fi
15104
15105 if test "x$enable_logrotate" = "xyes"; then
15106 LOGROTATE_TRUE=
15107 LOGROTATE_FALSE='#'
15108 else
15109 LOGROTATE_TRUE='#'
15110 LOGROTATE_FALSE=
15111 fi
15112
15113
15114 ### With features ##############################################################################
15115 if test "x$bash_dir" = "xyes"
15116 then :
15117
15118
15119 pkg_failed=no
15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bash-completion >= 2.0" >&5
15121 printf %s "checking for bash-completion >= 2.0... " >&6; }
15122
15123 if test -n "$BASH_COMPLETION_CFLAGS"; then
15124 pkg_cv_BASH_COMPLETION_CFLAGS="$BASH_COMPLETION_CFLAGS"
15125 elif test -n "$PKG_CONFIG"; then
15126 if test -n "$PKG_CONFIG" && \
15127 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5
15128 ($PKG_CONFIG --exists --print-errors "bash-completion >= 2.0") 2>&5
15129 ac_status=$?
15130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15131 test $ac_status = 0; }; then
15132 pkg_cv_BASH_COMPLETION_CFLAGS=`$PKG_CONFIG --cflags "bash-completion >= 2.0" 2>/dev/null`
15133 test "x$?" != "x0" && pkg_failed=yes
15134 else
15135 pkg_failed=yes
15136 fi
15137 else
15138 pkg_failed=untried
15139 fi
15140 if test -n "$BASH_COMPLETION_LIBS"; then
15141 pkg_cv_BASH_COMPLETION_LIBS="$BASH_COMPLETION_LIBS"
15142 elif test -n "$PKG_CONFIG"; then
15143 if test -n "$PKG_CONFIG" && \
15144 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5
15145 ($PKG_CONFIG --exists --print-errors "bash-completion >= 2.0") 2>&5
15146 ac_status=$?
15147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15148 test $ac_status = 0; }; then
15149 pkg_cv_BASH_COMPLETION_LIBS=`$PKG_CONFIG --libs "bash-completion >= 2.0" 2>/dev/null`
15150 test "x$?" != "x0" && pkg_failed=yes
15151 else
15152 pkg_failed=yes
15153 fi
15154 else
15155 pkg_failed=untried
15156 fi
15157
15158
15159
15160 if test $pkg_failed = yes; then
15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162 printf "%s\n" "no" >&6; }
15163
15164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15165 _pkg_short_errors_supported=yes
15166 else
15167 _pkg_short_errors_supported=no
15168 fi
15169 if test $_pkg_short_errors_supported = yes; then
15170 BASH_COMPLETION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bash-completion >= 2.0" 2>&1`
15171 else
15172 BASH_COMPLETION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bash-completion >= 2.0" 2>&1`
15173 fi
15174 # Put the nasty error message in config.log where it belongs
15175 echo "$BASH_COMPLETION_PKG_ERRORS" >&5
15176
15177 BASH_DIR="$datadir/bash-completion/completions"
15178 elif test $pkg_failed = untried; then
15179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15180 printf "%s\n" "no" >&6; }
15181 BASH_DIR="$datadir/bash-completion/completions"
15182 else
15183 BASH_COMPLETION_CFLAGS=$pkg_cv_BASH_COMPLETION_CFLAGS
15184 BASH_COMPLETION_LIBS=$pkg_cv_BASH_COMPLETION_LIBS
15185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15186 printf "%s\n" "yes" >&6; }
15187 BASH_DIR="$(pkg-config --variable=completionsdir bash-completion)"
15188 fi
15189 else $as_nop
15190
15191 BASH_DIR="$bash_dir"
15192 fi
15193
15194 if test "x$with_fstab" != "xno"
15195 then :
15196
15197 if test "x$fstab" = "xyes"
15198 then :
15199 fstab=$sysconfdir/fstab
15200 fi
15201
15202 fstab_path="$fstab"
15203 fstab_path=`(
15204 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15205 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15206 eval echo \""$fstab_path"\"
15207 )`
15208
15209
15210 printf "%s\n" "#define FINIT_FSTAB \"$fstab_path\"" >>confdefs.h
15211
15212 else $as_nop
15213
15214
15215 printf "%s\n" "#define FINIT_FSTAB NULL" >>confdefs.h
15216
15217 fi
15218
15219 if test "x$with_config" != "xno"
15220 then :
15221
15222 if test "x$conf" = "xyes"
15223 then :
15224
15225 conf=$sysconfdir/finit.conf
15226 fi
15227 fi
15228
15229 conf_path="$conf"
15230 conf_path=`(
15231 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15232 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15233 eval echo \""$conf_path"\"
15234 )`
15235
15236
15237 printf "%s\n" "#define FINIT_CONF \"$conf_path\"" >>confdefs.h
15238
15239 FINIT_CONF="$conf_path"
15240
15241
15242 if test "x$with_rcsd" != "xno"
15243 then :
15244
15245 if test "x$rcsd" = "xyes"
15246 then :
15247
15248 rcsd=$sysconfdir/finit.d
15249 fi
15250 fi
15251
15252 rcsd_path="$rcsd"
15253 rcsd_path=`(
15254 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15255 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15256 eval echo \""$rcsd_path"\"
15257 )`
15258
15259
15260 printf "%s\n" "#define FINIT_RCSD \"$rcsd_path\"" >>confdefs.h
15261
15262 FINIT_RCSD="$rcsd_path"
15263
15264
15265 if test "x$with_rc_local" != "xno"
15266 then :
15267
15268 if test "x$rclocal" = "xyes"
15269 then :
15270 rclocal=$sysconfdir/rc.local
15271 fi
15272
15273 rclocal_path="$rclocal"
15274 rclocal_path=`(
15275 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15276 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15277 eval echo \""$rclocal_path"\"
15278 )`
15279
15280
15281 printf "%s\n" "#define FINIT_RC_LOCAL \"$rclocal_path\"" >>confdefs.h
15282
15283 fi
15284
15285 if test "x$with_sysconfig" != "xno"
15286 then :
15287
15288 if test "x$sysconfig" != "xdefault"
15289 then :
15290
15291
15292 sysconfig_path="$sysconfig"
15293 sysconfig_path=`(
15294 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15295 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15296 eval echo \""$sysconfig_path"\"
15297 )`
15298
15299
15300 printf "%s\n" "#define FINIT_SYSCONFIG \"$sysconfig_path\"" >>confdefs.h
15301
15302 fi
15303 fi
15304
15305 if test "x$with_heading" != "xno"
15306 then :
15307
15308 if test "x$heading" = "xyes"
15309 then :
15310 heading=""
15311 fi
15312
15313 printf "%s\n" "#define INIT_OSHEADING \"$heading\"" >>confdefs.h
15314
15315 fi
15316
15317 if test "x$with_group" != "xno"
15318 then :
15319
15320 if test "x$group" = "xyes"
15321 then :
15322
15323 group=root
15324 fi
15325 fi
15326
15327 printf "%s\n" "#define DEFGROUP \"$group\"" >>confdefs.h
15328
15329
15330 if test "x$with_hostname" != "xno"
15331 then :
15332
15333 if test "x$hostname" = "xyes"
15334 then :
15335
15336 hostname=noname
15337 fi
15338 fi
15339
15340 printf "%s\n" "#define DEFHOST \"$hostname\"" >>confdefs.h
15341
15342
15343 if test "x$with_runlevel" != "xno"
15344 then :
15345
15346 if test "x$runlevel" = "xyes"
15347 then :
15348
15349 runlevel=2
15350
15351 printf "%s\n" "#define RUNLEVEL $runlevel" >>confdefs.h
15352
15353 fi
15354
15355 printf "%s\n" "#define RUNLEVEL $runlevel" >>confdefs.h
15356
15357 fi
15358
15359 if test "x$with_random_seed" != "xno"
15360 then :
15361
15362 if test "x$random_seed" = "xyes"
15363 then :
15364
15365 random_seed=/var/lib/misc/random-seed
15366 fi
15367
15368 random_path="$random_seed"
15369 random_path=`(
15370 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15371 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15372 eval echo \""$random_path"\"
15373 )`
15374
15375
15376 printf "%s\n" "#define RANDOMSEED \"$random_path\"" >>confdefs.h
15377
15378 fi
15379
15380 if test "x$rtc_date" != "xno"
15381 then :
15382
15383
15384 printf "%s\n" "#define RTC_TIMESTAMP_CUSTOM \"$rtc_date\"" >>confdefs.h
15385
15386 else $as_nop
15387
15388 rtc_date=""
15389 fi
15390
15391 if test "x$rtc_file" != "xno"
15392 then :
15393
15394 if test "x$rtc_file" = "xyes"
15395 then :
15396
15397 rtc_file=/var/lib/misc/rtc
15398 fi
15399
15400 rtcfile_path="$rtc_file"
15401 rtcfile_path=`(
15402 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15403 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15404 eval echo \""$rtcfile_path"\"
15405 )`
15406
15407
15408 printf "%s\n" "#define RTC_FILE \"$rtcfile_path\"" >>confdefs.h
15409
15410 else $as_nop
15411
15412 printf "%s\n" "#define RTC_FILE NULL" >>confdefs.h
15413
15414 fi
15415
15416 if test "x$with_keventd" != "xno"
15417 then :
15418 with_keventd=yes
15419 fi
15420
15421 if test "x$with_sulogin" != "xno"
15422 then :
15423
15424 if test "x$sulogin" = "xyes"
15425 then :
15426
15427 sulogin=root
15428 fi
15429 with_sulogin=yes
15430
15431 printf "%s\n" "#define SULOGIN_USER \"$sulogin\"" >>confdefs.h
15432
15433 else $as_nop
15434
15435 sulogin=
15436 fi
15437
15438 if test "x$with_watchdog" != "xno"
15439 then :
15440
15441 if test "x$watchdog" = "xyes"
15442 then :
15443
15444 watchdog=/dev/watchdog
15445 fi
15446 with_watchdog=yes
15447
15448 printf "%s\n" "#define WDT_DEVNODE \"$watchdog\"" >>confdefs.h
15449
15450 else $as_nop
15451
15452 watchdog=
15453 fi
15454
15455 if test "x$with_libsystemd" != "xno"
15456 then :
15457
15458
15459 printf "%s\n" "#define HAVE_LIBSYSTEMD 1" >>confdefs.h
15460
15461 fi
15462
15463 if test "x$enable_hook_scripts_plugin" != "xno"
15464 then :
15465
15466 if test "x$hook_scripts_path" = "xyes"
15467 then :
15468 hook_scripts_path=$libexecdir/finit/hook
15469 fi
15470
15471 hook_scripts_path="$hook_scripts_path"
15472 hook_scripts_path=`(
15473 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15474 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15475 eval echo \""$hook_scripts_path"\"
15476 )`
15477
15478
15479 printf "%s\n" "#define PLUGIN_HOOK_SCRIPTS_PATH \"$hook_scripts_path\"" >>confdefs.h
15480
15481 fi
15482
15483 if test "x$with_plugin_path" != "xno"
15484 then :
15485
15486 if test "x$plugin_path" = "xyes"
15487 then :
15488 plugin_path=/usr/lib/finit/plugins:/usr/local/lib/finit/plugins
15489 fi
15490
15491 plugin_path="$plugin_path"
15492 plugin_path=`(
15493 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15494 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15495 eval echo \""$plugin_path"\"
15496 )`
15497
15498
15499 printf "%s\n" "#define EXTERNAL_PLUGIN_PATH \"$plugin_path\"" >>confdefs.h
15500
15501 fi
15502
15503 # Control build with automake flags
15504 if test "x$bash_dir" != "xno"; then
15505 BASH_TRUE=
15506 BASH_FALSE='#'
15507 else
15508 BASH_TRUE='#'
15509 BASH_FALSE=
15510 fi
15511
15512 if test "x$enable_static" = "xyes"; then
15513 STATIC_TRUE=
15514 STATIC_FALSE='#'
15515 else
15516 STATIC_TRUE='#'
15517 STATIC_FALSE=
15518 fi
15519
15520 if test "x$with_keventd" != "xno"; then
15521 KEVENTD_TRUE=
15522 KEVENTD_FALSE='#'
15523 else
15524 KEVENTD_TRUE='#'
15525 KEVENTD_FALSE=
15526 fi
15527
15528 if test "x$with_sulogin" != "xno"; then
15529 SULOGIN_TRUE=
15530 SULOGIN_FALSE='#'
15531 else
15532 SULOGIN_TRUE='#'
15533 SULOGIN_FALSE=
15534 fi
15535
15536 if test "x$with_watchdog" != "xno"; then
15537 WATCHDOGD_TRUE=
15538 WATCHDOGD_FALSE='#'
15539 else
15540 WATCHDOGD_TRUE='#'
15541 WATCHDOGD_FALSE=
15542 fi
15543
15544 if test "x$with_libsystemd" != "xno"; then
15545 LIBSYSTEMD_TRUE=
15546 LIBSYSTEMD_FALSE='#'
15547 else
15548 LIBSYSTEMD_TRUE='#'
15549 LIBSYSTEMD_FALSE=
15550 fi
15551
15552 if test "x$enable_doc" = "xyes"; then
15553 DOC_TRUE=
15554 DOC_FALSE='#'
15555 else
15556 DOC_TRUE='#'
15557 DOC_FALSE=
15558 fi
15559
15560 if test "x$enable_contrib" = "xyes"; then
15561 CONTRIB_TRUE=
15562 CONTRIB_FALSE='#'
15563 else
15564 CONTRIB_TRUE='#'
15565 CONTRIB_FALSE=
15566 fi
15567
15568 if test "x$enable_testserv_plugin" = "xyes"; then
15569 TESTSERV_TRUE=
15570 TESTSERV_FALSE='#'
15571 else
15572 TESTSERV_TRUE='#'
15573 TESTSERV_FALSE=
15574 fi
15575
15576
15577 # Workaround for as-of-yet unreleased runstatedir support, planned for
15578 # autoconf 2.70, which some major distros have backported.
15579 if test -z "$runstatedir"
15580 then :
15581 runstatedir="$localstatedir/run"
15582 fi
15583
15584
15585 # Override default libdir, used for plugins and rescue.conf
15586 pkglibdir=$libdir/finit
15587
15588
15589 pkglibexecdir="$libexecdir/finit"
15590 pkglibexecdir=`(
15591 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15592 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15593 eval echo \""$pkglibexecdir"\"
15594 )`
15595
15596
15597 printf "%s\n" "#define FINIT_EXECPATH_ \"$pkglibexecdir\"" >>confdefs.h
15598
15599
15600 finit_runpath="$runstatedir/finit/system"
15601 finit_runpath=`(
15602 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15603 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15604 eval echo \""$finit_runpath"\"
15605 )`
15606
15607
15608 printf "%s\n" "#define FINIT_RUNPATH_ \"$finit_runpath\"" >>confdefs.h
15609
15610
15611
15612 plugin_path="$pkglibdir/plugins"
15613 plugin_path=`(
15614 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15615 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15616 eval echo \""$plugin_path"\"
15617 )`
15618
15619
15620
15621 printf "%s\n" "#define PLUGIN_PATH \"$plugin_path\"" >>confdefs.h
15622
15623
15624
15625 tmpfiles_path="$libdir/tmpfiles.d"
15626 tmpfiles_path=`(
15627 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15628 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15629 eval echo \""$tmpfiles_path"\"
15630 )`
15631
15632
15633
15634 printf "%s\n" "#define TMPFILES_PATH_ \"$tmpfiles_path\"" >>confdefs.h
15635
15636
15637
15638 finit_tmpfiles="$pkglibdir/tmpfiles.d"
15639 finit_tmpfiles=`(
15640 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15641 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15642 eval echo \""$finit_tmpfiles"\"
15643 )`
15644
15645
15646
15647 printf "%s\n" "#define FINIT_TMPFILES \"$finit_tmpfiles\"" >>confdefs.h
15648
15649
15650
15651 system_path="$pkglibdir/system"
15652 system_path=`(
15653 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15654 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15655 eval echo \""$system_path"\"
15656 )`
15657
15658
15659
15660 printf "%s\n" "#define FINIT_SYSPATH_ \"$system_path\"" >>confdefs.h
15661
15662
15663
15664 rescue_conf="$pkglibdir/rescue.conf"
15665 rescue_conf=`(
15666 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15667 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15668 eval echo \""$rescue_conf"\"
15669 )`
15670
15671
15672 printf "%s\n" "#define RESCUE_CONF \"$rescue_conf\"" >>confdefs.h
15673
15674
15675 sample_conf="$pkglibdir/sample.conf"
15676 sample_conf=`(
15677 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15678 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15679 eval echo \""$sample_conf"\"
15680 )`
15681
15682
15683 printf "%s\n" "#define SAMPLE_CONF \"$sample_conf\"" >>confdefs.h
15684
15685
15686
15687 bash_completion_dir="$BASH_DIR"
15688 bash_completion_dir=`(
15689 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15690 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15691 eval echo \""$bash_completion_dir"\"
15692 )`
15693
15694 BASH_DIR="$bash_completion_dir"
15695
15696
15697 if test "$heading" = ""
15698 then :
15699 heading="<DEFAULT>"
15700 fi
15701 if test "$heading" = "no"
15702 then :
15703 heading="<NONE>"
15704 fi
15705
15706 RTC_DATE=$rtc_date
15707 if test "$rtc_date" = ""
15708 then :
15709 RTC_DATE="<DEFAULT>"
15710 fi
15711 if test "$rtc_date" = "no"
15712 then :
15713 RTC_DATE="<DEFAULT>"
15714 fi
15715
15716 # Generate all files
15717 cat >confcache <<\_ACEOF
15718 # This file is a shell script that caches the results of configure
15719 # tests run on this system so they can be shared between configure
15720 # scripts and configure runs, see configure's option --config-cache.
15721 # It is not useful on other systems. If it contains results you don't
15722 # want to keep, you may remove or edit it.
15723 #
15724 # config.status only pays attention to the cache file if you give it
15725 # the --recheck option to rerun configure.
15726 #
15727 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15728 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15729 # following values.
15730
15731 _ACEOF
15732
15733 # The following way of writing the cache mishandles newlines in values,
15734 # but we know of no workaround that is simple, portable, and efficient.
15735 # So, we kill variables containing newlines.
15736 # Ultrix sh set writes to stderr and can't be redirected directly,
15737 # and sets the high bit in the cache file unless we assign to the vars.
15738 (
15739 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15740 eval ac_val=\$$ac_var
15741 case $ac_val in #(
15742 *${as_nl}*)
15743 case $ac_var in #(
15744 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15745 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15746 esac
15747 case $ac_var in #(
15748 _ | IFS | as_nl) ;; #(
15749 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15750 *) { eval $ac_var=; unset $ac_var;} ;;
15751 esac ;;
15752 esac
15753 done
15754
15755 (set) 2>&1 |
15756 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15757 *${as_nl}ac_space=\ *)
15758 # `set' does not quote correctly, so add quotes: double-quote
15759 # substitution turns \\\\ into \\, and sed turns \\ into \.
15760 sed -n \
15761 "s/'/'\\\\''/g;
15762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15763 ;; #(
15764 *)
15765 # `set' quotes correctly as required by POSIX, so do not add quotes.
15766 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15767 ;;
15768 esac |
15769 sort
15770 ) |
15771 sed '
15772 /^ac_cv_env_/b end
15773 t clear
15774 :clear
15775 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15776 t end
15777 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15778 :end' >>confcache
15779 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15780 if test -w "$cache_file"; then
15781 if test "x$cache_file" != "x/dev/null"; then
15782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15783 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15784 if test ! -f "$cache_file" || test -h "$cache_file"; then
15785 cat confcache >"$cache_file"
15786 else
15787 case $cache_file in #(
15788 */* | ?:*)
15789 mv -f confcache "$cache_file"$$ &&
15790 mv -f "$cache_file"$$ "$cache_file" ;; #(
15791 *)
15792 mv -f confcache "$cache_file" ;;
15793 esac
15794 fi
15795 fi
15796 else
15797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15798 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15799 fi
15800 fi
15801 rm -f confcache
15802
15803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15804 # Let make expand exec_prefix.
15805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15806
15807 DEFS=-DHAVE_CONFIG_H
15808
15809 ac_libobjs=
15810 ac_ltlibobjs=
15811 U=
15812 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15813 # 1. Remove the extension, and $U if already installed.
15814 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15815 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15816 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15817 # will be set to the directory where LIBOBJS objects are built.
15818 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15819 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15820 done
15821 LIBOBJS=$ac_libobjs
15822
15823 LTLIBOBJS=$ac_ltlibobjs
15824
15825
15826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15827 printf %s "checking that generated files are newer than configure... " >&6; }
15828 if test -n "$am_sleep_pid"; then
15829 # Hide warnings about reused PIDs.
15830 wait $am_sleep_pid 2>/dev/null
15831 fi
15832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15833 printf "%s\n" "done" >&6; }
15834 if test -n "$EXEEXT"; then
15835 am__EXEEXT_TRUE=
15836 am__EXEEXT_FALSE='#'
15837 else
15838 am__EXEEXT_TRUE='#'
15839 am__EXEEXT_FALSE=
15840 fi
15841
15842 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15843 as_fn_error $? "conditional \"AMDEP\" was never defined.
15844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15845 fi
15846 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15847 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15849 fi
15850 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15851 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15853 fi
15854 if test -z "${BUILD_ALSA_UTILS_PLUGIN_TRUE}" && test -z "${BUILD_ALSA_UTILS_PLUGIN_FALSE}"; then
15855 as_fn_error $? "conditional \"BUILD_ALSA_UTILS_PLUGIN\" was never defined.
15856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15857 fi
15858 if test -z "${BUILD_DBUS_PLUGIN_TRUE}" && test -z "${BUILD_DBUS_PLUGIN_FALSE}"; then
15859 as_fn_error $? "conditional \"BUILD_DBUS_PLUGIN\" was never defined.
15860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15861 fi
15862 if test -z "${BUILD_MODULES_LOAD_PLUGIN_TRUE}" && test -z "${BUILD_MODULES_LOAD_PLUGIN_FALSE}"; then
15863 as_fn_error $? "conditional \"BUILD_MODULES_LOAD_PLUGIN\" was never defined.
15864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15865 fi
15866 if test -z "${BUILD_MODPROBE_PLUGIN_TRUE}" && test -z "${BUILD_MODPROBE_PLUGIN_FALSE}"; then
15867 as_fn_error $? "conditional \"BUILD_MODPROBE_PLUGIN\" was never defined.
15868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15869 fi
15870 if test -z "${BUILD_RESOLVCONF_PLUGIN_TRUE}" && test -z "${BUILD_RESOLVCONF_PLUGIN_FALSE}"; then
15871 as_fn_error $? "conditional \"BUILD_RESOLVCONF_PLUGIN\" was never defined.
15872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15873 fi
15874 if test -z "${BUILD_X11_COMMON_PLUGIN_TRUE}" && test -z "${BUILD_X11_COMMON_PLUGIN_FALSE}"; then
15875 as_fn_error $? "conditional \"BUILD_X11_COMMON_PLUGIN\" was never defined.
15876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15877 fi
15878 if test -z "${BUILD_NETLINK_PLUGIN_TRUE}" && test -z "${BUILD_NETLINK_PLUGIN_FALSE}"; then
15879 as_fn_error $? "conditional \"BUILD_NETLINK_PLUGIN\" was never defined.
15880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15881 fi
15882 if test -z "${BUILD_HOOK_SCRIPTS_PLUGIN_TRUE}" && test -z "${BUILD_HOOK_SCRIPTS_PLUGIN_FALSE}"; then
15883 as_fn_error $? "conditional \"BUILD_HOOK_SCRIPTS_PLUGIN\" was never defined.
15884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15885 fi
15886 if test -z "${BUILD_HOTPLUG_PLUGIN_TRUE}" && test -z "${BUILD_HOTPLUG_PLUGIN_FALSE}"; then
15887 as_fn_error $? "conditional \"BUILD_HOTPLUG_PLUGIN\" was never defined.
15888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15889 fi
15890 if test -z "${BUILD_RTC_PLUGIN_TRUE}" && test -z "${BUILD_RTC_PLUGIN_FALSE}"; then
15891 as_fn_error $? "conditional \"BUILD_RTC_PLUGIN\" was never defined.
15892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15893 fi
15894 if test -z "${BUILD_TTY_PLUGIN_TRUE}" && test -z "${BUILD_TTY_PLUGIN_FALSE}"; then
15895 as_fn_error $? "conditional \"BUILD_TTY_PLUGIN\" was never defined.
15896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15897 fi
15898 if test -z "${BUILD_URANDOM_PLUGIN_TRUE}" && test -z "${BUILD_URANDOM_PLUGIN_FALSE}"; then
15899 as_fn_error $? "conditional \"BUILD_URANDOM_PLUGIN\" was never defined.
15900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15901 fi
15902 if test -z "${BUILD_TESTSERV_PLUGIN_TRUE}" && test -z "${BUILD_TESTSERV_PLUGIN_FALSE}"; then
15903 as_fn_error $? "conditional \"BUILD_TESTSERV_PLUGIN\" was never defined.
15904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15905 fi
15906 if test -z "${LOGROTATE_TRUE}" && test -z "${LOGROTATE_FALSE}"; then
15907 as_fn_error $? "conditional \"LOGROTATE\" was never defined.
15908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15909 fi
15910 if test -z "${BASH_TRUE}" && test -z "${BASH_FALSE}"; then
15911 as_fn_error $? "conditional \"BASH\" was never defined.
15912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15913 fi
15914 if test -z "${STATIC_TRUE}" && test -z "${STATIC_FALSE}"; then
15915 as_fn_error $? "conditional \"STATIC\" was never defined.
15916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15917 fi
15918 if test -z "${KEVENTD_TRUE}" && test -z "${KEVENTD_FALSE}"; then
15919 as_fn_error $? "conditional \"KEVENTD\" was never defined.
15920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15921 fi
15922 if test -z "${SULOGIN_TRUE}" && test -z "${SULOGIN_FALSE}"; then
15923 as_fn_error $? "conditional \"SULOGIN\" was never defined.
15924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15925 fi
15926 if test -z "${WATCHDOGD_TRUE}" && test -z "${WATCHDOGD_FALSE}"; then
15927 as_fn_error $? "conditional \"WATCHDOGD\" was never defined.
15928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15929 fi
15930 if test -z "${LIBSYSTEMD_TRUE}" && test -z "${LIBSYSTEMD_FALSE}"; then
15931 as_fn_error $? "conditional \"LIBSYSTEMD\" was never defined.
15932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15933 fi
15934 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
15935 as_fn_error $? "conditional \"DOC\" was never defined.
15936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15937 fi
15938 if test -z "${CONTRIB_TRUE}" && test -z "${CONTRIB_FALSE}"; then
15939 as_fn_error $? "conditional \"CONTRIB\" was never defined.
15940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15941 fi
15942 if test -z "${TESTSERV_TRUE}" && test -z "${TESTSERV_FALSE}"; then
15943 as_fn_error $? "conditional \"TESTSERV\" was never defined.
15944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15945 fi
15946
15947 : "${CONFIG_STATUS=./config.status}"
15948 ac_write_fail=0
15949 ac_clean_files_save=$ac_clean_files
15950 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15952 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15953 as_write_fail=0
15954 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15955 #! $SHELL
15956 # Generated by $as_me.
15957 # Run this file to recreate the current configuration.
15958 # Compiler output produced by configure, useful for debugging
15959 # configure, is in config.log if it exists.
15960
15961 debug=false
15962 ac_cs_recheck=false
15963 ac_cs_silent=false
15964
15965 SHELL=\${CONFIG_SHELL-$SHELL}
15966 export SHELL
15967 _ASEOF
15968 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15969 ## -------------------- ##
15970 ## M4sh Initialization. ##
15971 ## -------------------- ##
15972
15973 # Be more Bourne compatible
15974 DUALCASE=1; export DUALCASE # for MKS sh
15975 as_nop=:
15976 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15977 then :
15978 emulate sh
15979 NULLCMD=:
15980 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15981 # is contrary to our usage. Disable this feature.
15982 alias -g '${1+"$@"}'='"$@"'
15983 setopt NO_GLOB_SUBST
15984 else $as_nop
15985 case `(set -o) 2>/dev/null` in #(
15986 *posix*) :
15987 set -o posix ;; #(
15988 *) :
15989 ;;
15990 esac
15991 fi
15992
15993
15994
15995 # Reset variables that may have inherited troublesome values from
15996 # the environment.
15997
15998 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15999 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16000 # side effect of setting IFS to empty, thus disabling word splitting.)
16001 # Quoting is to prevent editors from complaining about space-tab.
16002 as_nl='
16003 '
16004 export as_nl
16005 IFS=" "" $as_nl"
16006
16007 PS1='$ '
16008 PS2='> '
16009 PS4='+ '
16010
16011 # Ensure predictable behavior from utilities with locale-dependent output.
16012 LC_ALL=C
16013 export LC_ALL
16014 LANGUAGE=C
16015 export LANGUAGE
16016
16017 # We cannot yet rely on "unset" to work, but we need these variables
16018 # to be unset--not just set to an empty or harmless value--now, to
16019 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16020 # also avoids known problems related to "unset" and subshell syntax
16021 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16022 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16023 do eval test \${$as_var+y} \
16024 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16025 done
16026
16027 # Ensure that fds 0, 1, and 2 are open.
16028 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16029 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16030 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16031
16032 # The user is always right.
16033 if ${PATH_SEPARATOR+false} :; then
16034 PATH_SEPARATOR=:
16035 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16036 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16037 PATH_SEPARATOR=';'
16038 }
16039 fi
16040
16041
16042 # Find who we are. Look in the path if we contain no directory separator.
16043 as_myself=
16044 case $0 in #((
16045 *[\\/]* ) as_myself=$0 ;;
16046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16047 for as_dir in $PATH
16048 do
16049 IFS=$as_save_IFS
16050 case $as_dir in #(((
16051 '') as_dir=./ ;;
16052 */) ;;
16053 *) as_dir=$as_dir/ ;;
16054 esac
16055 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16056 done
16057 IFS=$as_save_IFS
16058
16059 ;;
16060 esac
16061 # We did not find ourselves, most probably we were run as `sh COMMAND'
16062 # in which case we are not to be found in the path.
16063 if test "x$as_myself" = x; then
16064 as_myself=$0
16065 fi
16066 if test ! -f "$as_myself"; then
16067 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16068 exit 1
16069 fi
16070
16071
16072
16073 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16074 # ----------------------------------------
16075 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16076 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16077 # script with STATUS, using 1 if that was 0.
16078 as_fn_error ()
16079 {
16080 as_status=$1; test $as_status -eq 0 && as_status=1
16081 if test "$4"; then
16082 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16084 fi
16085 printf "%s\n" "$as_me: error: $2" >&2
16086 as_fn_exit $as_status
16087 } # as_fn_error
16088
16089
16090
16091 # as_fn_set_status STATUS
16092 # -----------------------
16093 # Set $? to STATUS, without forking.
16094 as_fn_set_status ()
16095 {
16096 return $1
16097 } # as_fn_set_status
16098
16099 # as_fn_exit STATUS
16100 # -----------------
16101 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16102 as_fn_exit ()
16103 {
16104 set +e
16105 as_fn_set_status $1
16106 exit $1
16107 } # as_fn_exit
16108
16109 # as_fn_unset VAR
16110 # ---------------
16111 # Portably unset VAR.
16112 as_fn_unset ()
16113 {
16114 { eval $1=; unset $1;}
16115 }
16116 as_unset=as_fn_unset
16117
16118 # as_fn_append VAR VALUE
16119 # ----------------------
16120 # Append the text in VALUE to the end of the definition contained in VAR. Take
16121 # advantage of any shell optimizations that allow amortized linear growth over
16122 # repeated appends, instead of the typical quadratic growth present in naive
16123 # implementations.
16124 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16125 then :
16126 eval 'as_fn_append ()
16127 {
16128 eval $1+=\$2
16129 }'
16130 else $as_nop
16131 as_fn_append ()
16132 {
16133 eval $1=\$$1\$2
16134 }
16135 fi # as_fn_append
16136
16137 # as_fn_arith ARG...
16138 # ------------------
16139 # Perform arithmetic evaluation on the ARGs, and store the result in the
16140 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16141 # must be portable across $(()) and expr.
16142 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16143 then :
16144 eval 'as_fn_arith ()
16145 {
16146 as_val=$(( $* ))
16147 }'
16148 else $as_nop
16149 as_fn_arith ()
16150 {
16151 as_val=`expr "$@" || test $? -eq 1`
16152 }
16153 fi # as_fn_arith
16154
16155
16156 if expr a : '\(a\)' >/dev/null 2>&1 &&
16157 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16158 as_expr=expr
16159 else
16160 as_expr=false
16161 fi
16162
16163 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16164 as_basename=basename
16165 else
16166 as_basename=false
16167 fi
16168
16169 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16170 as_dirname=dirname
16171 else
16172 as_dirname=false
16173 fi
16174
16175 as_me=`$as_basename -- "$0" ||
16176 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16177 X"$0" : 'X\(//\)$' \| \
16178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16179 printf "%s\n" X/"$0" |
16180 sed '/^.*\/\([^/][^/]*\)\/*$/{
16181 s//\1/
16182 q
16183 }
16184 /^X\/\(\/\/\)$/{
16185 s//\1/
16186 q
16187 }
16188 /^X\/\(\/\).*/{
16189 s//\1/
16190 q
16191 }
16192 s/.*/./; q'`
16193
16194 # Avoid depending upon Character Ranges.
16195 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16196 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16197 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16198 as_cr_digits='0123456789'
16199 as_cr_alnum=$as_cr_Letters$as_cr_digits
16200
16201
16202 # Determine whether it's possible to make 'echo' print without a newline.
16203 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16204 # for compatibility with existing Makefiles.
16205 ECHO_C= ECHO_N= ECHO_T=
16206 case `echo -n x` in #(((((
16207 -n*)
16208 case `echo 'xy\c'` in
16209 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16210 xy) ECHO_C='\c';;
16211 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16212 ECHO_T=' ';;
16213 esac;;
16214 *)
16215 ECHO_N='-n';;
16216 esac
16217
16218 # For backward compatibility with old third-party macros, we provide
16219 # the shell variables $as_echo and $as_echo_n. New code should use
16220 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16221 as_echo='printf %s\n'
16222 as_echo_n='printf %s'
16223
16224 rm -f conf$$ conf$$.exe conf$$.file
16225 if test -d conf$$.dir; then
16226 rm -f conf$$.dir/conf$$.file
16227 else
16228 rm -f conf$$.dir
16229 mkdir conf$$.dir 2>/dev/null
16230 fi
16231 if (echo >conf$$.file) 2>/dev/null; then
16232 if ln -s conf$$.file conf$$ 2>/dev/null; then
16233 as_ln_s='ln -s'
16234 # ... but there are two gotchas:
16235 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16236 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16237 # In both cases, we have to default to `cp -pR'.
16238 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16239 as_ln_s='cp -pR'
16240 elif ln conf$$.file conf$$ 2>/dev/null; then
16241 as_ln_s=ln
16242 else
16243 as_ln_s='cp -pR'
16244 fi
16245 else
16246 as_ln_s='cp -pR'
16247 fi
16248 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16249 rmdir conf$$.dir 2>/dev/null
16250
16251
16252 # as_fn_mkdir_p
16253 # -------------
16254 # Create "$as_dir" as a directory, including parents if necessary.
16255 as_fn_mkdir_p ()
16256 {
16257
16258 case $as_dir in #(
16259 -*) as_dir=./$as_dir;;
16260 esac
16261 test -d "$as_dir" || eval $as_mkdir_p || {
16262 as_dirs=
16263 while :; do
16264 case $as_dir in #(
16265 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16266 *) as_qdir=$as_dir;;
16267 esac
16268 as_dirs="'$as_qdir' $as_dirs"
16269 as_dir=`$as_dirname -- "$as_dir" ||
16270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16271 X"$as_dir" : 'X\(//\)[^/]' \| \
16272 X"$as_dir" : 'X\(//\)$' \| \
16273 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16274 printf "%s\n" X"$as_dir" |
16275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16276 s//\1/
16277 q
16278 }
16279 /^X\(\/\/\)[^/].*/{
16280 s//\1/
16281 q
16282 }
16283 /^X\(\/\/\)$/{
16284 s//\1/
16285 q
16286 }
16287 /^X\(\/\).*/{
16288 s//\1/
16289 q
16290 }
16291 s/.*/./; q'`
16292 test -d "$as_dir" && break
16293 done
16294 test -z "$as_dirs" || eval "mkdir $as_dirs"
16295 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16296
16297
16298 } # as_fn_mkdir_p
16299 if mkdir -p . 2>/dev/null; then
16300 as_mkdir_p='mkdir -p "$as_dir"'
16301 else
16302 test -d ./-p && rmdir ./-p
16303 as_mkdir_p=false
16304 fi
16305
16306
16307 # as_fn_executable_p FILE
16308 # -----------------------
16309 # Test if FILE is an executable regular file.
16310 as_fn_executable_p ()
16311 {
16312 test -f "$1" && test -x "$1"
16313 } # as_fn_executable_p
16314 as_test_x='test -x'
16315 as_executable_p=as_fn_executable_p
16316
16317 # Sed expression to map a string onto a valid CPP name.
16318 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16319
16320 # Sed expression to map a string onto a valid variable name.
16321 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16322
16323
16324 exec 6>&1
16325 ## ----------------------------------- ##
16326 ## Main body of $CONFIG_STATUS script. ##
16327 ## ----------------------------------- ##
16328 _ASEOF
16329 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16330
16331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16332 # Save the log message, to keep $0 and so on meaningful, and to
16333 # report actual input values of CONFIG_FILES etc. instead of their
16334 # values after options handling.
16335 ac_log="
16336 This file was extended by Finit $as_me 4.14, which was
16337 generated by GNU Autoconf 2.71. Invocation command line was
16338
16339 CONFIG_FILES = $CONFIG_FILES
16340 CONFIG_HEADERS = $CONFIG_HEADERS
16341 CONFIG_LINKS = $CONFIG_LINKS
16342 CONFIG_COMMANDS = $CONFIG_COMMANDS
16343 $ $0 $@
16344
16345 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16346 "
16347
16348 _ACEOF
16349
16350 case $ac_config_files in *"
16351 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16352 esac
16353
16354 case $ac_config_headers in *"
16355 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16356 esac
16357
16358
16359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16360 # Files that config.status was made for.
16361 config_files="$ac_config_files"
16362 config_headers="$ac_config_headers"
16363 config_commands="$ac_config_commands"
16364
16365 _ACEOF
16366
16367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16368 ac_cs_usage="\
16369 \`$as_me' instantiates files and other configuration actions
16370 from templates according to the current configuration. Unless the files
16371 and actions are specified as TAGs, all are instantiated by default.
16372
16373 Usage: $0 [OPTION]... [TAG]...
16374
16375 -h, --help print this help, then exit
16376 -V, --version print version number and configuration settings, then exit
16377 --config print configuration, then exit
16378 -q, --quiet, --silent
16379 do not print progress messages
16380 -d, --debug don't remove temporary files
16381 --recheck update $as_me by reconfiguring in the same conditions
16382 --file=FILE[:TEMPLATE]
16383 instantiate the configuration file FILE
16384 --header=FILE[:TEMPLATE]
16385 instantiate the configuration header FILE
16386
16387 Configuration files:
16388 $config_files
16389
16390 Configuration headers:
16391 $config_headers
16392
16393 Configuration commands:
16394 $config_commands
16395
16396 Report bugs to <https://github.com/troglobit/finit/issues>.
16397 Finit home page: <https://troglobit.com/projects/finit/>."
16398
16399 _ACEOF
16400 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16401 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16403 ac_cs_config='$ac_cs_config_escaped'
16404 ac_cs_version="\\
16405 Finit config.status 4.14
16406 configured by $0, generated by GNU Autoconf 2.71,
16407 with options \\"\$ac_cs_config\\"
16408
16409 Copyright (C) 2021 Free Software Foundation, Inc.
16410 This config.status script is free software; the Free Software Foundation
16411 gives unlimited permission to copy, distribute and modify it."
16412
16413 ac_pwd='$ac_pwd'
16414 srcdir='$srcdir'
16415 INSTALL='$INSTALL'
16416 MKDIR_P='$MKDIR_P'
16417 AWK='$AWK'
16418 test -n "\$AWK" || AWK=awk
16419 _ACEOF
16420
16421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16422 # The default lists apply if the user does not specify any file.
16423 ac_need_defaults=:
16424 while test $# != 0
16425 do
16426 case $1 in
16427 --*=?*)
16428 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16429 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16430 ac_shift=:
16431 ;;
16432 --*=)
16433 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16434 ac_optarg=
16435 ac_shift=:
16436 ;;
16437 *)
16438 ac_option=$1
16439 ac_optarg=$2
16440 ac_shift=shift
16441 ;;
16442 esac
16443
16444 case $ac_option in
16445 # Handling of the options.
16446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16447 ac_cs_recheck=: ;;
16448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16449 printf "%s\n" "$ac_cs_version"; exit ;;
16450 --config | --confi | --conf | --con | --co | --c )
16451 printf "%s\n" "$ac_cs_config"; exit ;;
16452 --debug | --debu | --deb | --de | --d | -d )
16453 debug=: ;;
16454 --file | --fil | --fi | --f )
16455 $ac_shift
16456 case $ac_optarg in
16457 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16458 '') as_fn_error $? "missing file argument" ;;
16459 esac
16460 as_fn_append CONFIG_FILES " '$ac_optarg'"
16461 ac_need_defaults=false;;
16462 --header | --heade | --head | --hea )
16463 $ac_shift
16464 case $ac_optarg in
16465 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16466 esac
16467 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16468 ac_need_defaults=false;;
16469 --he | --h)
16470 # Conflict between --help and --header
16471 as_fn_error $? "ambiguous option: \`$1'
16472 Try \`$0 --help' for more information.";;
16473 --help | --hel | -h )
16474 printf "%s\n" "$ac_cs_usage"; exit ;;
16475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16476 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16477 ac_cs_silent=: ;;
16478
16479 # This is an error.
16480 -*) as_fn_error $? "unrecognized option: \`$1'
16481 Try \`$0 --help' for more information." ;;
16482
16483 *) as_fn_append ac_config_targets " $1"
16484 ac_need_defaults=false ;;
16485
16486 esac
16487 shift
16488 done
16489
16490 ac_configure_extra_args=
16491
16492 if $ac_cs_silent; then
16493 exec 6>/dev/null
16494 ac_configure_extra_args="$ac_configure_extra_args --silent"
16495 fi
16496
16497 _ACEOF
16498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16499 if \$ac_cs_recheck; then
16500 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16501 shift
16502 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16503 CONFIG_SHELL='$SHELL'
16504 export CONFIG_SHELL
16505 exec "\$@"
16506 fi
16507
16508 _ACEOF
16509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16510 exec 5>>config.log
16511 {
16512 echo
16513 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16514 ## Running $as_me. ##
16515 _ASBOX
16516 printf "%s\n" "$ac_log"
16517 } >&5
16518
16519 _ACEOF
16520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16521 #
16522 # INIT-COMMANDS
16523 #
16524 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16525
16526
16527 # The HP-UX ksh and POSIX shell print the target directory to stdout
16528 # if CDPATH is set.
16529 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16530
16531 sed_quote_subst='$sed_quote_subst'
16532 double_quote_subst='$double_quote_subst'
16533 delay_variable_subst='$delay_variable_subst'
16534 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16535 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16536 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16537 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16538 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16539 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16540 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16541 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16542 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16543 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16544 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16545 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16546 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16547 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16548 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16549 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16550 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16551 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16552 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16553 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16554 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16555 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16556 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16557 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16558 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16559 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16560 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16561 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16562 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16563 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16564 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16565 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16566 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16567 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16568 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16569 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16570 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16571 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16572 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16573 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16574 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16575 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16576 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16577 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16578 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16579 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16580 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16581 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16582 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16583 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16584 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16585 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16586 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16587 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16588 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16589 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16590 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16591 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16592 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16593 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16594 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"`'
16595 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16596 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16597 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16598 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16599 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16600 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16601 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16602 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16603 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16604 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16605 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16606 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16607 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16608 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16609 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16610 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16611 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16612 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16613 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16614 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16615 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16616 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16617 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16618 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16619 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16620 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16621 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16622 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16623 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16624 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16625 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16626 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16627 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16628 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16629 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16630 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16631 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16632 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16633 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16634 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16635 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16636 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16637 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16638 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16639 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16640 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16641 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16642 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16643 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16644 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16645 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16646 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16647 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16648 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16649 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16650 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16651 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16652 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16653 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16654 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16655 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16656 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16657 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16658 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16659 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16660 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16661 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16662 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16663 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16664 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16665 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16666 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16667 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16668 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16669 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16670 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16671
16672 LTCC='$LTCC'
16673 LTCFLAGS='$LTCFLAGS'
16674 compiler='$compiler_DEFAULT'
16675
16676 # A function that is used when there is no print builtin or printf.
16677 func_fallback_echo ()
16678 {
16679 eval 'cat <<_LTECHO_EOF
16680 \$1
16681 _LTECHO_EOF'
16682 }
16683
16684 # Quote evaled strings.
16685 for var in SHELL \
16686 ECHO \
16687 PATH_SEPARATOR \
16688 SED \
16689 GREP \
16690 EGREP \
16691 FGREP \
16692 LD \
16693 NM \
16694 LN_S \
16695 lt_SP2NL \
16696 lt_NL2SP \
16697 reload_flag \
16698 FILECMD \
16699 OBJDUMP \
16700 deplibs_check_method \
16701 file_magic_cmd \
16702 file_magic_glob \
16703 want_nocaseglob \
16704 DLLTOOL \
16705 sharedlib_from_linklib_cmd \
16706 AR \
16707 archiver_list_spec \
16708 STRIP \
16709 RANLIB \
16710 CC \
16711 CFLAGS \
16712 compiler \
16713 lt_cv_sys_global_symbol_pipe \
16714 lt_cv_sys_global_symbol_to_cdecl \
16715 lt_cv_sys_global_symbol_to_import \
16716 lt_cv_sys_global_symbol_to_c_name_address \
16717 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16718 lt_cv_nm_interface \
16719 nm_file_list_spec \
16720 lt_cv_truncate_bin \
16721 lt_prog_compiler_no_builtin_flag \
16722 lt_prog_compiler_pic \
16723 lt_prog_compiler_wl \
16724 lt_prog_compiler_static \
16725 lt_cv_prog_compiler_c_o \
16726 need_locks \
16727 MANIFEST_TOOL \
16728 DSYMUTIL \
16729 NMEDIT \
16730 LIPO \
16731 OTOOL \
16732 OTOOL64 \
16733 shrext_cmds \
16734 export_dynamic_flag_spec \
16735 whole_archive_flag_spec \
16736 compiler_needs_object \
16737 with_gnu_ld \
16738 allow_undefined_flag \
16739 no_undefined_flag \
16740 hardcode_libdir_flag_spec \
16741 hardcode_libdir_separator \
16742 exclude_expsyms \
16743 include_expsyms \
16744 file_list_spec \
16745 variables_saved_for_relink \
16746 libname_spec \
16747 library_names_spec \
16748 soname_spec \
16749 install_override_mode \
16750 finish_eval \
16751 old_striplib \
16752 striplib; do
16753 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16754 *[\\\\\\\`\\"\\\$]*)
16755 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16756 ;;
16757 *)
16758 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16759 ;;
16760 esac
16761 done
16762
16763 # Double-quote double-evaled strings.
16764 for var in reload_cmds \
16765 old_postinstall_cmds \
16766 old_postuninstall_cmds \
16767 old_archive_cmds \
16768 extract_expsyms_cmds \
16769 old_archive_from_new_cmds \
16770 old_archive_from_expsyms_cmds \
16771 archive_cmds \
16772 archive_expsym_cmds \
16773 module_cmds \
16774 module_expsym_cmds \
16775 export_symbols_cmds \
16776 prelink_cmds \
16777 postlink_cmds \
16778 postinstall_cmds \
16779 postuninstall_cmds \
16780 finish_cmds \
16781 sys_lib_search_path_spec \
16782 configure_time_dlsearch_path \
16783 configure_time_lt_sys_library_path; do
16784 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16785 *[\\\\\\\`\\"\\\$]*)
16786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16787 ;;
16788 *)
16789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16790 ;;
16791 esac
16792 done
16793
16794 ac_aux_dir='$ac_aux_dir'
16795
16796 # See if we are running on zsh, and set the options that allow our
16797 # commands through without removal of \ escapes INIT.
16798 if test -n "\${ZSH_VERSION+set}"; then
16799 setopt NO_GLOB_SUBST
16800 fi
16801
16802
16803 PACKAGE='$PACKAGE'
16804 VERSION='$VERSION'
16805 RM='$RM'
16806 ofile='$ofile'
16807
16808
16809
16810
16811 _ACEOF
16812
16813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16814
16815 # Handling of arguments.
16816 for ac_config_target in $ac_config_targets
16817 do
16818 case $ac_config_target in
16819 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16820 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16821 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16822 "contrib/alpine/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/alpine/Makefile" ;;
16823 "contrib/alpine/finit.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/alpine/finit.d/Makefile" ;;
16824 "contrib/alpine/finit.d/available/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/alpine/finit.d/available/Makefile" ;;
16825 "contrib/debian/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/debian/Makefile" ;;
16826 "contrib/debian/finit.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/debian/finit.d/Makefile" ;;
16827 "contrib/debian/finit.d/available/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/debian/finit.d/available/Makefile" ;;
16828 "contrib/void/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/void/Makefile" ;;
16829 "contrib/void/finit.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/void/finit.d/Makefile" ;;
16830 "contrib/void/finit.d/available/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/void/finit.d/available/Makefile" ;;
16831 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16832 "doc/config/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/Makefile" ;;
16833 "libsystemd/Makefile") CONFIG_FILES="$CONFIG_FILES libsystemd/Makefile" ;;
16834 "libsystemd/libsystemd.pc") CONFIG_FILES="$CONFIG_FILES libsystemd/libsystemd.pc" ;;
16835 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16836 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
16837 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16838 "system/Makefile") CONFIG_FILES="$CONFIG_FILES system/Makefile" ;;
16839 "system/10-hotplug.conf") CONFIG_FILES="$CONFIG_FILES system/10-hotplug.conf" ;;
16840 "test/test.env") CONFIG_FILES="$CONFIG_FILES test/test.env" ;;
16841 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16842 "test/lib/Makefile") CONFIG_FILES="$CONFIG_FILES test/lib/Makefile" ;;
16843 "test/src/Makefile") CONFIG_FILES="$CONFIG_FILES test/src/Makefile" ;;
16844 "tmpfiles.d/Makefile") CONFIG_FILES="$CONFIG_FILES tmpfiles.d/Makefile" ;;
16845 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16846 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16847
16848 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16849 esac
16850 done
16851
16852
16853 # If the user did not use the arguments to specify the items to instantiate,
16854 # then the envvar interface is used. Set only those that are not.
16855 # We use the long form for the default assignment because of an extremely
16856 # bizarre bug on SunOS 4.1.3.
16857 if $ac_need_defaults; then
16858 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16859 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16860 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16861 fi
16862
16863 # Have a temporary directory for convenience. Make it in the build tree
16864 # simply because there is no reason against having it here, and in addition,
16865 # creating and moving files from /tmp can sometimes cause problems.
16866 # Hook for its removal unless debugging.
16867 # Note that there is a small window in which the directory will not be cleaned:
16868 # after its creation but before its name has been assigned to `$tmp'.
16869 $debug ||
16870 {
16871 tmp= ac_tmp=
16872 trap 'exit_status=$?
16873 : "${ac_tmp:=$tmp}"
16874 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16875 ' 0
16876 trap 'as_fn_exit 1' 1 2 13 15
16877 }
16878 # Create a (secure) tmp directory for tmp files.
16879
16880 {
16881 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16882 test -d "$tmp"
16883 } ||
16884 {
16885 tmp=./conf$$-$RANDOM
16886 (umask 077 && mkdir "$tmp")
16887 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16888 ac_tmp=$tmp
16889
16890 # Set up the scripts for CONFIG_FILES section.
16891 # No need to generate them if there are no CONFIG_FILES.
16892 # This happens for instance with `./config.status config.h'.
16893 if test -n "$CONFIG_FILES"; then
16894
16895
16896 ac_cr=`echo X | tr X '\015'`
16897 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16898 # But we know of no other shell where ac_cr would be empty at this
16899 # point, so we can use a bashism as a fallback.
16900 if test "x$ac_cr" = x; then
16901 eval ac_cr=\$\'\\r\'
16902 fi
16903 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16904 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16905 ac_cs_awk_cr='\\r'
16906 else
16907 ac_cs_awk_cr=$ac_cr
16908 fi
16909
16910 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16911 _ACEOF
16912
16913
16914 {
16915 echo "cat >conf$$subs.awk <<_ACEOF" &&
16916 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16917 echo "_ACEOF"
16918 } >conf$$subs.sh ||
16919 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16920 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16921 ac_delim='%!_!# '
16922 for ac_last_try in false false false false false :; do
16923 . ./conf$$subs.sh ||
16924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16925
16926 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16927 if test $ac_delim_n = $ac_delim_num; then
16928 break
16929 elif $ac_last_try; then
16930 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16931 else
16932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16933 fi
16934 done
16935 rm -f conf$$subs.sh
16936
16937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16938 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16939 _ACEOF
16940 sed -n '
16941 h
16942 s/^/S["/; s/!.*/"]=/
16943 p
16944 g
16945 s/^[^!]*!//
16946 :repl
16947 t repl
16948 s/'"$ac_delim"'$//
16949 t delim
16950 :nl
16951 h
16952 s/\(.\{148\}\)..*/\1/
16953 t more1
16954 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16955 p
16956 n
16957 b repl
16958 :more1
16959 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16960 p
16961 g
16962 s/.\{148\}//
16963 t nl
16964 :delim
16965 h
16966 s/\(.\{148\}\)..*/\1/
16967 t more2
16968 s/["\\]/\\&/g; s/^/"/; s/$/"/
16969 p
16970 b
16971 :more2
16972 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16973 p
16974 g
16975 s/.\{148\}//
16976 t delim
16977 ' <conf$$subs.awk | sed '
16978 /^[^""]/{
16979 N
16980 s/\n//
16981 }
16982 ' >>$CONFIG_STATUS || ac_write_fail=1
16983 rm -f conf$$subs.awk
16984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16985 _ACAWK
16986 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16987 for (key in S) S_is_set[key] = 1
16988 FS = ""
16989
16990 }
16991 {
16992 line = $ 0
16993 nfields = split(line, field, "@")
16994 substed = 0
16995 len = length(field[1])
16996 for (i = 2; i < nfields; i++) {
16997 key = field[i]
16998 keylen = length(key)
16999 if (S_is_set[key]) {
17000 value = S[key]
17001 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17002 len += length(value) + length(field[++i])
17003 substed = 1
17004 } else
17005 len += 1 + keylen
17006 }
17007
17008 print line
17009 }
17010
17011 _ACAWK
17012 _ACEOF
17013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17014 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17015 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17016 else
17017 cat
17018 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17019 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17020 _ACEOF
17021
17022 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17023 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17024 # trailing colons and then remove the whole line if VPATH becomes empty
17025 # (actually we leave an empty line to preserve line numbers).
17026 if test "x$srcdir" = x.; then
17027 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17028 h
17029 s///
17030 s/^/:/
17031 s/[ ]*$/:/
17032 s/:\$(srcdir):/:/g
17033 s/:\${srcdir}:/:/g
17034 s/:@srcdir@:/:/g
17035 s/^:*//
17036 s/:*$//
17037 x
17038 s/\(=[ ]*\).*/\1/
17039 G
17040 s/\n//
17041 s/^[^=]*=[ ]*$//
17042 }'
17043 fi
17044
17045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17046 fi # test -n "$CONFIG_FILES"
17047
17048 # Set up the scripts for CONFIG_HEADERS section.
17049 # No need to generate them if there are no CONFIG_HEADERS.
17050 # This happens for instance with `./config.status Makefile'.
17051 if test -n "$CONFIG_HEADERS"; then
17052 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17053 BEGIN {
17054 _ACEOF
17055
17056 # Transform confdefs.h into an awk script `defines.awk', embedded as
17057 # here-document in config.status, that substitutes the proper values into
17058 # config.h.in to produce config.h.
17059
17060 # Create a delimiter string that does not exist in confdefs.h, to ease
17061 # handling of long lines.
17062 ac_delim='%!_!# '
17063 for ac_last_try in false false :; do
17064 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17065 if test -z "$ac_tt"; then
17066 break
17067 elif $ac_last_try; then
17068 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17069 else
17070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17071 fi
17072 done
17073
17074 # For the awk script, D is an array of macro values keyed by name,
17075 # likewise P contains macro parameters if any. Preserve backslash
17076 # newline sequences.
17077
17078 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17079 sed -n '
17080 s/.\{148\}/&'"$ac_delim"'/g
17081 t rset
17082 :rset
17083 s/^[ ]*#[ ]*define[ ][ ]*/ /
17084 t def
17085 d
17086 :def
17087 s/\\$//
17088 t bsnl
17089 s/["\\]/\\&/g
17090 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17091 D["\1"]=" \3"/p
17092 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17093 d
17094 :bsnl
17095 s/["\\]/\\&/g
17096 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17097 D["\1"]=" \3\\\\\\n"\\/p
17098 t cont
17099 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17100 t cont
17101 d
17102 :cont
17103 n
17104 s/.\{148\}/&'"$ac_delim"'/g
17105 t clear
17106 :clear
17107 s/\\$//
17108 t bsnlc
17109 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17110 d
17111 :bsnlc
17112 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17113 b cont
17114 ' <confdefs.h | sed '
17115 s/'"$ac_delim"'/"\\\
17116 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17117
17118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17119 for (key in D) D_is_set[key] = 1
17120 FS = ""
17121 }
17122 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17123 line = \$ 0
17124 split(line, arg, " ")
17125 if (arg[1] == "#") {
17126 defundef = arg[2]
17127 mac1 = arg[3]
17128 } else {
17129 defundef = substr(arg[1], 2)
17130 mac1 = arg[2]
17131 }
17132 split(mac1, mac2, "(") #)
17133 macro = mac2[1]
17134 prefix = substr(line, 1, index(line, defundef) - 1)
17135 if (D_is_set[macro]) {
17136 # Preserve the white space surrounding the "#".
17137 print prefix "define", macro P[macro] D[macro]
17138 next
17139 } else {
17140 # Replace #undef with comments. This is necessary, for example,
17141 # in the case of _POSIX_SOURCE, which is predefined and required
17142 # on some systems where configure will not decide to define it.
17143 if (defundef == "undef") {
17144 print "/*", prefix defundef, macro, "*/"
17145 next
17146 }
17147 }
17148 }
17149 { print }
17150 _ACAWK
17151 _ACEOF
17152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17153 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17154 fi # test -n "$CONFIG_HEADERS"
17155
17156
17157 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17158 shift
17159 for ac_tag
17160 do
17161 case $ac_tag in
17162 :[FHLC]) ac_mode=$ac_tag; continue;;
17163 esac
17164 case $ac_mode$ac_tag in
17165 :[FHL]*:*);;
17166 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17167 :[FH]-) ac_tag=-:-;;
17168 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17169 esac
17170 ac_save_IFS=$IFS
17171 IFS=:
17172 set x $ac_tag
17173 IFS=$ac_save_IFS
17174 shift
17175 ac_file=$1
17176 shift
17177
17178 case $ac_mode in
17179 :L) ac_source=$1;;
17180 :[FH])
17181 ac_file_inputs=
17182 for ac_f
17183 do
17184 case $ac_f in
17185 -) ac_f="$ac_tmp/stdin";;
17186 *) # Look for the file first in the build tree, then in the source tree
17187 # (if the path is not absolute). The absolute path cannot be DOS-style,
17188 # because $ac_f cannot contain `:'.
17189 test -f "$ac_f" ||
17190 case $ac_f in
17191 [\\/$]*) false;;
17192 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17193 esac ||
17194 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17195 esac
17196 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17197 as_fn_append ac_file_inputs " '$ac_f'"
17198 done
17199
17200 # Let's still pretend it is `configure' which instantiates (i.e., don't
17201 # use $as_me), people would be surprised to read:
17202 # /* config.h. Generated by config.status. */
17203 configure_input='Generated from '`
17204 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17205 `' by configure.'
17206 if test x"$ac_file" != x-; then
17207 configure_input="$ac_file. $configure_input"
17208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17209 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17210 fi
17211 # Neutralize special characters interpreted by sed in replacement strings.
17212 case $configure_input in #(
17213 *\&* | *\|* | *\\* )
17214 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17215 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17216 *) ac_sed_conf_input=$configure_input;;
17217 esac
17218
17219 case $ac_tag in
17220 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17221 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17222 esac
17223 ;;
17224 esac
17225
17226 ac_dir=`$as_dirname -- "$ac_file" ||
17227 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17228 X"$ac_file" : 'X\(//\)[^/]' \| \
17229 X"$ac_file" : 'X\(//\)$' \| \
17230 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17231 printf "%s\n" X"$ac_file" |
17232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17233 s//\1/
17234 q
17235 }
17236 /^X\(\/\/\)[^/].*/{
17237 s//\1/
17238 q
17239 }
17240 /^X\(\/\/\)$/{
17241 s//\1/
17242 q
17243 }
17244 /^X\(\/\).*/{
17245 s//\1/
17246 q
17247 }
17248 s/.*/./; q'`
17249 as_dir="$ac_dir"; as_fn_mkdir_p
17250 ac_builddir=.
17251
17252 case "$ac_dir" in
17253 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17254 *)
17255 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17256 # A ".." for each directory in $ac_dir_suffix.
17257 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17258 case $ac_top_builddir_sub in
17259 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17260 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17261 esac ;;
17262 esac
17263 ac_abs_top_builddir=$ac_pwd
17264 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17265 # for backward compatibility:
17266 ac_top_builddir=$ac_top_build_prefix
17267
17268 case $srcdir in
17269 .) # We are building in place.
17270 ac_srcdir=.
17271 ac_top_srcdir=$ac_top_builddir_sub
17272 ac_abs_top_srcdir=$ac_pwd ;;
17273 [\\/]* | ?:[\\/]* ) # Absolute name.
17274 ac_srcdir=$srcdir$ac_dir_suffix;
17275 ac_top_srcdir=$srcdir
17276 ac_abs_top_srcdir=$srcdir ;;
17277 *) # Relative name.
17278 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17279 ac_top_srcdir=$ac_top_build_prefix$srcdir
17280 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17281 esac
17282 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17283
17284
17285 case $ac_mode in
17286 :F)
17287 #
17288 # CONFIG_FILE
17289 #
17290
17291 case $INSTALL in
17292 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17293 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17294 esac
17295 ac_MKDIR_P=$MKDIR_P
17296 case $MKDIR_P in
17297 [\\/$]* | ?:[\\/]* ) ;;
17298 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17299 esac
17300 _ACEOF
17301
17302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17303 # If the template does not know about datarootdir, expand it.
17304 # FIXME: This hack should be removed a few years after 2.60.
17305 ac_datarootdir_hack=; ac_datarootdir_seen=
17306 ac_sed_dataroot='
17307 /datarootdir/ {
17308 p
17309 q
17310 }
17311 /@datadir@/p
17312 /@docdir@/p
17313 /@infodir@/p
17314 /@localedir@/p
17315 /@mandir@/p'
17316 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17317 *datarootdir*) ac_datarootdir_seen=yes;;
17318 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17320 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17321 _ACEOF
17322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17323 ac_datarootdir_hack='
17324 s&@datadir@&$datadir&g
17325 s&@docdir@&$docdir&g
17326 s&@infodir@&$infodir&g
17327 s&@localedir@&$localedir&g
17328 s&@mandir@&$mandir&g
17329 s&\\\${datarootdir}&$datarootdir&g' ;;
17330 esac
17331 _ACEOF
17332
17333 # Neutralize VPATH when `$srcdir' = `.'.
17334 # Shell code in configure.ac might set extrasub.
17335 # FIXME: do we really want to maintain this feature?
17336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17337 ac_sed_extra="$ac_vpsub
17338 $extrasub
17339 _ACEOF
17340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17341 :t
17342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17343 s|@configure_input@|$ac_sed_conf_input|;t t
17344 s&@top_builddir@&$ac_top_builddir_sub&;t t
17345 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17346 s&@srcdir@&$ac_srcdir&;t t
17347 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17348 s&@top_srcdir@&$ac_top_srcdir&;t t
17349 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17350 s&@builddir@&$ac_builddir&;t t
17351 s&@abs_builddir@&$ac_abs_builddir&;t t
17352 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17353 s&@INSTALL@&$ac_INSTALL&;t t
17354 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17355 $ac_datarootdir_hack
17356 "
17357 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17358 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17359
17360 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17361 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17362 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17363 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17365 which seems to be undefined. Please make sure it is defined" >&5
17366 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17367 which seems to be undefined. Please make sure it is defined" >&2;}
17368
17369 rm -f "$ac_tmp/stdin"
17370 case $ac_file in
17371 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17372 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17373 esac \
17374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17375 ;;
17376 :H)
17377 #
17378 # CONFIG_HEADER
17379 #
17380 if test x"$ac_file" != x-; then
17381 {
17382 printf "%s\n" "/* $configure_input */" >&1 \
17383 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17384 } >"$ac_tmp/config.h" \
17385 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17386 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17388 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17389 else
17390 rm -f "$ac_file"
17391 mv "$ac_tmp/config.h" "$ac_file" \
17392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17393 fi
17394 else
17395 printf "%s\n" "/* $configure_input */" >&1 \
17396 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17397 || as_fn_error $? "could not create -" "$LINENO" 5
17398 fi
17399 # Compute "$ac_file"'s index in $config_headers.
17400 _am_arg="$ac_file"
17401 _am_stamp_count=1
17402 for _am_header in $config_headers :; do
17403 case $_am_header in
17404 $_am_arg | $_am_arg:* )
17405 break ;;
17406 * )
17407 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17408 esac
17409 done
17410 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17411 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17412 X"$_am_arg" : 'X\(//\)[^/]' \| \
17413 X"$_am_arg" : 'X\(//\)$' \| \
17414 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17415 printf "%s\n" X"$_am_arg" |
17416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17417 s//\1/
17418 q
17419 }
17420 /^X\(\/\/\)[^/].*/{
17421 s//\1/
17422 q
17423 }
17424 /^X\(\/\/\)$/{
17425 s//\1/
17426 q
17427 }
17428 /^X\(\/\).*/{
17429 s//\1/
17430 q
17431 }
17432 s/.*/./; q'`/stamp-h$_am_stamp_count
17433 ;;
17434
17435 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17436 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17437 ;;
17438 esac
17439
17440
17441 case $ac_file$ac_mode in
17442 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17443 # Older Autoconf quotes --file arguments for eval, but not when files
17444 # are listed without --file. Let's play safe and only enable the eval
17445 # if we detect the quoting.
17446 # TODO: see whether this extra hack can be removed once we start
17447 # requiring Autoconf 2.70 or later.
17448 case $CONFIG_FILES in #(
17449 *\'*) :
17450 eval set x "$CONFIG_FILES" ;; #(
17451 *) :
17452 set x $CONFIG_FILES ;; #(
17453 *) :
17454 ;;
17455 esac
17456 shift
17457 # Used to flag and report bootstrapping failures.
17458 am_rc=0
17459 for am_mf
17460 do
17461 # Strip MF so we end up with the name of the file.
17462 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17463 # Check whether this is an Automake generated Makefile which includes
17464 # dependency-tracking related rules and includes.
17465 # Grep'ing the whole file directly is not great: AIX grep has a line
17466 # limit of 2048, but all sed's we know have understand at least 4000.
17467 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17468 || continue
17469 am_dirpart=`$as_dirname -- "$am_mf" ||
17470 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17471 X"$am_mf" : 'X\(//\)[^/]' \| \
17472 X"$am_mf" : 'X\(//\)$' \| \
17473 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17474 printf "%s\n" X"$am_mf" |
17475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17476 s//\1/
17477 q
17478 }
17479 /^X\(\/\/\)[^/].*/{
17480 s//\1/
17481 q
17482 }
17483 /^X\(\/\/\)$/{
17484 s//\1/
17485 q
17486 }
17487 /^X\(\/\).*/{
17488 s//\1/
17489 q
17490 }
17491 s/.*/./; q'`
17492 am_filepart=`$as_basename -- "$am_mf" ||
17493 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17494 X"$am_mf" : 'X\(//\)$' \| \
17495 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17496 printf "%s\n" X/"$am_mf" |
17497 sed '/^.*\/\([^/][^/]*\)\/*$/{
17498 s//\1/
17499 q
17500 }
17501 /^X\/\(\/\/\)$/{
17502 s//\1/
17503 q
17504 }
17505 /^X\/\(\/\).*/{
17506 s//\1/
17507 q
17508 }
17509 s/.*/./; q'`
17510 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17511 && sed -e '/# am--include-marker/d' "$am_filepart" \
17512 | $MAKE -f - am--depfiles" >&5
17513 (cd "$am_dirpart" \
17514 && sed -e '/# am--include-marker/d' "$am_filepart" \
17515 | $MAKE -f - am--depfiles) >&5 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } || am_rc=$?
17519 done
17520 if test $am_rc -ne 0; then
17521 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17522 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17523 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17524 for automatic dependency tracking. If GNU make was not used, consider
17525 re-running the configure script with MAKE=\"gmake\" (or whatever is
17526 necessary). You can also try re-running configure with the
17527 '--disable-dependency-tracking' option to at least be able to build
17528 the package (albeit without support for automatic dependency tracking).
17529 See \`config.log' for more details" "$LINENO" 5; }
17530 fi
17531 { am_dirpart=; unset am_dirpart;}
17532 { am_filepart=; unset am_filepart;}
17533 { am_mf=; unset am_mf;}
17534 { am_rc=; unset am_rc;}
17535 rm -f conftest-deps.mk
17536 }
17537 ;;
17538 "libtool":C)
17539
17540 # See if we are running on zsh, and set the options that allow our
17541 # commands through without removal of \ escapes.
17542 if test -n "${ZSH_VERSION+set}"; then
17543 setopt NO_GLOB_SUBST
17544 fi
17545
17546 cfgfile=${ofile}T
17547 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17548 $RM "$cfgfile"
17549
17550 cat <<_LT_EOF >> "$cfgfile"
17551 #! $SHELL
17552 # Generated automatically by $as_me ($PACKAGE) $VERSION
17553 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17554
17555 # Provide generalized library-building support services.
17556 # Written by Gordon Matzigkeit, 1996
17557
17558 # Copyright (C) 2014 Free Software Foundation, Inc.
17559 # This is free software; see the source for copying conditions. There is NO
17560 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17561
17562 # GNU Libtool is free software; you can redistribute it and/or modify
17563 # it under the terms of the GNU General Public License as published by
17564 # the Free Software Foundation; either version 2 of of the License, or
17565 # (at your option) any later version.
17566 #
17567 # As a special exception to the GNU General Public License, if you
17568 # distribute this file as part of a program or library that is built
17569 # using GNU Libtool, you may include this file under the same
17570 # distribution terms that you use for the rest of that program.
17571 #
17572 # GNU Libtool is distributed in the hope that it will be useful, but
17573 # WITHOUT ANY WARRANTY; without even the implied warranty of
17574 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17575 # GNU General Public License for more details.
17576 #
17577 # You should have received a copy of the GNU General Public License
17578 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17579
17580
17581 # The names of the tagged configurations supported by this script.
17582 available_tags=''
17583
17584 # Configured defaults for sys_lib_dlsearch_path munging.
17585 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17586
17587 # ### BEGIN LIBTOOL CONFIG
17588
17589 # Which release of libtool.m4 was used?
17590 macro_version=$macro_version
17591 macro_revision=$macro_revision
17592
17593 # Whether or not to build shared libraries.
17594 build_libtool_libs=$enable_shared
17595
17596 # Whether or not to build static libraries.
17597 build_old_libs=$enable_static
17598
17599 # Shared archive member basename,for filename based shared library versioning on AIX.
17600 shared_archive_member_spec=$shared_archive_member_spec
17601
17602 # Whether or not to optimize for fast installation.
17603 fast_install=$enable_fast_install
17604
17605 # What type of objects to build.
17606 pic_mode=$pic_mode
17607
17608 # Shell to use when invoking shell scripts.
17609 SHELL=$lt_SHELL
17610
17611 # An echo program that protects backslashes.
17612 ECHO=$lt_ECHO
17613
17614 # The PATH separator for the build system.
17615 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17616
17617 # The host system.
17618 host_alias=$host_alias
17619 host=$host
17620 host_os=$host_os
17621
17622 # The build system.
17623 build_alias=$build_alias
17624 build=$build
17625 build_os=$build_os
17626
17627 # A sed program that does not truncate output.
17628 SED=$lt_SED
17629
17630 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17631 Xsed="\$SED -e 1s/^X//"
17632
17633 # A grep program that handles long lines.
17634 GREP=$lt_GREP
17635
17636 # An ERE matcher.
17637 EGREP=$lt_EGREP
17638
17639 # A literal string matcher.
17640 FGREP=$lt_FGREP
17641
17642 # A BSD- or MS-compatible name lister.
17643 NM=$lt_NM
17644
17645 # Whether we need soft or hard links.
17646 LN_S=$lt_LN_S
17647
17648 # What is the maximum length of a command?
17649 max_cmd_len=$max_cmd_len
17650
17651 # Object file suffix (normally "o").
17652 objext=$ac_objext
17653
17654 # Executable file suffix (normally "").
17655 exeext=$exeext
17656
17657 # whether the shell understands "unset".
17658 lt_unset=$lt_unset
17659
17660 # turn spaces into newlines.
17661 SP2NL=$lt_lt_SP2NL
17662
17663 # turn newlines into spaces.
17664 NL2SP=$lt_lt_NL2SP
17665
17666 # convert \$build file names to \$host format.
17667 to_host_file_cmd=$lt_cv_to_host_file_cmd
17668
17669 # convert \$build files to toolchain format.
17670 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17671
17672 # A file(cmd) program that detects file types.
17673 FILECMD=$lt_FILECMD
17674
17675 # An object symbol dumper.
17676 OBJDUMP=$lt_OBJDUMP
17677
17678 # Method to check whether dependent libraries are shared objects.
17679 deplibs_check_method=$lt_deplibs_check_method
17680
17681 # Command to use when deplibs_check_method = "file_magic".
17682 file_magic_cmd=$lt_file_magic_cmd
17683
17684 # How to find potential files when deplibs_check_method = "file_magic".
17685 file_magic_glob=$lt_file_magic_glob
17686
17687 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17688 want_nocaseglob=$lt_want_nocaseglob
17689
17690 # DLL creation program.
17691 DLLTOOL=$lt_DLLTOOL
17692
17693 # Command to associate shared and link libraries.
17694 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17695
17696 # The archiver.
17697 AR=$lt_AR
17698
17699 # Flags to create an archive (by configure).
17700 lt_ar_flags=$lt_ar_flags
17701
17702 # Flags to create an archive.
17703 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17704
17705 # How to feed a file listing to the archiver.
17706 archiver_list_spec=$lt_archiver_list_spec
17707
17708 # A symbol stripping program.
17709 STRIP=$lt_STRIP
17710
17711 # Commands used to install an old-style archive.
17712 RANLIB=$lt_RANLIB
17713 old_postinstall_cmds=$lt_old_postinstall_cmds
17714 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17715
17716 # Whether to use a lock for old archive extraction.
17717 lock_old_archive_extraction=$lock_old_archive_extraction
17718
17719 # A C compiler.
17720 LTCC=$lt_CC
17721
17722 # LTCC compiler flags.
17723 LTCFLAGS=$lt_CFLAGS
17724
17725 # Take the output of nm and produce a listing of raw symbols and C names.
17726 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17727
17728 # Transform the output of nm in a proper C declaration.
17729 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17730
17731 # Transform the output of nm into a list of symbols to manually relocate.
17732 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17733
17734 # Transform the output of nm in a C name address pair.
17735 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17736
17737 # Transform the output of nm in a C name address pair when lib prefix is needed.
17738 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17739
17740 # The name lister interface.
17741 nm_interface=$lt_lt_cv_nm_interface
17742
17743 # Specify filename containing input files for \$NM.
17744 nm_file_list_spec=$lt_nm_file_list_spec
17745
17746 # The root where to search for dependent libraries,and where our libraries should be installed.
17747 lt_sysroot=$lt_sysroot
17748
17749 # Command to truncate a binary pipe.
17750 lt_truncate_bin=$lt_lt_cv_truncate_bin
17751
17752 # The name of the directory that contains temporary libtool files.
17753 objdir=$objdir
17754
17755 # Used to examine libraries when file_magic_cmd begins with "file".
17756 MAGIC_CMD=$MAGIC_CMD
17757
17758 # Must we lock files when doing compilation?
17759 need_locks=$lt_need_locks
17760
17761 # Manifest tool.
17762 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17763
17764 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17765 DSYMUTIL=$lt_DSYMUTIL
17766
17767 # Tool to change global to local symbols on Mac OS X.
17768 NMEDIT=$lt_NMEDIT
17769
17770 # Tool to manipulate fat objects and archives on Mac OS X.
17771 LIPO=$lt_LIPO
17772
17773 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17774 OTOOL=$lt_OTOOL
17775
17776 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17777 OTOOL64=$lt_OTOOL64
17778
17779 # Old archive suffix (normally "a").
17780 libext=$libext
17781
17782 # Shared library suffix (normally ".so").
17783 shrext_cmds=$lt_shrext_cmds
17784
17785 # The commands to extract the exported symbol list from a shared archive.
17786 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17787
17788 # Variables whose values should be saved in libtool wrapper scripts and
17789 # restored at link time.
17790 variables_saved_for_relink=$lt_variables_saved_for_relink
17791
17792 # Do we need the "lib" prefix for modules?
17793 need_lib_prefix=$need_lib_prefix
17794
17795 # Do we need a version for libraries?
17796 need_version=$need_version
17797
17798 # Library versioning type.
17799 version_type=$version_type
17800
17801 # Shared library runtime path variable.
17802 runpath_var=$runpath_var
17803
17804 # Shared library path variable.
17805 shlibpath_var=$shlibpath_var
17806
17807 # Is shlibpath searched before the hard-coded library search path?
17808 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17809
17810 # Format of library name prefix.
17811 libname_spec=$lt_libname_spec
17812
17813 # List of archive names. First name is the real one, the rest are links.
17814 # The last name is the one that the linker finds with -lNAME
17815 library_names_spec=$lt_library_names_spec
17816
17817 # The coded name of the library, if different from the real name.
17818 soname_spec=$lt_soname_spec
17819
17820 # Permission mode override for installation of shared libraries.
17821 install_override_mode=$lt_install_override_mode
17822
17823 # Command to use after installation of a shared archive.
17824 postinstall_cmds=$lt_postinstall_cmds
17825
17826 # Command to use after uninstallation of a shared archive.
17827 postuninstall_cmds=$lt_postuninstall_cmds
17828
17829 # Commands used to finish a libtool library installation in a directory.
17830 finish_cmds=$lt_finish_cmds
17831
17832 # As "finish_cmds", except a single script fragment to be evaled but
17833 # not shown.
17834 finish_eval=$lt_finish_eval
17835
17836 # Whether we should hardcode library paths into libraries.
17837 hardcode_into_libs=$hardcode_into_libs
17838
17839 # Compile-time system search path for libraries.
17840 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17841
17842 # Detected run-time system search path for libraries.
17843 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17844
17845 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17846 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17847
17848 # Whether dlopen is supported.
17849 dlopen_support=$enable_dlopen
17850
17851 # Whether dlopen of programs is supported.
17852 dlopen_self=$enable_dlopen_self
17853
17854 # Whether dlopen of statically linked programs is supported.
17855 dlopen_self_static=$enable_dlopen_self_static
17856
17857 # Commands to strip libraries.
17858 old_striplib=$lt_old_striplib
17859 striplib=$lt_striplib
17860
17861
17862 # The linker used to build libraries.
17863 LD=$lt_LD
17864
17865 # How to create reloadable object files.
17866 reload_flag=$lt_reload_flag
17867 reload_cmds=$lt_reload_cmds
17868
17869 # Commands used to build an old-style archive.
17870 old_archive_cmds=$lt_old_archive_cmds
17871
17872 # A language specific compiler.
17873 CC=$lt_compiler
17874
17875 # Is the compiler the GNU compiler?
17876 with_gcc=$GCC
17877
17878 # Compiler flag to turn off builtin functions.
17879 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17880
17881 # Additional compiler flags for building library objects.
17882 pic_flag=$lt_lt_prog_compiler_pic
17883
17884 # How to pass a linker flag through the compiler.
17885 wl=$lt_lt_prog_compiler_wl
17886
17887 # Compiler flag to prevent dynamic linking.
17888 link_static_flag=$lt_lt_prog_compiler_static
17889
17890 # Does compiler simultaneously support -c and -o options?
17891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17892
17893 # Whether or not to add -lc for building shared libraries.
17894 build_libtool_need_lc=$archive_cmds_need_lc
17895
17896 # Whether or not to disallow shared libs when runtime libs are static.
17897 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17898
17899 # Compiler flag to allow reflexive dlopens.
17900 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17901
17902 # Compiler flag to generate shared objects directly from archives.
17903 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17904
17905 # Whether the compiler copes with passing no objects directly.
17906 compiler_needs_object=$lt_compiler_needs_object
17907
17908 # Create an old-style archive from a shared archive.
17909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17910
17911 # Create a temporary old-style archive to link instead of a shared archive.
17912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17913
17914 # Commands used to build a shared archive.
17915 archive_cmds=$lt_archive_cmds
17916 archive_expsym_cmds=$lt_archive_expsym_cmds
17917
17918 # Commands used to build a loadable module if different from building
17919 # a shared archive.
17920 module_cmds=$lt_module_cmds
17921 module_expsym_cmds=$lt_module_expsym_cmds
17922
17923 # Whether we are building with GNU ld or not.
17924 with_gnu_ld=$lt_with_gnu_ld
17925
17926 # Flag that allows shared libraries with undefined symbols to be built.
17927 allow_undefined_flag=$lt_allow_undefined_flag
17928
17929 # Flag that enforces no undefined symbols.
17930 no_undefined_flag=$lt_no_undefined_flag
17931
17932 # Flag to hardcode \$libdir into a binary during linking.
17933 # This must work even if \$libdir does not exist
17934 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17935
17936 # Whether we need a single "-rpath" flag with a separated argument.
17937 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17938
17939 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17940 # DIR into the resulting binary.
17941 hardcode_direct=$hardcode_direct
17942
17943 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17944 # DIR into the resulting binary and the resulting library dependency is
17945 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17946 # library is relocated.
17947 hardcode_direct_absolute=$hardcode_direct_absolute
17948
17949 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17950 # into the resulting binary.
17951 hardcode_minus_L=$hardcode_minus_L
17952
17953 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17954 # into the resulting binary.
17955 hardcode_shlibpath_var=$hardcode_shlibpath_var
17956
17957 # Set to "yes" if building a shared library automatically hardcodes DIR
17958 # into the library and all subsequent libraries and executables linked
17959 # against it.
17960 hardcode_automatic=$hardcode_automatic
17961
17962 # Set to yes if linker adds runtime paths of dependent libraries
17963 # to runtime path list.
17964 inherit_rpath=$inherit_rpath
17965
17966 # Whether libtool must link a program against all its dependency libraries.
17967 link_all_deplibs=$link_all_deplibs
17968
17969 # Set to "yes" if exported symbols are required.
17970 always_export_symbols=$always_export_symbols
17971
17972 # The commands to list exported symbols.
17973 export_symbols_cmds=$lt_export_symbols_cmds
17974
17975 # Symbols that should not be listed in the preloaded symbols.
17976 exclude_expsyms=$lt_exclude_expsyms
17977
17978 # Symbols that must always be exported.
17979 include_expsyms=$lt_include_expsyms
17980
17981 # Commands necessary for linking programs (against libraries) with templates.
17982 prelink_cmds=$lt_prelink_cmds
17983
17984 # Commands necessary for finishing linking programs.
17985 postlink_cmds=$lt_postlink_cmds
17986
17987 # Specify filename containing input files.
17988 file_list_spec=$lt_file_list_spec
17989
17990 # How to hardcode a shared library path into an executable.
17991 hardcode_action=$hardcode_action
17992
17993 # ### END LIBTOOL CONFIG
17994
17995 _LT_EOF
17996
17997 cat <<'_LT_EOF' >> "$cfgfile"
17998
17999 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18000
18001 # func_munge_path_list VARIABLE PATH
18002 # -----------------------------------
18003 # VARIABLE is name of variable containing _space_ separated list of
18004 # directories to be munged by the contents of PATH, which is string
18005 # having a format:
18006 # "DIR[:DIR]:"
18007 # string "DIR[ DIR]" will be prepended to VARIABLE
18008 # ":DIR[:DIR]"
18009 # string "DIR[ DIR]" will be appended to VARIABLE
18010 # "DIRP[:DIRP]::[DIRA:]DIRA"
18011 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18012 # "DIRA[ DIRA]" will be appended to VARIABLE
18013 # "DIR[:DIR]"
18014 # VARIABLE will be replaced by "DIR[ DIR]"
18015 func_munge_path_list ()
18016 {
18017 case x$2 in
18018 x)
18019 ;;
18020 *:)
18021 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18022 ;;
18023 x:*)
18024 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18025 ;;
18026 *::*)
18027 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18028 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18029 ;;
18030 *)
18031 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18032 ;;
18033 esac
18034 }
18035
18036
18037 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18038 func_cc_basename ()
18039 {
18040 for cc_temp in $*""; do
18041 case $cc_temp in
18042 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18043 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18044 \-*) ;;
18045 *) break;;
18046 esac
18047 done
18048 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18049 }
18050
18051
18052 # ### END FUNCTIONS SHARED WITH CONFIGURE
18053
18054 _LT_EOF
18055
18056 case $host_os in
18057 aix3*)
18058 cat <<\_LT_EOF >> "$cfgfile"
18059 # AIX sometimes has problems with the GCC collect2 program. For some
18060 # reason, if we set the COLLECT_NAMES environment variable, the problems
18061 # vanish in a puff of smoke.
18062 if test set != "${COLLECT_NAMES+set}"; then
18063 COLLECT_NAMES=
18064 export COLLECT_NAMES
18065 fi
18066 _LT_EOF
18067 ;;
18068 esac
18069
18070
18071
18072 ltmain=$ac_aux_dir/ltmain.sh
18073
18074
18075 # We use sed instead of cat because bash on DJGPP gets confused if
18076 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18077 # text mode, it properly converts lines to CR/LF. This bash problem
18078 # is reportedly fixed, but why not run on old versions too?
18079 $SED '$q' "$ltmain" >> "$cfgfile" \
18080 || (rm -f "$cfgfile"; exit 1)
18081
18082 mv -f "$cfgfile" "$ofile" ||
18083 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18084 chmod +x "$ofile"
18085
18086 ;;
18087
18088 esac
18089 done # for ac_tag
18090
18091
18092 as_fn_exit 0
18093 _ACEOF
18094 ac_clean_files=$ac_clean_files_save
18095
18096 test $ac_write_fail = 0 ||
18097 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18098
18099
18100 # configure is writing to config.log, and then calls config.status.
18101 # config.status does its own redirection, appending to config.log.
18102 # Unfortunately, on DOS this fails, as config.log is still kept open
18103 # by configure, so config.status won't be able to write to it; its
18104 # output is simply discarded. So we exec the FD to /dev/null,
18105 # effectively closing config.log, so it can be properly (re)opened and
18106 # appended to by config.status. When coming back to configure, we
18107 # need to make the FD available again.
18108 if test "$no_create" != yes; then
18109 ac_cs_success=:
18110 ac_config_status_args=
18111 test "$silent" = yes &&
18112 ac_config_status_args="$ac_config_status_args --quiet"
18113 exec 5>/dev/null
18114 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18115 exec 5>>config.log
18116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18117 # would make configure fail if this is the last instruction.
18118 $ac_cs_success || as_fn_exit 1
18119 fi
18120 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18122 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18123 fi
18124
18125
18126 cat <<EOF
18127
18128 ------------------ Summary ------------------
18129 $PACKAGE_NAME version $PACKAGE_VERSION
18130 Prefix................: $(eval echo $prefix)
18131 Exec prefix...........: $(eval echo $exec_prefix)
18132 Libdir................: $(eval echo $libdir)
18133 Sysconfdir............: `eval echo $sysconfdir`
18134 Localstatedir.........: `eval echo $localstatedir`
18135 Default fstab.........: `eval echo $fstab`
18136 Finit config file.....: $conf_path
18137 Finit config.d path...: $rcsd_path
18138 Finit plugin path.....: $plugin_path
18139 Compat rc.local path..: `eval echo $rclocal`
18140 System environment....: ${sysconfig_path:-${sysconfig}}
18141 Random seed path......: $random_path
18142 C Compiler............: $CC $CFLAGS $CPPFLAGS $LDFLAGS $LIBS
18143 Linker................: $LD $LLDP_LDFLAGS $LLDP_BIN_LDFLAGS $LDFLAGS $LIBS
18144
18145 Behavior:
18146 Boot heading..........: $heading
18147 Plugins...............: $plugins
18148 RTC restore date......: $RTC_DATE
18149 RTC fallback file.....: $rtc_file
18150
18151 Optional features:
18152 Install doc/..........: $enable_doc
18153 Install contrib/......: $enable_contrib
18154 Bash completion.......: $bash_completion_dir
18155 Built-in keventd......: $with_keventd
18156 Built-in sulogin......: $with_sulogin $sulogin
18157 Built-in watchdogd....: $with_watchdog $watchdog
18158 Built-in logrotate....: $enable_logrotate
18159 Replacement libsystemd: $with_libsystemd
18160 Use cgroup v2.........: $enable_cgroup
18161 Parse kernel cmdline..: $enable_kernel_cmdline
18162 Keep kernel logging...: $enable_kernel_logging
18163 Skip fsck check.......: $enable_fastboot
18164 Run fsck fix mode.....: $enable_fsckfix
18165 Redirect output.......: $enable_redirect
18166 Rescue mode...........: $enable_rescue
18167 Default hostname......: $hostname
18168 Default group.........: $group
18169 Default runlevel......: $runlevel
18170
18171 ------------- Compiler version --------------
18172 $($CC --version || true)
18173 -------------- Linker version ---------------
18174 $($LD --version || true)
18175 ---------------------------------------------
18176
18177 Check the above options and compile with:
18178 ${MAKE-make}
18179
18180 EOF
18181