Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for oddjob 0.34.7.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='oddjob'
589 PACKAGE_TARNAME='oddjob'
590 PACKAGE_VERSION='0.34.7'
591 PACKAGE_STRING='oddjob 0.34.7'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 NOW_FALSE
636 NOW_TRUE
637 PIE_FALSE
638 PIE_TRUE
639 SYSVINIT_FALSE
640 SYSVINIT_TRUE
641 PATH_PWD
642 currentgid
643 currentuid
644 currentgroup
645 currentuser
646 DOCBOOK_VERSION
647 DOCBOOK_PACKAGE_END
648 DOCBOOK_PACKAGE_START
649 PATH_XMLTO
650 REFORMAT_XML_DOCS_FALSE
651 REFORMAT_XML_DOCS_TRUE
652 DBUS_PACKAGE
653 GSSAPI_LIBS
654 GSSAPI_CFLAGS
655 KRB5_LIBS
656 KRB5_CFLAGS
657 KRB5_CONFIG
658 SASL_LIBS
659 LDAP_LIBS
660 PATH_CAT
661 PATH_UMOUNT
662 PATH_MOUNT
663 mydatadir
664 mysysconfdir
665 mypkglibexecdir
666 mypkglibdir
667 PYTHON_FALSE
668 PYTHON_TRUE
669 LIBODDJOB_FALSE
670 LIBODDJOB_TRUE
671 pkgpyexecdir
672 pyexecdir
673 pkgpythondir
674 pythondir
675 PYTHON_PLATFORM
676 PYTHON_EXEC_PREFIX
677 PYTHON_PREFIX
678 PYTHON_VERSION
679 PYTHON
680 SELINUX_ACLS_MAN_SPECIFIC
681 SELINUX_ACLS_XML_END
682 SELINUX_ACLS_XML_START
683 SELINUX_LIBS
684 SELINUX_CFLAGS
685 ENABLE_EXPERIMENTAL_FALSE
686 ENABLE_EXPERIMENTAL_TRUE
687 INSTALL_SAMPLE_FALSE
688 INSTALL_SAMPLE_TRUE
689 SYSTEMDSYSTEMUNITDIR
690 SYSTEMD_FALSE
691 SYSTEMD_TRUE
692 SYSTEMD
693 DEFAULT_RECONNECT_TIMEOUT
694 DEFAULT_FAST_RECONNECT_TIMEOUT
695 DEFAULT_FAST_RECONNECT_ATTEMPTS
696 NAMESPACEPATH
697 NAMESPACE
698 BUILD_PAM_FALSE
699 BUILD_PAM_TRUE
700 PAM_LIBS
701 DBUS_INTROSPECTION_METHOD
702 DBUS_INTROSPECTION_INTERFACE
703 XML_LIBS
704 XML_CFLAGS
705 DBUS_LIBS
706 DBUS_CFLAGS
707 PKG_CONFIG_LIBDIR
708 PKG_CONFIG_PATH
709 PKG_CONFIG
710 CPP
711 LT_SYS_LIBRARY_PATH
712 OTOOL64
713 OTOOL
714 LIPO
715 NMEDIT
716 DSYMUTIL
717 MANIFEST_TOOL
718 RANLIB
719 ac_ct_AR
720 AR
721 DLLTOOL
722 OBJDUMP
723 LN_S
724 NM
725 ac_ct_DUMPBIN
726 DUMPBIN
727 LD
728 FGREP
729 EGREP
730 GREP
731 SED
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 LIBTOOL
741 MAINT
742 MAINTAINER_MODE_FALSE
743 MAINTAINER_MODE_TRUE
744 am__fastdepCC_FALSE
745 am__fastdepCC_TRUE
746 CCDEPMODE
747 am__nodep
748 AMDEPBACKSLASH
749 AMDEP_FALSE
750 AMDEP_TRUE
751 am__include
752 DEPDIR
753 OBJEXT
754 EXEEXT
755 ac_ct_CC
756 CPPFLAGS
757 LDFLAGS
758 CFLAGS
759 CC
760 AM_BACKSLASH
761 AM_DEFAULT_VERBOSITY
762 AM_DEFAULT_V
763 AM_V
764 am__untar
765 am__tar
766 AMTAR
767 am__leading_dot
768 SET_MAKE
769 AWK
770 mkdir_p
771 MKDIR_P
772 INSTALL_STRIP_PROGRAM
773 STRIP
774 install_sh
775 MAKEINFO
776 AUTOHEADER
777 AUTOMAKE
778 AUTOCONF
779 ACLOCAL
780 VERSION
781 PACKAGE
782 CYGPATH_W
783 am__isrc
784 INSTALL_DATA
785 INSTALL_SCRIPT
786 INSTALL_PROGRAM
787 PACKAGE_NAME_CAPS
788 target_alias
789 host_alias
790 build_alias
791 LIBS
792 ECHO_T
793 ECHO_N
794 ECHO_C
795 DEFS
796 mandir
797 localedir
798 libdir
799 psdir
800 pdfdir
801 dvidir
802 htmldir
803 infodir
804 docdir
805 oldincludedir
806 includedir
807 localstatedir
808 sharedstatedir
809 sysconfdir
810 datadir
811 datarootdir
812 libexecdir
813 sbindir
814 bindir
815 program_transform_name
816 prefix
817 exec_prefix
818 PACKAGE_URL
819 PACKAGE_BUGREPORT
820 PACKAGE_STRING
821 PACKAGE_VERSION
822 PACKAGE_TARNAME
823 PACKAGE_NAME
824 PATH_SEPARATOR
825 SHELL
826 am__quote'
827 ac_subst_files=''
828 ac_user_opts='
829 enable_option_checking
830 enable_silent_rules
831 enable_dependency_tracking
832 enable_maintainer_mode
833 enable_shared
834 enable_static
835 with_pic
836 enable_fast_install
837 with_aix_soname
838 with_gnu_ld
839 with_sysroot
840 enable_libtool_lock
841 enable_systemd
842 enable_sample
843 enable_experimental
844 with_selinux_labels
845 with_selinux_acls
846 with_python
847 enable_largefile
848 enable_xml_docs
849 enable_compat_dtd
850 enable_sysvinit
851 enable_pie
852 enable_now
853 '
854 ac_precious_vars='build_alias
855 host_alias
856 target_alias
857 CC
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
862 LT_SYS_LIBRARY_PATH
863 CPP
864 PKG_CONFIG
865 PKG_CONFIG_PATH
866 PKG_CONFIG_LIBDIR
867 DBUS_CFLAGS
868 DBUS_LIBS
869 XML_CFLAGS
870 XML_LIBS
871 PYTHON'
872
873
874 # Initialize some variables set by options.
875 ac_init_help=
876 ac_init_version=false
877 ac_unrecognized_opts=
878 ac_unrecognized_sep=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
881 cache_file=/dev/null
882 exec_prefix=NONE
883 no_create=
884 no_recursion=
885 prefix=NONE
886 program_prefix=NONE
887 program_suffix=NONE
888 program_transform_name=s,x,x,
889 silent=
890 site=
891 srcdir=
892 verbose=
893 x_includes=NONE
894 x_libraries=NONE
895
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
914 htmldir='${docdir}'
915 dvidir='${docdir}'
916 pdfdir='${docdir}'
917 psdir='${docdir}'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
921
922 ac_prev=
923 ac_dashdash=
924 for ac_option
925 do
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
929 ac_prev=
930 continue
931 fi
932
933 case $ac_option in
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 *=) ac_optarg= ;;
936 *) ac_optarg=yes ;;
937 esac
938
939 # Accept the important Cygnus configure options, so we can diagnose typos.
940
941 case $ac_dashdash$ac_option in
942 --)
943 ac_dashdash=yes ;;
944
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
946 ac_prev=bindir ;;
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948 bindir=$ac_optarg ;;
949
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
954
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
961
962 --config-cache | -C)
963 cache_file=config.cache ;;
964
965 -datadir | --datadir | --datadi | --datad)
966 ac_prev=datadir ;;
967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
968 datadir=$ac_optarg ;;
969
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
976
977 -disable-* | --disable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=no ;;
992
993 -docdir | --docdir | --docdi | --doc | --do)
994 ac_prev=docdir ;;
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996 docdir=$ac_optarg ;;
997
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 ac_prev=dvidir ;;
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1002
1003 -enable-* | --enable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=\$ac_optarg ;;
1018
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1027
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1030 with_gas=yes ;;
1031
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1038
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1043
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 ac_prev=htmldir ;;
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 | --ht=*)
1048 htmldir=$ac_optarg ;;
1049
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1056
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 ac_prev=infodir ;;
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1061
1062 -libdir | --libdir | --libdi | --libd)
1063 ac_prev=libdir ;;
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1066
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1073
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1078
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1085
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 ac_prev=mandir ;;
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1090
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1093 with_fp=no ;;
1094
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1097 no_create=yes ;;
1098
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 no_recursion=yes ;;
1102
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1111
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 ac_prev=prefix ;;
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1116
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1123
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1130
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1147
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 ac_prev=pdfdir ;;
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1152
1153 -psdir | --psdir | --psdi | --psd | --ps)
1154 ac_prev=psdir ;;
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 psdir=$ac_optarg ;;
1157
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1160 silent=yes ;;
1161
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 ac_prev=sbindir ;;
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 | --sbi=* | --sb=*)
1166 sbindir=$ac_optarg ;;
1167
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1171 | --sha | --sh)
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 | --sha=* | --sh=*)
1177 sharedstatedir=$ac_optarg ;;
1178
1179 -site | --site | --sit)
1180 ac_prev=site ;;
1181 -site=* | --site=* | --sit=*)
1182 site=$ac_optarg ;;
1183
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 ac_prev=srcdir ;;
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1188
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1195
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1200
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 verbose=yes ;;
1203
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1206
1207 -with-* | --with-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=\$ac_optarg ;;
1222
1223 -without-* | --without-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=no ;;
1238
1239 --x)
1240 # Obsolete; use --with-x.
1241 with_x=yes ;;
1242
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1249
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1256
1257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1259 ;;
1260
1261 *=*)
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
1266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267 esac
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1270
1271 *)
1272 # FIXME: should be removed in autoconf 3.0.
1273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277 ;;
1278
1279 esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 as_fn_error $? "missing argument to $ac_option"
1285 fi
1286
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1289 no) ;;
1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 esac
1293 fi
1294
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1300 do
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1303 case $ac_val in
1304 */ )
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1307 esac
1308 # Be sure to have absolute directory names.
1309 case $ac_val in
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 esac
1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1329 fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\).*/{
1369 s//\1/
1370 q
1371 }
1372 s/.*/./; q'`
1373 srcdir=$ac_confdir
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 srcdir=..
1376 fi
1377 else
1378 ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387 pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
1412 \`configure' configures oddjob 0.34.7 to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 [PREFIX]
1437
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/oddjob]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1465 _ACEOF
1466
1467 cat <<\_ACEOF
1468
1469 Program names:
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473
1474 System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of oddjob 0.34.7:";;
1483 esac
1484 cat <<\_ACEOF
1485
1486 Optional Features:
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-silent-rules less verbose build output (undo: "make V=1")
1491 --disable-silent-rules verbose build output (undo: "make V=0")
1492 --enable-dependency-tracking
1493 do not reject slow dependency extractors
1494 --disable-dependency-tracking
1495 speeds up one-time build
1496 --enable-maintainer-mode
1497 enable make rules and dependencies not useful (and
1498 sometimes confusing) to the casual installer
1499 --enable-shared[=PKGS] build shared libraries [default=yes]
1500 --enable-static[=PKGS] build static libraries [default=yes]
1501 --enable-fast-install[=PKGS]
1502 optimize for fast installation [default=yes]
1503 --disable-libtool-lock avoid locking (might break parallel builds)
1504 --enable-systemd install unit file for systemd
1505 --enable-sample Build and install a sample service.
1506 --enable-experimental Build experimental helpers.
1507 --disable-largefile omit support for large files
1508 --enable-xml-docs Reformat XML documentation.
1509 --enable-compat-dtd Use DocBook 4.3 instead of DocBook 4.4.
1510 --enable-systemd Install systemd unit files
1511 --enable-sysvinit Install sysvinit unit files
1512 --enable-pie Build position-independent executables.
1513 --enable-now Mark binaries with bind-now flag.
1514
1515 Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1519 both]
1520 --with-aix-soname=aix|svr4|both
1521 shared library versioning (aka "SONAME") variant to
1522 provide on AIX, [default=aix].
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1524 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1525 compiler's sysroot if not specified).
1526 --with-selinux-labels Apply SELinux labels to files created by helpers.
1527 --with-selinux-acls Recognize SELinux process attributes in oddjobd
1528 ACLs.
1529 --with-python Build Python bindings for liboddjob.
1530
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 LT_SYS_LIBRARY_PATH
1540 User-defined run-time library search path.
1541 CPP C preprocessor
1542 PKG_CONFIG path to pkg-config utility
1543 PKG_CONFIG_PATH
1544 directories to add to pkg-config's search path
1545 PKG_CONFIG_LIBDIR
1546 path overriding pkg-config's built-in search path
1547 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1548 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1549 XML_CFLAGS C compiler flags for XML, overriding pkg-config
1550 XML_LIBS linker flags for XML, overriding pkg-config
1551 PYTHON the Python interpreter
1552
1553 Use these variables to override the choices made by `configure' or to help
1554 it to find libraries and programs with nonstandard names/locations.
1555
1556 Report bugs to the package provider.
1557 _ACEOF
1558 ac_status=$?
1559 fi
1560
1561 if test "$ac_init_help" = "recursive"; then
1562 # If there are subdirs, report their specific --help.
1563 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564 test -d "$ac_dir" ||
1565 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 continue
1567 ac_builddir=.
1568
1569 case "$ac_dir" in
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *)
1572 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1573 # A ".." for each directory in $ac_dir_suffix.
1574 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1575 case $ac_top_builddir_sub in
1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578 esac ;;
1579 esac
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1584
1585 case $srcdir in
1586 .) # We are building in place.
1587 ac_srcdir=.
1588 ac_top_srcdir=$ac_top_builddir_sub
1589 ac_abs_top_srcdir=$ac_pwd ;;
1590 [\\/]* | ?:[\\/]* ) # Absolute name.
1591 ac_srcdir=$srcdir$ac_dir_suffix;
1592 ac_top_srcdir=$srcdir
1593 ac_abs_top_srcdir=$srcdir ;;
1594 *) # Relative name.
1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596 ac_top_srcdir=$ac_top_build_prefix$srcdir
1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 esac
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600
1601 cd "$ac_dir" || { ac_status=$?; continue; }
1602 # Check for guested configure.
1603 if test -f "$ac_srcdir/configure.gnu"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606 elif test -f "$ac_srcdir/configure"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure" --help=recursive
1609 else
1610 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611 fi || ac_status=$?
1612 cd "$ac_pwd" || { ac_status=$?; break; }
1613 done
1614 fi
1615
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1618 cat <<\_ACEOF
1619 oddjob configure 0.34.7
1620 generated by GNU Autoconf 2.69
1621
1622 Copyright (C) 2012 Free Software Foundation, Inc.
1623 This configure script is free software; the Free Software Foundation
1624 gives unlimited permission to copy, distribute and modify it.
1625 _ACEOF
1626 exit
1627 fi
1628
1629 ## ------------------------ ##
1630 ## Autoconf initialization. ##
1631 ## ------------------------ ##
1632
1633 # ac_fn_c_try_compile LINENO
1634 # --------------------------
1635 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_compile ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext
1640 if { { ac_try="$ac_compile"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_compile") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest.$ac_objext; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=1
1665 fi
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_compile
1670
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_link ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 test -x conftest$ac_exeext
1699 }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706 fi
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_link
1716
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1728 else
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 $4
1732 #include <$2>
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"; then :
1735 eval "$3=yes"
1736 else
1737 eval "$3=no"
1738 fi
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 fi
1741 eval ac_res=\$$3
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746 } # ac_fn_c_check_header_compile
1747
1748 # ac_fn_c_try_cpp LINENO
1749 # ----------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_c_try_cpp ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } > conftest.i && {
1770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 }; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779 fi
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_cpp
1784
1785 # ac_fn_c_try_run LINENO
1786 # ----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1788 # that executables *can* be run.
1789 ac_fn_c_try_run ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 if { { ac_try="$ac_link"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>&5
1800 ac_status=$?
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1803 { { case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_try") 2>&5
1810 ac_status=$?
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; }; }; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: program exited with status $ac_status" >&5
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=$ac_status
1820 fi
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_run
1826
1827 # ac_fn_c_check_func LINENO FUNC VAR
1828 # ----------------------------------
1829 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1830 ac_fn_c_check_func ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1837 else
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842 #define $2 innocuous_$2
1843
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below.
1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847 <limits.h> exists even on freestanding compilers. */
1848
1849 #ifdef __STDC__
1850 # include <limits.h>
1851 #else
1852 # include <assert.h>
1853 #endif
1854
1855 #undef $2
1856
1857 /* Override any GCC internal prototype to avoid an error.
1858 Use char because int might match the return type of a GCC
1859 builtin and then its argument prototype would still apply. */
1860 #ifdef __cplusplus
1861 extern "C"
1862 #endif
1863 char $2 ();
1864 /* The GNU C library defines this for functions which it implements
1865 to always fail with ENOSYS. Some functions are actually named
1866 something starting with __ and the normal name is an alias. */
1867 #if defined __stub_$2 || defined __stub___$2
1868 choke me
1869 #endif
1870
1871 int
1872 main ()
1873 {
1874 return $2 ();
1875 ;
1876 return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_link "$LINENO"; then :
1880 eval "$3=yes"
1881 else
1882 eval "$3=no"
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext \
1885 conftest$ac_exeext conftest.$ac_ext
1886 fi
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892 } # ac_fn_c_check_func
1893
1894 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1895 # -------------------------------------------------------
1896 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1897 # the include files in INCLUDES and setting the cache variable VAR
1898 # accordingly.
1899 ac_fn_c_check_header_mongrel ()
1900 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if eval \${$3+:} false; then :
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1907 fi
1908 eval ac_res=\$$3
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911 else
1912 # Is the header compilable?
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1914 $as_echo_n "checking $2 usability... " >&6; }
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 $4
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 ac_header_compiler=yes
1922 else
1923 ac_header_compiler=no
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1927 $as_echo "$ac_header_compiler" >&6; }
1928
1929 # Is the header present?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1931 $as_echo_n "checking $2 presence... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 #include <$2>
1935 _ACEOF
1936 if ac_fn_c_try_cpp "$LINENO"; then :
1937 ac_header_preproc=yes
1938 else
1939 ac_header_preproc=no
1940 fi
1941 rm -f conftest.err conftest.i conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1943 $as_echo "$ac_header_preproc" >&6; }
1944
1945 # So? What about this header?
1946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1947 yes:no: )
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1949 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1952 ;;
1953 no:yes:* )
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1955 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1957 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1959 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1961 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1964 ;;
1965 esac
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 eval "$3=\$ac_header_compiler"
1972 fi
1973 eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 fi
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979 } # ac_fn_c_check_header_mongrel
1980
1981 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1982 # ---------------------------------------------
1983 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1984 # accordingly.
1985 ac_fn_c_check_decl ()
1986 {
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 as_decl_name=`echo $2|sed 's/ *(.*//'`
1989 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1991 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1994 else
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 $4
1998 int
1999 main ()
2000 {
2001 #ifndef $as_decl_name
2002 #ifdef __cplusplus
2003 (void) $as_decl_use;
2004 #else
2005 (void) $as_decl_name;
2006 #endif
2007 #endif
2008
2009 ;
2010 return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 eval "$3=yes"
2015 else
2016 eval "$3=no"
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 fi
2020 eval ac_res=\$$3
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025 } # ac_fn_c_check_decl
2026 cat >config.log <<_ACEOF
2027 This file contains any messages produced by compilers while
2028 running configure, to aid debugging if configure makes a mistake.
2029
2030 It was created by oddjob $as_me 0.34.7, which was
2031 generated by GNU Autoconf 2.69. Invocation command line was
2032
2033 $ $0 $@
2034
2035 _ACEOF
2036 exec 5>>config.log
2037 {
2038 cat <<_ASUNAME
2039 ## --------- ##
2040 ## Platform. ##
2041 ## --------- ##
2042
2043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048
2049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2051
2052 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2053 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2056 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2057 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2058 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2059
2060 _ASUNAME
2061
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 $as_echo "PATH: $as_dir"
2068 done
2069 IFS=$as_save_IFS
2070
2071 } >&5
2072
2073 cat >&5 <<_ACEOF
2074
2075
2076 ## ----------- ##
2077 ## Core tests. ##
2078 ## ----------- ##
2079
2080 _ACEOF
2081
2082
2083 # Keep a trace of the command line.
2084 # Strip out --no-create and --no-recursion so they do not pile up.
2085 # Strip out --silent because we don't want to record it for future runs.
2086 # Also quote any args containing shell meta-characters.
2087 # Make two passes to allow for proper duplicate-argument suppression.
2088 ac_configure_args=
2089 ac_configure_args0=
2090 ac_configure_args1=
2091 ac_must_keep_next=false
2092 for ac_pass in 1 2
2093 do
2094 for ac_arg
2095 do
2096 case $ac_arg in
2097 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099 | -silent | --silent | --silen | --sile | --sil)
2100 continue ;;
2101 *\'*)
2102 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2103 esac
2104 case $ac_pass in
2105 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2106 2)
2107 as_fn_append ac_configure_args1 " '$ac_arg'"
2108 if test $ac_must_keep_next = true; then
2109 ac_must_keep_next=false # Got value, back to normal.
2110 else
2111 case $ac_arg in
2112 *=* | --config-cache | -C | -disable-* | --disable-* \
2113 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2114 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2115 | -with-* | --with-* | -without-* | --without-* | --x)
2116 case "$ac_configure_args0 " in
2117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2118 esac
2119 ;;
2120 -* ) ac_must_keep_next=true ;;
2121 esac
2122 fi
2123 as_fn_append ac_configure_args " '$ac_arg'"
2124 ;;
2125 esac
2126 done
2127 done
2128 { ac_configure_args0=; unset ac_configure_args0;}
2129 { ac_configure_args1=; unset ac_configure_args1;}
2130
2131 # When interrupted or exit'd, cleanup temporary files, and complete
2132 # config.log. We remove comments because anyway the quotes in there
2133 # would cause problems or look ugly.
2134 # WARNING: Use '\'' to represent an apostrophe within the trap.
2135 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136 trap 'exit_status=$?
2137 # Save into config.log some information that might help in debugging.
2138 {
2139 echo
2140
2141 $as_echo "## ---------------- ##
2142 ## Cache variables. ##
2143 ## ---------------- ##"
2144 echo
2145 # The following way of writing the cache mishandles newlines in values,
2146 (
2147 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148 eval ac_val=\$$ac_var
2149 case $ac_val in #(
2150 *${as_nl}*)
2151 case $ac_var in #(
2152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2154 esac
2155 case $ac_var in #(
2156 _ | IFS | as_nl) ;; #(
2157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158 *) { eval $ac_var=; unset $ac_var;} ;;
2159 esac ;;
2160 esac
2161 done
2162 (set) 2>&1 |
2163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164 *${as_nl}ac_space=\ *)
2165 sed -n \
2166 "s/'\''/'\''\\\\'\'''\''/g;
2167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2168 ;; #(
2169 *)
2170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2171 ;;
2172 esac |
2173 sort
2174 )
2175 echo
2176
2177 $as_echo "## ----------------- ##
2178 ## Output variables. ##
2179 ## ----------------- ##"
2180 echo
2181 for ac_var in $ac_subst_vars
2182 do
2183 eval ac_val=\$$ac_var
2184 case $ac_val in
2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186 esac
2187 $as_echo "$ac_var='\''$ac_val'\''"
2188 done | sort
2189 echo
2190
2191 if test -n "$ac_subst_files"; then
2192 $as_echo "## ------------------- ##
2193 ## File substitutions. ##
2194 ## ------------------- ##"
2195 echo
2196 for ac_var in $ac_subst_files
2197 do
2198 eval ac_val=\$$ac_var
2199 case $ac_val in
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 esac
2202 $as_echo "$ac_var='\''$ac_val'\''"
2203 done | sort
2204 echo
2205 fi
2206
2207 if test -s confdefs.h; then
2208 $as_echo "## ----------- ##
2209 ## confdefs.h. ##
2210 ## ----------- ##"
2211 echo
2212 cat confdefs.h
2213 echo
2214 fi
2215 test "$ac_signal" != 0 &&
2216 $as_echo "$as_me: caught signal $ac_signal"
2217 $as_echo "$as_me: exit $exit_status"
2218 } >&5
2219 rm -f core *.core core.conftest.* &&
2220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2221 exit $exit_status
2222 ' 0
2223 for ac_signal in 1 2 13 15; do
2224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2225 done
2226 ac_signal=0
2227
2228 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2229 rm -f -r conftest* confdefs.h
2230
2231 $as_echo "/* confdefs.h */" > confdefs.h
2232
2233 # Predefined preprocessor variables.
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_NAME "$PACKAGE_NAME"
2237 _ACEOF
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2241 _ACEOF
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2245 _ACEOF
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_STRING "$PACKAGE_STRING"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2253 _ACEOF
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_URL "$PACKAGE_URL"
2257 _ACEOF
2258
2259
2260 # Let the site file select an alternate cache file if it wants to.
2261 # Prefer an explicitly selected file to automatically selected ones.
2262 ac_site_file1=NONE
2263 ac_site_file2=NONE
2264 if test -n "$CONFIG_SITE"; then
2265 # We do not want a PATH search for config.site.
2266 case $CONFIG_SITE in #((
2267 -*) ac_site_file1=./$CONFIG_SITE;;
2268 */*) ac_site_file1=$CONFIG_SITE;;
2269 *) ac_site_file1=./$CONFIG_SITE;;
2270 esac
2271 elif test "x$prefix" != xNONE; then
2272 ac_site_file1=$prefix/share/config.site
2273 ac_site_file2=$prefix/etc/config.site
2274 else
2275 ac_site_file1=$ac_default_prefix/share/config.site
2276 ac_site_file2=$ac_default_prefix/etc/config.site
2277 fi
2278 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2279 do
2280 test "x$ac_site_file" = xNONE && continue
2281 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2284 sed 's/^/| /' "$ac_site_file" >&5
2285 . "$ac_site_file" \
2286 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 as_fn_error $? "failed to load site script $ac_site_file
2289 See \`config.log' for more details" "$LINENO" 5; }
2290 fi
2291 done
2292
2293 if test -r "$cache_file"; then
2294 # Some versions of bash will fail to source /dev/null (special files
2295 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2296 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298 $as_echo "$as_me: loading cache $cache_file" >&6;}
2299 case $cache_file in
2300 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2301 *) . "./$cache_file";;
2302 esac
2303 fi
2304 else
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306 $as_echo "$as_me: creating cache $cache_file" >&6;}
2307 >$cache_file
2308 fi
2309
2310 # Check that the precious variables saved in the cache have kept the same
2311 # value.
2312 ac_cache_corrupted=false
2313 for ac_var in $ac_precious_vars; do
2314 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2315 eval ac_new_set=\$ac_env_${ac_var}_set
2316 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2317 eval ac_new_val=\$ac_env_${ac_var}_value
2318 case $ac_old_set,$ac_new_set in
2319 set,)
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2323 ,set)
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2325 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2326 ac_cache_corrupted=: ;;
2327 ,);;
2328 *)
2329 if test "x$ac_old_val" != "x$ac_new_val"; then
2330 # differences in whitespace do not lead to failure.
2331 ac_old_val_w=`echo x $ac_old_val`
2332 ac_new_val_w=`echo x $ac_new_val`
2333 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2335 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336 ac_cache_corrupted=:
2337 else
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2339 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2340 eval $ac_var=\$ac_old_val
2341 fi
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2343 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2345 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2346 fi;;
2347 esac
2348 # Pass precious variables to config.status.
2349 if test "$ac_new_set" = set; then
2350 case $ac_new_val in
2351 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2352 *) ac_arg=$ac_var=$ac_new_val ;;
2353 esac
2354 case " $ac_configure_args " in
2355 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2356 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2357 esac
2358 fi
2359 done
2360 if $ac_cache_corrupted; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2364 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2365 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2366 fi
2367 ## -------------------- ##
2368 ## Main body of script. ##
2369 ## -------------------- ##
2370
2371 ac_ext=c
2372 ac_cpp='$CPP $CPPFLAGS'
2373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
2377
2378
2379 PACKAGE_NAME_CAPS=`echo $PACKAGE_NAME | tr 'a-z' 'A-Z'`
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_NAME_CAPS "$PACKAGE_NAME_CAPS"
2383 _ACEOF
2384
2385
2386 am__api_version='1.16'
2387
2388 ac_aux_dir=
2389 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2390 if test -f "$ac_dir/install-sh"; then
2391 ac_aux_dir=$ac_dir
2392 ac_install_sh="$ac_aux_dir/install-sh -c"
2393 break
2394 elif test -f "$ac_dir/install.sh"; then
2395 ac_aux_dir=$ac_dir
2396 ac_install_sh="$ac_aux_dir/install.sh -c"
2397 break
2398 elif test -f "$ac_dir/shtool"; then
2399 ac_aux_dir=$ac_dir
2400 ac_install_sh="$ac_aux_dir/shtool install -c"
2401 break
2402 fi
2403 done
2404 if test -z "$ac_aux_dir"; then
2405 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2406 fi
2407
2408 # These three variables are undocumented and unsupported,
2409 # and are intended to be withdrawn in a future Autoconf release.
2410 # They can cause serious problems if a builder's source tree is in a directory
2411 # whose full name contains unusual characters.
2412 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2413 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2414 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2415
2416
2417 # Find a good install program. We prefer a C program (faster),
2418 # so one script is as good as another. But avoid the broken or
2419 # incompatible versions:
2420 # SysV /etc/install, /usr/sbin/install
2421 # SunOS /usr/etc/install
2422 # IRIX /sbin/install
2423 # AIX /bin/install
2424 # AmigaOS /C/install, which installs bootblocks on floppy discs
2425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2428 # OS/2's system install, which has a completely different semantic
2429 # ./install, which can be erroneously created by make from ./install.sh.
2430 # Reject install programs that cannot install multiple files.
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2433 if test -z "$INSTALL"; then
2434 if ${ac_cv_path_install+:} false; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 # Account for people who put trailing slashes in PATH elements.
2443 case $as_dir/ in #((
2444 ./ | .// | /[cC]/* | \
2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2447 /usr/ucb/* ) ;;
2448 *)
2449 # OSF1 and SCO ODT 3.0 have their own names for install.
2450 # Don't use installbsd from OSF since it installs stuff as root
2451 # by default.
2452 for ac_prog in ginstall scoinst install; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2455 if test $ac_prog = install &&
2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # AIX install. It has an incompatible calling convention.
2458 :
2459 elif test $ac_prog = install &&
2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # program-specific install script used by HP pwplus--don't use.
2462 :
2463 else
2464 rm -rf conftest.one conftest.two conftest.dir
2465 echo one > conftest.one
2466 echo two > conftest.two
2467 mkdir conftest.dir
2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469 test -s conftest.one && test -s conftest.two &&
2470 test -s conftest.dir/conftest.one &&
2471 test -s conftest.dir/conftest.two
2472 then
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474 break 3
2475 fi
2476 fi
2477 fi
2478 done
2479 done
2480 ;;
2481 esac
2482
2483 done
2484 IFS=$as_save_IFS
2485
2486 rm -rf conftest.one conftest.two conftest.dir
2487
2488 fi
2489 if test "${ac_cv_path_install+set}" = set; then
2490 INSTALL=$ac_cv_path_install
2491 else
2492 # As a last resort, use the slow shell script. Don't cache a
2493 # value for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the value is a relative name.
2496 INSTALL=$ac_install_sh
2497 fi
2498 fi
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500 $as_echo "$INSTALL" >&6; }
2501
2502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503 # It thinks the first close brace ends the variable substitution.
2504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
2506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2507
2508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2511 $as_echo_n "checking whether build environment is sane... " >&6; }
2512 # Reject unsafe characters in $srcdir or the absolute working directory
2513 # name. Accept space and tab only in the latter.
2514 am_lf='
2515 '
2516 case `pwd` in
2517 *[\\\"\#\$\&\'\`$am_lf]*)
2518 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2519 esac
2520 case $srcdir in
2521 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2522 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2523 esac
2524
2525 # Do 'set' in a subshell so we don't clobber the current shell's
2526 # arguments. Must try -L first in case configure is actually a
2527 # symlink; some systems play weird games with the mod time of symlinks
2528 # (eg FreeBSD returns the mod time of the symlink's containing
2529 # directory).
2530 if (
2531 am_has_slept=no
2532 for am_try in 1 2; do
2533 echo "timestamp, slept: $am_has_slept" > conftest.file
2534 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2535 if test "$*" = "X"; then
2536 # -L didn't work.
2537 set X `ls -t "$srcdir/configure" conftest.file`
2538 fi
2539 if test "$*" != "X $srcdir/configure conftest.file" \
2540 && test "$*" != "X conftest.file $srcdir/configure"; then
2541
2542 # If neither matched, then we have a broken ls. This can happen
2543 # if, for instance, CONFIG_SHELL is bash and it inherits a
2544 # broken ls alias from the environment. This has actually
2545 # happened. Such a system could not be considered "sane".
2546 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2547 alias in your environment" "$LINENO" 5
2548 fi
2549 if test "$2" = conftest.file || test $am_try -eq 2; then
2550 break
2551 fi
2552 # Just in case.
2553 sleep 1
2554 am_has_slept=yes
2555 done
2556 test "$2" = conftest.file
2557 )
2558 then
2559 # Ok.
2560 :
2561 else
2562 as_fn_error $? "newly created file is older than distributed files!
2563 Check your system clock" "$LINENO" 5
2564 fi
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566 $as_echo "yes" >&6; }
2567 # If we didn't sleep, we still need to ensure time stamps of config.status and
2568 # generated files are strictly newer.
2569 am_sleep_pid=
2570 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2571 ( sleep 1 ) &
2572 am_sleep_pid=$!
2573 fi
2574
2575 rm -f conftest.file
2576
2577 test "$program_prefix" != NONE &&
2578 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2579 # Use a double $ so make ignores it.
2580 test "$program_suffix" != NONE &&
2581 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2582 # Double any \ or $.
2583 # By default was `s,x,x', remove it if useless.
2584 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2585 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2586
2587 # Expand $ac_aux_dir to an absolute path.
2588 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2589
2590 if test x"${MISSING+set}" != xset; then
2591 case $am_aux_dir in
2592 *\ * | *\ *)
2593 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2594 *)
2595 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2596 esac
2597 fi
2598 # Use eval to expand $SHELL
2599 if eval "$MISSING --is-lightweight"; then
2600 am_missing_run="$MISSING "
2601 else
2602 am_missing_run=
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2604 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2605 fi
2606
2607 if test x"${install_sh+set}" != xset; then
2608 case $am_aux_dir in
2609 *\ * | *\ *)
2610 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2611 *)
2612 install_sh="\${SHELL} $am_aux_dir/install-sh"
2613 esac
2614 fi
2615
2616 # Installed binaries are usually stripped using 'strip' when the user
2617 # run "make install-strip". However 'strip' might not be the right
2618 # tool to use in cross-compilation environments, therefore Automake
2619 # will honor the 'STRIP' environment variable to overrule this program.
2620 if test "$cross_compiling" != no; then
2621 if test -n "$ac_tool_prefix"; then
2622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}strip; ac_word=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if ${ac_cv_prog_STRIP+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 if test -n "$STRIP"; then
2630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 fi
2648 fi
2649 STRIP=$ac_cv_prog_STRIP
2650 if test -n "$STRIP"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2652 $as_echo "$STRIP" >&6; }
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2656 fi
2657
2658
2659 fi
2660 if test -z "$ac_cv_prog_STRIP"; then
2661 ac_ct_STRIP=$STRIP
2662 # Extract the first word of "strip", so it can be a program name with args.
2663 set dummy strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$ac_ct_STRIP"; then
2670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_ac_ct_STRIP="strip"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2690 if test -n "$ac_ct_STRIP"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2692 $as_echo "$ac_ct_STRIP" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698 if test "x$ac_ct_STRIP" = x; then
2699 STRIP=":"
2700 else
2701 case $cross_compiling:$ac_tool_warned in
2702 yes:)
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705 ac_tool_warned=yes ;;
2706 esac
2707 STRIP=$ac_ct_STRIP
2708 fi
2709 else
2710 STRIP="$ac_cv_prog_STRIP"
2711 fi
2712
2713 fi
2714 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2717 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2718 if test -z "$MKDIR_P"; then
2719 if ${ac_cv_path_mkdir+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_prog in mkdir gmkdir; do
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2730 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2731 'mkdir (GNU coreutils) '* | \
2732 'mkdir (coreutils) '* | \
2733 'mkdir (fileutils) '4.1*)
2734 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2735 break 3;;
2736 esac
2737 done
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743
2744 test -d ./--version && rmdir ./--version
2745 if test "${ac_cv_path_mkdir+set}" = set; then
2746 MKDIR_P="$ac_cv_path_mkdir -p"
2747 else
2748 # As a last resort, use the slow shell script. Don't cache a
2749 # value for MKDIR_P within a source directory, because that will
2750 # break other packages using the cache if that directory is
2751 # removed, or if the value is a relative name.
2752 MKDIR_P="$ac_install_sh -d"
2753 fi
2754 fi
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2756 $as_echo "$MKDIR_P" >&6; }
2757
2758 for ac_prog in gawk mawk nawk awk
2759 do
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if ${ac_cv_prog_AWK+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 if test -n "$AWK"; then
2768 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_AWK="$ac_prog"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 AWK=$ac_cv_prog_AWK
2788 if test -n "$AWK"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2790 $as_echo "$AWK" >&6; }
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796
2797 test -n "$AWK" && break
2798 done
2799
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2802 set x ${MAKE-make}
2803 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2804 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 cat >conftest.make <<\_ACEOF
2808 SHELL = /bin/sh
2809 all:
2810 @echo '@@@%%%=$(MAKE)=@@@%%%'
2811 _ACEOF
2812 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2814 *@@@%%%=?*=@@@%%%*)
2815 eval ac_cv_prog_make_${ac_make}_set=yes;;
2816 *)
2817 eval ac_cv_prog_make_${ac_make}_set=no;;
2818 esac
2819 rm -f conftest.make
2820 fi
2821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2823 $as_echo "yes" >&6; }
2824 SET_MAKE=
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 SET_MAKE="MAKE=${MAKE-make}"
2829 fi
2830
2831 rm -rf .tst 2>/dev/null
2832 mkdir .tst 2>/dev/null
2833 if test -d .tst; then
2834 am__leading_dot=.
2835 else
2836 am__leading_dot=_
2837 fi
2838 rmdir .tst 2>/dev/null
2839
2840 # Check whether --enable-silent-rules was given.
2841 if test "${enable_silent_rules+set}" = set; then :
2842 enableval=$enable_silent_rules;
2843 fi
2844
2845 case $enable_silent_rules in # (((
2846 yes) AM_DEFAULT_VERBOSITY=0;;
2847 no) AM_DEFAULT_VERBOSITY=1;;
2848 *) AM_DEFAULT_VERBOSITY=1;;
2849 esac
2850 am_make=${MAKE-make}
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2852 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2853 if ${am_cv_make_support_nested_variables+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 if $as_echo 'TRUE=$(BAR$(V))
2857 BAR0=false
2858 BAR1=true
2859 V=1
2860 am__doit:
2861 @$(TRUE)
2862 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2863 am_cv_make_support_nested_variables=yes
2864 else
2865 am_cv_make_support_nested_variables=no
2866 fi
2867 fi
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2869 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2870 if test $am_cv_make_support_nested_variables = yes; then
2871 AM_V='$(V)'
2872 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2873 else
2874 AM_V=$AM_DEFAULT_VERBOSITY
2875 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2876 fi
2877 AM_BACKSLASH='\'
2878
2879 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2880 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2881 # is not polluted with repeated "-I."
2882 am__isrc=' -I$(srcdir)'
2883 # test to see if srcdir already configured
2884 if test -f $srcdir/config.status; then
2885 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2886 fi
2887 fi
2888
2889 # test whether we have cygpath
2890 if test -z "$CYGPATH_W"; then
2891 if (cygpath --version) >/dev/null 2>/dev/null; then
2892 CYGPATH_W='cygpath -w'
2893 else
2894 CYGPATH_W=echo
2895 fi
2896 fi
2897
2898
2899 # Define the identity of the package.
2900 PACKAGE='oddjob'
2901 VERSION='0.34.7'
2902
2903
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE "$PACKAGE"
2906 _ACEOF
2907
2908
2909 cat >>confdefs.h <<_ACEOF
2910 #define VERSION "$VERSION"
2911 _ACEOF
2912
2913 # Some tools Automake needs.
2914
2915 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2916
2917
2918 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2919
2920
2921 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2922
2923
2924 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2925
2926
2927 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2928
2929 # For better backward compatibility. To be removed once Automake 1.9.x
2930 # dies out for good. For more background, see:
2931 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2932 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2933 mkdir_p='$(MKDIR_P)'
2934
2935 # We need awk for the "check" target (and possibly the TAP driver). The
2936 # system "awk" is bad on some platforms.
2937 # Always define AMTAR for backward compatibility. Yes, it's still used
2938 # in the wild :-( We should find a proper way to deprecate it ...
2939 AMTAR='$${TAR-tar}'
2940
2941
2942 # We'll loop over all known methods to create a tar archive until one works.
2943 _am_tools='gnutar pax cpio none'
2944
2945 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2946
2947
2948
2949
2950
2951
2952 # POSIX will say in a future version that running "rm -f" with no argument
2953 # is OK; and we want to be able to make that assumption in our Makefile
2954 # recipes. So use an aggressive probe to check that the usage we want is
2955 # actually supported "in the wild" to an acceptable degree.
2956 # See automake bug#10828.
2957 # To make any issue more visible, cause the running configure to be aborted
2958 # by default if the 'rm' program in use doesn't match our expectations; the
2959 # user can still override this though.
2960 if rm -f && rm -fr && rm -rf; then : OK; else
2961 cat >&2 <<'END'
2962 Oops!
2963
2964 Your 'rm' program seems unable to run without file operands specified
2965 on the command line, even when the '-f' option is present. This is contrary
2966 to the behaviour of most rm programs out there, and not conforming with
2967 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2968
2969 Please tell [email protected] about your system, including the value
2970 of your $PATH and any error possibly output before this message. This
2971 can help us improve future automake versions.
2972
2973 END
2974 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2975 echo 'Configuration will proceed anyway, since you have set the' >&2
2976 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2977 echo >&2
2978 else
2979 cat >&2 <<'END'
2980 Aborting the configuration process, to ensure you take notice of the issue.
2981
2982 You can download and install GNU coreutils to get an 'rm' implementation
2983 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2984
2985 If you want to complete the configuration process using your problematic
2986 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2987 to "yes", and re-run configure.
2988
2989 END
2990 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2991 fi
2992 fi
2993
2994
2995 ac_ext=c
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022 done
3023 done
3024 IFS=$as_save_IFS
3025
3026 fi
3027 fi
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037
3038 fi
3039 if test -z "$ac_cv_prog_CC"; then
3040 ac_ct_CC=$CC
3041 # Extract the first word of "gcc", so it can be a program name with args.
3042 set dummy gcc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$ac_ct_CC"; then
3049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_ac_ct_CC="gcc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3061 fi
3062 done
3063 done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069 if test -n "$ac_ct_CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3071 $as_echo "$ac_ct_CC" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077 if test "x$ac_ct_CC" = x; then
3078 CC=""
3079 else
3080 case $cross_compiling:$ac_tool_warned in
3081 yes:)
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3085 esac
3086 CC=$ac_ct_CC
3087 fi
3088 else
3089 CC="$ac_cv_prog_CC"
3090 fi
3091
3092 if test -z "$CC"; then
3093 if test -n "$ac_tool_prefix"; then
3094 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3095 set dummy ${ac_tool_prefix}cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_CC+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_CC="${ac_tool_prefix}cc"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131 fi
3132 fi
3133 if test -z "$CC"; then
3134 # Extract the first word of "cc", so it can be a program name with args.
3135 set dummy cc; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_CC+:} false; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 else
3144 ac_prog_rejected=no
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3153 ac_prog_rejected=yes
3154 continue
3155 fi
3156 ac_cv_prog_CC="cc"
3157 $as_echo "$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 if test $ac_prog_rejected = yes; then
3165 # We found a bogon in the path, so make sure we never use it.
3166 set dummy $ac_cv_prog_CC
3167 shift
3168 if test $# != 0; then
3169 # We chose a different compiler from the bogus one.
3170 # However, it has the same basename, so the bogon will be chosen
3171 # first if we set CC to just the basename; use the full file name.
3172 shift
3173 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3174 fi
3175 fi
3176 fi
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188 fi
3189 if test -z "$CC"; then
3190 if test -n "$ac_tool_prefix"; then
3191 for ac_prog in cl.exe
3192 do
3193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_CC+:} false; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3213 fi
3214 done
3215 done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230 test -n "$CC" && break
3231 done
3232 fi
3233 if test -z "$CC"; then
3234 ac_ct_CC=$CC
3235 for ac_prog in cl.exe
3236 do
3237 # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254 ac_cv_prog_ac_ct_CC="$ac_prog"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258 done
3259 done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3267 $as_echo "$ac_ct_CC" >&6; }
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274 test -n "$ac_ct_CC" && break
3275 done
3276
3277 if test "x$ac_ct_CC" = x; then
3278 CC=""
3279 else
3280 case $cross_compiling:$ac_tool_warned in
3281 yes:)
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3285 esac
3286 CC=$ac_ct_CC
3287 fi
3288 fi
3289
3290 fi
3291
3292
3293 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "no acceptable C compiler found in \$PATH
3296 See \`config.log' for more details" "$LINENO" 5; }
3297
3298 # Provide some information about the compiler.
3299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3300 set X $ac_compile
3301 ac_compiler=$2
3302 for ac_option in --version -v -V -qversion; do
3303 { { ac_try="$ac_compiler $ac_option >&5"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3311 ac_status=$?
3312 if test -s conftest.err; then
3313 sed '10a\
3314 ... rest of stderr output deleted ...
3315 10q' conftest.err >conftest.er1
3316 cat conftest.er1 >&5
3317 fi
3318 rm -f conftest.er1 conftest.err
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }
3321 done
3322
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3325
3326 int
3327 main ()
3328 {
3329
3330 ;
3331 return 0;
3332 }
3333 _ACEOF
3334 ac_clean_files_save=$ac_clean_files
3335 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3336 # Try to create an executable without -o first, disregard a.out.
3337 # It will help us diagnose broken compilers, and finding out an intuition
3338 # of exeext.
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3340 $as_echo_n "checking whether the C compiler works... " >&6; }
3341 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3342
3343 # The possible output files:
3344 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3345
3346 ac_rmfiles=
3347 for ac_file in $ac_files
3348 do
3349 case $ac_file in
3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3351 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3352 esac
3353 done
3354 rm -f $ac_rmfiles
3355
3356 if { { ac_try="$ac_link_default"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_link_default") 2>&5
3364 ac_status=$?
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }; then :
3367 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3368 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3369 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3370 # so that the user can short-circuit this test for compilers unknown to
3371 # Autoconf.
3372 for ac_file in $ac_files ''
3373 do
3374 test -f "$ac_file" || continue
3375 case $ac_file in
3376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3377 ;;
3378 [ab].out )
3379 # We found the default executable, but exeext='' is most
3380 # certainly right.
3381 break;;
3382 *.* )
3383 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3384 then :; else
3385 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386 fi
3387 # We set ac_cv_exeext here because the later test for it is not
3388 # safe: cross compilers may not add the suffix if given an `-o'
3389 # argument, so we may need to know it at that point already.
3390 # Even if this section looks crufty: it has the advantage of
3391 # actually working.
3392 break;;
3393 * )
3394 break;;
3395 esac
3396 done
3397 test "$ac_cv_exeext" = no && ac_cv_exeext=
3398
3399 else
3400 ac_file=''
3401 fi
3402 if test -z "$ac_file"; then :
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error 77 "C compiler cannot create executables
3411 See \`config.log' for more details" "$LINENO" 5; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3414 $as_echo "yes" >&6; }
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3417 $as_echo_n "checking for C compiler default output file name... " >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3419 $as_echo "$ac_file" >&6; }
3420 ac_exeext=$ac_cv_exeext
3421
3422 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { { ac_try="$ac_link"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3440 # `rm'.
3441 for ac_file in conftest.exe conftest conftest.*; do
3442 test -f "$ac_file" || continue
3443 case $ac_file in
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 break;;
3447 * ) break;;
3448 esac
3449 done
3450 else
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details" "$LINENO" 5; }
3455 fi
3456 rm -f conftest conftest$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458 $as_echo "$ac_cv_exeext" >&6; }
3459
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3462 ac_exeext=$EXEEXT
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3465 #include <stdio.h>
3466 int
3467 main ()
3468 {
3469 FILE *f = fopen ("conftest.out", "w");
3470 return ferror (f) || fclose (f) != 0;
3471
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 ac_clean_files="$ac_clean_files conftest.out"
3477 # Check that the compiler produces executables we can run. If not, either
3478 # the compiler is broken, or we cross compile.
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3480 $as_echo_n "checking whether we are cross compiling... " >&6; }
3481 if test "$cross_compiling" != yes; then
3482 { { ac_try="$ac_link"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_link") 2>&5
3490 ac_status=$?
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }
3493 if { ac_try='./conftest$ac_cv_exeext'
3494 { { case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_try") 2>&5
3501 ac_status=$?
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; }; then
3504 cross_compiling=no
3505 else
3506 if test "$cross_compiling" = maybe; then
3507 cross_compiling=yes
3508 else
3509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "cannot run C compiled programs.
3512 If you meant to cross compile, use \`--host'.
3513 See \`config.log' for more details" "$LINENO" 5; }
3514 fi
3515 fi
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3518 $as_echo "$cross_compiling" >&6; }
3519
3520 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3521 ac_clean_files=$ac_clean_files_save
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3523 $as_echo_n "checking for suffix of object files... " >&6; }
3524 if ${ac_cv_objext+:} false; then :
3525 $as_echo_n "(cached) " >&6
3526 else
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529
3530 int
3531 main ()
3532 {
3533
3534 ;
3535 return 0;
3536 }
3537 _ACEOF
3538 rm -f conftest.o conftest.obj
3539 if { { ac_try="$ac_compile"
3540 case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_compile") 2>&5
3547 ac_status=$?
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }; then :
3550 for ac_file in conftest.o conftest.obj conftest.*; do
3551 test -f "$ac_file" || continue;
3552 case $ac_file in
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3554 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3555 break;;
3556 esac
3557 done
3558 else
3559 $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot compute suffix of object files: cannot compile
3565 See \`config.log' for more details" "$LINENO" 5; }
3566 fi
3567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3570 $as_echo "$ac_cv_objext" >&6; }
3571 OBJEXT=$ac_cv_objext
3572 ac_objext=$OBJEXT
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3574 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3575 if ${ac_cv_c_compiler_gnu+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584 #ifndef __GNUC__
3585 choke me
3586 #endif
3587
3588 ;
3589 return 0;
3590 }
3591 _ACEOF
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593 ac_compiler_gnu=yes
3594 else
3595 ac_compiler_gnu=no
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3599
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3602 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3603 if test $ac_compiler_gnu = yes; then
3604 GCC=yes
3605 else
3606 GCC=
3607 fi
3608 ac_test_CFLAGS=${CFLAGS+set}
3609 ac_save_CFLAGS=$CFLAGS
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3611 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3612 if ${ac_cv_prog_cc_g+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 ac_save_c_werror_flag=$ac_c_werror_flag
3616 ac_c_werror_flag=yes
3617 ac_cv_prog_cc_g=no
3618 CFLAGS="-g"
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621
3622 int
3623 main ()
3624 {
3625
3626 ;
3627 return 0;
3628 }
3629 _ACEOF
3630 if ac_fn_c_try_compile "$LINENO"; then :
3631 ac_cv_prog_cc_g=yes
3632 else
3633 CFLAGS=""
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3636
3637 int
3638 main ()
3639 {
3640
3641 ;
3642 return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646
3647 else
3648 ac_c_werror_flag=$ac_save_c_werror_flag
3649 CFLAGS="-g"
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3652
3653 int
3654 main ()
3655 {
3656
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_cv_prog_cc_g=yes
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 ac_c_werror_flag=$ac_save_c_werror_flag
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3672 $as_echo "$ac_cv_prog_cc_g" >&6; }
3673 if test "$ac_test_CFLAGS" = set; then
3674 CFLAGS=$ac_save_CFLAGS
3675 elif test $ac_cv_prog_cc_g = yes; then
3676 if test "$GCC" = yes; then
3677 CFLAGS="-g -O2"
3678 else
3679 CFLAGS="-g"
3680 fi
3681 else
3682 if test "$GCC" = yes; then
3683 CFLAGS="-O2"
3684 else
3685 CFLAGS=
3686 fi
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3689 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3690 if ${ac_cv_prog_cc_c89+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 ac_cv_prog_cc_c89=no
3694 ac_save_CC=$CC
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697 #include <stdarg.h>
3698 #include <stdio.h>
3699 struct stat;
3700 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3701 struct buf { int x; };
3702 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3703 static char *e (p, i)
3704 char **p;
3705 int i;
3706 {
3707 return p[i];
3708 }
3709 static char *f (char * (*g) (char **, int), char **p, ...)
3710 {
3711 char *s;
3712 va_list v;
3713 va_start (v,p);
3714 s = g (p, va_arg (v,int));
3715 va_end (v);
3716 return s;
3717 }
3718
3719 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3720 function prototypes and stuff, but not '\xHH' hex character constants.
3721 These don't provoke an error unfortunately, instead are silently treated
3722 as 'x'. The following induces an error, until -std is added to get
3723 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3724 array size at least. It's necessary to write '\x00'==0 to get something
3725 that's true only with -std. */
3726 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3727
3728 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3729 inside strings and character constants. */
3730 #define FOO(x) 'x'
3731 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3732
3733 int test (int i, double x);
3734 struct s1 {int (*f) (int a);};
3735 struct s2 {int (*f) (double a);};
3736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3737 int argc;
3738 char **argv;
3739 int
3740 main ()
3741 {
3742 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3748 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3749 do
3750 CC="$ac_save_CC $ac_arg"
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_cv_prog_cc_c89=$ac_arg
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext
3755 test "x$ac_cv_prog_cc_c89" != "xno" && break
3756 done
3757 rm -f conftest.$ac_ext
3758 CC=$ac_save_CC
3759
3760 fi
3761 # AC_CACHE_VAL
3762 case "x$ac_cv_prog_cc_c89" in
3763 x)
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3765 $as_echo "none needed" >&6; } ;;
3766 xno)
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3768 $as_echo "unsupported" >&6; } ;;
3769 *)
3770 CC="$CC $ac_cv_prog_cc_c89"
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3772 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3773 esac
3774 if test "x$ac_cv_prog_cc_c89" != xno; then :
3775
3776 fi
3777
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783
3784 ac_ext=c
3785 ac_cpp='$CPP $CPPFLAGS'
3786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3790 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3791 if ${am_cv_prog_cc_c_o+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796
3797 int
3798 main ()
3799 {
3800
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 # Make sure it works both with $CC and with simple cc.
3806 # Following AC_PROG_CC_C_O, we do the test twice because some
3807 # compilers refuse to overwrite an existing .o file with -o,
3808 # though they will create one.
3809 am_cv_prog_cc_c_o=yes
3810 for am_i in 1 2; do
3811 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3812 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } \
3816 && test -f conftest2.$ac_objext; then
3817 : OK
3818 else
3819 am_cv_prog_cc_c_o=no
3820 break
3821 fi
3822 done
3823 rm -f core conftest*
3824 unset am_i
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3827 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3828 if test "$am_cv_prog_cc_c_o" != yes; then
3829 # Losing compiler, so override with the script.
3830 # FIXME: It is wrong to rewrite CC.
3831 # But if we don't then we get into trouble of one sort or another.
3832 # A longer-term fix would be to have automake use am__CC in this case,
3833 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3834 CC="$am_aux_dir/compile $CC"
3835 fi
3836 ac_ext=c
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841
3842 DEPDIR="${am__leading_dot}deps"
3843
3844 ac_config_commands="$ac_config_commands depfiles"
3845
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3847 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3848 cat > confinc.mk << 'END'
3849 am__doit:
3850 @echo this is the am__doit target >confinc.out
3851 .PHONY: am__doit
3852 END
3853 am__include="#"
3854 am__quote=
3855 # BSD make does it like this.
3856 echo '.include "confinc.mk" # ignored' > confmf.BSD
3857 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3858 echo 'include confinc.mk # ignored' > confmf.GNU
3859 _am_result=no
3860 for s in GNU BSD; do
3861 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3862 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }
3866 case $?:`cat confinc.out 2>/dev/null` in #(
3867 '0:this is the am__doit target') :
3868 case $s in #(
3869 BSD) :
3870 am__include='.include' am__quote='"' ;; #(
3871 *) :
3872 am__include='include' am__quote='' ;;
3873 esac ;; #(
3874 *) :
3875 ;;
3876 esac
3877 if test "$am__include" != "#"; then
3878 _am_result="yes ($s style)"
3879 break
3880 fi
3881 done
3882 rm -f confinc.* confmf.*
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3884 $as_echo "${_am_result}" >&6; }
3885
3886 # Check whether --enable-dependency-tracking was given.
3887 if test "${enable_dependency_tracking+set}" = set; then :
3888 enableval=$enable_dependency_tracking;
3889 fi
3890
3891 if test "x$enable_dependency_tracking" != xno; then
3892 am_depcomp="$ac_aux_dir/depcomp"
3893 AMDEPBACKSLASH='\'
3894 am__nodep='_no'
3895 fi
3896 if test "x$enable_dependency_tracking" != xno; then
3897 AMDEP_TRUE=
3898 AMDEP_FALSE='#'
3899 else
3900 AMDEP_TRUE='#'
3901 AMDEP_FALSE=
3902 fi
3903
3904
3905
3906 depcc="$CC" am_compiler_list=
3907
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3909 $as_echo_n "checking dependency style of $depcc... " >&6; }
3910 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3914 # We make a subdir and do the tests there. Otherwise we can end up
3915 # making bogus files that we don't know about and never remove. For
3916 # instance it was reported that on HP-UX the gcc test will end up
3917 # making a dummy file named 'D' -- because '-MD' means "put the output
3918 # in D".
3919 rm -rf conftest.dir
3920 mkdir conftest.dir
3921 # Copy depcomp to subdir because otherwise we won't find it if we're
3922 # using a relative directory.
3923 cp "$am_depcomp" conftest.dir
3924 cd conftest.dir
3925 # We will build objects and dependencies in a subdirectory because
3926 # it helps to detect inapplicable dependency modes. For instance
3927 # both Tru64's cc and ICC support -MD to output dependencies as a
3928 # side effect of compilation, but ICC will put the dependencies in
3929 # the current directory while Tru64 will put them in the object
3930 # directory.
3931 mkdir sub
3932
3933 am_cv_CC_dependencies_compiler_type=none
3934 if test "$am_compiler_list" = ""; then
3935 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3936 fi
3937 am__universal=false
3938 case " $depcc " in #(
3939 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3940 esac
3941
3942 for depmode in $am_compiler_list; do
3943 # Setup a source with many dependencies, because some compilers
3944 # like to wrap large dependency lists on column 80 (with \), and
3945 # we should not choose a depcomp mode which is confused by this.
3946 #
3947 # We need to recreate these files for each test, as the compiler may
3948 # overwrite some of them when testing with obscure command lines.
3949 # This happens at least with the AIX C compiler.
3950 : > sub/conftest.c
3951 for i in 1 2 3 4 5 6; do
3952 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3953 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3954 # Solaris 10 /bin/sh.
3955 echo '/* dummy */' > sub/conftst$i.h
3956 done
3957 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3958
3959 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3960 # mode. It turns out that the SunPro C++ compiler does not properly
3961 # handle '-M -o', and we need to detect this. Also, some Intel
3962 # versions had trouble with output in subdirs.
3963 am__obj=sub/conftest.${OBJEXT-o}
3964 am__minus_obj="-o $am__obj"
3965 case $depmode in
3966 gcc)
3967 # This depmode causes a compiler race in universal mode.
3968 test "$am__universal" = false || continue
3969 ;;
3970 nosideeffect)
3971 # After this tag, mechanisms are not by side-effect, so they'll
3972 # only be used when explicitly requested.
3973 if test "x$enable_dependency_tracking" = xyes; then
3974 continue
3975 else
3976 break
3977 fi
3978 ;;
3979 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3980 # This compiler won't grok '-c -o', but also, the minuso test has
3981 # not run yet. These depmodes are late enough in the game, and
3982 # so weak that their functioning should not be impacted.
3983 am__obj=conftest.${OBJEXT-o}
3984 am__minus_obj=
3985 ;;
3986 none) break ;;
3987 esac
3988 if depmode=$depmode \
3989 source=sub/conftest.c object=$am__obj \
3990 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3991 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3992 >/dev/null 2>conftest.err &&
3993 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3994 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3995 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3996 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3997 # icc doesn't choke on unknown options, it will just issue warnings
3998 # or remarks (even with -Werror). So we grep stderr for any message
3999 # that says an option was ignored or not supported.
4000 # When given -MP, icc 7.0 and 7.1 complain thusly:
4001 # icc: Command line warning: ignoring option '-M'; no argument required
4002 # The diagnosis changed in icc 8.0:
4003 # icc: Command line remark: option '-MP' not supported
4004 if (grep 'ignoring option' conftest.err ||
4005 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4006 am_cv_CC_dependencies_compiler_type=$depmode
4007 break
4008 fi
4009 fi
4010 done
4011
4012 cd ..
4013 rm -rf conftest.dir
4014 else
4015 am_cv_CC_dependencies_compiler_type=none
4016 fi
4017
4018 fi
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4020 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4021 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4022
4023 if
4024 test "x$enable_dependency_tracking" != xno \
4025 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4026 am__fastdepCC_TRUE=
4027 am__fastdepCC_FALSE='#'
4028 else
4029 am__fastdepCC_TRUE='#'
4030 am__fastdepCC_FALSE=
4031 fi
4032
4033
4034
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4036 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4037 # Check whether --enable-maintainer-mode was given.
4038 if test "${enable_maintainer_mode+set}" = set; then :
4039 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4040 else
4041 USE_MAINTAINER_MODE=no
4042 fi
4043
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4045 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4046 if test $USE_MAINTAINER_MODE = yes; then
4047 MAINTAINER_MODE_TRUE=
4048 MAINTAINER_MODE_FALSE='#'
4049 else
4050 MAINTAINER_MODE_TRUE='#'
4051 MAINTAINER_MODE_FALSE=
4052 fi
4053
4054 MAINT=$MAINTAINER_MODE_TRUE
4055
4056
4057
4058
4059 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4060
4061
4062 case `pwd` in
4063 *\ * | *\ *)
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4065 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4066 esac
4067
4068
4069
4070 macro_version='2.4.6'
4071 macro_revision='2.4.6'
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085 ltmain=$ac_aux_dir/ltmain.sh
4086
4087 # Make sure we can run config.sub.
4088 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4089 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4090
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4092 $as_echo_n "checking build system type... " >&6; }
4093 if ${ac_cv_build+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 ac_build_alias=$build_alias
4097 test "x$ac_build_alias" = x &&
4098 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4099 test "x$ac_build_alias" = x &&
4100 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4101 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4102 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4103
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4106 $as_echo "$ac_cv_build" >&6; }
4107 case $ac_cv_build in
4108 *-*-*) ;;
4109 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4110 esac
4111 build=$ac_cv_build
4112 ac_save_IFS=$IFS; IFS='-'
4113 set x $ac_cv_build
4114 shift
4115 build_cpu=$1
4116 build_vendor=$2
4117 shift; shift
4118 # Remember, the first character of IFS is used to create $*,
4119 # except with old shells:
4120 build_os=$*
4121 IFS=$ac_save_IFS
4122 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4123
4124
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4126 $as_echo_n "checking host system type... " >&6; }
4127 if ${ac_cv_host+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 if test "x$host_alias" = x; then
4131 ac_cv_host=$ac_cv_build
4132 else
4133 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4134 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4135 fi
4136
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4139 $as_echo "$ac_cv_host" >&6; }
4140 case $ac_cv_host in
4141 *-*-*) ;;
4142 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4143 esac
4144 host=$ac_cv_host
4145 ac_save_IFS=$IFS; IFS='-'
4146 set x $ac_cv_host
4147 shift
4148 host_cpu=$1
4149 host_vendor=$2
4150 shift; shift
4151 # Remember, the first character of IFS is used to create $*,
4152 # except with old shells:
4153 host_os=$*
4154 IFS=$ac_save_IFS
4155 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4156
4157
4158 # Backslashify metacharacters that are still active within
4159 # double-quoted strings.
4160 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4161
4162 # Same as above, but do not quote variable references.
4163 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4164
4165 # Sed substitution to delay expansion of an escaped shell variable in a
4166 # double_quote_subst'ed string.
4167 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4168
4169 # Sed substitution to delay expansion of an escaped single quote.
4170 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4171
4172 # Sed substitution to avoid accidental globbing in evaled expressions
4173 no_glob_subst='s/\*/\\\*/g'
4174
4175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4176 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4177 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4178
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4180 $as_echo_n "checking how to print strings... " >&6; }
4181 # Test print first, because it will be a builtin if present.
4182 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4183 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4184 ECHO='print -r --'
4185 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4186 ECHO='printf %s\n'
4187 else
4188 # Use this function as a fallback that always works.
4189 func_fallback_echo ()
4190 {
4191 eval 'cat <<_LTECHO_EOF
4192 $1
4193 _LTECHO_EOF'
4194 }
4195 ECHO='func_fallback_echo'
4196 fi
4197
4198 # func_echo_all arg...
4199 # Invoke $ECHO with all args, space-separated.
4200 func_echo_all ()
4201 {
4202 $ECHO ""
4203 }
4204
4205 case $ECHO in
4206 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4207 $as_echo "printf" >&6; } ;;
4208 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4209 $as_echo "print -r" >&6; } ;;
4210 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4211 $as_echo "cat" >&6; } ;;
4212 esac
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4228 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4229 if ${ac_cv_path_SED+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4233 for ac_i in 1 2 3 4 5 6 7; do
4234 ac_script="$ac_script$as_nl$ac_script"
4235 done
4236 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4237 { ac_script=; unset ac_script;}
4238 if test -z "$SED"; then
4239 ac_path_SED_found=false
4240 # Loop through the user's path and test for each of PROGNAME-LIST
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_prog in sed gsed; do
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4249 as_fn_executable_p "$ac_path_SED" || continue
4250 # Check for GNU ac_path_SED and select it if it is found.
4251 # Check for GNU $ac_path_SED
4252 case `"$ac_path_SED" --version 2>&1` in
4253 *GNU*)
4254 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4255 *)
4256 ac_count=0
4257 $as_echo_n 0123456789 >"conftest.in"
4258 while :
4259 do
4260 cat "conftest.in" "conftest.in" >"conftest.tmp"
4261 mv "conftest.tmp" "conftest.in"
4262 cp "conftest.in" "conftest.nl"
4263 $as_echo '' >> "conftest.nl"
4264 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4266 as_fn_arith $ac_count + 1 && ac_count=$as_val
4267 if test $ac_count -gt ${ac_path_SED_max-0}; then
4268 # Best one so far, save it but keep looking for a better one
4269 ac_cv_path_SED="$ac_path_SED"
4270 ac_path_SED_max=$ac_count
4271 fi
4272 # 10*(2^10) chars as input seems more than enough
4273 test $ac_count -gt 10 && break
4274 done
4275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4276 esac
4277
4278 $ac_path_SED_found && break 3
4279 done
4280 done
4281 done
4282 IFS=$as_save_IFS
4283 if test -z "$ac_cv_path_SED"; then
4284 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4285 fi
4286 else
4287 ac_cv_path_SED=$SED
4288 fi
4289
4290 fi
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4292 $as_echo "$ac_cv_path_SED" >&6; }
4293 SED="$ac_cv_path_SED"
4294 rm -f conftest.sed
4295
4296 test -z "$SED" && SED=sed
4297 Xsed="$SED -e 1s/^X//"
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4310 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4311 if ${ac_cv_path_GREP+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -z "$GREP"; then
4315 ac_path_GREP_found=false
4316 # Loop through the user's path and test for each of PROGNAME-LIST
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4319 do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_prog in grep ggrep; do
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4325 as_fn_executable_p "$ac_path_GREP" || continue
4326 # Check for GNU ac_path_GREP and select it if it is found.
4327 # Check for GNU $ac_path_GREP
4328 case `"$ac_path_GREP" --version 2>&1` in
4329 *GNU*)
4330 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4331 *)
4332 ac_count=0
4333 $as_echo_n 0123456789 >"conftest.in"
4334 while :
4335 do
4336 cat "conftest.in" "conftest.in" >"conftest.tmp"
4337 mv "conftest.tmp" "conftest.in"
4338 cp "conftest.in" "conftest.nl"
4339 $as_echo 'GREP' >> "conftest.nl"
4340 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4342 as_fn_arith $ac_count + 1 && ac_count=$as_val
4343 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4344 # Best one so far, save it but keep looking for a better one
4345 ac_cv_path_GREP="$ac_path_GREP"
4346 ac_path_GREP_max=$ac_count
4347 fi
4348 # 10*(2^10) chars as input seems more than enough
4349 test $ac_count -gt 10 && break
4350 done
4351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4352 esac
4353
4354 $ac_path_GREP_found && break 3
4355 done
4356 done
4357 done
4358 IFS=$as_save_IFS
4359 if test -z "$ac_cv_path_GREP"; then
4360 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4361 fi
4362 else
4363 ac_cv_path_GREP=$GREP
4364 fi
4365
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4368 $as_echo "$ac_cv_path_GREP" >&6; }
4369 GREP="$ac_cv_path_GREP"
4370
4371
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4373 $as_echo_n "checking for egrep... " >&6; }
4374 if ${ac_cv_path_EGREP+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4378 then ac_cv_path_EGREP="$GREP -E"
4379 else
4380 if test -z "$EGREP"; then
4381 ac_path_EGREP_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_prog in egrep; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4391 as_fn_executable_p "$ac_path_EGREP" || continue
4392 # Check for GNU ac_path_EGREP and select it if it is found.
4393 # Check for GNU $ac_path_EGREP
4394 case `"$ac_path_EGREP" --version 2>&1` in
4395 *GNU*)
4396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4397 *)
4398 ac_count=0
4399 $as_echo_n 0123456789 >"conftest.in"
4400 while :
4401 do
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo 'EGREP' >> "conftest.nl"
4406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_EGREP="$ac_path_EGREP"
4412 ac_path_EGREP_max=$ac_count
4413 fi
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4416 done
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 esac
4419
4420 $ac_path_EGREP_found && break 3
4421 done
4422 done
4423 done
4424 IFS=$as_save_IFS
4425 if test -z "$ac_cv_path_EGREP"; then
4426 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4427 fi
4428 else
4429 ac_cv_path_EGREP=$EGREP
4430 fi
4431
4432 fi
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4435 $as_echo "$ac_cv_path_EGREP" >&6; }
4436 EGREP="$ac_cv_path_EGREP"
4437
4438
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4440 $as_echo_n "checking for fgrep... " >&6; }
4441 if ${ac_cv_path_FGREP+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4445 then ac_cv_path_FGREP="$GREP -F"
4446 else
4447 if test -z "$FGREP"; then
4448 ac_path_FGREP_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4452 do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in fgrep; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4458 as_fn_executable_p "$ac_path_FGREP" || continue
4459 # Check for GNU ac_path_FGREP and select it if it is found.
4460 # Check for GNU $ac_path_FGREP
4461 case `"$ac_path_FGREP" --version 2>&1` in
4462 *GNU*)
4463 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4464 *)
4465 ac_count=0
4466 $as_echo_n 0123456789 >"conftest.in"
4467 while :
4468 do
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 $as_echo 'FGREP' >> "conftest.nl"
4473 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475 as_fn_arith $ac_count + 1 && ac_count=$as_val
4476 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_FGREP="$ac_path_FGREP"
4479 ac_path_FGREP_max=$ac_count
4480 fi
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4483 done
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485 esac
4486
4487 $ac_path_FGREP_found && break 3
4488 done
4489 done
4490 done
4491 IFS=$as_save_IFS
4492 if test -z "$ac_cv_path_FGREP"; then
4493 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4494 fi
4495 else
4496 ac_cv_path_FGREP=$FGREP
4497 fi
4498
4499 fi
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4502 $as_echo "$ac_cv_path_FGREP" >&6; }
4503 FGREP="$ac_cv_path_FGREP"
4504
4505
4506 test -z "$GREP" && GREP=grep
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526 # Check whether --with-gnu-ld was given.
4527 if test "${with_gnu_ld+set}" = set; then :
4528 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4529 else
4530 with_gnu_ld=no
4531 fi
4532
4533 ac_prog=ld
4534 if test yes = "$GCC"; then
4535 # Check if gcc -print-prog-name=ld gives a path.
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4537 $as_echo_n "checking for ld used by $CC... " >&6; }
4538 case $host in
4539 *-*-mingw*)
4540 # gcc leaves a trailing carriage return, which upsets mingw
4541 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4542 *)
4543 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4544 esac
4545 case $ac_prog in
4546 # Accept absolute paths.
4547 [\\/]* | ?:[\\/]*)
4548 re_direlt='/[^/][^/]*/\.\./'
4549 # Canonicalize the pathname of ld
4550 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4551 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4552 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4553 done
4554 test -z "$LD" && LD=$ac_prog
4555 ;;
4556 "")
4557 # If it fails, then pretend we aren't using GCC.
4558 ac_prog=ld
4559 ;;
4560 *)
4561 # If it is relative, then search for the first ld in PATH.
4562 with_gnu_ld=unknown
4563 ;;
4564 esac
4565 elif test yes = "$with_gnu_ld"; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4567 $as_echo_n "checking for GNU ld... " >&6; }
4568 else
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4570 $as_echo_n "checking for non-GNU ld... " >&6; }
4571 fi
4572 if ${lt_cv_path_LD+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 if test -z "$LD"; then
4576 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4577 for ac_dir in $PATH; do
4578 IFS=$lt_save_ifs
4579 test -z "$ac_dir" && ac_dir=.
4580 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4581 lt_cv_path_LD=$ac_dir/$ac_prog
4582 # Check to see if the program is GNU ld. I'd rather use --version,
4583 # but apparently some variants of GNU ld only accept -v.
4584 # Break only if it was the GNU/non-GNU ld that we prefer.
4585 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4586 *GNU* | *'with BFD'*)
4587 test no != "$with_gnu_ld" && break
4588 ;;
4589 *)
4590 test yes != "$with_gnu_ld" && break
4591 ;;
4592 esac
4593 fi
4594 done
4595 IFS=$lt_save_ifs
4596 else
4597 lt_cv_path_LD=$LD # Let the user override the test with a path.
4598 fi
4599 fi
4600
4601 LD=$lt_cv_path_LD
4602 if test -n "$LD"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4604 $as_echo "$LD" >&6; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4608 fi
4609 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4611 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4612 if ${lt_cv_prog_gnu_ld+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4616 case `$LD -v 2>&1 </dev/null` in
4617 *GNU* | *'with BFD'*)
4618 lt_cv_prog_gnu_ld=yes
4619 ;;
4620 *)
4621 lt_cv_prog_gnu_ld=no
4622 ;;
4623 esac
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4626 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4627 with_gnu_ld=$lt_cv_prog_gnu_ld
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4638 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4639 if ${lt_cv_path_NM+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -n "$NM"; then
4643 # Let the user override the test.
4644 lt_cv_path_NM=$NM
4645 else
4646 lt_nm_to_check=${ac_tool_prefix}nm
4647 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4648 lt_nm_to_check="$lt_nm_to_check nm"
4649 fi
4650 for lt_tmp_nm in $lt_nm_to_check; do
4651 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4652 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4653 IFS=$lt_save_ifs
4654 test -z "$ac_dir" && ac_dir=.
4655 tmp_nm=$ac_dir/$lt_tmp_nm
4656 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4657 # Check to see if the nm accepts a BSD-compat flag.
4658 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4659 # nm: unknown option "B" ignored
4660 # Tru64's nm complains that /dev/null is an invalid object file
4661 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4662 case $build_os in
4663 mingw*) lt_bad_file=conftest.nm/nofile ;;
4664 *) lt_bad_file=/dev/null ;;
4665 esac
4666 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4667 *$lt_bad_file* | *'Invalid file or object type'*)
4668 lt_cv_path_NM="$tmp_nm -B"
4669 break 2
4670 ;;
4671 *)
4672 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4673 */dev/null*)
4674 lt_cv_path_NM="$tmp_nm -p"
4675 break 2
4676 ;;
4677 *)
4678 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4679 continue # so that we can try to find one that supports BSD flags
4680 ;;
4681 esac
4682 ;;
4683 esac
4684 fi
4685 done
4686 IFS=$lt_save_ifs
4687 done
4688 : ${lt_cv_path_NM=no}
4689 fi
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4692 $as_echo "$lt_cv_path_NM" >&6; }
4693 if test no != "$lt_cv_path_NM"; then
4694 NM=$lt_cv_path_NM
4695 else
4696 # Didn't find any BSD compatible name lister, look for dumpbin.
4697 if test -n "$DUMPBIN"; then :
4698 # Let the user override the test.
4699 else
4700 if test -n "$ac_tool_prefix"; then
4701 for ac_prog in dumpbin "link -dump"
4702 do
4703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4704 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 $as_echo_n "checking for $ac_word... " >&6; }
4707 if ${ac_cv_prog_DUMPBIN+:} false; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 if test -n "$DUMPBIN"; then
4711 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4723 fi
4724 done
4725 done
4726 IFS=$as_save_IFS
4727
4728 fi
4729 fi
4730 DUMPBIN=$ac_cv_prog_DUMPBIN
4731 if test -n "$DUMPBIN"; then
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4733 $as_echo "$DUMPBIN" >&6; }
4734 else
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737 fi
4738
4739
4740 test -n "$DUMPBIN" && break
4741 done
4742 fi
4743 if test -z "$DUMPBIN"; then
4744 ac_ct_DUMPBIN=$DUMPBIN
4745 for ac_prog in dumpbin "link -dump"
4746 do
4747 # Extract the first word of "$ac_prog", so it can be a program name with args.
4748 set dummy $ac_prog; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 if test -n "$ac_ct_DUMPBIN"; then
4755 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768 done
4769 done
4770 IFS=$as_save_IFS
4771
4772 fi
4773 fi
4774 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4775 if test -n "$ac_ct_DUMPBIN"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4777 $as_echo "$ac_ct_DUMPBIN" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4781 fi
4782
4783
4784 test -n "$ac_ct_DUMPBIN" && break
4785 done
4786
4787 if test "x$ac_ct_DUMPBIN" = x; then
4788 DUMPBIN=":"
4789 else
4790 case $cross_compiling:$ac_tool_warned in
4791 yes:)
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4794 ac_tool_warned=yes ;;
4795 esac
4796 DUMPBIN=$ac_ct_DUMPBIN
4797 fi
4798 fi
4799
4800 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4801 *COFF*)
4802 DUMPBIN="$DUMPBIN -symbols -headers"
4803 ;;
4804 *)
4805 DUMPBIN=:
4806 ;;
4807 esac
4808 fi
4809
4810 if test : != "$DUMPBIN"; then
4811 NM=$DUMPBIN
4812 fi
4813 fi
4814 test -z "$NM" && NM=nm
4815
4816
4817
4818
4819
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4822 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4823 if ${lt_cv_nm_interface+:} false; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 lt_cv_nm_interface="BSD nm"
4827 echo "int some_variable = 0;" > conftest.$ac_ext
4828 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4829 (eval "$ac_compile" 2>conftest.err)
4830 cat conftest.err >&5
4831 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4832 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4833 cat conftest.err >&5
4834 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4835 cat conftest.out >&5
4836 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4837 lt_cv_nm_interface="MS dumpbin"
4838 fi
4839 rm -f conftest*
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4842 $as_echo "$lt_cv_nm_interface" >&6; }
4843
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4845 $as_echo_n "checking whether ln -s works... " >&6; }
4846 LN_S=$as_ln_s
4847 if test "$LN_S" = "ln -s"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4849 $as_echo "yes" >&6; }
4850 else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4852 $as_echo "no, using $LN_S" >&6; }
4853 fi
4854
4855 # find the maximum length of command line arguments
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4857 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4858 if ${lt_cv_sys_max_cmd_len+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 i=0
4862 teststring=ABCD
4863
4864 case $build_os in
4865 msdosdjgpp*)
4866 # On DJGPP, this test can blow up pretty badly due to problems in libc
4867 # (any single argument exceeding 2000 bytes causes a buffer overrun
4868 # during glob expansion). Even if it were fixed, the result of this
4869 # check would be larger than it should be.
4870 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4871 ;;
4872
4873 gnu*)
4874 # Under GNU Hurd, this test is not required because there is
4875 # no limit to the length of command line arguments.
4876 # Libtool will interpret -1 as no limit whatsoever
4877 lt_cv_sys_max_cmd_len=-1;
4878 ;;
4879
4880 cygwin* | mingw* | cegcc*)
4881 # On Win9x/ME, this test blows up -- it succeeds, but takes
4882 # about 5 minutes as the teststring grows exponentially.
4883 # Worse, since 9x/ME are not pre-emptively multitasking,
4884 # you end up with a "frozen" computer, even though with patience
4885 # the test eventually succeeds (with a max line length of 256k).
4886 # Instead, let's just punt: use the minimum linelength reported by
4887 # all of the supported platforms: 8192 (on NT/2K/XP).
4888 lt_cv_sys_max_cmd_len=8192;
4889 ;;
4890
4891 mint*)
4892 # On MiNT this can take a long time and run out of memory.
4893 lt_cv_sys_max_cmd_len=8192;
4894 ;;
4895
4896 amigaos*)
4897 # On AmigaOS with pdksh, this test takes hours, literally.
4898 # So we just punt and use a minimum line length of 8192.
4899 lt_cv_sys_max_cmd_len=8192;
4900 ;;
4901
4902 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4903 # This has been around since 386BSD, at least. Likely further.
4904 if test -x /sbin/sysctl; then
4905 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4906 elif test -x /usr/sbin/sysctl; then
4907 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4908 else
4909 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4910 fi
4911 # And add a safety zone
4912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4914 ;;
4915
4916 interix*)
4917 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4918 lt_cv_sys_max_cmd_len=196608
4919 ;;
4920
4921 os2*)
4922 # The test takes a long time on OS/2.
4923 lt_cv_sys_max_cmd_len=8192
4924 ;;
4925
4926 osf*)
4927 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4928 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4929 # nice to cause kernel panics so lets avoid the loop below.
4930 # First set a reasonable default.
4931 lt_cv_sys_max_cmd_len=16384
4932 #
4933 if test -x /sbin/sysconfig; then
4934 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4935 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4936 esac
4937 fi
4938 ;;
4939 sco3.2v5*)
4940 lt_cv_sys_max_cmd_len=102400
4941 ;;
4942 sysv5* | sco5v6* | sysv4.2uw2*)
4943 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4944 if test -n "$kargmax"; then
4945 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4946 else
4947 lt_cv_sys_max_cmd_len=32768
4948 fi
4949 ;;
4950 *)
4951 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4952 if test -n "$lt_cv_sys_max_cmd_len" && \
4953 test undefined != "$lt_cv_sys_max_cmd_len"; then
4954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4956 else
4957 # Make teststring a little bigger before we do anything with it.
4958 # a 1K string should be a reasonable start.
4959 for i in 1 2 3 4 5 6 7 8; do
4960 teststring=$teststring$teststring
4961 done
4962 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4963 # If test is not a shell built-in, we'll probably end up computing a
4964 # maximum length that is only half of the actual maximum length, but
4965 # we can't tell.
4966 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4967 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4968 test 17 != "$i" # 1/2 MB should be enough
4969 do
4970 i=`expr $i + 1`
4971 teststring=$teststring$teststring
4972 done
4973 # Only check the string length outside the loop.
4974 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4975 teststring=
4976 # Add a significant safety factor because C++ compilers can tack on
4977 # massive amounts of additional arguments before passing them to the
4978 # linker. It appears as though 1/2 is a usable value.
4979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4980 fi
4981 ;;
4982 esac
4983
4984 fi
4985
4986 if test -n "$lt_cv_sys_max_cmd_len"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4988 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4991 $as_echo "none" >&6; }
4992 fi
4993 max_cmd_len=$lt_cv_sys_max_cmd_len
4994
4995
4996
4997
4998
4999
5000 : ${CP="cp -f"}
5001 : ${MV="mv -f"}
5002 : ${RM="rm -f"}
5003
5004 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5005 lt_unset=unset
5006 else
5007 lt_unset=false
5008 fi
5009
5010
5011
5012
5013
5014 # test EBCDIC or ASCII
5015 case `echo X|tr X '\101'` in
5016 A) # ASCII based system
5017 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5018 lt_SP2NL='tr \040 \012'
5019 lt_NL2SP='tr \015\012 \040\040'
5020 ;;
5021 *) # EBCDIC based system
5022 lt_SP2NL='tr \100 \n'
5023 lt_NL2SP='tr \r\n \100\100'
5024 ;;
5025 esac
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5036 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5037 if ${lt_cv_to_host_file_cmd+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 case $host in
5041 *-*-mingw* )
5042 case $build in
5043 *-*-mingw* ) # actually msys
5044 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5045 ;;
5046 *-*-cygwin* )
5047 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5048 ;;
5049 * ) # otherwise, assume *nix
5050 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5051 ;;
5052 esac
5053 ;;
5054 *-*-cygwin* )
5055 case $build in
5056 *-*-mingw* ) # actually msys
5057 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5058 ;;
5059 *-*-cygwin* )
5060 lt_cv_to_host_file_cmd=func_convert_file_noop
5061 ;;
5062 * ) # otherwise, assume *nix
5063 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5064 ;;
5065 esac
5066 ;;
5067 * ) # unhandled hosts (and "normal" native builds)
5068 lt_cv_to_host_file_cmd=func_convert_file_noop
5069 ;;
5070 esac
5071
5072 fi
5073
5074 to_host_file_cmd=$lt_cv_to_host_file_cmd
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5076 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5077
5078
5079
5080
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5083 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5084 if ${lt_cv_to_tool_file_cmd+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 #assume ordinary cross tools, or native build.
5088 lt_cv_to_tool_file_cmd=func_convert_file_noop
5089 case $host in
5090 *-*-mingw* )
5091 case $build in
5092 *-*-mingw* ) # actually msys
5093 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5094 ;;
5095 esac
5096 ;;
5097 esac
5098
5099 fi
5100
5101 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5103 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5104
5105
5106
5107
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5110 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5111 if ${lt_cv_ld_reload_flag+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 lt_cv_ld_reload_flag='-r'
5115 fi
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5117 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5118 reload_flag=$lt_cv_ld_reload_flag
5119 case $reload_flag in
5120 "" | " "*) ;;
5121 *) reload_flag=" $reload_flag" ;;
5122 esac
5123 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5124 case $host_os in
5125 cygwin* | mingw* | pw32* | cegcc*)
5126 if test yes != "$GCC"; then
5127 reload_cmds=false
5128 fi
5129 ;;
5130 darwin*)
5131 if test yes = "$GCC"; then
5132 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5133 else
5134 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5135 fi
5136 ;;
5137 esac
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147 if test -n "$ac_tool_prefix"; then
5148 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5149 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_OBJDUMP+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$OBJDUMP"; then
5156 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169 done
5170 done
5171 IFS=$as_save_IFS
5172
5173 fi
5174 fi
5175 OBJDUMP=$ac_cv_prog_OBJDUMP
5176 if test -n "$OBJDUMP"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5178 $as_echo "$OBJDUMP" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 fi
5183
5184
5185 fi
5186 if test -z "$ac_cv_prog_OBJDUMP"; then
5187 ac_ct_OBJDUMP=$OBJDUMP
5188 # Extract the first word of "objdump", so it can be a program name with args.
5189 set dummy objdump; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 if test -n "$ac_ct_OBJDUMP"; then
5196 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209 done
5210 done
5211 IFS=$as_save_IFS
5212
5213 fi
5214 fi
5215 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5216 if test -n "$ac_ct_OBJDUMP"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5218 $as_echo "$ac_ct_OBJDUMP" >&6; }
5219 else
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222 fi
5223
5224 if test "x$ac_ct_OBJDUMP" = x; then
5225 OBJDUMP="false"
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228 yes:)
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5232 esac
5233 OBJDUMP=$ac_ct_OBJDUMP
5234 fi
5235 else
5236 OBJDUMP="$ac_cv_prog_OBJDUMP"
5237 fi
5238
5239 test -z "$OBJDUMP" && OBJDUMP=objdump
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5250 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5251 if ${lt_cv_deplibs_check_method+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 lt_cv_file_magic_cmd='$MAGIC_CMD'
5255 lt_cv_file_magic_test_file=
5256 lt_cv_deplibs_check_method='unknown'
5257 # Need to set the preceding variable on all platforms that support
5258 # interlibrary dependencies.
5259 # 'none' -- dependencies not supported.
5260 # 'unknown' -- same as none, but documents that we really don't know.
5261 # 'pass_all' -- all dependencies passed with no checks.
5262 # 'test_compile' -- check by making test program.
5263 # 'file_magic [[regex]]' -- check by looking for files in library path
5264 # that responds to the $file_magic_cmd with a given extended regex.
5265 # If you have 'file' or equivalent on your system and you're not sure
5266 # whether 'pass_all' will *always* work, you probably want this one.
5267
5268 case $host_os in
5269 aix[4-9]*)
5270 lt_cv_deplibs_check_method=pass_all
5271 ;;
5272
5273 beos*)
5274 lt_cv_deplibs_check_method=pass_all
5275 ;;
5276
5277 bsdi[45]*)
5278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5279 lt_cv_file_magic_cmd='/usr/bin/file -L'
5280 lt_cv_file_magic_test_file=/shlib/libc.so
5281 ;;
5282
5283 cygwin*)
5284 # func_win32_libid is a shell function defined in ltmain.sh
5285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5286 lt_cv_file_magic_cmd='func_win32_libid'
5287 ;;
5288
5289 mingw* | pw32*)
5290 # Base MSYS/MinGW do not provide the 'file' command needed by
5291 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5292 # unless we find 'file', for example because we are cross-compiling.
5293 if ( file / ) >/dev/null 2>&1; then
5294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5295 lt_cv_file_magic_cmd='func_win32_libid'
5296 else
5297 # Keep this pattern in sync with the one in func_win32_libid.
5298 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5299 lt_cv_file_magic_cmd='$OBJDUMP -f'
5300 fi
5301 ;;
5302
5303 cegcc*)
5304 # use the weaker test based on 'objdump'. See mingw*.
5305 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5306 lt_cv_file_magic_cmd='$OBJDUMP -f'
5307 ;;
5308
5309 darwin* | rhapsody*)
5310 lt_cv_deplibs_check_method=pass_all
5311 ;;
5312
5313 freebsd* | dragonfly*)
5314 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5315 case $host_cpu in
5316 i*86 )
5317 # Not sure whether the presence of OpenBSD here was a mistake.
5318 # Let's accept both of them until this is cleared up.
5319 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5320 lt_cv_file_magic_cmd=/usr/bin/file
5321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5322 ;;
5323 esac
5324 else
5325 lt_cv_deplibs_check_method=pass_all
5326 fi
5327 ;;
5328
5329 haiku*)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332
5333 hpux10.20* | hpux11*)
5334 lt_cv_file_magic_cmd=/usr/bin/file
5335 case $host_cpu in
5336 ia64*)
5337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5338 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5339 ;;
5340 hppa*64*)
5341 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]'
5342 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5343 ;;
5344 *)
5345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5346 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5347 ;;
5348 esac
5349 ;;
5350
5351 interix[3-9]*)
5352 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5354 ;;
5355
5356 irix5* | irix6* | nonstopux*)
5357 case $LD in
5358 *-32|*"-32 ") libmagic=32-bit;;
5359 *-n32|*"-n32 ") libmagic=N32;;
5360 *-64|*"-64 ") libmagic=64-bit;;
5361 *) libmagic=never-match;;
5362 esac
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365
5366 # This must be glibc/ELF.
5367 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5368 lt_cv_deplibs_check_method=pass_all
5369 ;;
5370
5371 netbsd*)
5372 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5374 else
5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5376 fi
5377 ;;
5378
5379 newos6*)
5380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5381 lt_cv_file_magic_cmd=/usr/bin/file
5382 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5383 ;;
5384
5385 *nto* | *qnx*)
5386 lt_cv_deplibs_check_method=pass_all
5387 ;;
5388
5389 openbsd* | bitrig*)
5390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5392 else
5393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5394 fi
5395 ;;
5396
5397 osf3* | osf4* | osf5*)
5398 lt_cv_deplibs_check_method=pass_all
5399 ;;
5400
5401 rdos*)
5402 lt_cv_deplibs_check_method=pass_all
5403 ;;
5404
5405 solaris*)
5406 lt_cv_deplibs_check_method=pass_all
5407 ;;
5408
5409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5410 lt_cv_deplibs_check_method=pass_all
5411 ;;
5412
5413 sysv4 | sysv4.3*)
5414 case $host_vendor in
5415 motorola)
5416 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]'
5417 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5418 ;;
5419 ncr)
5420 lt_cv_deplibs_check_method=pass_all
5421 ;;
5422 sequent)
5423 lt_cv_file_magic_cmd='/bin/file'
5424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5425 ;;
5426 sni)
5427 lt_cv_file_magic_cmd='/bin/file'
5428 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5429 lt_cv_file_magic_test_file=/lib/libc.so
5430 ;;
5431 siemens)
5432 lt_cv_deplibs_check_method=pass_all
5433 ;;
5434 pc)
5435 lt_cv_deplibs_check_method=pass_all
5436 ;;
5437 esac
5438 ;;
5439
5440 tpf*)
5441 lt_cv_deplibs_check_method=pass_all
5442 ;;
5443 os2*)
5444 lt_cv_deplibs_check_method=pass_all
5445 ;;
5446 esac
5447
5448 fi
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5450 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5451
5452 file_magic_glob=
5453 want_nocaseglob=no
5454 if test "$build" = "$host"; then
5455 case $host_os in
5456 mingw* | pw32*)
5457 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5458 want_nocaseglob=yes
5459 else
5460 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5461 fi
5462 ;;
5463 esac
5464 fi
5465
5466 file_magic_cmd=$lt_cv_file_magic_cmd
5467 deplibs_check_method=$lt_cv_deplibs_check_method
5468 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491 if test -n "$ac_tool_prefix"; then
5492 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5493 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_DLLTOOL+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$DLLTOOL"; then
5500 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513 done
5514 done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 DLLTOOL=$ac_cv_prog_DLLTOOL
5520 if test -n "$DLLTOOL"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5522 $as_echo "$DLLTOOL" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528
5529 fi
5530 if test -z "$ac_cv_prog_DLLTOOL"; then
5531 ac_ct_DLLTOOL=$DLLTOOL
5532 # Extract the first word of "dlltool", so it can be a program name with args.
5533 set dummy dlltool; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 if test -n "$ac_ct_DLLTOOL"; then
5540 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5552 fi
5553 done
5554 done
5555 IFS=$as_save_IFS
5556
5557 fi
5558 fi
5559 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5560 if test -n "$ac_ct_DLLTOOL"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5562 $as_echo "$ac_ct_DLLTOOL" >&6; }
5563 else
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566 fi
5567
5568 if test "x$ac_ct_DLLTOOL" = x; then
5569 DLLTOOL="false"
5570 else
5571 case $cross_compiling:$ac_tool_warned in
5572 yes:)
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5575 ac_tool_warned=yes ;;
5576 esac
5577 DLLTOOL=$ac_ct_DLLTOOL
5578 fi
5579 else
5580 DLLTOOL="$ac_cv_prog_DLLTOOL"
5581 fi
5582
5583 test -z "$DLLTOOL" && DLLTOOL=dlltool
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5595 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5596 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 lt_cv_sharedlib_from_linklib_cmd='unknown'
5600
5601 case $host_os in
5602 cygwin* | mingw* | pw32* | cegcc*)
5603 # two different shell functions defined in ltmain.sh;
5604 # decide which one to use based on capabilities of $DLLTOOL
5605 case `$DLLTOOL --help 2>&1` in
5606 *--identify-strict*)
5607 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5608 ;;
5609 *)
5610 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5611 ;;
5612 esac
5613 ;;
5614 *)
5615 # fallback: assume linklib IS sharedlib
5616 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5617 ;;
5618 esac
5619
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5622 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5623 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5624 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5625
5626
5627
5628
5629
5630
5631
5632
5633 if test -n "$ac_tool_prefix"; then
5634 for ac_prog in ar
5635 do
5636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_prog_AR+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 if test -n "$AR"; then
5644 ac_cv_prog_AR="$AR" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5656 fi
5657 done
5658 done
5659 IFS=$as_save_IFS
5660
5661 fi
5662 fi
5663 AR=$ac_cv_prog_AR
5664 if test -n "$AR"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5666 $as_echo "$AR" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5670 fi
5671
5672
5673 test -n "$AR" && break
5674 done
5675 fi
5676 if test -z "$AR"; then
5677 ac_ct_AR=$AR
5678 for ac_prog in ar
5679 do
5680 # Extract the first word of "$ac_prog", so it can be a program name with args.
5681 set dummy $ac_prog; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 if test -n "$ac_ct_AR"; then
5688 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_ac_ct_AR="$ac_prog"
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5700 fi
5701 done
5702 done
5703 IFS=$as_save_IFS
5704
5705 fi
5706 fi
5707 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5708 if test -n "$ac_ct_AR"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5710 $as_echo "$ac_ct_AR" >&6; }
5711 else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5714 fi
5715
5716
5717 test -n "$ac_ct_AR" && break
5718 done
5719
5720 if test "x$ac_ct_AR" = x; then
5721 AR="false"
5722 else
5723 case $cross_compiling:$ac_tool_warned in
5724 yes:)
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5727 ac_tool_warned=yes ;;
5728 esac
5729 AR=$ac_ct_AR
5730 fi
5731 fi
5732
5733 : ${AR=ar}
5734 : ${AR_FLAGS=cru}
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5747 $as_echo_n "checking for archiver @FILE support... " >&6; }
5748 if ${lt_cv_ar_at_file+:} false; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 lt_cv_ar_at_file=no
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754
5755 int
5756 main ()
5757 {
5758
5759 ;
5760 return 0;
5761 }
5762 _ACEOF
5763 if ac_fn_c_try_compile "$LINENO"; then :
5764 echo conftest.$ac_objext > conftest.lst
5765 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5767 (eval $lt_ar_try) 2>&5
5768 ac_status=$?
5769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5770 test $ac_status = 0; }
5771 if test 0 -eq "$ac_status"; then
5772 # Ensure the archiver fails upon bogus file names.
5773 rm -f conftest.$ac_objext libconftest.a
5774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5775 (eval $lt_ar_try) 2>&5
5776 ac_status=$?
5777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5778 test $ac_status = 0; }
5779 if test 0 -ne "$ac_status"; then
5780 lt_cv_ar_at_file=@
5781 fi
5782 fi
5783 rm -f conftest.* libconftest.a
5784
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787
5788 fi
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5790 $as_echo "$lt_cv_ar_at_file" >&6; }
5791
5792 if test no = "$lt_cv_ar_at_file"; then
5793 archiver_list_spec=
5794 else
5795 archiver_list_spec=$lt_cv_ar_at_file
5796 fi
5797
5798
5799
5800
5801
5802
5803
5804 if test -n "$ac_tool_prefix"; then
5805 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5806 set dummy ${ac_tool_prefix}strip; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_STRIP+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if test -n "$STRIP"; then
5813 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818 IFS=$as_save_IFS
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 break 2
5825 fi
5826 done
5827 done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 STRIP=$ac_cv_prog_STRIP
5833 if test -n "$STRIP"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5835 $as_echo "$STRIP" >&6; }
5836 else
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841
5842 fi
5843 if test -z "$ac_cv_prog_STRIP"; then
5844 ac_ct_STRIP=$STRIP
5845 # Extract the first word of "strip", so it can be a program name with args.
5846 set dummy strip; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 if test -n "$ac_ct_STRIP"; then
5853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_ac_ct_STRIP="strip"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866 done
5867 done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5873 if test -n "$ac_ct_STRIP"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5875 $as_echo "$ac_ct_STRIP" >&6; }
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881 if test "x$ac_ct_STRIP" = x; then
5882 STRIP=":"
5883 else
5884 case $cross_compiling:$ac_tool_warned in
5885 yes:)
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888 ac_tool_warned=yes ;;
5889 esac
5890 STRIP=$ac_ct_STRIP
5891 fi
5892 else
5893 STRIP="$ac_cv_prog_STRIP"
5894 fi
5895
5896 test -z "$STRIP" && STRIP=:
5897
5898
5899
5900
5901
5902
5903 if test -n "$ac_tool_prefix"; then
5904 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5905 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_prog_RANLIB+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -n "$RANLIB"; then
5912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 RANLIB=$ac_cv_prog_RANLIB
5932 if test -n "$RANLIB"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5934 $as_echo "$RANLIB" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939
5940
5941 fi
5942 if test -z "$ac_cv_prog_RANLIB"; then
5943 ac_ct_RANLIB=$RANLIB
5944 # Extract the first word of "ranlib", so it can be a program name with args.
5945 set dummy ranlib; ac_word=$2
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test -n "$ac_ct_RANLIB"; then
5952 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_ac_ct_RANLIB="ranlib"
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969 fi
5970 fi
5971 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5972 if test -n "$ac_ct_RANLIB"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5974 $as_echo "$ac_ct_RANLIB" >&6; }
5975 else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979
5980 if test "x$ac_ct_RANLIB" = x; then
5981 RANLIB=":"
5982 else
5983 case $cross_compiling:$ac_tool_warned in
5984 yes:)
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5987 ac_tool_warned=yes ;;
5988 esac
5989 RANLIB=$ac_ct_RANLIB
5990 fi
5991 else
5992 RANLIB="$ac_cv_prog_RANLIB"
5993 fi
5994
5995 test -z "$RANLIB" && RANLIB=:
5996
5997
5998
5999
6000
6001
6002 # Determine commands to create old-style static archives.
6003 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6004 old_postinstall_cmds='chmod 644 $oldlib'
6005 old_postuninstall_cmds=
6006
6007 if test -n "$RANLIB"; then
6008 case $host_os in
6009 bitrig* | openbsd*)
6010 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6011 ;;
6012 *)
6013 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6014 ;;
6015 esac
6016 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6017 fi
6018
6019 case $host_os in
6020 darwin*)
6021 lock_old_archive_extraction=yes ;;
6022 *)
6023 lock_old_archive_extraction=no ;;
6024 esac
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064 # If no C compiler was specified, use CC.
6065 LTCC=${LTCC-"$CC"}
6066
6067 # If no C compiler flags were specified, use CFLAGS.
6068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6069
6070 # Allow CC to be a program name with arguments.
6071 compiler=$CC
6072
6073
6074 # Check for command to grab the raw symbol name followed by C symbol from nm.
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6076 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6077 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080
6081 # These are sane defaults that work on at least a few old systems.
6082 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6083
6084 # Character class describing NM global symbol codes.
6085 symcode='[BCDEGRST]'
6086
6087 # Regexp to match symbols that can be accessed directly from C.
6088 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6089
6090 # Define system-specific variables.
6091 case $host_os in
6092 aix*)
6093 symcode='[BCDT]'
6094 ;;
6095 cygwin* | mingw* | pw32* | cegcc*)
6096 symcode='[ABCDGISTW]'
6097 ;;
6098 hpux*)
6099 if test ia64 = "$host_cpu"; then
6100 symcode='[ABCDEGRST]'
6101 fi
6102 ;;
6103 irix* | nonstopux*)
6104 symcode='[BCDEGRST]'
6105 ;;
6106 osf*)
6107 symcode='[BCDEGQRST]'
6108 ;;
6109 solaris*)
6110 symcode='[BDRT]'
6111 ;;
6112 sco3.2v5*)
6113 symcode='[DT]'
6114 ;;
6115 sysv4.2uw2*)
6116 symcode='[DT]'
6117 ;;
6118 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6119 symcode='[ABDT]'
6120 ;;
6121 sysv4)
6122 symcode='[DFNSTU]'
6123 ;;
6124 esac
6125
6126 # If we're using GNU nm, then use its standard symbol codes.
6127 case `$NM -V 2>&1` in
6128 *GNU* | *'with BFD'*)
6129 symcode='[ABCDGIRSTW]' ;;
6130 esac
6131
6132 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6133 # Gets list of data symbols to import.
6134 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6135 # Adjust the below global symbol transforms to fixup imported variables.
6136 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6137 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6138 lt_c_name_lib_hook="\
6139 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6140 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6141 else
6142 # Disable hooks by default.
6143 lt_cv_sys_global_symbol_to_import=
6144 lt_cdecl_hook=
6145 lt_c_name_hook=
6146 lt_c_name_lib_hook=
6147 fi
6148
6149 # Transform an extracted symbol line into a proper C declaration.
6150 # Some systems (esp. on ia64) link data and code symbols differently,
6151 # so use this general approach.
6152 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6153 $lt_cdecl_hook\
6154 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6155 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6156
6157 # Transform an extracted symbol line into symbol name and symbol address
6158 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6159 $lt_c_name_hook\
6160 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6161 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6162
6163 # Transform an extracted symbol line into symbol name with lib prefix and
6164 # symbol address.
6165 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6166 $lt_c_name_lib_hook\
6167 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6168 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6169 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6170
6171 # Handle CRLF in mingw tool chain
6172 opt_cr=
6173 case $build_os in
6174 mingw*)
6175 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6176 ;;
6177 esac
6178
6179 # Try without a prefix underscore, then with it.
6180 for ac_symprfx in "" "_"; do
6181
6182 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6183 symxfrm="\\1 $ac_symprfx\\2 \\2"
6184
6185 # Write the raw and C identifiers.
6186 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6187 # Fake it for dumpbin and say T for any non-static function,
6188 # D for any global variable and I for any imported variable.
6189 # Also find C++ and __fastcall symbols from MSVC++,
6190 # which start with @ or ?.
6191 lt_cv_sys_global_symbol_pipe="$AWK '"\
6192 " {last_section=section; section=\$ 3};"\
6193 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6194 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6195 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6196 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6197 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6198 " \$ 0!~/External *\|/{next};"\
6199 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6200 " {if(hide[section]) next};"\
6201 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6202 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6203 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6204 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6205 " ' prfx=^$ac_symprfx"
6206 else
6207 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6208 fi
6209 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6210
6211 # Check to see that the pipe works correctly.
6212 pipe_works=no
6213
6214 rm -f conftest*
6215 cat > conftest.$ac_ext <<_LT_EOF
6216 #ifdef __cplusplus
6217 extern "C" {
6218 #endif
6219 char nm_test_var;
6220 void nm_test_func(void);
6221 void nm_test_func(void){}
6222 #ifdef __cplusplus
6223 }
6224 #endif
6225 int main(){nm_test_var='a';nm_test_func();return(0);}
6226 _LT_EOF
6227
6228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6229 (eval $ac_compile) 2>&5
6230 ac_status=$?
6231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6232 test $ac_status = 0; }; then
6233 # Now try to grab the symbols.
6234 nlist=conftest.nm
6235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6236 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6237 ac_status=$?
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; } && test -s "$nlist"; then
6240 # Try sorting and uniquifying the output.
6241 if sort "$nlist" | uniq > "$nlist"T; then
6242 mv -f "$nlist"T "$nlist"
6243 else
6244 rm -f "$nlist"T
6245 fi
6246
6247 # Make sure that we snagged all the symbols we need.
6248 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6249 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6250 cat <<_LT_EOF > conftest.$ac_ext
6251 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6252 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6253 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6254 relocations are performed -- see ld's documentation on pseudo-relocs. */
6255 # define LT_DLSYM_CONST
6256 #elif defined __osf__
6257 /* This system does not cope well with relocations in const data. */
6258 # define LT_DLSYM_CONST
6259 #else
6260 # define LT_DLSYM_CONST const
6261 #endif
6262
6263 #ifdef __cplusplus
6264 extern "C" {
6265 #endif
6266
6267 _LT_EOF
6268 # Now generate the symbol file.
6269 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6270
6271 cat <<_LT_EOF >> conftest.$ac_ext
6272
6273 /* The mapping between symbol names and symbols. */
6274 LT_DLSYM_CONST struct {
6275 const char *name;
6276 void *address;
6277 }
6278 lt__PROGRAM__LTX_preloaded_symbols[] =
6279 {
6280 { "@PROGRAM@", (void *) 0 },
6281 _LT_EOF
6282 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6283 cat <<\_LT_EOF >> conftest.$ac_ext
6284 {0, (void *) 0}
6285 };
6286
6287 /* This works around a problem in FreeBSD linker */
6288 #ifdef FREEBSD_WORKAROUND
6289 static const void *lt_preloaded_setup() {
6290 return lt__PROGRAM__LTX_preloaded_symbols;
6291 }
6292 #endif
6293
6294 #ifdef __cplusplus
6295 }
6296 #endif
6297 _LT_EOF
6298 # Now try linking the two files.
6299 mv conftest.$ac_objext conftstm.$ac_objext
6300 lt_globsym_save_LIBS=$LIBS
6301 lt_globsym_save_CFLAGS=$CFLAGS
6302 LIBS=conftstm.$ac_objext
6303 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6305 (eval $ac_link) 2>&5
6306 ac_status=$?
6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6309 pipe_works=yes
6310 fi
6311 LIBS=$lt_globsym_save_LIBS
6312 CFLAGS=$lt_globsym_save_CFLAGS
6313 else
6314 echo "cannot find nm_test_func in $nlist" >&5
6315 fi
6316 else
6317 echo "cannot find nm_test_var in $nlist" >&5
6318 fi
6319 else
6320 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6321 fi
6322 else
6323 echo "$progname: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6325 fi
6326 rm -rf conftest* conftst*
6327
6328 # Do not use the global_symbol_pipe unless it works.
6329 if test yes = "$pipe_works"; then
6330 break
6331 else
6332 lt_cv_sys_global_symbol_pipe=
6333 fi
6334 done
6335
6336 fi
6337
6338 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6339 lt_cv_sys_global_symbol_to_cdecl=
6340 fi
6341 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6343 $as_echo "failed" >&6; }
6344 else
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6346 $as_echo "ok" >&6; }
6347 fi
6348
6349 # Response file support.
6350 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6351 nm_file_list_spec='@'
6352 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6353 nm_file_list_spec='@'
6354 fi
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6393 $as_echo_n "checking for sysroot... " >&6; }
6394
6395 # Check whether --with-sysroot was given.
6396 if test "${with_sysroot+set}" = set; then :
6397 withval=$with_sysroot;
6398 else
6399 with_sysroot=no
6400 fi
6401
6402
6403 lt_sysroot=
6404 case $with_sysroot in #(
6405 yes)
6406 if test yes = "$GCC"; then
6407 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6408 fi
6409 ;; #(
6410 /*)
6411 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6412 ;; #(
6413 no|'')
6414 ;; #(
6415 *)
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6417 $as_echo "$with_sysroot" >&6; }
6418 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6419 ;;
6420 esac
6421
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6423 $as_echo "${lt_sysroot:-no}" >&6; }
6424
6425
6426
6427
6428
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6430 $as_echo_n "checking for a working dd... " >&6; }
6431 if ${ac_cv_path_lt_DD+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 printf 0123456789abcdef0123456789abcdef >conftest.i
6435 cat conftest.i conftest.i >conftest2.i
6436 : ${lt_DD:=$DD}
6437 if test -z "$lt_DD"; then
6438 ac_path_lt_DD_found=false
6439 # Loop through the user's path and test for each of PROGNAME-LIST
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_prog in dd; do
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6448 as_fn_executable_p "$ac_path_lt_DD" || continue
6449 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6450 cmp -s conftest.i conftest.out \
6451 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6452 fi
6453 $ac_path_lt_DD_found && break 3
6454 done
6455 done
6456 done
6457 IFS=$as_save_IFS
6458 if test -z "$ac_cv_path_lt_DD"; then
6459 :
6460 fi
6461 else
6462 ac_cv_path_lt_DD=$lt_DD
6463 fi
6464
6465 rm -f conftest.i conftest2.i conftest.out
6466 fi
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6468 $as_echo "$ac_cv_path_lt_DD" >&6; }
6469
6470
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6472 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6473 if ${lt_cv_truncate_bin+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 printf 0123456789abcdef0123456789abcdef >conftest.i
6477 cat conftest.i conftest.i >conftest2.i
6478 lt_cv_truncate_bin=
6479 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6480 cmp -s conftest.i conftest.out \
6481 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6482 fi
6483 rm -f conftest.i conftest2.i conftest.out
6484 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6485 fi
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6487 $as_echo "$lt_cv_truncate_bin" >&6; }
6488
6489
6490
6491
6492
6493
6494
6495 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6496 func_cc_basename ()
6497 {
6498 for cc_temp in $*""; do
6499 case $cc_temp in
6500 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6501 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6502 \-*) ;;
6503 *) break;;
6504 esac
6505 done
6506 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6507 }
6508
6509 # Check whether --enable-libtool-lock was given.
6510 if test "${enable_libtool_lock+set}" = set; then :
6511 enableval=$enable_libtool_lock;
6512 fi
6513
6514 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6515
6516 # Some flags need to be propagated to the compiler or linker for good
6517 # libtool support.
6518 case $host in
6519 ia64-*-hpux*)
6520 # Find out what ABI is being produced by ac_compile, and set mode
6521 # options accordingly.
6522 echo 'int i;' > conftest.$ac_ext
6523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6524 (eval $ac_compile) 2>&5
6525 ac_status=$?
6526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527 test $ac_status = 0; }; then
6528 case `/usr/bin/file conftest.$ac_objext` in
6529 *ELF-32*)
6530 HPUX_IA64_MODE=32
6531 ;;
6532 *ELF-64*)
6533 HPUX_IA64_MODE=64
6534 ;;
6535 esac
6536 fi
6537 rm -rf conftest*
6538 ;;
6539 *-*-irix6*)
6540 # Find out what ABI is being produced by ac_compile, and set linker
6541 # options accordingly.
6542 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544 (eval $ac_compile) 2>&5
6545 ac_status=$?
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }; then
6548 if test yes = "$lt_cv_prog_gnu_ld"; then
6549 case `/usr/bin/file conftest.$ac_objext` in
6550 *32-bit*)
6551 LD="${LD-ld} -melf32bsmip"
6552 ;;
6553 *N32*)
6554 LD="${LD-ld} -melf32bmipn32"
6555 ;;
6556 *64-bit*)
6557 LD="${LD-ld} -melf64bmip"
6558 ;;
6559 esac
6560 else
6561 case `/usr/bin/file conftest.$ac_objext` in
6562 *32-bit*)
6563 LD="${LD-ld} -32"
6564 ;;
6565 *N32*)
6566 LD="${LD-ld} -n32"
6567 ;;
6568 *64-bit*)
6569 LD="${LD-ld} -64"
6570 ;;
6571 esac
6572 fi
6573 fi
6574 rm -rf conftest*
6575 ;;
6576
6577 mips64*-*linux*)
6578 # Find out what ABI is being produced by ac_compile, and set linker
6579 # options accordingly.
6580 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6582 (eval $ac_compile) 2>&5
6583 ac_status=$?
6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585 test $ac_status = 0; }; then
6586 emul=elf
6587 case `/usr/bin/file conftest.$ac_objext` in
6588 *32-bit*)
6589 emul="${emul}32"
6590 ;;
6591 *64-bit*)
6592 emul="${emul}64"
6593 ;;
6594 esac
6595 case `/usr/bin/file conftest.$ac_objext` in
6596 *MSB*)
6597 emul="${emul}btsmip"
6598 ;;
6599 *LSB*)
6600 emul="${emul}ltsmip"
6601 ;;
6602 esac
6603 case `/usr/bin/file conftest.$ac_objext` in
6604 *N32*)
6605 emul="${emul}n32"
6606 ;;
6607 esac
6608 LD="${LD-ld} -m $emul"
6609 fi
6610 rm -rf conftest*
6611 ;;
6612
6613 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6614 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6615 # Find out what ABI is being produced by ac_compile, and set linker
6616 # options accordingly. Note that the listed cases only cover the
6617 # situations where additional linker options are needed (such as when
6618 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6619 # vice versa); the common cases where no linker options are needed do
6620 # not appear in the list.
6621 echo 'int i;' > conftest.$ac_ext
6622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6623 (eval $ac_compile) 2>&5
6624 ac_status=$?
6625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626 test $ac_status = 0; }; then
6627 case `/usr/bin/file conftest.o` in
6628 *32-bit*)
6629 case $host in
6630 x86_64-*kfreebsd*-gnu)
6631 LD="${LD-ld} -m elf_i386_fbsd"
6632 ;;
6633 x86_64-*linux*)
6634 case `/usr/bin/file conftest.o` in
6635 *x86-64*)
6636 LD="${LD-ld} -m elf32_x86_64"
6637 ;;
6638 *)
6639 LD="${LD-ld} -m elf_i386"
6640 ;;
6641 esac
6642 ;;
6643 powerpc64le-*linux*)
6644 LD="${LD-ld} -m elf32lppclinux"
6645 ;;
6646 powerpc64-*linux*)
6647 LD="${LD-ld} -m elf32ppclinux"
6648 ;;
6649 s390x-*linux*)
6650 LD="${LD-ld} -m elf_s390"
6651 ;;
6652 sparc64-*linux*)
6653 LD="${LD-ld} -m elf32_sparc"
6654 ;;
6655 esac
6656 ;;
6657 *64-bit*)
6658 case $host in
6659 x86_64-*kfreebsd*-gnu)
6660 LD="${LD-ld} -m elf_x86_64_fbsd"
6661 ;;
6662 x86_64-*linux*)
6663 LD="${LD-ld} -m elf_x86_64"
6664 ;;
6665 powerpcle-*linux*)
6666 LD="${LD-ld} -m elf64lppc"
6667 ;;
6668 powerpc-*linux*)
6669 LD="${LD-ld} -m elf64ppc"
6670 ;;
6671 s390*-*linux*|s390*-*tpf*)
6672 LD="${LD-ld} -m elf64_s390"
6673 ;;
6674 sparc*-*linux*)
6675 LD="${LD-ld} -m elf64_sparc"
6676 ;;
6677 esac
6678 ;;
6679 esac
6680 fi
6681 rm -rf conftest*
6682 ;;
6683
6684 *-*-sco3.2v5*)
6685 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6686 SAVE_CFLAGS=$CFLAGS
6687 CFLAGS="$CFLAGS -belf"
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6689 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6690 if ${lt_cv_cc_needs_belf+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 ac_ext=c
6694 ac_cpp='$CPP $CPPFLAGS'
6695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6698
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701
6702 int
6703 main ()
6704 {
6705
6706 ;
6707 return 0;
6708 }
6709 _ACEOF
6710 if ac_fn_c_try_link "$LINENO"; then :
6711 lt_cv_cc_needs_belf=yes
6712 else
6713 lt_cv_cc_needs_belf=no
6714 fi
6715 rm -f core conftest.err conftest.$ac_objext \
6716 conftest$ac_exeext conftest.$ac_ext
6717 ac_ext=c
6718 ac_cpp='$CPP $CPPFLAGS'
6719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6722
6723 fi
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6725 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6726 if test yes != "$lt_cv_cc_needs_belf"; then
6727 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6728 CFLAGS=$SAVE_CFLAGS
6729 fi
6730 ;;
6731 *-*solaris*)
6732 # Find out what ABI is being produced by ac_compile, and set linker
6733 # options accordingly.
6734 echo 'int i;' > conftest.$ac_ext
6735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6736 (eval $ac_compile) 2>&5
6737 ac_status=$?
6738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6739 test $ac_status = 0; }; then
6740 case `/usr/bin/file conftest.o` in
6741 *64-bit*)
6742 case $lt_cv_prog_gnu_ld in
6743 yes*)
6744 case $host in
6745 i?86-*-solaris*|x86_64-*-solaris*)
6746 LD="${LD-ld} -m elf_x86_64"
6747 ;;
6748 sparc*-*-solaris*)
6749 LD="${LD-ld} -m elf64_sparc"
6750 ;;
6751 esac
6752 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6753 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6754 LD=${LD-ld}_sol2
6755 fi
6756 ;;
6757 *)
6758 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6759 LD="${LD-ld} -64"
6760 fi
6761 ;;
6762 esac
6763 ;;
6764 esac
6765 fi
6766 rm -rf conftest*
6767 ;;
6768 esac
6769
6770 need_locks=$enable_libtool_lock
6771
6772 if test -n "$ac_tool_prefix"; then
6773 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}mt; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 if test -n "$MANIFEST_TOOL"; then
6781 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6801 if test -n "$MANIFEST_TOOL"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6803 $as_echo "$MANIFEST_TOOL" >&6; }
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809
6810 fi
6811 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6812 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6813 # Extract the first word of "mt", so it can be a program name with args.
6814 set dummy mt; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 if test -n "$ac_ct_MANIFEST_TOOL"; then
6821 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6841 if test -n "$ac_ct_MANIFEST_TOOL"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6843 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848
6849 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6850 MANIFEST_TOOL=":"
6851 else
6852 case $cross_compiling:$ac_tool_warned in
6853 yes:)
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6859 fi
6860 else
6861 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6862 fi
6863
6864 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6866 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6867 if ${lt_cv_path_mainfest_tool+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 lt_cv_path_mainfest_tool=no
6871 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6872 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6873 cat conftest.err >&5
6874 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6875 lt_cv_path_mainfest_tool=yes
6876 fi
6877 rm -f conftest*
6878 fi
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6880 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6881 if test yes != "$lt_cv_path_mainfest_tool"; then
6882 MANIFEST_TOOL=:
6883 fi
6884
6885
6886
6887
6888
6889
6890 case $host_os in
6891 rhapsody* | darwin*)
6892 if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 if test -n "$DSYMUTIL"; then
6901 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914 done
6915 done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6921 if test -n "$DSYMUTIL"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6923 $as_echo "$DSYMUTIL" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928
6929
6930 fi
6931 if test -z "$ac_cv_prog_DSYMUTIL"; then
6932 ac_ct_DSYMUTIL=$DSYMUTIL
6933 # Extract the first word of "dsymutil", so it can be a program name with args.
6934 set dummy dsymutil; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 if test -n "$ac_ct_DSYMUTIL"; then
6941 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6953 fi
6954 done
6955 done
6956 IFS=$as_save_IFS
6957
6958 fi
6959 fi
6960 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6961 if test -n "$ac_ct_DSYMUTIL"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6963 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968
6969 if test "x$ac_ct_DSYMUTIL" = x; then
6970 DSYMUTIL=":"
6971 else
6972 case $cross_compiling:$ac_tool_warned in
6973 yes:)
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978 DSYMUTIL=$ac_ct_DSYMUTIL
6979 fi
6980 else
6981 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6982 fi
6983
6984 if test -n "$ac_tool_prefix"; then
6985 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if ${ac_cv_prog_NMEDIT+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 if test -n "$NMEDIT"; then
6993 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010 fi
7011 fi
7012 NMEDIT=$ac_cv_prog_NMEDIT
7013 if test -n "$NMEDIT"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7015 $as_echo "$NMEDIT" >&6; }
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7019 fi
7020
7021
7022 fi
7023 if test -z "$ac_cv_prog_NMEDIT"; then
7024 ac_ct_NMEDIT=$NMEDIT
7025 # Extract the first word of "nmedit", so it can be a program name with args.
7026 set dummy nmedit; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 if test -n "$ac_ct_NMEDIT"; then
7033 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046 done
7047 done
7048 IFS=$as_save_IFS
7049
7050 fi
7051 fi
7052 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7053 if test -n "$ac_ct_NMEDIT"; then
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7055 $as_echo "$ac_ct_NMEDIT" >&6; }
7056 else
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7059 fi
7060
7061 if test "x$ac_ct_NMEDIT" = x; then
7062 NMEDIT=":"
7063 else
7064 case $cross_compiling:$ac_tool_warned in
7065 yes:)
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7068 ac_tool_warned=yes ;;
7069 esac
7070 NMEDIT=$ac_ct_NMEDIT
7071 fi
7072 else
7073 NMEDIT="$ac_cv_prog_NMEDIT"
7074 fi
7075
7076 if test -n "$ac_tool_prefix"; then
7077 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_LIPO+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 if test -n "$LIPO"; then
7085 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7097 fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102 fi
7103 fi
7104 LIPO=$ac_cv_prog_LIPO
7105 if test -n "$LIPO"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7107 $as_echo "$LIPO" >&6; }
7108 else
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112
7113
7114 fi
7115 if test -z "$ac_cv_prog_LIPO"; then
7116 ac_ct_LIPO=$LIPO
7117 # Extract the first word of "lipo", so it can be a program name with args.
7118 set dummy lipo; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 if test -n "$ac_ct_LIPO"; then
7125 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_ac_ct_LIPO="lipo"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7145 if test -n "$ac_ct_LIPO"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7147 $as_echo "$ac_ct_LIPO" >&6; }
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153 if test "x$ac_ct_LIPO" = x; then
7154 LIPO=":"
7155 else
7156 case $cross_compiling:$ac_tool_warned in
7157 yes:)
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160 ac_tool_warned=yes ;;
7161 esac
7162 LIPO=$ac_ct_LIPO
7163 fi
7164 else
7165 LIPO="$ac_cv_prog_LIPO"
7166 fi
7167
7168 if test -n "$ac_tool_prefix"; then
7169 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7170 set dummy ${ac_tool_prefix}otool; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_OTOOL+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 if test -n "$OTOOL"; then
7177 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 OTOOL=$ac_cv_prog_OTOOL
7197 if test -n "$OTOOL"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7199 $as_echo "$OTOOL" >&6; }
7200 else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205
7206 fi
7207 if test -z "$ac_cv_prog_OTOOL"; then
7208 ac_ct_OTOOL=$OTOOL
7209 # Extract the first word of "otool", so it can be a program name with args.
7210 set dummy otool; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 if test -n "$ac_ct_OTOOL"; then
7217 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_ac_ct_OTOOL="otool"
7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230 done
7231 done
7232 IFS=$as_save_IFS
7233
7234 fi
7235 fi
7236 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7237 if test -n "$ac_ct_OTOOL"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7239 $as_echo "$ac_ct_OTOOL" >&6; }
7240 else
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245 if test "x$ac_ct_OTOOL" = x; then
7246 OTOOL=":"
7247 else
7248 case $cross_compiling:$ac_tool_warned in
7249 yes:)
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7252 ac_tool_warned=yes ;;
7253 esac
7254 OTOOL=$ac_ct_OTOOL
7255 fi
7256 else
7257 OTOOL="$ac_cv_prog_OTOOL"
7258 fi
7259
7260 if test -n "$ac_tool_prefix"; then
7261 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if ${ac_cv_prog_OTOOL64+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 if test -n "$OTOOL64"; then
7269 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7281 fi
7282 done
7283 done
7284 IFS=$as_save_IFS
7285
7286 fi
7287 fi
7288 OTOOL64=$ac_cv_prog_OTOOL64
7289 if test -n "$OTOOL64"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7291 $as_echo "$OTOOL64" >&6; }
7292 else
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296
7297
7298 fi
7299 if test -z "$ac_cv_prog_OTOOL64"; then
7300 ac_ct_OTOOL64=$OTOOL64
7301 # Extract the first word of "otool64", so it can be a program name with args.
7302 set dummy otool64; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 if test -n "$ac_ct_OTOOL64"; then
7309 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318 ac_cv_prog_ac_ct_OTOOL64="otool64"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7321 fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7329 if test -n "$ac_ct_OTOOL64"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7331 $as_echo "$ac_ct_OTOOL64" >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336
7337 if test "x$ac_ct_OTOOL64" = x; then
7338 OTOOL64=":"
7339 else
7340 case $cross_compiling:$ac_tool_warned in
7341 yes:)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7345 esac
7346 OTOOL64=$ac_ct_OTOOL64
7347 fi
7348 else
7349 OTOOL64="$ac_cv_prog_OTOOL64"
7350 fi
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7379 $as_echo_n "checking for -single_module linker flag... " >&6; }
7380 if ${lt_cv_apple_cc_single_mod+:} false; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 lt_cv_apple_cc_single_mod=no
7384 if test -z "$LT_MULTI_MODULE"; then
7385 # By default we will add the -single_module flag. You can override
7386 # by either setting the environment variable LT_MULTI_MODULE
7387 # non-empty at configure time, or by adding -multi_module to the
7388 # link flags.
7389 rm -rf libconftest.dylib*
7390 echo "int foo(void){return 1;}" > conftest.c
7391 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7392 -dynamiclib -Wl,-single_module conftest.c" >&5
7393 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7394 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7395 _lt_result=$?
7396 # If there is a non-empty error log, and "single_module"
7397 # appears in it, assume the flag caused a linker warning
7398 if test -s conftest.err && $GREP single_module conftest.err; then
7399 cat conftest.err >&5
7400 # Otherwise, if the output was created with a 0 exit code from
7401 # the compiler, it worked.
7402 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7403 lt_cv_apple_cc_single_mod=yes
7404 else
7405 cat conftest.err >&5
7406 fi
7407 rm -rf libconftest.dylib*
7408 rm -f conftest.*
7409 fi
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7412 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7413
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7415 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7416 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 lt_cv_ld_exported_symbols_list=no
7420 save_LDFLAGS=$LDFLAGS
7421 echo "_main" > conftest.sym
7422 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425
7426 int
7427 main ()
7428 {
7429
7430 ;
7431 return 0;
7432 }
7433 _ACEOF
7434 if ac_fn_c_try_link "$LINENO"; then :
7435 lt_cv_ld_exported_symbols_list=yes
7436 else
7437 lt_cv_ld_exported_symbols_list=no
7438 fi
7439 rm -f core conftest.err conftest.$ac_objext \
7440 conftest$ac_exeext conftest.$ac_ext
7441 LDFLAGS=$save_LDFLAGS
7442
7443 fi
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7445 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7446
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7448 $as_echo_n "checking for -force_load linker flag... " >&6; }
7449 if ${lt_cv_ld_force_load+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 lt_cv_ld_force_load=no
7453 cat > conftest.c << _LT_EOF
7454 int forced_loaded() { return 2;}
7455 _LT_EOF
7456 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7457 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7458 echo "$AR cru libconftest.a conftest.o" >&5
7459 $AR cru libconftest.a conftest.o 2>&5
7460 echo "$RANLIB libconftest.a" >&5
7461 $RANLIB libconftest.a 2>&5
7462 cat > conftest.c << _LT_EOF
7463 int main() { return 0;}
7464 _LT_EOF
7465 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7466 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7467 _lt_result=$?
7468 if test -s conftest.err && $GREP force_load conftest.err; then
7469 cat conftest.err >&5
7470 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7471 lt_cv_ld_force_load=yes
7472 else
7473 cat conftest.err >&5
7474 fi
7475 rm -f conftest.err libconftest.a conftest conftest.c
7476 rm -rf conftest.dSYM
7477
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7480 $as_echo "$lt_cv_ld_force_load" >&6; }
7481 case $host_os in
7482 rhapsody* | darwin1.[012])
7483 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7484 darwin1.*)
7485 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7486 darwin*) # darwin 5.x on
7487 # if running on 10.5 or later, the deployment target defaults
7488 # to the OS version, if on x86, and 10.4, the deployment
7489 # target defaults to 10.4. Don't you love it?
7490 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7491 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7492 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7493 10.[012][,.]*)
7494 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7495 10.*)
7496 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7497 esac
7498 ;;
7499 esac
7500 if test yes = "$lt_cv_apple_cc_single_mod"; then
7501 _lt_dar_single_mod='$single_module'
7502 fi
7503 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7504 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7505 else
7506 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7507 fi
7508 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7509 _lt_dsymutil='~$DSYMUTIL $lib || :'
7510 else
7511 _lt_dsymutil=
7512 fi
7513 ;;
7514 esac
7515
7516 # func_munge_path_list VARIABLE PATH
7517 # -----------------------------------
7518 # VARIABLE is name of variable containing _space_ separated list of
7519 # directories to be munged by the contents of PATH, which is string
7520 # having a format:
7521 # "DIR[:DIR]:"
7522 # string "DIR[ DIR]" will be prepended to VARIABLE
7523 # ":DIR[:DIR]"
7524 # string "DIR[ DIR]" will be appended to VARIABLE
7525 # "DIRP[:DIRP]::[DIRA:]DIRA"
7526 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7527 # "DIRA[ DIRA]" will be appended to VARIABLE
7528 # "DIR[:DIR]"
7529 # VARIABLE will be replaced by "DIR[ DIR]"
7530 func_munge_path_list ()
7531 {
7532 case x$2 in
7533 x)
7534 ;;
7535 *:)
7536 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7537 ;;
7538 x:*)
7539 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7540 ;;
7541 *::*)
7542 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7543 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7544 ;;
7545 *)
7546 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7547 ;;
7548 esac
7549 }
7550
7551 ac_ext=c
7552 ac_cpp='$CPP $CPPFLAGS'
7553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7557 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7558 # On Suns, sometimes $CPP names a directory.
7559 if test -n "$CPP" && test -d "$CPP"; then
7560 CPP=
7561 fi
7562 if test -z "$CPP"; then
7563 if ${ac_cv_prog_CPP+:} false; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 # Double quotes because CPP needs to be expanded
7567 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7568 do
7569 ac_preproc_ok=false
7570 for ac_c_preproc_warn_flag in '' yes
7571 do
7572 # Use a header file that comes with gcc, so configuring glibc
7573 # with a fresh cross-compiler works.
7574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7575 # <limits.h> exists even on freestanding compilers.
7576 # On the NeXT, cc -E runs the code through the compiler's parser,
7577 # not just through cpp. "Syntax error" is here to catch this case.
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7580 #ifdef __STDC__
7581 # include <limits.h>
7582 #else
7583 # include <assert.h>
7584 #endif
7585 Syntax error
7586 _ACEOF
7587 if ac_fn_c_try_cpp "$LINENO"; then :
7588
7589 else
7590 # Broken: fails on valid input.
7591 continue
7592 fi
7593 rm -f conftest.err conftest.i conftest.$ac_ext
7594
7595 # OK, works on sane cases. Now check whether nonexistent headers
7596 # can be detected and how.
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7599 #include <ac_nonexistent.h>
7600 _ACEOF
7601 if ac_fn_c_try_cpp "$LINENO"; then :
7602 # Broken: success on invalid input.
7603 continue
7604 else
7605 # Passes both tests.
7606 ac_preproc_ok=:
7607 break
7608 fi
7609 rm -f conftest.err conftest.i conftest.$ac_ext
7610
7611 done
7612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7613 rm -f conftest.i conftest.err conftest.$ac_ext
7614 if $ac_preproc_ok; then :
7615 break
7616 fi
7617
7618 done
7619 ac_cv_prog_CPP=$CPP
7620
7621 fi
7622 CPP=$ac_cv_prog_CPP
7623 else
7624 ac_cv_prog_CPP=$CPP
7625 fi
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7627 $as_echo "$CPP" >&6; }
7628 ac_preproc_ok=false
7629 for ac_c_preproc_warn_flag in '' yes
7630 do
7631 # Use a header file that comes with gcc, so configuring glibc
7632 # with a fresh cross-compiler works.
7633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7634 # <limits.h> exists even on freestanding compilers.
7635 # On the NeXT, cc -E runs the code through the compiler's parser,
7636 # not just through cpp. "Syntax error" is here to catch this case.
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639 #ifdef __STDC__
7640 # include <limits.h>
7641 #else
7642 # include <assert.h>
7643 #endif
7644 Syntax error
7645 _ACEOF
7646 if ac_fn_c_try_cpp "$LINENO"; then :
7647
7648 else
7649 # Broken: fails on valid input.
7650 continue
7651 fi
7652 rm -f conftest.err conftest.i conftest.$ac_ext
7653
7654 # OK, works on sane cases. Now check whether nonexistent headers
7655 # can be detected and how.
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 #include <ac_nonexistent.h>
7659 _ACEOF
7660 if ac_fn_c_try_cpp "$LINENO"; then :
7661 # Broken: success on invalid input.
7662 continue
7663 else
7664 # Passes both tests.
7665 ac_preproc_ok=:
7666 break
7667 fi
7668 rm -f conftest.err conftest.i conftest.$ac_ext
7669
7670 done
7671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7672 rm -f conftest.i conftest.err conftest.$ac_ext
7673 if $ac_preproc_ok; then :
7674
7675 else
7676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7678 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7679 See \`config.log' for more details" "$LINENO" 5; }
7680 fi
7681
7682 ac_ext=c
7683 ac_cpp='$CPP $CPPFLAGS'
7684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7687
7688
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7690 $as_echo_n "checking for ANSI C header files... " >&6; }
7691 if ${ac_cv_header_stdc+:} false; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7696 #include <stdlib.h>
7697 #include <stdarg.h>
7698 #include <string.h>
7699 #include <float.h>
7700
7701 int
7702 main ()
7703 {
7704
7705 ;
7706 return 0;
7707 }
7708 _ACEOF
7709 if ac_fn_c_try_compile "$LINENO"; then :
7710 ac_cv_header_stdc=yes
7711 else
7712 ac_cv_header_stdc=no
7713 fi
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715
7716 if test $ac_cv_header_stdc = yes; then
7717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720 #include <string.h>
7721
7722 _ACEOF
7723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7724 $EGREP "memchr" >/dev/null 2>&1; then :
7725
7726 else
7727 ac_cv_header_stdc=no
7728 fi
7729 rm -f conftest*
7730
7731 fi
7732
7733 if test $ac_cv_header_stdc = yes; then
7734 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 #include <stdlib.h>
7738
7739 _ACEOF
7740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7741 $EGREP "free" >/dev/null 2>&1; then :
7742
7743 else
7744 ac_cv_header_stdc=no
7745 fi
7746 rm -f conftest*
7747
7748 fi
7749
7750 if test $ac_cv_header_stdc = yes; then
7751 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7752 if test "$cross_compiling" = yes; then :
7753 :
7754 else
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757 #include <ctype.h>
7758 #include <stdlib.h>
7759 #if ((' ' & 0x0FF) == 0x020)
7760 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7761 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7762 #else
7763 # define ISLOWER(c) \
7764 (('a' <= (c) && (c) <= 'i') \
7765 || ('j' <= (c) && (c) <= 'r') \
7766 || ('s' <= (c) && (c) <= 'z'))
7767 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7768 #endif
7769
7770 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7771 int
7772 main ()
7773 {
7774 int i;
7775 for (i = 0; i < 256; i++)
7776 if (XOR (islower (i), ISLOWER (i))
7777 || toupper (i) != TOUPPER (i))
7778 return 2;
7779 return 0;
7780 }
7781 _ACEOF
7782 if ac_fn_c_try_run "$LINENO"; then :
7783
7784 else
7785 ac_cv_header_stdc=no
7786 fi
7787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7788 conftest.$ac_objext conftest.beam conftest.$ac_ext
7789 fi
7790
7791 fi
7792 fi
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7794 $as_echo "$ac_cv_header_stdc" >&6; }
7795 if test $ac_cv_header_stdc = yes; then
7796
7797 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7798
7799 fi
7800
7801 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7802 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7803 inttypes.h stdint.h unistd.h
7804 do :
7805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7806 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7807 "
7808 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7809 cat >>confdefs.h <<_ACEOF
7810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7811 _ACEOF
7812
7813 fi
7814
7815 done
7816
7817
7818 for ac_header in dlfcn.h
7819 do :
7820 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7821 "
7822 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7823 cat >>confdefs.h <<_ACEOF
7824 #define HAVE_DLFCN_H 1
7825 _ACEOF
7826
7827 fi
7828
7829 done
7830
7831
7832
7833
7834
7835 # Set options
7836
7837
7838
7839 enable_dlopen=no
7840
7841
7842 enable_win32_dll=no
7843
7844
7845 # Check whether --enable-shared was given.
7846 if test "${enable_shared+set}" = set; then :
7847 enableval=$enable_shared; p=${PACKAGE-default}
7848 case $enableval in
7849 yes) enable_shared=yes ;;
7850 no) enable_shared=no ;;
7851 *)
7852 enable_shared=no
7853 # Look at the argument we got. We use all the common list separators.
7854 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7855 for pkg in $enableval; do
7856 IFS=$lt_save_ifs
7857 if test "X$pkg" = "X$p"; then
7858 enable_shared=yes
7859 fi
7860 done
7861 IFS=$lt_save_ifs
7862 ;;
7863 esac
7864 else
7865 enable_shared=yes
7866 fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876 # Check whether --enable-static was given.
7877 if test "${enable_static+set}" = set; then :
7878 enableval=$enable_static; p=${PACKAGE-default}
7879 case $enableval in
7880 yes) enable_static=yes ;;
7881 no) enable_static=no ;;
7882 *)
7883 enable_static=no
7884 # Look at the argument we got. We use all the common list separators.
7885 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7886 for pkg in $enableval; do
7887 IFS=$lt_save_ifs
7888 if test "X$pkg" = "X$p"; then
7889 enable_static=yes
7890 fi
7891 done
7892 IFS=$lt_save_ifs
7893 ;;
7894 esac
7895 else
7896 enable_static=yes
7897 fi
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908 # Check whether --with-pic was given.
7909 if test "${with_pic+set}" = set; then :
7910 withval=$with_pic; lt_p=${PACKAGE-default}
7911 case $withval in
7912 yes|no) pic_mode=$withval ;;
7913 *)
7914 pic_mode=default
7915 # Look at the argument we got. We use all the common list separators.
7916 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7917 for lt_pkg in $withval; do
7918 IFS=$lt_save_ifs
7919 if test "X$lt_pkg" = "X$lt_p"; then
7920 pic_mode=yes
7921 fi
7922 done
7923 IFS=$lt_save_ifs
7924 ;;
7925 esac
7926 else
7927 pic_mode=default
7928 fi
7929
7930
7931
7932
7933
7934
7935
7936
7937 # Check whether --enable-fast-install was given.
7938 if test "${enable_fast_install+set}" = set; then :
7939 enableval=$enable_fast_install; p=${PACKAGE-default}
7940 case $enableval in
7941 yes) enable_fast_install=yes ;;
7942 no) enable_fast_install=no ;;
7943 *)
7944 enable_fast_install=no
7945 # Look at the argument we got. We use all the common list separators.
7946 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7947 for pkg in $enableval; do
7948 IFS=$lt_save_ifs
7949 if test "X$pkg" = "X$p"; then
7950 enable_fast_install=yes
7951 fi
7952 done
7953 IFS=$lt_save_ifs
7954 ;;
7955 esac
7956 else
7957 enable_fast_install=yes
7958 fi
7959
7960
7961
7962
7963
7964
7965
7966
7967 shared_archive_member_spec=
7968 case $host,$enable_shared in
7969 power*-*-aix[5-9]*,yes)
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7971 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7972
7973 # Check whether --with-aix-soname was given.
7974 if test "${with_aix_soname+set}" = set; then :
7975 withval=$with_aix_soname; case $withval in
7976 aix|svr4|both)
7977 ;;
7978 *)
7979 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7980 ;;
7981 esac
7982 lt_cv_with_aix_soname=$with_aix_soname
7983 else
7984 if ${lt_cv_with_aix_soname+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 lt_cv_with_aix_soname=aix
7988 fi
7989
7990 with_aix_soname=$lt_cv_with_aix_soname
7991 fi
7992
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7994 $as_echo "$with_aix_soname" >&6; }
7995 if test aix != "$with_aix_soname"; then
7996 # For the AIX way of multilib, we name the shared archive member
7997 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7998 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7999 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8000 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8001 if test 64 = "${OBJECT_MODE-32}"; then
8002 shared_archive_member_spec=shr_64
8003 else
8004 shared_archive_member_spec=shr
8005 fi
8006 fi
8007 ;;
8008 *)
8009 with_aix_soname=aix
8010 ;;
8011 esac
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022 # This can be used to rebuild libtool when needed
8023 LIBTOOL_DEPS=$ltmain
8024
8025 # Always use our own libtool.
8026 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057 test -z "$LN_S" && LN_S="ln -s"
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072 if test -n "${ZSH_VERSION+set}"; then
8073 setopt NO_GLOB_SUBST
8074 fi
8075
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8077 $as_echo_n "checking for objdir... " >&6; }
8078 if ${lt_cv_objdir+:} false; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 rm -f .libs 2>/dev/null
8082 mkdir .libs 2>/dev/null
8083 if test -d .libs; then
8084 lt_cv_objdir=.libs
8085 else
8086 # MS-DOS does not allow filenames that begin with a dot.
8087 lt_cv_objdir=_libs
8088 fi
8089 rmdir .libs 2>/dev/null
8090 fi
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8092 $as_echo "$lt_cv_objdir" >&6; }
8093 objdir=$lt_cv_objdir
8094
8095
8096
8097
8098
8099 cat >>confdefs.h <<_ACEOF
8100 #define LT_OBJDIR "$lt_cv_objdir/"
8101 _ACEOF
8102
8103
8104
8105
8106 case $host_os in
8107 aix3*)
8108 # AIX sometimes has problems with the GCC collect2 program. For some
8109 # reason, if we set the COLLECT_NAMES environment variable, the problems
8110 # vanish in a puff of smoke.
8111 if test set != "${COLLECT_NAMES+set}"; then
8112 COLLECT_NAMES=
8113 export COLLECT_NAMES
8114 fi
8115 ;;
8116 esac
8117
8118 # Global variables:
8119 ofile=libtool
8120 can_build_shared=yes
8121
8122 # All known linkers require a '.a' archive for static linking (except MSVC,
8123 # which needs '.lib').
8124 libext=a
8125
8126 with_gnu_ld=$lt_cv_prog_gnu_ld
8127
8128 old_CC=$CC
8129 old_CFLAGS=$CFLAGS
8130
8131 # Set sane defaults for various variables
8132 test -z "$CC" && CC=cc
8133 test -z "$LTCC" && LTCC=$CC
8134 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8135 test -z "$LD" && LD=ld
8136 test -z "$ac_objext" && ac_objext=o
8137
8138 func_cc_basename $compiler
8139 cc_basename=$func_cc_basename_result
8140
8141
8142 # Only perform the check for file, if the check method requires it
8143 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8144 case $deplibs_check_method in
8145 file_magic*)
8146 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8148 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8149 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 case $MAGIC_CMD in
8153 [\\/*] | ?:[\\/]*)
8154 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8155 ;;
8156 *)
8157 lt_save_MAGIC_CMD=$MAGIC_CMD
8158 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8159 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8160 for ac_dir in $ac_dummy; do
8161 IFS=$lt_save_ifs
8162 test -z "$ac_dir" && ac_dir=.
8163 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8164 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8165 if test -n "$file_magic_test_file"; then
8166 case $deplibs_check_method in
8167 "file_magic "*)
8168 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8169 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8170 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8171 $EGREP "$file_magic_regex" > /dev/null; then
8172 :
8173 else
8174 cat <<_LT_EOF 1>&2
8175
8176 *** Warning: the command libtool uses to detect shared libraries,
8177 *** $file_magic_cmd, produces output that libtool cannot recognize.
8178 *** The result is that libtool may fail to recognize shared libraries
8179 *** as such. This will affect the creation of libtool libraries that
8180 *** depend on shared libraries, but programs linked with such libtool
8181 *** libraries will work regardless of this problem. Nevertheless, you
8182 *** may want to report the problem to your system manager and/or to
8183 *** [email protected]
8184
8185 _LT_EOF
8186 fi ;;
8187 esac
8188 fi
8189 break
8190 fi
8191 done
8192 IFS=$lt_save_ifs
8193 MAGIC_CMD=$lt_save_MAGIC_CMD
8194 ;;
8195 esac
8196 fi
8197
8198 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8199 if test -n "$MAGIC_CMD"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8201 $as_echo "$MAGIC_CMD" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8205 fi
8206
8207
8208
8209
8210
8211 if test -z "$lt_cv_path_MAGIC_CMD"; then
8212 if test -n "$ac_tool_prefix"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8214 $as_echo_n "checking for file... " >&6; }
8215 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 case $MAGIC_CMD in
8219 [\\/*] | ?:[\\/]*)
8220 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8221 ;;
8222 *)
8223 lt_save_MAGIC_CMD=$MAGIC_CMD
8224 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8225 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8226 for ac_dir in $ac_dummy; do
8227 IFS=$lt_save_ifs
8228 test -z "$ac_dir" && ac_dir=.
8229 if test -f "$ac_dir/file"; then
8230 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8231 if test -n "$file_magic_test_file"; then
8232 case $deplibs_check_method in
8233 "file_magic "*)
8234 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8235 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8237 $EGREP "$file_magic_regex" > /dev/null; then
8238 :
8239 else
8240 cat <<_LT_EOF 1>&2
8241
8242 *** Warning: the command libtool uses to detect shared libraries,
8243 *** $file_magic_cmd, produces output that libtool cannot recognize.
8244 *** The result is that libtool may fail to recognize shared libraries
8245 *** as such. This will affect the creation of libtool libraries that
8246 *** depend on shared libraries, but programs linked with such libtool
8247 *** libraries will work regardless of this problem. Nevertheless, you
8248 *** may want to report the problem to your system manager and/or to
8249 *** [email protected]
8250
8251 _LT_EOF
8252 fi ;;
8253 esac
8254 fi
8255 break
8256 fi
8257 done
8258 IFS=$lt_save_ifs
8259 MAGIC_CMD=$lt_save_MAGIC_CMD
8260 ;;
8261 esac
8262 fi
8263
8264 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8265 if test -n "$MAGIC_CMD"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8267 $as_echo "$MAGIC_CMD" >&6; }
8268 else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8271 fi
8272
8273
8274 else
8275 MAGIC_CMD=:
8276 fi
8277 fi
8278
8279 fi
8280 ;;
8281 esac
8282
8283 # Use C for the default configuration in the libtool script
8284
8285 lt_save_CC=$CC
8286 ac_ext=c
8287 ac_cpp='$CPP $CPPFLAGS'
8288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8291
8292
8293 # Source file extension for C test sources.
8294 ac_ext=c
8295
8296 # Object file extension for compiled C test sources.
8297 objext=o
8298 objext=$objext
8299
8300 # Code to be used in simple compile tests
8301 lt_simple_compile_test_code="int some_variable = 0;"
8302
8303 # Code to be used in simple link tests
8304 lt_simple_link_test_code='int main(){return(0);}'
8305
8306
8307
8308
8309
8310
8311
8312 # If no C compiler was specified, use CC.
8313 LTCC=${LTCC-"$CC"}
8314
8315 # If no C compiler flags were specified, use CFLAGS.
8316 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8317
8318 # Allow CC to be a program name with arguments.
8319 compiler=$CC
8320
8321 # Save the default compiler, since it gets overwritten when the other
8322 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8323 compiler_DEFAULT=$CC
8324
8325 # save warnings/boilerplate of simple test code
8326 ac_outfile=conftest.$ac_objext
8327 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8328 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8329 _lt_compiler_boilerplate=`cat conftest.err`
8330 $RM conftest*
8331
8332 ac_outfile=conftest.$ac_objext
8333 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8334 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8335 _lt_linker_boilerplate=`cat conftest.err`
8336 $RM -r conftest*
8337
8338
8339 ## CAVEAT EMPTOR:
8340 ## There is no encapsulation within the following macros, do not change
8341 ## the running order or otherwise move them around unless you know exactly
8342 ## what you are doing...
8343 if test -n "$compiler"; then
8344
8345 lt_prog_compiler_no_builtin_flag=
8346
8347 if test yes = "$GCC"; then
8348 case $cc_basename in
8349 nvcc*)
8350 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8351 *)
8352 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8353 esac
8354
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8356 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8357 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 lt_cv_prog_compiler_rtti_exceptions=no
8361 ac_outfile=conftest.$ac_objext
8362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8363 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8364 # Insert the option either (1) after the last *FLAGS variable, or
8365 # (2) before a word containing "conftest.", or (3) at the end.
8366 # Note that $ac_compile itself does not contain backslashes and begins
8367 # with a dollar sign (not a hyphen), so the echo should work correctly.
8368 # The option is referenced via a variable to avoid confusing sed.
8369 lt_compile=`echo "$ac_compile" | $SED \
8370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8372 -e 's:$: $lt_compiler_flag:'`
8373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8374 (eval "$lt_compile" 2>conftest.err)
8375 ac_status=$?
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 if (exit $ac_status) && test -s "$ac_outfile"; then
8379 # The compiler can only warn and ignore the option if not recognized
8380 # So say no if there are warnings other than the usual output.
8381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8383 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8384 lt_cv_prog_compiler_rtti_exceptions=yes
8385 fi
8386 fi
8387 $RM conftest*
8388
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8391 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8392
8393 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8394 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8395 else
8396 :
8397 fi
8398
8399 fi
8400
8401
8402
8403
8404
8405
8406 lt_prog_compiler_wl=
8407 lt_prog_compiler_pic=
8408 lt_prog_compiler_static=
8409
8410
8411 if test yes = "$GCC"; then
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_static='-static'
8414
8415 case $host_os in
8416 aix*)
8417 # All AIX code is PIC.
8418 if test ia64 = "$host_cpu"; then
8419 # AIX 5 now supports IA64 processor
8420 lt_prog_compiler_static='-Bstatic'
8421 fi
8422 lt_prog_compiler_pic='-fPIC'
8423 ;;
8424
8425 amigaos*)
8426 case $host_cpu in
8427 powerpc)
8428 # see comment about AmigaOS4 .so support
8429 lt_prog_compiler_pic='-fPIC'
8430 ;;
8431 m68k)
8432 # FIXME: we need at least 68020 code to build shared libraries, but
8433 # adding the '-m68020' flag to GCC prevents building anything better,
8434 # like '-m68040'.
8435 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8436 ;;
8437 esac
8438 ;;
8439
8440 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8441 # PIC is the default for these OSes.
8442 ;;
8443
8444 mingw* | cygwin* | pw32* | os2* | cegcc*)
8445 # This hack is so that the source file can tell whether it is being
8446 # built for inclusion in a dll (and should export symbols for example).
8447 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8448 # (--disable-auto-import) libraries
8449 lt_prog_compiler_pic='-DDLL_EXPORT'
8450 case $host_os in
8451 os2*)
8452 lt_prog_compiler_static='$wl-static'
8453 ;;
8454 esac
8455 ;;
8456
8457 darwin* | rhapsody*)
8458 # PIC is the default on this platform
8459 # Common symbols not allowed in MH_DYLIB files
8460 lt_prog_compiler_pic='-fno-common'
8461 ;;
8462
8463 haiku*)
8464 # PIC is the default for Haiku.
8465 # The "-static" flag exists, but is broken.
8466 lt_prog_compiler_static=
8467 ;;
8468
8469 hpux*)
8470 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8471 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8472 # sets the default TLS model and affects inlining.
8473 case $host_cpu in
8474 hppa*64*)
8475 # +Z the default
8476 ;;
8477 *)
8478 lt_prog_compiler_pic='-fPIC'
8479 ;;
8480 esac
8481 ;;
8482
8483 interix[3-9]*)
8484 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8485 # Instead, we relocate shared libraries at runtime.
8486 ;;
8487
8488 msdosdjgpp*)
8489 # Just because we use GCC doesn't mean we suddenly get shared libraries
8490 # on systems that don't support them.
8491 lt_prog_compiler_can_build_shared=no
8492 enable_shared=no
8493 ;;
8494
8495 *nto* | *qnx*)
8496 # QNX uses GNU C++, but need to define -shared option too, otherwise
8497 # it will coredump.
8498 lt_prog_compiler_pic='-fPIC -shared'
8499 ;;
8500
8501 sysv4*MP*)
8502 if test -d /usr/nec; then
8503 lt_prog_compiler_pic=-Kconform_pic
8504 fi
8505 ;;
8506
8507 *)
8508 lt_prog_compiler_pic='-fPIC'
8509 ;;
8510 esac
8511
8512 case $cc_basename in
8513 nvcc*) # Cuda Compiler Driver 2.2
8514 lt_prog_compiler_wl='-Xlinker '
8515 if test -n "$lt_prog_compiler_pic"; then
8516 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8517 fi
8518 ;;
8519 esac
8520 else
8521 # PORTME Check for flag to pass linker flags through the system compiler.
8522 case $host_os in
8523 aix*)
8524 lt_prog_compiler_wl='-Wl,'
8525 if test ia64 = "$host_cpu"; then
8526 # AIX 5 now supports IA64 processor
8527 lt_prog_compiler_static='-Bstatic'
8528 else
8529 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8530 fi
8531 ;;
8532
8533 darwin* | rhapsody*)
8534 # PIC is the default on this platform
8535 # Common symbols not allowed in MH_DYLIB files
8536 lt_prog_compiler_pic='-fno-common'
8537 case $cc_basename in
8538 nagfor*)
8539 # NAG Fortran compiler
8540 lt_prog_compiler_wl='-Wl,-Wl,,'
8541 lt_prog_compiler_pic='-PIC'
8542 lt_prog_compiler_static='-Bstatic'
8543 ;;
8544 esac
8545 ;;
8546
8547 mingw* | cygwin* | pw32* | os2* | cegcc*)
8548 # This hack is so that the source file can tell whether it is being
8549 # built for inclusion in a dll (and should export symbols for example).
8550 lt_prog_compiler_pic='-DDLL_EXPORT'
8551 case $host_os in
8552 os2*)
8553 lt_prog_compiler_static='$wl-static'
8554 ;;
8555 esac
8556 ;;
8557
8558 hpux9* | hpux10* | hpux11*)
8559 lt_prog_compiler_wl='-Wl,'
8560 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8561 # not for PA HP-UX.
8562 case $host_cpu in
8563 hppa*64*|ia64*)
8564 # +Z the default
8565 ;;
8566 *)
8567 lt_prog_compiler_pic='+Z'
8568 ;;
8569 esac
8570 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8571 lt_prog_compiler_static='$wl-a ${wl}archive'
8572 ;;
8573
8574 irix5* | irix6* | nonstopux*)
8575 lt_prog_compiler_wl='-Wl,'
8576 # PIC (with -KPIC) is the default.
8577 lt_prog_compiler_static='-non_shared'
8578 ;;
8579
8580 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8581 case $cc_basename in
8582 # old Intel for x86_64, which still supported -KPIC.
8583 ecc*)
8584 lt_prog_compiler_wl='-Wl,'
8585 lt_prog_compiler_pic='-KPIC'
8586 lt_prog_compiler_static='-static'
8587 ;;
8588 # icc used to be incompatible with GCC.
8589 # ICC 10 doesn't accept -KPIC any more.
8590 icc* | ifort*)
8591 lt_prog_compiler_wl='-Wl,'
8592 lt_prog_compiler_pic='-fPIC'
8593 lt_prog_compiler_static='-static'
8594 ;;
8595 # Lahey Fortran 8.1.
8596 lf95*)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='--shared'
8599 lt_prog_compiler_static='--static'
8600 ;;
8601 nagfor*)
8602 # NAG Fortran compiler
8603 lt_prog_compiler_wl='-Wl,-Wl,,'
8604 lt_prog_compiler_pic='-PIC'
8605 lt_prog_compiler_static='-Bstatic'
8606 ;;
8607 tcc*)
8608 # Fabrice Bellard et al's Tiny C Compiler
8609 lt_prog_compiler_wl='-Wl,'
8610 lt_prog_compiler_pic='-fPIC'
8611 lt_prog_compiler_static='-static'
8612 ;;
8613 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8614 # Portland Group compilers (*not* the Pentium gcc compiler,
8615 # which looks to be a dead project)
8616 lt_prog_compiler_wl='-Wl,'
8617 lt_prog_compiler_pic='-fpic'
8618 lt_prog_compiler_static='-Bstatic'
8619 ;;
8620 ccc*)
8621 lt_prog_compiler_wl='-Wl,'
8622 # All Alpha code is PIC.
8623 lt_prog_compiler_static='-non_shared'
8624 ;;
8625 xl* | bgxl* | bgf* | mpixl*)
8626 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8627 lt_prog_compiler_wl='-Wl,'
8628 lt_prog_compiler_pic='-qpic'
8629 lt_prog_compiler_static='-qstaticlink'
8630 ;;
8631 *)
8632 case `$CC -V 2>&1 | sed 5q` in
8633 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8634 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8635 lt_prog_compiler_pic='-KPIC'
8636 lt_prog_compiler_static='-Bstatic'
8637 lt_prog_compiler_wl=''
8638 ;;
8639 *Sun\ F* | *Sun*Fortran*)
8640 lt_prog_compiler_pic='-KPIC'
8641 lt_prog_compiler_static='-Bstatic'
8642 lt_prog_compiler_wl='-Qoption ld '
8643 ;;
8644 *Sun\ C*)
8645 # Sun C 5.9
8646 lt_prog_compiler_pic='-KPIC'
8647 lt_prog_compiler_static='-Bstatic'
8648 lt_prog_compiler_wl='-Wl,'
8649 ;;
8650 *Intel*\ [CF]*Compiler*)
8651 lt_prog_compiler_wl='-Wl,'
8652 lt_prog_compiler_pic='-fPIC'
8653 lt_prog_compiler_static='-static'
8654 ;;
8655 *Portland\ Group*)
8656 lt_prog_compiler_wl='-Wl,'
8657 lt_prog_compiler_pic='-fpic'
8658 lt_prog_compiler_static='-Bstatic'
8659 ;;
8660 esac
8661 ;;
8662 esac
8663 ;;
8664
8665 newsos6)
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 ;;
8669
8670 *nto* | *qnx*)
8671 # QNX uses GNU C++, but need to define -shared option too, otherwise
8672 # it will coredump.
8673 lt_prog_compiler_pic='-fPIC -shared'
8674 ;;
8675
8676 osf3* | osf4* | osf5*)
8677 lt_prog_compiler_wl='-Wl,'
8678 # All OSF/1 code is PIC.
8679 lt_prog_compiler_static='-non_shared'
8680 ;;
8681
8682 rdos*)
8683 lt_prog_compiler_static='-non_shared'
8684 ;;
8685
8686 solaris*)
8687 lt_prog_compiler_pic='-KPIC'
8688 lt_prog_compiler_static='-Bstatic'
8689 case $cc_basename in
8690 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8691 lt_prog_compiler_wl='-Qoption ld ';;
8692 *)
8693 lt_prog_compiler_wl='-Wl,';;
8694 esac
8695 ;;
8696
8697 sunos4*)
8698 lt_prog_compiler_wl='-Qoption ld '
8699 lt_prog_compiler_pic='-PIC'
8700 lt_prog_compiler_static='-Bstatic'
8701 ;;
8702
8703 sysv4 | sysv4.2uw2* | sysv4.3*)
8704 lt_prog_compiler_wl='-Wl,'
8705 lt_prog_compiler_pic='-KPIC'
8706 lt_prog_compiler_static='-Bstatic'
8707 ;;
8708
8709 sysv4*MP*)
8710 if test -d /usr/nec; then
8711 lt_prog_compiler_pic='-Kconform_pic'
8712 lt_prog_compiler_static='-Bstatic'
8713 fi
8714 ;;
8715
8716 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8717 lt_prog_compiler_wl='-Wl,'
8718 lt_prog_compiler_pic='-KPIC'
8719 lt_prog_compiler_static='-Bstatic'
8720 ;;
8721
8722 unicos*)
8723 lt_prog_compiler_wl='-Wl,'
8724 lt_prog_compiler_can_build_shared=no
8725 ;;
8726
8727 uts4*)
8728 lt_prog_compiler_pic='-pic'
8729 lt_prog_compiler_static='-Bstatic'
8730 ;;
8731
8732 *)
8733 lt_prog_compiler_can_build_shared=no
8734 ;;
8735 esac
8736 fi
8737
8738 case $host_os in
8739 # For platforms that do not support PIC, -DPIC is meaningless:
8740 *djgpp*)
8741 lt_prog_compiler_pic=
8742 ;;
8743 *)
8744 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8745 ;;
8746 esac
8747
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8749 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8750 if ${lt_cv_prog_compiler_pic+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8756 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8757 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8758
8759 #
8760 # Check to make sure the PIC flag actually works.
8761 #
8762 if test -n "$lt_prog_compiler_pic"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8764 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8765 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8766 $as_echo_n "(cached) " >&6
8767 else
8768 lt_cv_prog_compiler_pic_works=no
8769 ac_outfile=conftest.$ac_objext
8770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8771 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8772 # Insert the option either (1) after the last *FLAGS variable, or
8773 # (2) before a word containing "conftest.", or (3) at the end.
8774 # Note that $ac_compile itself does not contain backslashes and begins
8775 # with a dollar sign (not a hyphen), so the echo should work correctly.
8776 # The option is referenced via a variable to avoid confusing sed.
8777 lt_compile=`echo "$ac_compile" | $SED \
8778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8780 -e 's:$: $lt_compiler_flag:'`
8781 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8782 (eval "$lt_compile" 2>conftest.err)
8783 ac_status=$?
8784 cat conftest.err >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 if (exit $ac_status) && test -s "$ac_outfile"; then
8787 # The compiler can only warn and ignore the option if not recognized
8788 # So say no if there are warnings other than the usual output.
8789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8791 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8792 lt_cv_prog_compiler_pic_works=yes
8793 fi
8794 fi
8795 $RM conftest*
8796
8797 fi
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8799 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8800
8801 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8802 case $lt_prog_compiler_pic in
8803 "" | " "*) ;;
8804 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8805 esac
8806 else
8807 lt_prog_compiler_pic=
8808 lt_prog_compiler_can_build_shared=no
8809 fi
8810
8811 fi
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823 #
8824 # Check to make sure the static flag actually works.
8825 #
8826 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8828 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8829 if ${lt_cv_prog_compiler_static_works+:} false; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 lt_cv_prog_compiler_static_works=no
8833 save_LDFLAGS=$LDFLAGS
8834 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8835 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8837 # The linker can only warn and ignore the option if not recognized
8838 # So say no if there are warnings
8839 if test -s conftest.err; then
8840 # Append any errors to the config.log.
8841 cat conftest.err 1>&5
8842 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8844 if diff conftest.exp conftest.er2 >/dev/null; then
8845 lt_cv_prog_compiler_static_works=yes
8846 fi
8847 else
8848 lt_cv_prog_compiler_static_works=yes
8849 fi
8850 fi
8851 $RM -r conftest*
8852 LDFLAGS=$save_LDFLAGS
8853
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8856 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8857
8858 if test yes = "$lt_cv_prog_compiler_static_works"; then
8859 :
8860 else
8861 lt_prog_compiler_static=
8862 fi
8863
8864
8865
8866
8867
8868
8869
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8871 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8872 if ${lt_cv_prog_compiler_c_o+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 lt_cv_prog_compiler_c_o=no
8876 $RM -r conftest 2>/dev/null
8877 mkdir conftest
8878 cd conftest
8879 mkdir out
8880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8881
8882 lt_compiler_flag="-o out/conftest2.$ac_objext"
8883 # Insert the option either (1) after the last *FLAGS variable, or
8884 # (2) before a word containing "conftest.", or (3) at the end.
8885 # Note that $ac_compile itself does not contain backslashes and begins
8886 # with a dollar sign (not a hyphen), so the echo should work correctly.
8887 lt_compile=`echo "$ac_compile" | $SED \
8888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8890 -e 's:$: $lt_compiler_flag:'`
8891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8892 (eval "$lt_compile" 2>out/conftest.err)
8893 ac_status=$?
8894 cat out/conftest.err >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8897 then
8898 # The compiler can only warn and ignore the option if not recognized
8899 # So say no if there are warnings
8900 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8903 lt_cv_prog_compiler_c_o=yes
8904 fi
8905 fi
8906 chmod u+w . 2>&5
8907 $RM conftest*
8908 # SGI C++ compiler will create directory out/ii_files/ for
8909 # template instantiation
8910 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8911 $RM out/* && rmdir out
8912 cd ..
8913 $RM -r conftest
8914 $RM conftest*
8915
8916 fi
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8918 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8919
8920
8921
8922
8923
8924
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8926 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8927 if ${lt_cv_prog_compiler_c_o+:} false; then :
8928 $as_echo_n "(cached) " >&6
8929 else
8930 lt_cv_prog_compiler_c_o=no
8931 $RM -r conftest 2>/dev/null
8932 mkdir conftest
8933 cd conftest
8934 mkdir out
8935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8936
8937 lt_compiler_flag="-o out/conftest2.$ac_objext"
8938 # Insert the option either (1) after the last *FLAGS variable, or
8939 # (2) before a word containing "conftest.", or (3) at the end.
8940 # Note that $ac_compile itself does not contain backslashes and begins
8941 # with a dollar sign (not a hyphen), so the echo should work correctly.
8942 lt_compile=`echo "$ac_compile" | $SED \
8943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8945 -e 's:$: $lt_compiler_flag:'`
8946 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8947 (eval "$lt_compile" 2>out/conftest.err)
8948 ac_status=$?
8949 cat out/conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8952 then
8953 # The compiler can only warn and ignore the option if not recognized
8954 # So say no if there are warnings
8955 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8956 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8957 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8958 lt_cv_prog_compiler_c_o=yes
8959 fi
8960 fi
8961 chmod u+w . 2>&5
8962 $RM conftest*
8963 # SGI C++ compiler will create directory out/ii_files/ for
8964 # template instantiation
8965 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8966 $RM out/* && rmdir out
8967 cd ..
8968 $RM -r conftest
8969 $RM conftest*
8970
8971 fi
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8973 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8974
8975
8976
8977
8978 hard_links=nottested
8979 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8980 # do not overwrite the value of need_locks provided by the user
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8982 $as_echo_n "checking if we can lock with hard links... " >&6; }
8983 hard_links=yes
8984 $RM conftest*
8985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8986 touch conftest.a
8987 ln conftest.a conftest.b 2>&5 || hard_links=no
8988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8990 $as_echo "$hard_links" >&6; }
8991 if test no = "$hard_links"; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8993 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8994 need_locks=warn
8995 fi
8996 else
8997 need_locks=no
8998 fi
8999
9000
9001
9002
9003
9004
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9006 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9007
9008 runpath_var=
9009 allow_undefined_flag=
9010 always_export_symbols=no
9011 archive_cmds=
9012 archive_expsym_cmds=
9013 compiler_needs_object=no
9014 enable_shared_with_static_runtimes=no
9015 export_dynamic_flag_spec=
9016 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9017 hardcode_automatic=no
9018 hardcode_direct=no
9019 hardcode_direct_absolute=no
9020 hardcode_libdir_flag_spec=
9021 hardcode_libdir_separator=
9022 hardcode_minus_L=no
9023 hardcode_shlibpath_var=unsupported
9024 inherit_rpath=no
9025 link_all_deplibs=unknown
9026 module_cmds=
9027 module_expsym_cmds=
9028 old_archive_from_new_cmds=
9029 old_archive_from_expsyms_cmds=
9030 thread_safe_flag_spec=
9031 whole_archive_flag_spec=
9032 # include_expsyms should be a list of space-separated symbols to be *always*
9033 # included in the symbol list
9034 include_expsyms=
9035 # exclude_expsyms can be an extended regexp of symbols to exclude
9036 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9037 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9038 # as well as any symbol that contains 'd'.
9039 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9041 # platforms (ab)use it in PIC code, but their linkers get confused if
9042 # the symbol is explicitly referenced. Since portable code cannot
9043 # rely on this symbol name, it's probably fine to never include it in
9044 # preloaded symbol tables.
9045 # Exclude shared library initialization/finalization symbols.
9046 extract_expsyms_cmds=
9047
9048 case $host_os in
9049 cygwin* | mingw* | pw32* | cegcc*)
9050 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9051 # When not using gcc, we currently assume that we are using
9052 # Microsoft Visual C++.
9053 if test yes != "$GCC"; then
9054 with_gnu_ld=no
9055 fi
9056 ;;
9057 interix*)
9058 # we just hope/assume this is gcc and not c89 (= MSVC++)
9059 with_gnu_ld=yes
9060 ;;
9061 openbsd* | bitrig*)
9062 with_gnu_ld=no
9063 ;;
9064 esac
9065
9066 ld_shlibs=yes
9067
9068 # On some targets, GNU ld is compatible enough with the native linker
9069 # that we're better off using the native interface for both.
9070 lt_use_gnu_ld_interface=no
9071 if test yes = "$with_gnu_ld"; then
9072 case $host_os in
9073 aix*)
9074 # The AIX port of GNU ld has always aspired to compatibility
9075 # with the native linker. However, as the warning in the GNU ld
9076 # block says, versions before 2.19.5* couldn't really create working
9077 # shared libraries, regardless of the interface used.
9078 case `$LD -v 2>&1` in
9079 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9080 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9081 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9082 *)
9083 lt_use_gnu_ld_interface=yes
9084 ;;
9085 esac
9086 ;;
9087 *)
9088 lt_use_gnu_ld_interface=yes
9089 ;;
9090 esac
9091 fi
9092
9093 if test yes = "$lt_use_gnu_ld_interface"; then
9094 # If archive_cmds runs LD, not CC, wlarc should be empty
9095 wlarc='$wl'
9096
9097 # Set some defaults for GNU ld with shared library support. These
9098 # are reset later if shared libraries are not supported. Putting them
9099 # here allows them to be overridden if necessary.
9100 runpath_var=LD_RUN_PATH
9101 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9102 export_dynamic_flag_spec='$wl--export-dynamic'
9103 # ancient GNU ld didn't support --whole-archive et. al.
9104 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9105 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9106 else
9107 whole_archive_flag_spec=
9108 fi
9109 supports_anon_versioning=no
9110 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9111 *GNU\ gold*) supports_anon_versioning=yes ;;
9112 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9113 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9114 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9115 *\ 2.11.*) ;; # other 2.11 versions
9116 *) supports_anon_versioning=yes ;;
9117 esac
9118
9119 # See if GNU ld supports shared libraries.
9120 case $host_os in
9121 aix[3-9]*)
9122 # On AIX/PPC, the GNU linker is very broken
9123 if test ia64 != "$host_cpu"; then
9124 ld_shlibs=no
9125 cat <<_LT_EOF 1>&2
9126
9127 *** Warning: the GNU linker, at least up to release 2.19, is reported
9128 *** to be unable to reliably create shared libraries on AIX.
9129 *** Therefore, libtool is disabling shared libraries support. If you
9130 *** really care for shared libraries, you may want to install binutils
9131 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9132 *** You will then need to restart the configuration process.
9133
9134 _LT_EOF
9135 fi
9136 ;;
9137
9138 amigaos*)
9139 case $host_cpu in
9140 powerpc)
9141 # see comment about AmigaOS4 .so support
9142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9143 archive_expsym_cmds=''
9144 ;;
9145 m68k)
9146 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)'
9147 hardcode_libdir_flag_spec='-L$libdir'
9148 hardcode_minus_L=yes
9149 ;;
9150 esac
9151 ;;
9152
9153 beos*)
9154 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9155 allow_undefined_flag=unsupported
9156 # Joseph Beckenbach <[email protected]> says some releases of gcc
9157 # support --undefined. This deserves some investigation. FIXME
9158 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9159 else
9160 ld_shlibs=no
9161 fi
9162 ;;
9163
9164 cygwin* | mingw* | pw32* | cegcc*)
9165 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9166 # as there is no search path for DLLs.
9167 hardcode_libdir_flag_spec='-L$libdir'
9168 export_dynamic_flag_spec='$wl--export-all-symbols'
9169 allow_undefined_flag=unsupported
9170 always_export_symbols=no
9171 enable_shared_with_static_runtimes=yes
9172 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'
9173 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9174
9175 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9177 # If the export-symbols file already is a .def file, use it as
9178 # is; otherwise, prepend EXPORTS...
9179 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9180 cp $export_symbols $output_objdir/$soname.def;
9181 else
9182 echo EXPORTS > $output_objdir/$soname.def;
9183 cat $export_symbols >> $output_objdir/$soname.def;
9184 fi~
9185 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9186 else
9187 ld_shlibs=no
9188 fi
9189 ;;
9190
9191 haiku*)
9192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9193 link_all_deplibs=yes
9194 ;;
9195
9196 os2*)
9197 hardcode_libdir_flag_spec='-L$libdir'
9198 hardcode_minus_L=yes
9199 allow_undefined_flag=unsupported
9200 shrext_cmds=.dll
9201 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9202 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9203 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9204 $ECHO EXPORTS >> $output_objdir/$libname.def~
9205 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9206 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9207 emximp -o $lib $output_objdir/$libname.def'
9208 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9209 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9210 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9211 $ECHO EXPORTS >> $output_objdir/$libname.def~
9212 prefix_cmds="$SED"~
9213 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9214 prefix_cmds="$prefix_cmds -e 1d";
9215 fi~
9216 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9217 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9218 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9219 emximp -o $lib $output_objdir/$libname.def'
9220 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9221 enable_shared_with_static_runtimes=yes
9222 ;;
9223
9224 interix[3-9]*)
9225 hardcode_direct=no
9226 hardcode_shlibpath_var=no
9227 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9228 export_dynamic_flag_spec='$wl-E'
9229 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9230 # Instead, shared libraries are loaded at an image base (0x10000000 by
9231 # default) and relocated if they conflict, which is a slow very memory
9232 # consuming and fragmenting process. To avoid this, we pick a random,
9233 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9234 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9235 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9236 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'
9237 ;;
9238
9239 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9240 tmp_diet=no
9241 if test linux-dietlibc = "$host_os"; then
9242 case $cc_basename in
9243 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9244 esac
9245 fi
9246 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9247 && test no = "$tmp_diet"
9248 then
9249 tmp_addflag=' $pic_flag'
9250 tmp_sharedflag='-shared'
9251 case $cc_basename,$host_cpu in
9252 pgcc*) # Portland Group C compiler
9253 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'
9254 tmp_addflag=' $pic_flag'
9255 ;;
9256 pgf77* | pgf90* | pgf95* | pgfortran*)
9257 # Portland Group f77 and f90 compilers
9258 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'
9259 tmp_addflag=' $pic_flag -Mnomain' ;;
9260 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9261 tmp_addflag=' -i_dynamic' ;;
9262 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9263 tmp_addflag=' -i_dynamic -nofor_main' ;;
9264 ifc* | ifort*) # Intel Fortran compiler
9265 tmp_addflag=' -nofor_main' ;;
9266 lf95*) # Lahey Fortran 8.1
9267 whole_archive_flag_spec=
9268 tmp_sharedflag='--shared' ;;
9269 nagfor*) # NAGFOR 5.3
9270 tmp_sharedflag='-Wl,-shared' ;;
9271 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9272 tmp_sharedflag='-qmkshrobj'
9273 tmp_addflag= ;;
9274 nvcc*) # Cuda Compiler Driver 2.2
9275 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'
9276 compiler_needs_object=yes
9277 ;;
9278 esac
9279 case `$CC -V 2>&1 | sed 5q` in
9280 *Sun\ C*) # Sun C 5.9
9281 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'
9282 compiler_needs_object=yes
9283 tmp_sharedflag='-G' ;;
9284 *Sun\ F*) # Sun Fortran 8.3
9285 tmp_sharedflag='-G' ;;
9286 esac
9287 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9288
9289 if test yes = "$supports_anon_versioning"; then
9290 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9292 echo "local: *; };" >> $output_objdir/$libname.ver~
9293 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9294 fi
9295
9296 case $cc_basename in
9297 tcc*)
9298 export_dynamic_flag_spec='-rdynamic'
9299 ;;
9300 xlf* | bgf* | bgxlf* | mpixlf*)
9301 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9302 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9303 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9304 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9305 if test yes = "$supports_anon_versioning"; then
9306 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9307 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9308 echo "local: *; };" >> $output_objdir/$libname.ver~
9309 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9310 fi
9311 ;;
9312 esac
9313 else
9314 ld_shlibs=no
9315 fi
9316 ;;
9317
9318 netbsd*)
9319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9320 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9321 wlarc=
9322 else
9323 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9324 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9325 fi
9326 ;;
9327
9328 solaris*)
9329 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9330 ld_shlibs=no
9331 cat <<_LT_EOF 1>&2
9332
9333 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9334 *** create shared libraries on Solaris systems. Therefore, libtool
9335 *** is disabling shared libraries support. We urge you to upgrade GNU
9336 *** binutils to release 2.9.1 or newer. Another option is to modify
9337 *** your PATH or compiler configuration so that the native linker is
9338 *** used, and then restart.
9339
9340 _LT_EOF
9341 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9342 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9343 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9344 else
9345 ld_shlibs=no
9346 fi
9347 ;;
9348
9349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9350 case `$LD -v 2>&1` in
9351 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9352 ld_shlibs=no
9353 cat <<_LT_EOF 1>&2
9354
9355 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9356 *** reliably create shared libraries on SCO systems. Therefore, libtool
9357 *** is disabling shared libraries support. We urge you to upgrade GNU
9358 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9359 *** your PATH or compiler configuration so that the native linker is
9360 *** used, and then restart.
9361
9362 _LT_EOF
9363 ;;
9364 *)
9365 # For security reasons, it is highly recommended that you always
9366 # use absolute paths for naming shared libraries, and exclude the
9367 # DT_RUNPATH tag from executables and libraries. But doing so
9368 # requires that you compile everything twice, which is a pain.
9369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9373 else
9374 ld_shlibs=no
9375 fi
9376 ;;
9377 esac
9378 ;;
9379
9380 sunos4*)
9381 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9382 wlarc=
9383 hardcode_direct=yes
9384 hardcode_shlibpath_var=no
9385 ;;
9386
9387 *)
9388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9389 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9390 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9391 else
9392 ld_shlibs=no
9393 fi
9394 ;;
9395 esac
9396
9397 if test no = "$ld_shlibs"; then
9398 runpath_var=
9399 hardcode_libdir_flag_spec=
9400 export_dynamic_flag_spec=
9401 whole_archive_flag_spec=
9402 fi
9403 else
9404 # PORTME fill in a description of your system's linker (not GNU ld)
9405 case $host_os in
9406 aix3*)
9407 allow_undefined_flag=unsupported
9408 always_export_symbols=yes
9409 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'
9410 # Note: this linker hardcodes the directories in LIBPATH if there
9411 # are no directories specified by -L.
9412 hardcode_minus_L=yes
9413 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9414 # Neither direct hardcoding nor static linking is supported with a
9415 # broken collect2.
9416 hardcode_direct=unsupported
9417 fi
9418 ;;
9419
9420 aix[4-9]*)
9421 if test ia64 = "$host_cpu"; then
9422 # On IA64, the linker does run time linking by default, so we don't
9423 # have to do anything special.
9424 aix_use_runtimelinking=no
9425 exp_sym_flag='-Bexport'
9426 no_entry_flag=
9427 else
9428 # If we're using GNU nm, then we don't want the "-C" option.
9429 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9430 # Without the "-l" option, or with the "-B" option, AIX nm treats
9431 # weak defined symbols like other global defined symbols, whereas
9432 # GNU nm marks them as "W".
9433 # While the 'weak' keyword is ignored in the Export File, we need
9434 # it in the Import File for the 'aix-soname' feature, so we have
9435 # to replace the "-B" option with "-P" for AIX nm.
9436 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9437 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'
9438 else
9439 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9440 fi
9441 aix_use_runtimelinking=no
9442
9443 # Test if we are trying to use run time linking or normal
9444 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9445 # have runtime linking enabled, and use it for executables.
9446 # For shared libraries, we enable/disable runtime linking
9447 # depending on the kind of the shared library created -
9448 # when "with_aix_soname,aix_use_runtimelinking" is:
9449 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9450 # "aix,yes" lib.so shared, rtl:yes, for executables
9451 # lib.a static archive
9452 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9453 # lib.a(lib.so.V) shared, rtl:no, for executables
9454 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9455 # lib.a(lib.so.V) shared, rtl:no
9456 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9457 # lib.a static archive
9458 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9459 for ld_flag in $LDFLAGS; do
9460 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9461 aix_use_runtimelinking=yes
9462 break
9463 fi
9464 done
9465 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9466 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9467 # so we don't have lib.a shared libs to link our executables.
9468 # We have to force runtime linking in this case.
9469 aix_use_runtimelinking=yes
9470 LDFLAGS="$LDFLAGS -Wl,-brtl"
9471 fi
9472 ;;
9473 esac
9474
9475 exp_sym_flag='-bexport'
9476 no_entry_flag='-bnoentry'
9477 fi
9478
9479 # When large executables or shared objects are built, AIX ld can
9480 # have problems creating the table of contents. If linking a library
9481 # or program results in "error TOC overflow" add -mminimal-toc to
9482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9484
9485 archive_cmds=''
9486 hardcode_direct=yes
9487 hardcode_direct_absolute=yes
9488 hardcode_libdir_separator=':'
9489 link_all_deplibs=yes
9490 file_list_spec='$wl-f,'
9491 case $with_aix_soname,$aix_use_runtimelinking in
9492 aix,*) ;; # traditional, no import file
9493 svr4,* | *,yes) # use import file
9494 # The Import File defines what to hardcode.
9495 hardcode_direct=no
9496 hardcode_direct_absolute=no
9497 ;;
9498 esac
9499
9500 if test yes = "$GCC"; then
9501 case $host_os in aix4.[012]|aix4.[012].*)
9502 # We only want to do this on AIX 4.2 and lower, the check
9503 # below for broken collect2 doesn't work under 4.3+
9504 collect2name=`$CC -print-prog-name=collect2`
9505 if test -f "$collect2name" &&
9506 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9507 then
9508 # We have reworked collect2
9509 :
9510 else
9511 # We have old collect2
9512 hardcode_direct=unsupported
9513 # It fails to find uninstalled libraries when the uninstalled
9514 # path is not listed in the libpath. Setting hardcode_minus_L
9515 # to unsupported forces relinking
9516 hardcode_minus_L=yes
9517 hardcode_libdir_flag_spec='-L$libdir'
9518 hardcode_libdir_separator=
9519 fi
9520 ;;
9521 esac
9522 shared_flag='-shared'
9523 if test yes = "$aix_use_runtimelinking"; then
9524 shared_flag="$shared_flag "'$wl-G'
9525 fi
9526 # Need to ensure runtime linking is disabled for the traditional
9527 # shared library, or the linker may eventually find shared libraries
9528 # /with/ Import File - we do not want to mix them.
9529 shared_flag_aix='-shared'
9530 shared_flag_svr4='-shared $wl-G'
9531 else
9532 # not using gcc
9533 if test ia64 = "$host_cpu"; then
9534 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9535 # chokes on -Wl,-G. The following line is correct:
9536 shared_flag='-G'
9537 else
9538 if test yes = "$aix_use_runtimelinking"; then
9539 shared_flag='$wl-G'
9540 else
9541 shared_flag='$wl-bM:SRE'
9542 fi
9543 shared_flag_aix='$wl-bM:SRE'
9544 shared_flag_svr4='$wl-G'
9545 fi
9546 fi
9547
9548 export_dynamic_flag_spec='$wl-bexpall'
9549 # It seems that -bexpall does not export symbols beginning with
9550 # underscore (_), so it is better to generate a list of symbols to export.
9551 always_export_symbols=yes
9552 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9553 # Warning - without using the other runtime loading flags (-brtl),
9554 # -berok will link without error, but may produce a broken library.
9555 allow_undefined_flag='-berok'
9556 # Determine the default libpath from the value encoded in an
9557 # empty executable.
9558 if test set = "${lt_cv_aix_libpath+set}"; then
9559 aix_libpath=$lt_cv_aix_libpath
9560 else
9561 if ${lt_cv_aix_libpath_+:} false; then :
9562 $as_echo_n "(cached) " >&6
9563 else
9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9566
9567 int
9568 main ()
9569 {
9570
9571 ;
9572 return 0;
9573 }
9574 _ACEOF
9575 if ac_fn_c_try_link "$LINENO"; then :
9576
9577 lt_aix_libpath_sed='
9578 /Import File Strings/,/^$/ {
9579 /^0/ {
9580 s/^0 *\([^ ]*\) *$/\1/
9581 p
9582 }
9583 }'
9584 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9585 # Check for a 64-bit object if we didn't find anything.
9586 if test -z "$lt_cv_aix_libpath_"; then
9587 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9588 fi
9589 fi
9590 rm -f core conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
9592 if test -z "$lt_cv_aix_libpath_"; then
9593 lt_cv_aix_libpath_=/usr/lib:/lib
9594 fi
9595
9596 fi
9597
9598 aix_libpath=$lt_cv_aix_libpath_
9599 fi
9600
9601 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9602 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
9603 else
9604 if test ia64 = "$host_cpu"; then
9605 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9606 allow_undefined_flag="-z nodefs"
9607 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"
9608 else
9609 # Determine the default libpath from the value encoded in an
9610 # empty executable.
9611 if test set = "${lt_cv_aix_libpath+set}"; then
9612 aix_libpath=$lt_cv_aix_libpath
9613 else
9614 if ${lt_cv_aix_libpath_+:} false; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619
9620 int
9621 main ()
9622 {
9623
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 if ac_fn_c_try_link "$LINENO"; then :
9629
9630 lt_aix_libpath_sed='
9631 /Import File Strings/,/^$/ {
9632 /^0/ {
9633 s/^0 *\([^ ]*\) *$/\1/
9634 p
9635 }
9636 }'
9637 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638 # Check for a 64-bit object if we didn't find anything.
9639 if test -z "$lt_cv_aix_libpath_"; then
9640 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9641 fi
9642 fi
9643 rm -f core conftest.err conftest.$ac_objext \
9644 conftest$ac_exeext conftest.$ac_ext
9645 if test -z "$lt_cv_aix_libpath_"; then
9646 lt_cv_aix_libpath_=/usr/lib:/lib
9647 fi
9648
9649 fi
9650
9651 aix_libpath=$lt_cv_aix_libpath_
9652 fi
9653
9654 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9655 # Warning - without using the other run time loading flags,
9656 # -berok will link without error, but may produce a broken library.
9657 no_undefined_flag=' $wl-bernotok'
9658 allow_undefined_flag=' $wl-berok'
9659 if test yes = "$with_gnu_ld"; then
9660 # We only use this code for GNU lds that support --whole-archive.
9661 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9662 else
9663 # Exported symbols can be pulled into shared objects from archives
9664 whole_archive_flag_spec='$convenience'
9665 fi
9666 archive_cmds_need_lc=yes
9667 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9668 # -brtl affects multiple linker settings, -berok does not and is overridden later
9669 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9670 if test svr4 != "$with_aix_soname"; then
9671 # This is similar to how AIX traditionally builds its shared libraries.
9672 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'
9673 fi
9674 if test aix != "$with_aix_soname"; then
9675 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'
9676 else
9677 # used by -dlpreopen to get the symbols
9678 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9679 fi
9680 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9681 fi
9682 fi
9683 ;;
9684
9685 amigaos*)
9686 case $host_cpu in
9687 powerpc)
9688 # see comment about AmigaOS4 .so support
9689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9690 archive_expsym_cmds=''
9691 ;;
9692 m68k)
9693 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)'
9694 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_minus_L=yes
9696 ;;
9697 esac
9698 ;;
9699
9700 bsdi[45]*)
9701 export_dynamic_flag_spec=-rdynamic
9702 ;;
9703
9704 cygwin* | mingw* | pw32* | cegcc*)
9705 # When not using gcc, we currently assume that we are using
9706 # Microsoft Visual C++.
9707 # hardcode_libdir_flag_spec is actually meaningless, as there is
9708 # no search path for DLLs.
9709 case $cc_basename in
9710 cl*)
9711 # Native MSVC
9712 hardcode_libdir_flag_spec=' '
9713 allow_undefined_flag=unsupported
9714 always_export_symbols=yes
9715 file_list_spec='@'
9716 # Tell ltmain to make .lib files, not .a files.
9717 libext=lib
9718 # Tell ltmain to make .dll files, not .so files.
9719 shrext_cmds=.dll
9720 # FIXME: Setting linknames here is a bad hack.
9721 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9722 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9723 cp "$export_symbols" "$output_objdir/$soname.def";
9724 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9725 else
9726 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9727 fi~
9728 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9729 linknames='
9730 # The linker will not automatically build a static lib if we build a DLL.
9731 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9732 enable_shared_with_static_runtimes=yes
9733 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9734 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9735 # Don't use ranlib
9736 old_postinstall_cmds='chmod 644 $oldlib'
9737 postlink_cmds='lt_outputfile="@OUTPUT@"~
9738 lt_tool_outputfile="@TOOL_OUTPUT@"~
9739 case $lt_outputfile in
9740 *.exe|*.EXE) ;;
9741 *)
9742 lt_outputfile=$lt_outputfile.exe
9743 lt_tool_outputfile=$lt_tool_outputfile.exe
9744 ;;
9745 esac~
9746 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9747 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9748 $RM "$lt_outputfile.manifest";
9749 fi'
9750 ;;
9751 *)
9752 # Assume MSVC wrapper
9753 hardcode_libdir_flag_spec=' '
9754 allow_undefined_flag=unsupported
9755 # Tell ltmain to make .lib files, not .a files.
9756 libext=lib
9757 # Tell ltmain to make .dll files, not .so files.
9758 shrext_cmds=.dll
9759 # FIXME: Setting linknames here is a bad hack.
9760 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9761 # The linker will automatically build a .lib file if we build a DLL.
9762 old_archive_from_new_cmds='true'
9763 # FIXME: Should let the user specify the lib program.
9764 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9765 enable_shared_with_static_runtimes=yes
9766 ;;
9767 esac
9768 ;;
9769
9770 darwin* | rhapsody*)
9771
9772
9773 archive_cmds_need_lc=no
9774 hardcode_direct=no
9775 hardcode_automatic=yes
9776 hardcode_shlibpath_var=unsupported
9777 if test yes = "$lt_cv_ld_force_load"; then
9778 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\"`'
9779
9780 else
9781 whole_archive_flag_spec=''
9782 fi
9783 link_all_deplibs=yes
9784 allow_undefined_flag=$_lt_dar_allow_undefined
9785 case $cc_basename in
9786 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9787 *) _lt_dar_can_shared=$GCC ;;
9788 esac
9789 if test yes = "$_lt_dar_can_shared"; then
9790 output_verbose_link_cmd=func_echo_all
9791 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9792 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9793 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"
9794 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"
9795
9796 else
9797 ld_shlibs=no
9798 fi
9799
9800 ;;
9801
9802 dgux*)
9803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9804 hardcode_libdir_flag_spec='-L$libdir'
9805 hardcode_shlibpath_var=no
9806 ;;
9807
9808 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9809 # support. Future versions do this automatically, but an explicit c++rt0.o
9810 # does not break anything, and helps significantly (at the cost of a little
9811 # extra space).
9812 freebsd2.2*)
9813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9814 hardcode_libdir_flag_spec='-R$libdir'
9815 hardcode_direct=yes
9816 hardcode_shlibpath_var=no
9817 ;;
9818
9819 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9820 freebsd2.*)
9821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9822 hardcode_direct=yes
9823 hardcode_minus_L=yes
9824 hardcode_shlibpath_var=no
9825 ;;
9826
9827 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9828 freebsd* | dragonfly*)
9829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9830 hardcode_libdir_flag_spec='-R$libdir'
9831 hardcode_direct=yes
9832 hardcode_shlibpath_var=no
9833 ;;
9834
9835 hpux9*)
9836 if test yes = "$GCC"; then
9837 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'
9838 else
9839 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'
9840 fi
9841 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9842 hardcode_libdir_separator=:
9843 hardcode_direct=yes
9844
9845 # hardcode_minus_L: Not really in the search PATH,
9846 # but as the default location of the library.
9847 hardcode_minus_L=yes
9848 export_dynamic_flag_spec='$wl-E'
9849 ;;
9850
9851 hpux10*)
9852 if test yes,no = "$GCC,$with_gnu_ld"; then
9853 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9854 else
9855 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9856 fi
9857 if test no = "$with_gnu_ld"; then
9858 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9859 hardcode_libdir_separator=:
9860 hardcode_direct=yes
9861 hardcode_direct_absolute=yes
9862 export_dynamic_flag_spec='$wl-E'
9863 # hardcode_minus_L: Not really in the search PATH,
9864 # but as the default location of the library.
9865 hardcode_minus_L=yes
9866 fi
9867 ;;
9868
9869 hpux11*)
9870 if test yes,no = "$GCC,$with_gnu_ld"; then
9871 case $host_cpu in
9872 hppa*64*)
9873 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9874 ;;
9875 ia64*)
9876 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9877 ;;
9878 *)
9879 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9880 ;;
9881 esac
9882 else
9883 case $host_cpu in
9884 hppa*64*)
9885 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9886 ;;
9887 ia64*)
9888 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9889 ;;
9890 *)
9891
9892 # Older versions of the 11.00 compiler do not understand -b yet
9893 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9895 $as_echo_n "checking if $CC understands -b... " >&6; }
9896 if ${lt_cv_prog_compiler__b+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 lt_cv_prog_compiler__b=no
9900 save_LDFLAGS=$LDFLAGS
9901 LDFLAGS="$LDFLAGS -b"
9902 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9903 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9904 # The linker can only warn and ignore the option if not recognized
9905 # So say no if there are warnings
9906 if test -s conftest.err; then
9907 # Append any errors to the config.log.
9908 cat conftest.err 1>&5
9909 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9911 if diff conftest.exp conftest.er2 >/dev/null; then
9912 lt_cv_prog_compiler__b=yes
9913 fi
9914 else
9915 lt_cv_prog_compiler__b=yes
9916 fi
9917 fi
9918 $RM -r conftest*
9919 LDFLAGS=$save_LDFLAGS
9920
9921 fi
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9923 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9924
9925 if test yes = "$lt_cv_prog_compiler__b"; then
9926 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9927 else
9928 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9929 fi
9930
9931 ;;
9932 esac
9933 fi
9934 if test no = "$with_gnu_ld"; then
9935 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9936 hardcode_libdir_separator=:
9937
9938 case $host_cpu in
9939 hppa*64*|ia64*)
9940 hardcode_direct=no
9941 hardcode_shlibpath_var=no
9942 ;;
9943 *)
9944 hardcode_direct=yes
9945 hardcode_direct_absolute=yes
9946 export_dynamic_flag_spec='$wl-E'
9947
9948 # hardcode_minus_L: Not really in the search PATH,
9949 # but as the default location of the library.
9950 hardcode_minus_L=yes
9951 ;;
9952 esac
9953 fi
9954 ;;
9955
9956 irix5* | irix6* | nonstopux*)
9957 if test yes = "$GCC"; then
9958 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'
9959 # Try to use the -exported_symbol ld option, if it does not
9960 # work, assume that -exports_file does not work either and
9961 # implicitly export all symbols.
9962 # This should be the same for all languages, so no per-tag cache variable.
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9964 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9965 if ${lt_cv_irix_exported_symbol+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 save_LDFLAGS=$LDFLAGS
9969 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9972 int foo (void) { return 0; }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"; then :
9975 lt_cv_irix_exported_symbol=yes
9976 else
9977 lt_cv_irix_exported_symbol=no
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 LDFLAGS=$save_LDFLAGS
9982 fi
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9984 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9985 if test yes = "$lt_cv_irix_exported_symbol"; then
9986 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'
9987 fi
9988 else
9989 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'
9990 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'
9991 fi
9992 archive_cmds_need_lc='no'
9993 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9994 hardcode_libdir_separator=:
9995 inherit_rpath=yes
9996 link_all_deplibs=yes
9997 ;;
9998
9999 linux*)
10000 case $cc_basename in
10001 tcc*)
10002 # Fabrice Bellard et al's Tiny C Compiler
10003 ld_shlibs=yes
10004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10005 ;;
10006 esac
10007 ;;
10008
10009 netbsd*)
10010 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10012 else
10013 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10014 fi
10015 hardcode_libdir_flag_spec='-R$libdir'
10016 hardcode_direct=yes
10017 hardcode_shlibpath_var=no
10018 ;;
10019
10020 newsos6)
10021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_direct=yes
10023 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10024 hardcode_libdir_separator=:
10025 hardcode_shlibpath_var=no
10026 ;;
10027
10028 *nto* | *qnx*)
10029 ;;
10030
10031 openbsd* | bitrig*)
10032 if test -f /usr/libexec/ld.so; then
10033 hardcode_direct=yes
10034 hardcode_shlibpath_var=no
10035 hardcode_direct_absolute=yes
10036 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10037 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10038 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10039 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10040 export_dynamic_flag_spec='$wl-E'
10041 else
10042 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10043 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10044 fi
10045 else
10046 ld_shlibs=no
10047 fi
10048 ;;
10049
10050 os2*)
10051 hardcode_libdir_flag_spec='-L$libdir'
10052 hardcode_minus_L=yes
10053 allow_undefined_flag=unsupported
10054 shrext_cmds=.dll
10055 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10056 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10057 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10058 $ECHO EXPORTS >> $output_objdir/$libname.def~
10059 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10060 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10061 emximp -o $lib $output_objdir/$libname.def'
10062 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10063 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10064 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10065 $ECHO EXPORTS >> $output_objdir/$libname.def~
10066 prefix_cmds="$SED"~
10067 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10068 prefix_cmds="$prefix_cmds -e 1d";
10069 fi~
10070 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10071 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10072 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10073 emximp -o $lib $output_objdir/$libname.def'
10074 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10075 enable_shared_with_static_runtimes=yes
10076 ;;
10077
10078 osf3*)
10079 if test yes = "$GCC"; then
10080 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10081 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'
10082 else
10083 allow_undefined_flag=' -expect_unresolved \*'
10084 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'
10085 fi
10086 archive_cmds_need_lc='no'
10087 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10088 hardcode_libdir_separator=:
10089 ;;
10090
10091 osf4* | osf5*) # as osf3* with the addition of -msym flag
10092 if test yes = "$GCC"; then
10093 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10094 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'
10095 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10096 else
10097 allow_undefined_flag=' -expect_unresolved \*'
10098 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'
10099 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~
10100 $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'
10101
10102 # Both c and cxx compiler support -rpath directly
10103 hardcode_libdir_flag_spec='-rpath $libdir'
10104 fi
10105 archive_cmds_need_lc='no'
10106 hardcode_libdir_separator=:
10107 ;;
10108
10109 solaris*)
10110 no_undefined_flag=' -z defs'
10111 if test yes = "$GCC"; then
10112 wlarc='$wl'
10113 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10115 $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'
10116 else
10117 case `$CC -V 2>&1` in
10118 *"Compilers 5.0"*)
10119 wlarc=''
10120 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10122 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10123 ;;
10124 *)
10125 wlarc='$wl'
10126 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10127 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10128 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10129 ;;
10130 esac
10131 fi
10132 hardcode_libdir_flag_spec='-R$libdir'
10133 hardcode_shlibpath_var=no
10134 case $host_os in
10135 solaris2.[0-5] | solaris2.[0-5].*) ;;
10136 *)
10137 # The compiler driver will combine and reorder linker options,
10138 # but understands '-z linker_flag'. GCC discards it without '$wl',
10139 # but is careful enough not to reorder.
10140 # Supported since Solaris 2.6 (maybe 2.5.1?)
10141 if test yes = "$GCC"; then
10142 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10143 else
10144 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10145 fi
10146 ;;
10147 esac
10148 link_all_deplibs=yes
10149 ;;
10150
10151 sunos4*)
10152 if test sequent = "$host_vendor"; then
10153 # Use $CC to link under sequent, because it throws in some extra .o
10154 # files that make .init and .fini sections work.
10155 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10156 else
10157 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10158 fi
10159 hardcode_libdir_flag_spec='-L$libdir'
10160 hardcode_direct=yes
10161 hardcode_minus_L=yes
10162 hardcode_shlibpath_var=no
10163 ;;
10164
10165 sysv4)
10166 case $host_vendor in
10167 sni)
10168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169 hardcode_direct=yes # is this really true???
10170 ;;
10171 siemens)
10172 ## LD is ld it makes a PLAMLIB
10173 ## CC just makes a GrossModule.
10174 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10175 reload_cmds='$CC -r -o $output$reload_objs'
10176 hardcode_direct=no
10177 ;;
10178 motorola)
10179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10181 ;;
10182 esac
10183 runpath_var='LD_RUN_PATH'
10184 hardcode_shlibpath_var=no
10185 ;;
10186
10187 sysv4.3*)
10188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189 hardcode_shlibpath_var=no
10190 export_dynamic_flag_spec='-Bexport'
10191 ;;
10192
10193 sysv4*MP*)
10194 if test -d /usr/nec; then
10195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196 hardcode_shlibpath_var=no
10197 runpath_var=LD_RUN_PATH
10198 hardcode_runpath_var=yes
10199 ld_shlibs=yes
10200 fi
10201 ;;
10202
10203 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10204 no_undefined_flag='$wl-z,text'
10205 archive_cmds_need_lc=no
10206 hardcode_shlibpath_var=no
10207 runpath_var='LD_RUN_PATH'
10208
10209 if test yes = "$GCC"; then
10210 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10211 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212 else
10213 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 fi
10216 ;;
10217
10218 sysv5* | sco3.2v5* | sco5v6*)
10219 # Note: We CANNOT use -z defs as we might desire, because we do not
10220 # link with -lc, and that would cause any symbols used from libc to
10221 # always be unresolved, which means just about no library would
10222 # ever link correctly. If we're not using GNU ld we use -z text
10223 # though, which does catch some bad symbols but isn't as heavy-handed
10224 # as -z defs.
10225 no_undefined_flag='$wl-z,text'
10226 allow_undefined_flag='$wl-z,nodefs'
10227 archive_cmds_need_lc=no
10228 hardcode_shlibpath_var=no
10229 hardcode_libdir_flag_spec='$wl-R,$libdir'
10230 hardcode_libdir_separator=':'
10231 link_all_deplibs=yes
10232 export_dynamic_flag_spec='$wl-Bexport'
10233 runpath_var='LD_RUN_PATH'
10234
10235 if test yes = "$GCC"; then
10236 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 else
10239 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 fi
10242 ;;
10243
10244 uts4*)
10245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10246 hardcode_libdir_flag_spec='-L$libdir'
10247 hardcode_shlibpath_var=no
10248 ;;
10249
10250 *)
10251 ld_shlibs=no
10252 ;;
10253 esac
10254
10255 if test sni = "$host_vendor"; then
10256 case $host in
10257 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10258 export_dynamic_flag_spec='$wl-Blargedynsym'
10259 ;;
10260 esac
10261 fi
10262 fi
10263
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10265 $as_echo "$ld_shlibs" >&6; }
10266 test no = "$ld_shlibs" && can_build_shared=no
10267
10268 with_gnu_ld=$with_gnu_ld
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284 #
10285 # Do we need to explicitly link libc?
10286 #
10287 case "x$archive_cmds_need_lc" in
10288 x|xyes)
10289 # Assume -lc should be added
10290 archive_cmds_need_lc=yes
10291
10292 if test yes,yes = "$GCC,$enable_shared"; then
10293 case $archive_cmds in
10294 *'~'*)
10295 # FIXME: we may have to deal with multi-command sequences.
10296 ;;
10297 '$CC '*)
10298 # Test whether the compiler implicitly links with -lc since on some
10299 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10300 # to ld, don't add -lc before -lgcc.
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10302 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10303 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 $RM conftest*
10307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10308
10309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10310 (eval $ac_compile) 2>&5
10311 ac_status=$?
10312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10313 test $ac_status = 0; } 2>conftest.err; then
10314 soname=conftest
10315 lib=conftest
10316 libobjs=conftest.$ac_objext
10317 deplibs=
10318 wl=$lt_prog_compiler_wl
10319 pic_flag=$lt_prog_compiler_pic
10320 compiler_flags=-v
10321 linker_flags=-v
10322 verstring=
10323 output_objdir=.
10324 libname=conftest
10325 lt_save_allow_undefined_flag=$allow_undefined_flag
10326 allow_undefined_flag=
10327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10328 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10329 ac_status=$?
10330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10331 test $ac_status = 0; }
10332 then
10333 lt_cv_archive_cmds_need_lc=no
10334 else
10335 lt_cv_archive_cmds_need_lc=yes
10336 fi
10337 allow_undefined_flag=$lt_save_allow_undefined_flag
10338 else
10339 cat conftest.err 1>&5
10340 fi
10341 $RM conftest*
10342
10343 fi
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10345 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10346 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10347 ;;
10348 esac
10349 fi
10350 ;;
10351 esac
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10505 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10506
10507 if test yes = "$GCC"; then
10508 case $host_os in
10509 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10510 *) lt_awk_arg='/^libraries:/' ;;
10511 esac
10512 case $host_os in
10513 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10514 *) lt_sed_strip_eq='s|=/|/|g' ;;
10515 esac
10516 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10517 case $lt_search_path_spec in
10518 *\;*)
10519 # if the path contains ";" then we assume it to be the separator
10520 # otherwise default to the standard path separator (i.e. ":") - it is
10521 # assumed that no part of a normal pathname contains ";" but that should
10522 # okay in the real world where ";" in dirpaths is itself problematic.
10523 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10524 ;;
10525 *)
10526 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10527 ;;
10528 esac
10529 # Ok, now we have the path, separated by spaces, we can step through it
10530 # and add multilib dir if necessary...
10531 lt_tmp_lt_search_path_spec=
10532 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10533 # ...but if some path component already ends with the multilib dir we assume
10534 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10535 case "$lt_multi_os_dir; $lt_search_path_spec " in
10536 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10537 lt_multi_os_dir=
10538 ;;
10539 esac
10540 for lt_sys_path in $lt_search_path_spec; do
10541 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10542 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10543 elif test -n "$lt_multi_os_dir"; then
10544 test -d "$lt_sys_path" && \
10545 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10546 fi
10547 done
10548 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10549 BEGIN {RS = " "; FS = "/|\n";} {
10550 lt_foo = "";
10551 lt_count = 0;
10552 for (lt_i = NF; lt_i > 0; lt_i--) {
10553 if ($lt_i != "" && $lt_i != ".") {
10554 if ($lt_i == "..") {
10555 lt_count++;
10556 } else {
10557 if (lt_count == 0) {
10558 lt_foo = "/" $lt_i lt_foo;
10559 } else {
10560 lt_count--;
10561 }
10562 }
10563 }
10564 }
10565 if (lt_foo != "") { lt_freq[lt_foo]++; }
10566 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10567 }'`
10568 # AWK program above erroneously prepends '/' to C:/dos/paths
10569 # for these hosts.
10570 case $host_os in
10571 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10572 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10573 esac
10574 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10575 else
10576 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10577 fi
10578 library_names_spec=
10579 libname_spec='lib$name'
10580 soname_spec=
10581 shrext_cmds=.so
10582 postinstall_cmds=
10583 postuninstall_cmds=
10584 finish_cmds=
10585 finish_eval=
10586 shlibpath_var=
10587 shlibpath_overrides_runpath=unknown
10588 version_type=none
10589 dynamic_linker="$host_os ld.so"
10590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10591 need_lib_prefix=unknown
10592 hardcode_into_libs=no
10593
10594 # when you set need_version to no, make sure it does not cause -set_version
10595 # flags to be left without arguments
10596 need_version=unknown
10597
10598
10599
10600 case $host_os in
10601 aix3*)
10602 version_type=linux # correct to gnu/linux during the next big refactor
10603 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10604 shlibpath_var=LIBPATH
10605
10606 # AIX 3 has no versioning support, so we append a major version to the name.
10607 soname_spec='$libname$release$shared_ext$major'
10608 ;;
10609
10610 aix[4-9]*)
10611 version_type=linux # correct to gnu/linux during the next big refactor
10612 need_lib_prefix=no
10613 need_version=no
10614 hardcode_into_libs=yes
10615 if test ia64 = "$host_cpu"; then
10616 # AIX 5 supports IA64
10617 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 else
10620 # With GCC up to 2.95.x, collect2 would create an import file
10621 # for dependence libraries. The import file would start with
10622 # the line '#! .'. This would cause the generated library to
10623 # depend on '.', always an invalid library. This was fixed in
10624 # development snapshots of GCC prior to 3.0.
10625 case $host_os in
10626 aix4 | aix4.[01] | aix4.[01].*)
10627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10628 echo ' yes '
10629 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10630 :
10631 else
10632 can_build_shared=no
10633 fi
10634 ;;
10635 esac
10636 # Using Import Files as archive members, it is possible to support
10637 # filename-based versioning of shared library archives on AIX. While
10638 # this would work for both with and without runtime linking, it will
10639 # prevent static linking of such archives. So we do filename-based
10640 # shared library versioning with .so extension only, which is used
10641 # when both runtime linking and shared linking is enabled.
10642 # Unfortunately, runtime linking may impact performance, so we do
10643 # not want this to be the default eventually. Also, we use the
10644 # versioned .so libs for executables only if there is the -brtl
10645 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10646 # To allow for filename-based versioning support, we need to create
10647 # libNAME.so.V as an archive file, containing:
10648 # *) an Import File, referring to the versioned filename of the
10649 # archive as well as the shared archive member, telling the
10650 # bitwidth (32 or 64) of that shared object, and providing the
10651 # list of exported symbols of that shared object, eventually
10652 # decorated with the 'weak' keyword
10653 # *) the shared object with the F_LOADONLY flag set, to really avoid
10654 # it being seen by the linker.
10655 # At run time we better use the real file rather than another symlink,
10656 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10657
10658 case $with_aix_soname,$aix_use_runtimelinking in
10659 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10660 # soname into executable. Probably we can add versioning support to
10661 # collect2, so additional links can be useful in future.
10662 aix,yes) # traditional libtool
10663 dynamic_linker='AIX unversionable lib.so'
10664 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10665 # instead of lib<name>.a to let people know that these are not
10666 # typical AIX shared libraries.
10667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10668 ;;
10669 aix,no) # traditional AIX only
10670 dynamic_linker='AIX lib.a(lib.so.V)'
10671 # We preserve .a as extension for shared libraries through AIX4.2
10672 # and later when we are not doing run time linking.
10673 library_names_spec='$libname$release.a $libname.a'
10674 soname_spec='$libname$release$shared_ext$major'
10675 ;;
10676 svr4,*) # full svr4 only
10677 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10678 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10679 # We do not specify a path in Import Files, so LIBPATH fires.
10680 shlibpath_overrides_runpath=yes
10681 ;;
10682 *,yes) # both, prefer svr4
10683 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10684 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10685 # unpreferred sharedlib libNAME.a needs extra handling
10686 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"'
10687 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"'
10688 # We do not specify a path in Import Files, so LIBPATH fires.
10689 shlibpath_overrides_runpath=yes
10690 ;;
10691 *,no) # both, prefer aix
10692 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10693 library_names_spec='$libname$release.a $libname.a'
10694 soname_spec='$libname$release$shared_ext$major'
10695 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10696 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)'
10697 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"'
10698 ;;
10699 esac
10700 shlibpath_var=LIBPATH
10701 fi
10702 ;;
10703
10704 amigaos*)
10705 case $host_cpu in
10706 powerpc)
10707 # Since July 2007 AmigaOS4 officially supports .so libraries.
10708 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10710 ;;
10711 m68k)
10712 library_names_spec='$libname.ixlibrary $libname.a'
10713 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10714 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'
10715 ;;
10716 esac
10717 ;;
10718
10719 beos*)
10720 library_names_spec='$libname$shared_ext'
10721 dynamic_linker="$host_os ld.so"
10722 shlibpath_var=LIBRARY_PATH
10723 ;;
10724
10725 bsdi[45]*)
10726 version_type=linux # correct to gnu/linux during the next big refactor
10727 need_version=no
10728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10729 soname_spec='$libname$release$shared_ext$major'
10730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10731 shlibpath_var=LD_LIBRARY_PATH
10732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10734 # the default ld.so.conf also contains /usr/contrib/lib and
10735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10736 # libtool to hard-code these into programs
10737 ;;
10738
10739 cygwin* | mingw* | pw32* | cegcc*)
10740 version_type=windows
10741 shrext_cmds=.dll
10742 need_version=no
10743 need_lib_prefix=no
10744
10745 case $GCC,$cc_basename in
10746 yes,*)
10747 # gcc
10748 library_names_spec='$libname.dll.a'
10749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10750 postinstall_cmds='base_file=`basename \$file`~
10751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10752 dldir=$destdir/`dirname \$dlpath`~
10753 test -d \$dldir || mkdir -p \$dldir~
10754 $install_prog $dir/$dlname \$dldir/$dlname~
10755 chmod a+x \$dldir/$dlname~
10756 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10757 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10758 fi'
10759 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10760 dlpath=$dir/\$dldll~
10761 $RM \$dlpath'
10762 shlibpath_overrides_runpath=yes
10763
10764 case $host_os in
10765 cygwin*)
10766 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10767 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10768
10769 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10770 ;;
10771 mingw* | cegcc*)
10772 # MinGW DLLs use traditional 'lib' prefix
10773 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10774 ;;
10775 pw32*)
10776 # pw32 DLLs use 'pw' prefix rather than 'lib'
10777 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10778 ;;
10779 esac
10780 dynamic_linker='Win32 ld.exe'
10781 ;;
10782
10783 *,cl*)
10784 # Native MSVC
10785 libname_spec='$name'
10786 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10787 library_names_spec='$libname.dll.lib'
10788
10789 case $build_os in
10790 mingw*)
10791 sys_lib_search_path_spec=
10792 lt_save_ifs=$IFS
10793 IFS=';'
10794 for lt_path in $LIB
10795 do
10796 IFS=$lt_save_ifs
10797 # Let DOS variable expansion print the short 8.3 style file name.
10798 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10799 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10800 done
10801 IFS=$lt_save_ifs
10802 # Convert to MSYS style.
10803 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10804 ;;
10805 cygwin*)
10806 # Convert to unix form, then to dos form, then back to unix form
10807 # but this time dos style (no spaces!) so that the unix form looks
10808 # like /cygdrive/c/PROGRA~1:/cygdr...
10809 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10810 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10811 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10812 ;;
10813 *)
10814 sys_lib_search_path_spec=$LIB
10815 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10816 # It is most probably a Windows format PATH.
10817 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10818 else
10819 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10820 fi
10821 # FIXME: find the short name or the path components, as spaces are
10822 # common. (e.g. "Program Files" -> "PROGRA~1")
10823 ;;
10824 esac
10825
10826 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10827 postinstall_cmds='base_file=`basename \$file`~
10828 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10829 dldir=$destdir/`dirname \$dlpath`~
10830 test -d \$dldir || mkdir -p \$dldir~
10831 $install_prog $dir/$dlname \$dldir/$dlname'
10832 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10833 dlpath=$dir/\$dldll~
10834 $RM \$dlpath'
10835 shlibpath_overrides_runpath=yes
10836 dynamic_linker='Win32 link.exe'
10837 ;;
10838
10839 *)
10840 # Assume MSVC wrapper
10841 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10842 dynamic_linker='Win32 ld.exe'
10843 ;;
10844 esac
10845 # FIXME: first we should search . and the directory the executable is in
10846 shlibpath_var=PATH
10847 ;;
10848
10849 darwin* | rhapsody*)
10850 dynamic_linker="$host_os dyld"
10851 version_type=darwin
10852 need_lib_prefix=no
10853 need_version=no
10854 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10855 soname_spec='$libname$release$major$shared_ext'
10856 shlibpath_overrides_runpath=yes
10857 shlibpath_var=DYLD_LIBRARY_PATH
10858 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10859
10860 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10861 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10862 ;;
10863
10864 dgux*)
10865 version_type=linux # correct to gnu/linux during the next big refactor
10866 need_lib_prefix=no
10867 need_version=no
10868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10869 soname_spec='$libname$release$shared_ext$major'
10870 shlibpath_var=LD_LIBRARY_PATH
10871 ;;
10872
10873 freebsd* | dragonfly*)
10874 # DragonFly does not have aout. When/if they implement a new
10875 # versioning mechanism, adjust this.
10876 if test -x /usr/bin/objformat; then
10877 objformat=`/usr/bin/objformat`
10878 else
10879 case $host_os in
10880 freebsd[23].*) objformat=aout ;;
10881 *) objformat=elf ;;
10882 esac
10883 fi
10884 version_type=freebsd-$objformat
10885 case $version_type in
10886 freebsd-elf*)
10887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10888 soname_spec='$libname$release$shared_ext$major'
10889 need_version=no
10890 need_lib_prefix=no
10891 ;;
10892 freebsd-*)
10893 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10894 need_version=yes
10895 ;;
10896 esac
10897 shlibpath_var=LD_LIBRARY_PATH
10898 case $host_os in
10899 freebsd2.*)
10900 shlibpath_overrides_runpath=yes
10901 ;;
10902 freebsd3.[01]* | freebsdelf3.[01]*)
10903 shlibpath_overrides_runpath=yes
10904 hardcode_into_libs=yes
10905 ;;
10906 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10907 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10908 shlibpath_overrides_runpath=no
10909 hardcode_into_libs=yes
10910 ;;
10911 *) # from 4.6 on, and DragonFly
10912 shlibpath_overrides_runpath=yes
10913 hardcode_into_libs=yes
10914 ;;
10915 esac
10916 ;;
10917
10918 haiku*)
10919 version_type=linux # correct to gnu/linux during the next big refactor
10920 need_lib_prefix=no
10921 need_version=no
10922 dynamic_linker="$host_os runtime_loader"
10923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10924 soname_spec='$libname$release$shared_ext$major'
10925 shlibpath_var=LIBRARY_PATH
10926 shlibpath_overrides_runpath=no
10927 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10928 hardcode_into_libs=yes
10929 ;;
10930
10931 hpux9* | hpux10* | hpux11*)
10932 # Give a soname corresponding to the major version so that dld.sl refuses to
10933 # link against other versions.
10934 version_type=sunos
10935 need_lib_prefix=no
10936 need_version=no
10937 case $host_cpu in
10938 ia64*)
10939 shrext_cmds='.so'
10940 hardcode_into_libs=yes
10941 dynamic_linker="$host_os dld.so"
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10945 soname_spec='$libname$release$shared_ext$major'
10946 if test 32 = "$HPUX_IA64_MODE"; then
10947 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10948 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10949 else
10950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10951 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10952 fi
10953 ;;
10954 hppa*64*)
10955 shrext_cmds='.sl'
10956 hardcode_into_libs=yes
10957 dynamic_linker="$host_os dld.sl"
10958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10961 soname_spec='$libname$release$shared_ext$major'
10962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10964 ;;
10965 *)
10966 shrext_cmds='.sl'
10967 dynamic_linker="$host_os dld.sl"
10968 shlibpath_var=SHLIB_PATH
10969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10971 soname_spec='$libname$release$shared_ext$major'
10972 ;;
10973 esac
10974 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10975 postinstall_cmds='chmod 555 $lib'
10976 # or fails outright, so override atomically:
10977 install_override_mode=555
10978 ;;
10979
10980 interix[3-9]*)
10981 version_type=linux # correct to gnu/linux during the next big refactor
10982 need_lib_prefix=no
10983 need_version=no
10984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10985 soname_spec='$libname$release$shared_ext$major'
10986 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 shlibpath_overrides_runpath=no
10989 hardcode_into_libs=yes
10990 ;;
10991
10992 irix5* | irix6* | nonstopux*)
10993 case $host_os in
10994 nonstopux*) version_type=nonstopux ;;
10995 *)
10996 if test yes = "$lt_cv_prog_gnu_ld"; then
10997 version_type=linux # correct to gnu/linux during the next big refactor
10998 else
10999 version_type=irix
11000 fi ;;
11001 esac
11002 need_lib_prefix=no
11003 need_version=no
11004 soname_spec='$libname$release$shared_ext$major'
11005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11006 case $host_os in
11007 irix5* | nonstopux*)
11008 libsuff= shlibsuff=
11009 ;;
11010 *)
11011 case $LD in # libtool.m4 will add one of these switches to LD
11012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11013 libsuff= shlibsuff= libmagic=32-bit;;
11014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11015 libsuff=32 shlibsuff=N32 libmagic=N32;;
11016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11018 *) libsuff= shlibsuff= libmagic=never-match;;
11019 esac
11020 ;;
11021 esac
11022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11023 shlibpath_overrides_runpath=no
11024 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11025 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11026 hardcode_into_libs=yes
11027 ;;
11028
11029 # No shared lib support for Linux oldld, aout, or coff.
11030 linux*oldld* | linux*aout* | linux*coff*)
11031 dynamic_linker=no
11032 ;;
11033
11034 linux*android*)
11035 version_type=none # Android doesn't support versioned libraries.
11036 need_lib_prefix=no
11037 need_version=no
11038 library_names_spec='$libname$release$shared_ext'
11039 soname_spec='$libname$release$shared_ext'
11040 finish_cmds=
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=yes
11043
11044 # This implies no fast_install, which is unacceptable.
11045 # Some rework will be needed to allow for fast_install
11046 # before this can be enabled.
11047 hardcode_into_libs=yes
11048
11049 dynamic_linker='Android linker'
11050 # Don't embed -rpath directories since the linker doesn't support them.
11051 hardcode_libdir_flag_spec='-L$libdir'
11052 ;;
11053
11054 # This must be glibc/ELF.
11055 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11056 version_type=linux # correct to gnu/linux during the next big refactor
11057 need_lib_prefix=no
11058 need_version=no
11059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11060 soname_spec='$libname$release$shared_ext$major'
11061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11062 shlibpath_var=LD_LIBRARY_PATH
11063 shlibpath_overrides_runpath=no
11064
11065 # Some binutils ld are patched to set DT_RUNPATH
11066 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 lt_cv_shlibpath_overrides_runpath=no
11070 save_LDFLAGS=$LDFLAGS
11071 save_libdir=$libdir
11072 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11073 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11076
11077 int
11078 main ()
11079 {
11080
11081 ;
11082 return 0;
11083 }
11084 _ACEOF
11085 if ac_fn_c_try_link "$LINENO"; then :
11086 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11087 lt_cv_shlibpath_overrides_runpath=yes
11088 fi
11089 fi
11090 rm -f core conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
11092 LDFLAGS=$save_LDFLAGS
11093 libdir=$save_libdir
11094
11095 fi
11096
11097 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11098
11099 # This implies no fast_install, which is unacceptable.
11100 # Some rework will be needed to allow for fast_install
11101 # before this can be enabled.
11102 hardcode_into_libs=yes
11103
11104 # Add ABI-specific directories to the system library path.
11105 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11106
11107 # Ideally, we could use ldconfig to report *all* directores which are
11108 # searched for libraries, however this is still not possible. Aside from not
11109 # being certain /sbin/ldconfig is available, command
11110 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11111 # even though it is searched at run-time. Try to do the best guess by
11112 # appending ld.so.conf contents (and includes) to the search path.
11113 if test -f /etc/ld.so.conf; then
11114 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' ' '`
11115 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11116 fi
11117
11118 # We used to test for /lib/ld.so.1 and disable shared libraries on
11119 # powerpc, because MkLinux only supported shared libraries with the
11120 # GNU dynamic linker. Since this was broken with cross compilers,
11121 # most powerpc-linux boxes support dynamic linking these days and
11122 # people can always --disable-shared, the test was removed, and we
11123 # assume the GNU/Linux dynamic linker is in use.
11124 dynamic_linker='GNU/Linux ld.so'
11125 ;;
11126
11127 netbsd*)
11128 version_type=sunos
11129 need_lib_prefix=no
11130 need_version=no
11131 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11132 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11134 dynamic_linker='NetBSD (a.out) ld.so'
11135 else
11136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137 soname_spec='$libname$release$shared_ext$major'
11138 dynamic_linker='NetBSD ld.elf_so'
11139 fi
11140 shlibpath_var=LD_LIBRARY_PATH
11141 shlibpath_overrides_runpath=yes
11142 hardcode_into_libs=yes
11143 ;;
11144
11145 newsos6)
11146 version_type=linux # correct to gnu/linux during the next big refactor
11147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 shlibpath_overrides_runpath=yes
11150 ;;
11151
11152 *nto* | *qnx*)
11153 version_type=qnx
11154 need_lib_prefix=no
11155 need_version=no
11156 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11157 soname_spec='$libname$release$shared_ext$major'
11158 shlibpath_var=LD_LIBRARY_PATH
11159 shlibpath_overrides_runpath=no
11160 hardcode_into_libs=yes
11161 dynamic_linker='ldqnx.so'
11162 ;;
11163
11164 openbsd* | bitrig*)
11165 version_type=sunos
11166 sys_lib_dlsearch_path_spec=/usr/lib
11167 need_lib_prefix=no
11168 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11169 need_version=no
11170 else
11171 need_version=yes
11172 fi
11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=yes
11177 ;;
11178
11179 os2*)
11180 libname_spec='$name'
11181 version_type=windows
11182 shrext_cmds=.dll
11183 need_version=no
11184 need_lib_prefix=no
11185 # OS/2 can only load a DLL with a base name of 8 characters or less.
11186 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11187 v=$($ECHO $release$versuffix | tr -d .-);
11188 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11189 $ECHO $n$v`$shared_ext'
11190 library_names_spec='${libname}_dll.$libext'
11191 dynamic_linker='OS/2 ld.exe'
11192 shlibpath_var=BEGINLIBPATH
11193 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11195 postinstall_cmds='base_file=`basename \$file`~
11196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11197 dldir=$destdir/`dirname \$dlpath`~
11198 test -d \$dldir || mkdir -p \$dldir~
11199 $install_prog $dir/$dlname \$dldir/$dlname~
11200 chmod a+x \$dldir/$dlname~
11201 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11202 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11203 fi'
11204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11205 dlpath=$dir/\$dldll~
11206 $RM \$dlpath'
11207 ;;
11208
11209 osf3* | osf4* | osf5*)
11210 version_type=osf
11211 need_lib_prefix=no
11212 need_version=no
11213 soname_spec='$libname$release$shared_ext$major'
11214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11218 ;;
11219
11220 rdos*)
11221 dynamic_linker=no
11222 ;;
11223
11224 solaris*)
11225 version_type=linux # correct to gnu/linux during the next big refactor
11226 need_lib_prefix=no
11227 need_version=no
11228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11229 soname_spec='$libname$release$shared_ext$major'
11230 shlibpath_var=LD_LIBRARY_PATH
11231 shlibpath_overrides_runpath=yes
11232 hardcode_into_libs=yes
11233 # ldd complains unless libraries are executable
11234 postinstall_cmds='chmod +x $lib'
11235 ;;
11236
11237 sunos4*)
11238 version_type=sunos
11239 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11240 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 shlibpath_overrides_runpath=yes
11243 if test yes = "$with_gnu_ld"; then
11244 need_lib_prefix=no
11245 fi
11246 need_version=yes
11247 ;;
11248
11249 sysv4 | sysv4.3*)
11250 version_type=linux # correct to gnu/linux during the next big refactor
11251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11252 soname_spec='$libname$release$shared_ext$major'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 case $host_vendor in
11255 sni)
11256 shlibpath_overrides_runpath=no
11257 need_lib_prefix=no
11258 runpath_var=LD_RUN_PATH
11259 ;;
11260 siemens)
11261 need_lib_prefix=no
11262 ;;
11263 motorola)
11264 need_lib_prefix=no
11265 need_version=no
11266 shlibpath_overrides_runpath=no
11267 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11268 ;;
11269 esac
11270 ;;
11271
11272 sysv4*MP*)
11273 if test -d /usr/nec; then
11274 version_type=linux # correct to gnu/linux during the next big refactor
11275 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11276 soname_spec='$libname$shared_ext.$major'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 fi
11279 ;;
11280
11281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11282 version_type=sco
11283 need_lib_prefix=no
11284 need_version=no
11285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11286 soname_spec='$libname$release$shared_ext$major'
11287 shlibpath_var=LD_LIBRARY_PATH
11288 shlibpath_overrides_runpath=yes
11289 hardcode_into_libs=yes
11290 if test yes = "$with_gnu_ld"; then
11291 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11292 else
11293 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11294 case $host_os in
11295 sco3.2v5*)
11296 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11297 ;;
11298 esac
11299 fi
11300 sys_lib_dlsearch_path_spec='/usr/lib'
11301 ;;
11302
11303 tpf*)
11304 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11305 version_type=linux # correct to gnu/linux during the next big refactor
11306 need_lib_prefix=no
11307 need_version=no
11308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11309 shlibpath_var=LD_LIBRARY_PATH
11310 shlibpath_overrides_runpath=no
11311 hardcode_into_libs=yes
11312 ;;
11313
11314 uts4*)
11315 version_type=linux # correct to gnu/linux during the next big refactor
11316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11317 soname_spec='$libname$release$shared_ext$major'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 ;;
11320
11321 *)
11322 dynamic_linker=no
11323 ;;
11324 esac
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11326 $as_echo "$dynamic_linker" >&6; }
11327 test no = "$dynamic_linker" && can_build_shared=no
11328
11329 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11330 if test yes = "$GCC"; then
11331 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11332 fi
11333
11334 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11335 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11336 fi
11337
11338 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11339 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11340 fi
11341
11342 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11343 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11344
11345 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11346 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11347
11348 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11349 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11448 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11449 hardcode_action=
11450 if test -n "$hardcode_libdir_flag_spec" ||
11451 test -n "$runpath_var" ||
11452 test yes = "$hardcode_automatic"; then
11453
11454 # We can hardcode non-existent directories.
11455 if test no != "$hardcode_direct" &&
11456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11457 # have to relink, otherwise we might link with an installed library
11458 # when we should be linking with a yet-to-be-installed one
11459 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11460 test no != "$hardcode_minus_L"; then
11461 # Linking always hardcodes the temporary library directory.
11462 hardcode_action=relink
11463 else
11464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11465 hardcode_action=immediate
11466 fi
11467 else
11468 # We cannot hardcode anything, or else we can only hardcode existing
11469 # directories.
11470 hardcode_action=unsupported
11471 fi
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11473 $as_echo "$hardcode_action" >&6; }
11474
11475 if test relink = "$hardcode_action" ||
11476 test yes = "$inherit_rpath"; then
11477 # Fast installation is not supported
11478 enable_fast_install=no
11479 elif test yes = "$shlibpath_overrides_runpath" ||
11480 test no = "$enable_shared"; then
11481 # Fast installation is not necessary
11482 enable_fast_install=needless
11483 fi
11484
11485
11486
11487
11488
11489
11490 if test yes != "$enable_dlopen"; then
11491 enable_dlopen=unknown
11492 enable_dlopen_self=unknown
11493 enable_dlopen_self_static=unknown
11494 else
11495 lt_cv_dlopen=no
11496 lt_cv_dlopen_libs=
11497
11498 case $host_os in
11499 beos*)
11500 lt_cv_dlopen=load_add_on
11501 lt_cv_dlopen_libs=
11502 lt_cv_dlopen_self=yes
11503 ;;
11504
11505 mingw* | pw32* | cegcc*)
11506 lt_cv_dlopen=LoadLibrary
11507 lt_cv_dlopen_libs=
11508 ;;
11509
11510 cygwin*)
11511 lt_cv_dlopen=dlopen
11512 lt_cv_dlopen_libs=
11513 ;;
11514
11515 darwin*)
11516 # if libdl is installed we need to link against it
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11518 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11519 if ${ac_cv_lib_dl_dlopen+:} false; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 ac_check_lib_save_LIBS=$LIBS
11523 LIBS="-ldl $LIBS"
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11526
11527 /* Override any GCC internal prototype to avoid an error.
11528 Use char because int might match the return type of a GCC
11529 builtin and then its argument prototype would still apply. */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char dlopen ();
11534 int
11535 main ()
11536 {
11537 return dlopen ();
11538 ;
11539 return 0;
11540 }
11541 _ACEOF
11542 if ac_fn_c_try_link "$LINENO"; then :
11543 ac_cv_lib_dl_dlopen=yes
11544 else
11545 ac_cv_lib_dl_dlopen=no
11546 fi
11547 rm -f core conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11550 fi
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11552 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11553 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11554 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11555 else
11556
11557 lt_cv_dlopen=dyld
11558 lt_cv_dlopen_libs=
11559 lt_cv_dlopen_self=yes
11560
11561 fi
11562
11563 ;;
11564
11565 tpf*)
11566 # Don't try to run any link tests for TPF. We know it's impossible
11567 # because TPF is a cross-compiler, and we know how we open DSOs.
11568 lt_cv_dlopen=dlopen
11569 lt_cv_dlopen_libs=
11570 lt_cv_dlopen_self=no
11571 ;;
11572
11573 *)
11574 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11575 if test "x$ac_cv_func_shl_load" = xyes; then :
11576 lt_cv_dlopen=shl_load
11577 else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11579 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11580 if ${ac_cv_lib_dld_shl_load+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 ac_check_lib_save_LIBS=$LIBS
11584 LIBS="-ldld $LIBS"
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11587
11588 /* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
11591 #ifdef __cplusplus
11592 extern "C"
11593 #endif
11594 char shl_load ();
11595 int
11596 main ()
11597 {
11598 return shl_load ();
11599 ;
11600 return 0;
11601 }
11602 _ACEOF
11603 if ac_fn_c_try_link "$LINENO"; then :
11604 ac_cv_lib_dld_shl_load=yes
11605 else
11606 ac_cv_lib_dld_shl_load=no
11607 fi
11608 rm -f core conftest.err conftest.$ac_objext \
11609 conftest$ac_exeext conftest.$ac_ext
11610 LIBS=$ac_check_lib_save_LIBS
11611 fi
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11613 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11614 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11615 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11616 else
11617 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11618 if test "x$ac_cv_func_dlopen" = xyes; then :
11619 lt_cv_dlopen=dlopen
11620 else
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11622 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11623 if ${ac_cv_lib_dl_dlopen+:} false; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 ac_check_lib_save_LIBS=$LIBS
11627 LIBS="-ldl $LIBS"
11628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h. */
11630
11631 /* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 char dlopen ();
11638 int
11639 main ()
11640 {
11641 return dlopen ();
11642 ;
11643 return 0;
11644 }
11645 _ACEOF
11646 if ac_fn_c_try_link "$LINENO"; then :
11647 ac_cv_lib_dl_dlopen=yes
11648 else
11649 ac_cv_lib_dl_dlopen=no
11650 fi
11651 rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11653 LIBS=$ac_check_lib_save_LIBS
11654 fi
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11656 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11657 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11658 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11659 else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11661 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11662 if ${ac_cv_lib_svld_dlopen+:} false; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665 ac_check_lib_save_LIBS=$LIBS
11666 LIBS="-lsvld $LIBS"
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669
11670 /* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11673 #ifdef __cplusplus
11674 extern "C"
11675 #endif
11676 char dlopen ();
11677 int
11678 main ()
11679 {
11680 return dlopen ();
11681 ;
11682 return 0;
11683 }
11684 _ACEOF
11685 if ac_fn_c_try_link "$LINENO"; then :
11686 ac_cv_lib_svld_dlopen=yes
11687 else
11688 ac_cv_lib_svld_dlopen=no
11689 fi
11690 rm -f core conftest.err conftest.$ac_objext \
11691 conftest$ac_exeext conftest.$ac_ext
11692 LIBS=$ac_check_lib_save_LIBS
11693 fi
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11695 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11696 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11697 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11698 else
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11700 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11701 if ${ac_cv_lib_dld_dld_link+:} false; then :
11702 $as_echo_n "(cached) " >&6
11703 else
11704 ac_check_lib_save_LIBS=$LIBS
11705 LIBS="-ldld $LIBS"
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11708
11709 /* Override any GCC internal prototype to avoid an error.
11710 Use char because int might match the return type of a GCC
11711 builtin and then its argument prototype would still apply. */
11712 #ifdef __cplusplus
11713 extern "C"
11714 #endif
11715 char dld_link ();
11716 int
11717 main ()
11718 {
11719 return dld_link ();
11720 ;
11721 return 0;
11722 }
11723 _ACEOF
11724 if ac_fn_c_try_link "$LINENO"; then :
11725 ac_cv_lib_dld_dld_link=yes
11726 else
11727 ac_cv_lib_dld_dld_link=no
11728 fi
11729 rm -f core conftest.err conftest.$ac_objext \
11730 conftest$ac_exeext conftest.$ac_ext
11731 LIBS=$ac_check_lib_save_LIBS
11732 fi
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11734 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11735 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11736 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11737 fi
11738
11739
11740 fi
11741
11742
11743 fi
11744
11745
11746 fi
11747
11748
11749 fi
11750
11751
11752 fi
11753
11754 ;;
11755 esac
11756
11757 if test no = "$lt_cv_dlopen"; then
11758 enable_dlopen=no
11759 else
11760 enable_dlopen=yes
11761 fi
11762
11763 case $lt_cv_dlopen in
11764 dlopen)
11765 save_CPPFLAGS=$CPPFLAGS
11766 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11767
11768 save_LDFLAGS=$LDFLAGS
11769 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11770
11771 save_LIBS=$LIBS
11772 LIBS="$lt_cv_dlopen_libs $LIBS"
11773
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11775 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11776 if ${lt_cv_dlopen_self+:} false; then :
11777 $as_echo_n "(cached) " >&6
11778 else
11779 if test yes = "$cross_compiling"; then :
11780 lt_cv_dlopen_self=cross
11781 else
11782 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11783 lt_status=$lt_dlunknown
11784 cat > conftest.$ac_ext <<_LT_EOF
11785 #line $LINENO "configure"
11786 #include "confdefs.h"
11787
11788 #if HAVE_DLFCN_H
11789 #include <dlfcn.h>
11790 #endif
11791
11792 #include <stdio.h>
11793
11794 #ifdef RTLD_GLOBAL
11795 # define LT_DLGLOBAL RTLD_GLOBAL
11796 #else
11797 # ifdef DL_GLOBAL
11798 # define LT_DLGLOBAL DL_GLOBAL
11799 # else
11800 # define LT_DLGLOBAL 0
11801 # endif
11802 #endif
11803
11804 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11805 find out it does not work in some platform. */
11806 #ifndef LT_DLLAZY_OR_NOW
11807 # ifdef RTLD_LAZY
11808 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11809 # else
11810 # ifdef DL_LAZY
11811 # define LT_DLLAZY_OR_NOW DL_LAZY
11812 # else
11813 # ifdef RTLD_NOW
11814 # define LT_DLLAZY_OR_NOW RTLD_NOW
11815 # else
11816 # ifdef DL_NOW
11817 # define LT_DLLAZY_OR_NOW DL_NOW
11818 # else
11819 # define LT_DLLAZY_OR_NOW 0
11820 # endif
11821 # endif
11822 # endif
11823 # endif
11824 #endif
11825
11826 /* When -fvisibility=hidden is used, assume the code has been annotated
11827 correspondingly for the symbols needed. */
11828 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11829 int fnord () __attribute__((visibility("default")));
11830 #endif
11831
11832 int fnord () { return 42; }
11833 int main ()
11834 {
11835 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11836 int status = $lt_dlunknown;
11837
11838 if (self)
11839 {
11840 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11841 else
11842 {
11843 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11844 else puts (dlerror ());
11845 }
11846 /* dlclose (self); */
11847 }
11848 else
11849 puts (dlerror ());
11850
11851 return status;
11852 }
11853 _LT_EOF
11854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11855 (eval $ac_link) 2>&5
11856 ac_status=$?
11857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11858 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11859 (./conftest; exit; ) >&5 2>/dev/null
11860 lt_status=$?
11861 case x$lt_status in
11862 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11863 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11864 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11865 esac
11866 else :
11867 # compilation failed
11868 lt_cv_dlopen_self=no
11869 fi
11870 fi
11871 rm -fr conftest*
11872
11873
11874 fi
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11876 $as_echo "$lt_cv_dlopen_self" >&6; }
11877
11878 if test yes = "$lt_cv_dlopen_self"; then
11879 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11881 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11882 if ${lt_cv_dlopen_self_static+:} false; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 if test yes = "$cross_compiling"; then :
11886 lt_cv_dlopen_self_static=cross
11887 else
11888 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11889 lt_status=$lt_dlunknown
11890 cat > conftest.$ac_ext <<_LT_EOF
11891 #line $LINENO "configure"
11892 #include "confdefs.h"
11893
11894 #if HAVE_DLFCN_H
11895 #include <dlfcn.h>
11896 #endif
11897
11898 #include <stdio.h>
11899
11900 #ifdef RTLD_GLOBAL
11901 # define LT_DLGLOBAL RTLD_GLOBAL
11902 #else
11903 # ifdef DL_GLOBAL
11904 # define LT_DLGLOBAL DL_GLOBAL
11905 # else
11906 # define LT_DLGLOBAL 0
11907 # endif
11908 #endif
11909
11910 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11911 find out it does not work in some platform. */
11912 #ifndef LT_DLLAZY_OR_NOW
11913 # ifdef RTLD_LAZY
11914 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11915 # else
11916 # ifdef DL_LAZY
11917 # define LT_DLLAZY_OR_NOW DL_LAZY
11918 # else
11919 # ifdef RTLD_NOW
11920 # define LT_DLLAZY_OR_NOW RTLD_NOW
11921 # else
11922 # ifdef DL_NOW
11923 # define LT_DLLAZY_OR_NOW DL_NOW
11924 # else
11925 # define LT_DLLAZY_OR_NOW 0
11926 # endif
11927 # endif
11928 # endif
11929 # endif
11930 #endif
11931
11932 /* When -fvisibility=hidden is used, assume the code has been annotated
11933 correspondingly for the symbols needed. */
11934 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11935 int fnord () __attribute__((visibility("default")));
11936 #endif
11937
11938 int fnord () { return 42; }
11939 int main ()
11940 {
11941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11942 int status = $lt_dlunknown;
11943
11944 if (self)
11945 {
11946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11947 else
11948 {
11949 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11950 else puts (dlerror ());
11951 }
11952 /* dlclose (self); */
11953 }
11954 else
11955 puts (dlerror ());
11956
11957 return status;
11958 }
11959 _LT_EOF
11960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11961 (eval $ac_link) 2>&5
11962 ac_status=$?
11963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11964 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11965 (./conftest; exit; ) >&5 2>/dev/null
11966 lt_status=$?
11967 case x$lt_status in
11968 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11969 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11970 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11971 esac
11972 else :
11973 # compilation failed
11974 lt_cv_dlopen_self_static=no
11975 fi
11976 fi
11977 rm -fr conftest*
11978
11979
11980 fi
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11982 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11983 fi
11984
11985 CPPFLAGS=$save_CPPFLAGS
11986 LDFLAGS=$save_LDFLAGS
11987 LIBS=$save_LIBS
11988 ;;
11989 esac
11990
11991 case $lt_cv_dlopen_self in
11992 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11993 *) enable_dlopen_self=unknown ;;
11994 esac
11995
11996 case $lt_cv_dlopen_self_static in
11997 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11998 *) enable_dlopen_self_static=unknown ;;
11999 esac
12000 fi
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018 striplib=
12019 old_striplib=
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12021 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12022 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12024 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12026 $as_echo "yes" >&6; }
12027 else
12028 # FIXME - insert some real tests, host_os isn't really good enough
12029 case $host_os in
12030 darwin*)
12031 if test -n "$STRIP"; then
12032 striplib="$STRIP -x"
12033 old_striplib="$STRIP -S"
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12035 $as_echo "yes" >&6; }
12036 else
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12039 fi
12040 ;;
12041 *)
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12044 ;;
12045 esac
12046 fi
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059 # Report what library types will actually be built
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12061 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12063 $as_echo "$can_build_shared" >&6; }
12064
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12066 $as_echo_n "checking whether to build shared libraries... " >&6; }
12067 test no = "$can_build_shared" && enable_shared=no
12068
12069 # On AIX, shared libraries and static libraries use the same namespace, and
12070 # are all built from PIC.
12071 case $host_os in
12072 aix3*)
12073 test yes = "$enable_shared" && enable_static=no
12074 if test -n "$RANLIB"; then
12075 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12076 postinstall_cmds='$RANLIB $lib'
12077 fi
12078 ;;
12079
12080 aix[4-9]*)
12081 if test ia64 != "$host_cpu"; then
12082 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12083 yes,aix,yes) ;; # shared object as lib.so file only
12084 yes,svr4,*) ;; # shared object as lib.so archive member only
12085 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12086 esac
12087 fi
12088 ;;
12089 esac
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12091 $as_echo "$enable_shared" >&6; }
12092
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12094 $as_echo_n "checking whether to build static libraries... " >&6; }
12095 # Make sure either enable_shared or enable_static is yes.
12096 test yes = "$enable_shared" || enable_static=yes
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12098 $as_echo "$enable_static" >&6; }
12099
12100
12101
12102
12103 fi
12104 ac_ext=c
12105 ac_cpp='$CPP $CPPFLAGS'
12106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12109
12110 CC=$lt_save_CC
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126 ac_config_commands="$ac_config_commands libtool"
12127
12128
12129
12130
12131 # Only expand once:
12132
12133
12134
12135 DBUS_PACKAGE=dbus-1
12136
12137
12138
12139
12140
12141
12142
12143 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12144 if test -n "$ac_tool_prefix"; then
12145 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12146 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 case $PKG_CONFIG in
12153 [\\/]* | ?:[\\/]*)
12154 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12155 ;;
12156 *)
12157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12158 for as_dir in $PATH
12159 do
12160 IFS=$as_save_IFS
12161 test -z "$as_dir" && as_dir=.
12162 for ac_exec_ext in '' $ac_executable_extensions; do
12163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12164 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12166 break 2
12167 fi
12168 done
12169 done
12170 IFS=$as_save_IFS
12171
12172 ;;
12173 esac
12174 fi
12175 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12176 if test -n "$PKG_CONFIG"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12178 $as_echo "$PKG_CONFIG" >&6; }
12179 else
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12182 fi
12183
12184
12185 fi
12186 if test -z "$ac_cv_path_PKG_CONFIG"; then
12187 ac_pt_PKG_CONFIG=$PKG_CONFIG
12188 # Extract the first word of "pkg-config", so it can be a program name with args.
12189 set dummy pkg-config; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 case $ac_pt_PKG_CONFIG in
12196 [\\/]* | ?:[\\/]*)
12197 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12198 ;;
12199 *)
12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH
12202 do
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 break 2
12210 fi
12211 done
12212 done
12213 IFS=$as_save_IFS
12214
12215 ;;
12216 esac
12217 fi
12218 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12219 if test -n "$ac_pt_PKG_CONFIG"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12221 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12225 fi
12226
12227 if test "x$ac_pt_PKG_CONFIG" = x; then
12228 PKG_CONFIG=""
12229 else
12230 case $cross_compiling:$ac_tool_warned in
12231 yes:)
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12234 ac_tool_warned=yes ;;
12235 esac
12236 PKG_CONFIG=$ac_pt_PKG_CONFIG
12237 fi
12238 else
12239 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12240 fi
12241
12242 fi
12243 if test -n "$PKG_CONFIG"; then
12244 _pkg_min_version=0.9.0
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12246 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12247 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12249 $as_echo "yes" >&6; }
12250 else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12253 PKG_CONFIG=""
12254 fi
12255 fi
12256
12257 pkg_failed=no
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
12259 $as_echo_n "checking for DBUS... " >&6; }
12260
12261 if test -n "$DBUS_CFLAGS"; then
12262 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
12263 elif test -n "$PKG_CONFIG"; then
12264 if test -n "$PKG_CONFIG" && \
12265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DBUS_PACKAGE\""; } >&5
12266 ($PKG_CONFIG --exists --print-errors "$DBUS_PACKAGE") 2>&5
12267 ac_status=$?
12268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12269 test $ac_status = 0; }; then
12270 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$DBUS_PACKAGE" 2>/dev/null`
12271 test "x$?" != "x0" && pkg_failed=yes
12272 else
12273 pkg_failed=yes
12274 fi
12275 else
12276 pkg_failed=untried
12277 fi
12278 if test -n "$DBUS_LIBS"; then
12279 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
12280 elif test -n "$PKG_CONFIG"; then
12281 if test -n "$PKG_CONFIG" && \
12282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DBUS_PACKAGE\""; } >&5
12283 ($PKG_CONFIG --exists --print-errors "$DBUS_PACKAGE") 2>&5
12284 ac_status=$?
12285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12286 test $ac_status = 0; }; then
12287 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$DBUS_PACKAGE" 2>/dev/null`
12288 test "x$?" != "x0" && pkg_failed=yes
12289 else
12290 pkg_failed=yes
12291 fi
12292 else
12293 pkg_failed=untried
12294 fi
12295
12296
12297
12298 if test $pkg_failed = yes; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12301
12302 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12303 _pkg_short_errors_supported=yes
12304 else
12305 _pkg_short_errors_supported=no
12306 fi
12307 if test $_pkg_short_errors_supported = yes; then
12308 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DBUS_PACKAGE" 2>&1`
12309 else
12310 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DBUS_PACKAGE" 2>&1`
12311 fi
12312 # Put the nasty error message in config.log where it belongs
12313 echo "$DBUS_PKG_ERRORS" >&5
12314
12315 as_fn_error $? "Package requirements ($DBUS_PACKAGE) were not met:
12316
12317 $DBUS_PKG_ERRORS
12318
12319 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12320 installed software in a non-standard prefix.
12321
12322 Alternatively, you may set the environment variables DBUS_CFLAGS
12323 and DBUS_LIBS to avoid the need to call pkg-config.
12324 See the pkg-config man page for more details." "$LINENO" 5
12325 elif test $pkg_failed = untried; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12330 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12331 is in your PATH or set the PKG_CONFIG environment variable to the full
12332 path to pkg-config.
12333
12334 Alternatively, you may set the environment variables DBUS_CFLAGS
12335 and DBUS_LIBS to avoid the need to call pkg-config.
12336 See the pkg-config man page for more details.
12337
12338 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12339 See \`config.log' for more details" "$LINENO" 5; }
12340 else
12341 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
12342 DBUS_LIBS=$pkg_cv_DBUS_LIBS
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12344 $as_echo "yes" >&6; }
12345
12346 fi
12347
12348 pkg_failed=no
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
12350 $as_echo_n "checking for XML... " >&6; }
12351
12352 if test -n "$XML_CFLAGS"; then
12353 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
12354 elif test -n "$PKG_CONFIG"; then
12355 if test -n "$PKG_CONFIG" && \
12356 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12357 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12358 ac_status=$?
12359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12360 test $ac_status = 0; }; then
12361 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
12362 test "x$?" != "x0" && pkg_failed=yes
12363 else
12364 pkg_failed=yes
12365 fi
12366 else
12367 pkg_failed=untried
12368 fi
12369 if test -n "$XML_LIBS"; then
12370 pkg_cv_XML_LIBS="$XML_LIBS"
12371 elif test -n "$PKG_CONFIG"; then
12372 if test -n "$PKG_CONFIG" && \
12373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12374 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12375 ac_status=$?
12376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12377 test $ac_status = 0; }; then
12378 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
12379 test "x$?" != "x0" && pkg_failed=yes
12380 else
12381 pkg_failed=yes
12382 fi
12383 else
12384 pkg_failed=untried
12385 fi
12386
12387
12388
12389 if test $pkg_failed = yes; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12392
12393 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12394 _pkg_short_errors_supported=yes
12395 else
12396 _pkg_short_errors_supported=no
12397 fi
12398 if test $_pkg_short_errors_supported = yes; then
12399 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
12400 else
12401 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
12402 fi
12403 # Put the nasty error message in config.log where it belongs
12404 echo "$XML_PKG_ERRORS" >&5
12405
12406 as_fn_error $? "Package requirements (libxml-2.0) were not met:
12407
12408 $XML_PKG_ERRORS
12409
12410 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12411 installed software in a non-standard prefix.
12412
12413 Alternatively, you may set the environment variables XML_CFLAGS
12414 and XML_LIBS to avoid the need to call pkg-config.
12415 See the pkg-config man page for more details." "$LINENO" 5
12416 elif test $pkg_failed = untried; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12421 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12422 is in your PATH or set the PKG_CONFIG environment variable to the full
12423 path to pkg-config.
12424
12425 Alternatively, you may set the environment variables XML_CFLAGS
12426 and XML_LIBS to avoid the need to call pkg-config.
12427 See the pkg-config man page for more details.
12428
12429 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12430 See \`config.log' for more details" "$LINENO" 5; }
12431 else
12432 XML_CFLAGS=$pkg_cv_XML_CFLAGS
12433 XML_LIBS=$pkg_cv_XML_LIBS
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12435 $as_echo "yes" >&6; }
12436
12437 fi
12438
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-BUS version" >&5
12440 $as_echo_n "checking D-BUS version... " >&6; }
12441 DBUS_VERSION=`pkg-config --modversion $DBUS_PACKAGE`
12442 DBUS_PREFIX=`pkg-config --modversion $DBUS_PACKAGE`
12443 DBUS_MAJOR_VERSION=`echo $DBUS_VERSION | cut -f1 -d.`
12444 DBUS_MINOR_VERSION=`echo $DBUS_VERSION | cut -f2 -d.`
12445 DBUS_MICRO_VERSION=`echo $DBUS_VERSION | cut -f3 -d.`
12446 if test x$DBUS_MAJOR_VERSION = x ; then
12447 DBUS_MAJOR_VERSION=0
12448 fi
12449 if test x$DBUS_MINOR_VERSION = x ; then
12450 DBUS_MINOR_VERSION=0
12451 fi
12452 if test x$DBUS_MICRO_VERSION = x ; then
12453 DBUS_MICRO_VERSION=0
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config reports $DBUS_VERSION, treating as ${DBUS_MAJOR_VERSION}.${DBUS_MINOR_VERSION}.${DBUS_MICRO_VERSION}" >&5
12456 $as_echo "pkg-config reports $DBUS_VERSION, treating as ${DBUS_MAJOR_VERSION}.${DBUS_MINOR_VERSION}.${DBUS_MICRO_VERSION}" >&6; }
12457
12458 cat >>confdefs.h <<_ACEOF
12459 #define ODDJOB_DBUS_MAJOR_VERSION $DBUS_MAJOR_VERSION
12460 _ACEOF
12461
12462
12463 cat >>confdefs.h <<_ACEOF
12464 #define ODDJOB_DBUS_MINOR_VERSION $DBUS_MINOR_VERSION
12465 _ACEOF
12466
12467
12468 cat >>confdefs.h <<_ACEOF
12469 #define ODDJOB_DBUS_MICRO_VERSION $DBUS_MICRO_VERSION
12470 _ACEOF
12471
12472
12473 cat >>confdefs.h <<_ACEOF
12474 #define DBUS_API_SUBJECT_TO_CHANGE "Then finish it!"
12475 _ACEOF
12476
12477
12478 DBUS_INTERFACE_DBUS=org.freedesktop.DBus
12479 DBUS_INTROSPECTION_INTERFACE=${DBUS_INTERFACE_DBUS}.Introspectable
12480 DBUS_INTROSPECTION_METHOD=Introspect
12481
12482
12483
12484 pam=yes
12485 for ac_header in security/pam_modules.h
12486 do :
12487 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "$ac_includes_default"
12488 if test "x$ac_cv_header_security_pam_modules_h" = xyes; then :
12489 cat >>confdefs.h <<_ACEOF
12490 #define HAVE_SECURITY_PAM_MODULES_H 1
12491 _ACEOF
12492
12493 fi
12494
12495 done
12496
12497 savedLDFLAGS="$LDFLAGS"
12498 LDFLAGS=
12499 savedLIBS="$LIBS"
12500 LIBS=
12501 for ac_func in pam_get_user pam_get_item
12502 do :
12503 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12504 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12505 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12506 cat >>confdefs.h <<_ACEOF
12507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12508 _ACEOF
12509
12510 else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_get_user in -lpam" >&5
12512 $as_echo_n "checking for pam_get_user in -lpam... " >&6; }
12513 if ${ac_cv_lib_pam_pam_get_user+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-lpam $LIBS"
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12520
12521 /* Override any GCC internal prototype to avoid an error.
12522 Use char because int might match the return type of a GCC
12523 builtin and then its argument prototype would still apply. */
12524 #ifdef __cplusplus
12525 extern "C"
12526 #endif
12527 char pam_get_user ();
12528 int
12529 main ()
12530 {
12531 return pam_get_user ();
12532 ;
12533 return 0;
12534 }
12535 _ACEOF
12536 if ac_fn_c_try_link "$LINENO"; then :
12537 ac_cv_lib_pam_pam_get_user=yes
12538 else
12539 ac_cv_lib_pam_pam_get_user=no
12540 fi
12541 rm -f core conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 LIBS=$ac_check_lib_save_LIBS
12544 fi
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_get_user" >&5
12546 $as_echo "$ac_cv_lib_pam_pam_get_user" >&6; }
12547 if test "x$ac_cv_lib_pam_pam_get_user" = xyes; then :
12548 cat >>confdefs.h <<_ACEOF
12549 #define HAVE_LIBPAM 1
12550 _ACEOF
12551
12552 LIBS="-lpam $LIBS"
12553
12554 else
12555 pam=no
12556 fi
12557
12558 fi
12559 done
12560
12561 PAM_LIBS="$LIBS"
12562 LIBS="$savedLIBS"
12563 LDFLAGS="$savedLDFLAGS"
12564
12565 if test x$pam = xyes; then
12566 BUILD_PAM_TRUE=
12567 BUILD_PAM_FALSE='#'
12568 else
12569 BUILD_PAM_TRUE='#'
12570 BUILD_PAM_FALSE=
12571 fi
12572
12573
12574 NAMESPACE=com.redhat
12575
12576 NAMESPACEPATH=`echo "$NAMESPACE" | sed -e 's,^,/,' -e 's,\.,/,g'`
12577
12578
12579 cat >>confdefs.h <<_ACEOF
12580 #define ODDJOB_NAMESPACE "$NAMESPACE"
12581 _ACEOF
12582
12583
12584 cat >>confdefs.h <<_ACEOF
12585 #define ODDJOB_NAMESPACE_PATH "$NAMESPACEPATH"
12586 _ACEOF
12587
12588
12589 DEFAULT_FAST_RECONNECT_ATTEMPTS=10
12590
12591 cat >>confdefs.h <<_ACEOF
12592 #define DEFAULT_FAST_RECONNECT_ATTEMPTS $DEFAULT_FAST_RECONNECT_ATTEMPTS
12593 _ACEOF
12594
12595
12596 DEFAULT_FAST_RECONNECT_TIMEOUT=5
12597
12598 cat >>confdefs.h <<_ACEOF
12599 #define DEFAULT_FAST_RECONNECT_TIMEOUT $DEFAULT_FAST_RECONNECT_TIMEOUT
12600 _ACEOF
12601
12602
12603 DEFAULT_RECONNECT_TIMEOUT=30
12604
12605 cat >>confdefs.h <<_ACEOF
12606 #define DEFAULT_RECONNECT_TIMEOUT $DEFAULT_RECONNECT_TIMEOUT
12607 _ACEOF
12608
12609
12610
12611 # Check whether --enable-systemd was given.
12612 if test "${enable_systemd+set}" = set; then :
12613 enableval=$enable_systemd; SYSTEMD=$enableval
12614 else
12615 SYSTEMD=no
12616 fi
12617
12618
12619
12620 if test x$SYSTEMD != xno; then
12621 SYSTEMD_TRUE=
12622 SYSTEMD_FALSE='#'
12623 else
12624 SYSTEMD_TRUE='#'
12625 SYSTEMD_FALSE=
12626 fi
12627
12628 if test x$SYSTEMD = xyes ; then
12629 SYSTEMDSYSTEMUNITDIR=`pkg-config --variable=systemdsystemunitdir systemd 2> /dev/null`
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will install systemd unit file" >&5
12631 $as_echo "will install systemd unit file" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will install sysv init script" >&5
12634 $as_echo "will install sysv init script" >&6; }
12635 fi
12636
12637
12638 # Check whether --enable-sample was given.
12639 if test "${enable_sample+set}" = set; then :
12640 enableval=$enable_sample; sample=$withval
12641 else
12642 sample=no
12643 fi
12644
12645 if test x$sample = xyes; then
12646 INSTALL_SAMPLE_TRUE=
12647 INSTALL_SAMPLE_FALSE='#'
12648 else
12649 INSTALL_SAMPLE_TRUE='#'
12650 INSTALL_SAMPLE_FALSE=
12651 fi
12652
12653
12654 # Check whether --enable-experimental was given.
12655 if test "${enable_experimental+set}" = set; then :
12656 enableval=$enable_experimental; experimental=$withval
12657 else
12658 experimental=no
12659 fi
12660
12661 if test x$experimental = xyes; then
12662 ENABLE_EXPERIMENTAL_TRUE=
12663 ENABLE_EXPERIMENTAL_FALSE='#'
12664 else
12665 ENABLE_EXPERIMENTAL_TRUE='#'
12666 ENABLE_EXPERIMENTAL_FALSE=
12667 fi
12668
12669
12670 selinux_labels=default
12671
12672 # Check whether --with-selinux-labels was given.
12673 if test "${with_selinux_labels+set}" = set; then :
12674 withval=$with_selinux_labels; selinux_labels=$withval
12675 else
12676 selinux_labels=default
12677 fi
12678
12679
12680 selinux_acls=default
12681
12682 # Check whether --with-selinux-acls was given.
12683 if test "${with_selinux_acls+set}" = set; then :
12684 withval=$with_selinux_acls; selinux_acls=$withval
12685 else
12686 selinux_acls=default
12687 fi
12688
12689
12690 LIBSsave="$LIBS"
12691 LIBS="$LIBS $DBUS_LIBS"
12692 for ac_func in dbus_bus_release_name
12693 do :
12694 ac_fn_c_check_func "$LINENO" "dbus_bus_release_name" "ac_cv_func_dbus_bus_release_name"
12695 if test "x$ac_cv_func_dbus_bus_release_name" = xyes; then :
12696 cat >>confdefs.h <<_ACEOF
12697 #define HAVE_DBUS_BUS_RELEASE_NAME 1
12698 _ACEOF
12699
12700 fi
12701 done
12702
12703 if test x$ac_cv_func_dbus_bus_release_name = xno ; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: D-Bus doesn't appear to provide dbus_bus_release_name(), oddjobd will be unable to unregister unused services when reloading configuration." >&5
12705 $as_echo "$as_me: WARNING: D-Bus doesn't appear to provide dbus_bus_release_name(), oddjobd will be unable to unregister unused services when reloading configuration." >&2;}
12706 fi
12707 LIBS="$LIBSsave"
12708
12709 if test x$selinux_acls != xno ; then
12710 # Assume that if the "don't know what the client's context is" error
12711 # is defined, that the server supports being asked the question.
12712 CFLAGsave="$CFLAGS"
12713 CFLAGS="$CFLAGS $DBUS_CFLAGS"
12714 CPPFLAGsave="$CPPFLAGS"
12715 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
12716 ac_fn_c_check_decl "$LINENO" "DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN" "ac_cv_have_decl_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN" "
12717 #include <dbus/dbus.h>
12718
12719 "
12720 if test "x$ac_cv_have_decl_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN" = xyes; then :
12721
12722 fi
12723
12724 CFLAGS="$CFLAGsave"
12725 CPPFLAGS="$CPPFLAGsave"
12726 if test x$ac_cv_have_decl_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN != xyes ; then
12727 if test x$selinux_acls = xdefault ; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: D-Bus doesn't appear to provide GetConnectionSELinuxSecurityContext(), disabling SELinux ACL support." >&5
12729 $as_echo "$as_me: WARNING: D-Bus doesn't appear to provide GetConnectionSELinuxSecurityContext(), disabling SELinux ACL support." >&2;}
12730 selinux_acls=no
12731 else
12732 as_fn_error $? "D-Bus doesn't appear to provide GetConnectionSELinuxSecurityContext(), stopping." "$LINENO" 5
12733 fi
12734 fi
12735 fi
12736
12737 define_selinux_labels=false
12738 SELINUX_CFLAGS=
12739 SELINUX_LIBS=
12740 if test x$selinux_labels != xno ; then
12741 CFLAGsave="$CFLAGS"
12742 LIBsave="$LIBS"
12743 LDFLAGSsave="$LDFLAGS"
12744 CFLAGS=
12745 LIBS=
12746 LDFLAGS=
12747 if test -d $withval ; then
12748 CFLAGS="-I$withval/include"
12749 LIBS="-L$withval/`basename $libdir`"
12750 fi
12751 for ac_header in selinux/selinux.h
12752 do :
12753 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
12754 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
12755 cat >>confdefs.h <<_ACEOF
12756 #define HAVE_SELINUX_SELINUX_H 1
12757 _ACEOF
12758
12759 fi
12760
12761 done
12762
12763 if test x$ac_cv_header_selinux_selinux_h != xyes ; then
12764 if test x$selinux != default ; then
12765 as_fn_error $? "Could not locate SELinux headers." "$LINENO" 5
12766 else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate SELinux headers." >&5
12768 $as_echo "$as_me: WARNING: Could not locate SELinux headers." >&2;}
12769 fi
12770 fi
12771 ac_fn_c_check_func "$LINENO" "setfscreatecon" "ac_cv_func_setfscreatecon"
12772 if test "x$ac_cv_func_setfscreatecon" = xyes; then :
12773
12774 else
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setfscreatecon in -lselinux" >&5
12776 $as_echo_n "checking for setfscreatecon in -lselinux... " >&6; }
12777 if ${ac_cv_lib_selinux_setfscreatecon+:} false; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 ac_check_lib_save_LIBS=$LIBS
12781 LIBS="-lselinux $LIBS"
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784
12785 /* Override any GCC internal prototype to avoid an error.
12786 Use char because int might match the return type of a GCC
12787 builtin and then its argument prototype would still apply. */
12788 #ifdef __cplusplus
12789 extern "C"
12790 #endif
12791 char setfscreatecon ();
12792 int
12793 main ()
12794 {
12795 return setfscreatecon ();
12796 ;
12797 return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_c_try_link "$LINENO"; then :
12801 ac_cv_lib_selinux_setfscreatecon=yes
12802 else
12803 ac_cv_lib_selinux_setfscreatecon=no
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext \
12806 conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_lib_save_LIBS
12808 fi
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setfscreatecon" >&5
12810 $as_echo "$ac_cv_lib_selinux_setfscreatecon" >&6; }
12811 if test "x$ac_cv_lib_selinux_setfscreatecon" = xyes; then :
12812 cat >>confdefs.h <<_ACEOF
12813 #define HAVE_LIBSELINUX 1
12814 _ACEOF
12815
12816 LIBS="-lselinux $LIBS"
12817
12818 fi
12819
12820 fi
12821
12822 if test x$ac_cv_func_setfscreatecon != xyes ; then
12823 if test x$ac_cv_lib_selinux_setfscreatecon != xyes ; then
12824 if test x$selinux_labels != default ; then
12825 as_fn_error $? "Could not locate SELinux library." "$LINENO" 5
12826 else
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate SELinux library." >&5
12828 $as_echo "$as_me: WARNING: Could not locate SELinux library." >&2;}
12829 fi
12830 fi
12831 fi
12832 for ac_func in matchpathcon_init
12833 do :
12834 ac_fn_c_check_func "$LINENO" "matchpathcon_init" "ac_cv_func_matchpathcon_init"
12835 if test "x$ac_cv_func_matchpathcon_init" = xyes; then :
12836 cat >>confdefs.h <<_ACEOF
12837 #define HAVE_MATCHPATHCON_INIT 1
12838 _ACEOF
12839
12840 fi
12841 done
12842
12843 if test x$ac_cv_header_selinux_selinux_h = xyes ; then
12844 if test x$ac_cv_func_setfscreatecon = xyes ; then
12845 define_selinux_labels=true
12846 fi
12847 if test x$ac_cv_lib_selinux_setfscreatecon = xyes ; then
12848 define_selinux_labels=true
12849 fi
12850 fi
12851 if $define_selinux_labels ; then
12852
12853 $as_echo "#define SELINUX_LABELS 1" >>confdefs.h
12854
12855 fi
12856 SELINUX_CFLAGS="$CFLAGS"
12857 SELINUX_LIBS="$LIBS"
12858 CFLAGS="$CFLAGsave"
12859 LIBS="$LIBsave"
12860 LDFLAGS="$LDFLAGSsave"
12861 fi
12862 #
12863 # Even if we have libselinux, D-BUS itself might not be able to give us the
12864 # info we need for enforcing SELinux ACLS, so jump through a flaming hoop.
12865 #
12866 SELINUX_ACLS_XML_START="<!-- "
12867 SELINUX_ACLS_XML_END=" -->"
12868 SELINUX_ACLS_MAN_SPECIFIC=".\\ "
12869 if $define_selinux_labels ; then
12870 if test x$selinux_acls != xno ; then
12871
12872 $as_echo "#define SELINUX_ACLS 1" >>confdefs.h
12873
12874 SELINUX_ACLS_XML_START=
12875 SELINUX_ACLS_XML_END=
12876 SELINUX_ACLS_MAN_SPECIFIC=
12877 fi
12878 fi
12879
12880
12881
12882
12883
12884
12885 python=default
12886
12887 # Check whether --with-python was given.
12888 if test "${with_python+set}" = set; then :
12889 withval=$with_python; python=$withval
12890 else
12891 python=default
12892 fi
12893
12894 if test x$python = xyes ; then
12895
12896
12897
12898
12899
12900
12901 # Find any Python interpreter.
12902 if test -z "$PYTHON"; then
12903 for ac_prog in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
12904 do
12905 # Extract the first word of "$ac_prog", so it can be a program name with args.
12906 set dummy $ac_prog; ac_word=$2
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908 $as_echo_n "checking for $ac_word... " >&6; }
12909 if ${ac_cv_path_PYTHON+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 case $PYTHON in
12913 [\\/]* | ?:[\\/]*)
12914 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12915 ;;
12916 *)
12917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 for as_dir in $PATH
12919 do
12920 IFS=$as_save_IFS
12921 test -z "$as_dir" && as_dir=.
12922 for ac_exec_ext in '' $ac_executable_extensions; do
12923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12924 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12926 break 2
12927 fi
12928 done
12929 done
12930 IFS=$as_save_IFS
12931
12932 ;;
12933 esac
12934 fi
12935 PYTHON=$ac_cv_path_PYTHON
12936 if test -n "$PYTHON"; then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12938 $as_echo "$PYTHON" >&6; }
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12942 fi
12943
12944
12945 test -n "$PYTHON" && break
12946 done
12947 test -n "$PYTHON" || PYTHON=":"
12948
12949 fi
12950 am_display_PYTHON=python
12951
12952
12953 if test "$PYTHON" = :; then
12954
12955 if test x$python = xyes ; then
12956 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12957 fi
12958
12959 else
12960
12961
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12963 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12964 if ${am_cv_python_version+:} false; then :
12965 $as_echo_n "(cached) " >&6
12966 else
12967 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12968 fi
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12970 $as_echo "$am_cv_python_version" >&6; }
12971 PYTHON_VERSION=$am_cv_python_version
12972
12973
12974
12975 PYTHON_PREFIX='${prefix}'
12976
12977 PYTHON_EXEC_PREFIX='${exec_prefix}'
12978
12979
12980
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12982 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12983 if ${am_cv_python_platform+:} false; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12986 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12987 fi
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12989 $as_echo "$am_cv_python_platform" >&6; }
12990 PYTHON_PLATFORM=$am_cv_python_platform
12991
12992
12993 # Just factor out some code duplication.
12994 am_python_setup_sysconfig="\
12995 import sys
12996 # Prefer sysconfig over distutils.sysconfig, for better compatibility
12997 # with python 3.x. See automake bug#10227.
12998 try:
12999 import sysconfig
13000 except ImportError:
13001 can_use_sysconfig = 0
13002 else:
13003 can_use_sysconfig = 1
13004 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
13005 # <https://github.com/pypa/virtualenv/issues/118>
13006 try:
13007 from platform import python_implementation
13008 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13009 can_use_sysconfig = 0
13010 except ImportError:
13011 pass"
13012
13013
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13015 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13016 if ${am_cv_python_pythondir+:} false; then :
13017 $as_echo_n "(cached) " >&6
13018 else
13019 if test "x$prefix" = xNONE
13020 then
13021 am_py_prefix=$ac_default_prefix
13022 else
13023 am_py_prefix=$prefix
13024 fi
13025 am_cv_python_pythondir=`$PYTHON -c "
13026 $am_python_setup_sysconfig
13027 if can_use_sysconfig:
13028 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13029 else:
13030 from distutils import sysconfig
13031 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13032 sys.stdout.write(sitedir)"`
13033 case $am_cv_python_pythondir in
13034 $am_py_prefix*)
13035 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13036 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13037 ;;
13038 *)
13039 case $am_py_prefix in
13040 /usr|/System*) ;;
13041 *)
13042 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13043 ;;
13044 esac
13045 ;;
13046 esac
13047
13048 fi
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13050 $as_echo "$am_cv_python_pythondir" >&6; }
13051 pythondir=$am_cv_python_pythondir
13052
13053
13054
13055 pkgpythondir=\${pythondir}/$PACKAGE
13056
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13059 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13060 if ${am_cv_python_pyexecdir+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 if test "x$exec_prefix" = xNONE
13064 then
13065 am_py_exec_prefix=$am_py_prefix
13066 else
13067 am_py_exec_prefix=$exec_prefix
13068 fi
13069 am_cv_python_pyexecdir=`$PYTHON -c "
13070 $am_python_setup_sysconfig
13071 if can_use_sysconfig:
13072 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13073 else:
13074 from distutils import sysconfig
13075 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13076 sys.stdout.write(sitedir)"`
13077 case $am_cv_python_pyexecdir in
13078 $am_py_exec_prefix*)
13079 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13080 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13081 ;;
13082 *)
13083 case $am_py_exec_prefix in
13084 /usr|/System*) ;;
13085 *)
13086 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13087 ;;
13088 esac
13089 ;;
13090 esac
13091
13092 fi
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13094 $as_echo "$am_cv_python_pyexecdir" >&6; }
13095 pyexecdir=$am_cv_python_pyexecdir
13096
13097
13098
13099 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13100
13101
13102
13103 fi
13104
13105
13106 fi
13107 if false; then
13108 LIBODDJOB_TRUE=
13109 LIBODDJOB_FALSE='#'
13110 else
13111 LIBODDJOB_TRUE='#'
13112 LIBODDJOB_FALSE=
13113 fi
13114
13115 if test x$python = xyes; then
13116 PYTHON_TRUE=
13117 PYTHON_FALSE='#'
13118 else
13119 PYTHON_TRUE='#'
13120 PYTHON_FALSE=
13121 fi
13122
13123
13124 mysysconfdir=`eval echo "$sysconfdir" | sed s,^NONE,"$prefix",`
13125 mysysconfdir=`eval echo "$mysysconfdir" | sed s,^NONE,"$ac_default_prefix",`
13126 mydatadir=`eval echo "$datadir" | sed s,^NONE,"$prefix",`
13127 mydatadir=`eval echo "$mydatadir" | sed s,^NONE,"$ac_default_prefix",`
13128 mypkglibdir=`eval echo "$libdir/$PACKAGE" | sed s,^NONE,"$exec_prefix",`
13129 mypkglibdir=`eval echo "$mypkglibdir" | sed s,^NONE,"$prefix",`
13130 mypkglibdir=`eval echo "$mypkglibdir" | sed s,^NONE,"$ac_default_prefix",`
13131 mypkglibexecdir=`eval echo "$libexecdir/$PACKAGE" | sed s,^NONE,"$exec_prefix",`
13132 mypkglibexecdir=`eval echo "$mypkglibexecdir" | sed s,^NONE,"$prefix",`
13133 mypkglibexecdir=`eval echo "$mypkglibexecdir" | sed s,^NONE,"$ac_default_prefix",`
13134 mylocalstatedir=`eval echo "$localstatedir" | sed s,^NONE,"$prefix",`
13135 mylocalstatedir=`eval echo "$mylocalstatedir" | sed s,^NONE,"$ac_default_prefix",`
13136
13137 cat >>confdefs.h <<_ACEOF
13138 #define SYSCONFDIR "$mysysconfdir"
13139 _ACEOF
13140
13141
13142 cat >>confdefs.h <<_ACEOF
13143 #define PKGLIBDIR "$mypkglibexecdir"
13144 _ACEOF
13145
13146
13147 cat >>confdefs.h <<_ACEOF
13148 #define PKGLIBEXECDIR "$mypkglibexecdir"
13149 _ACEOF
13150
13151
13152 cat >>confdefs.h <<_ACEOF
13153 #define DATADIR "$mydatadir"
13154 _ACEOF
13155
13156
13157 cat >>confdefs.h <<_ACEOF
13158 #define LOCALSTATEDIR "$mylocalstatedir"
13159 _ACEOF
13160
13161
13162 cat >>confdefs.h <<_ACEOF
13163 #define LOCKDIR "$mylocalstatedir/lock"
13164 _ACEOF
13165
13166
13167
13168
13169
13170
13171 for ac_prog in mount
13172 do
13173 # Extract the first word of "$ac_prog", so it can be a program name with args.
13174 set dummy $ac_prog; ac_word=$2
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176 $as_echo_n "checking for $ac_word... " >&6; }
13177 if ${ac_cv_path_PATH_MOUNT+:} false; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 case $PATH_MOUNT in
13181 [\\/]* | ?:[\\/]*)
13182 ac_cv_path_PATH_MOUNT="$PATH_MOUNT" # Let the user override the test with a path.
13183 ;;
13184 *)
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13187 do
13188 IFS=$as_save_IFS
13189 test -z "$as_dir" && as_dir=.
13190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13192 ac_cv_path_PATH_MOUNT="$as_dir/$ac_word$ac_exec_ext"
13193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13194 break 2
13195 fi
13196 done
13197 done
13198 IFS=$as_save_IFS
13199
13200 ;;
13201 esac
13202 fi
13203 PATH_MOUNT=$ac_cv_path_PATH_MOUNT
13204 if test -n "$PATH_MOUNT"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_MOUNT" >&5
13206 $as_echo "$PATH_MOUNT" >&6; }
13207 else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13210 fi
13211
13212
13213 test -n "$PATH_MOUNT" && break
13214 done
13215 test -n "$PATH_MOUNT" || PATH_MOUNT="/bin/mount"
13216
13217 for ac_prog in umount
13218 do
13219 # Extract the first word of "$ac_prog", so it can be a program name with args.
13220 set dummy $ac_prog; ac_word=$2
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222 $as_echo_n "checking for $ac_word... " >&6; }
13223 if ${ac_cv_path_PATH_UMOUNT+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 case $PATH_UMOUNT in
13227 [\\/]* | ?:[\\/]*)
13228 ac_cv_path_PATH_UMOUNT="$PATH_UMOUNT" # Let the user override the test with a path.
13229 ;;
13230 *)
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232 for as_dir in $PATH
13233 do
13234 IFS=$as_save_IFS
13235 test -z "$as_dir" && as_dir=.
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13238 ac_cv_path_PATH_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13240 break 2
13241 fi
13242 done
13243 done
13244 IFS=$as_save_IFS
13245
13246 ;;
13247 esac
13248 fi
13249 PATH_UMOUNT=$ac_cv_path_PATH_UMOUNT
13250 if test -n "$PATH_UMOUNT"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_UMOUNT" >&5
13252 $as_echo "$PATH_UMOUNT" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13256 fi
13257
13258
13259 test -n "$PATH_UMOUNT" && break
13260 done
13261 test -n "$PATH_UMOUNT" || PATH_UMOUNT="/bin/umount"
13262
13263 for ac_prog in cat
13264 do
13265 # Extract the first word of "$ac_prog", so it can be a program name with args.
13266 set dummy $ac_prog; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268 $as_echo_n "checking for $ac_word... " >&6; }
13269 if ${ac_cv_path_PATH_CAT+:} false; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 case $PATH_CAT in
13273 [\\/]* | ?:[\\/]*)
13274 ac_cv_path_PATH_CAT="$PATH_CAT" # Let the user override the test with a path.
13275 ;;
13276 *)
13277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH
13279 do
13280 IFS=$as_save_IFS
13281 test -z "$as_dir" && as_dir=.
13282 for ac_exec_ext in '' $ac_executable_extensions; do
13283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13284 ac_cv_path_PATH_CAT="$as_dir/$ac_word$ac_exec_ext"
13285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13286 break 2
13287 fi
13288 done
13289 done
13290 IFS=$as_save_IFS
13291
13292 ;;
13293 esac
13294 fi
13295 PATH_CAT=$ac_cv_path_PATH_CAT
13296 if test -n "$PATH_CAT"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_CAT" >&5
13298 $as_echo "$PATH_CAT" >&6; }
13299 else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13302 fi
13303
13304
13305 test -n "$PATH_CAT" && break
13306 done
13307 test -n "$PATH_CAT" || PATH_CAT="/bin/cat"
13308
13309
13310 cat >>confdefs.h <<_ACEOF
13311 #define PATH_MOUNT "$PATH_MOUNT"
13312 _ACEOF
13313
13314
13315 cat >>confdefs.h <<_ACEOF
13316 #define PATH_UMOUNT "$PATH_UMOUNT"
13317 _ACEOF
13318
13319
13320
13321 if false ; then
13322 libSAVE="$LIBS"
13323 for ac_header in ldap.h
13324 do :
13325 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13326 if test "x$ac_cv_header_ldap_h" = xyes; then :
13327 cat >>confdefs.h <<_ACEOF
13328 #define HAVE_LDAP_H 1
13329 _ACEOF
13330
13331 fi
13332
13333 done
13334
13335 if test x$ac_cv_header_ldap_h != xyes ; then
13336 as_fn_error $? "Could not locate LDAP headers." "$LINENO" 5
13337 fi
13338 ac_fn_c_check_func "$LINENO" "ldap_init" "ac_cv_func_ldap_init"
13339 if test "x$ac_cv_func_ldap_init" = xyes; then :
13340
13341 else
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
13343 $as_echo_n "checking for ldap_init in -lldap... " >&6; }
13344 if ${ac_cv_lib_ldap_ldap_init+:} false; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 ac_check_lib_save_LIBS=$LIBS
13348 LIBS="-lldap $LIBS"
13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h. */
13351
13352 /* Override any GCC internal prototype to avoid an error.
13353 Use char because int might match the return type of a GCC
13354 builtin and then its argument prototype would still apply. */
13355 #ifdef __cplusplus
13356 extern "C"
13357 #endif
13358 char ldap_init ();
13359 int
13360 main ()
13361 {
13362 return ldap_init ();
13363 ;
13364 return 0;
13365 }
13366 _ACEOF
13367 if ac_fn_c_try_link "$LINENO"; then :
13368 ac_cv_lib_ldap_ldap_init=yes
13369 else
13370 ac_cv_lib_ldap_ldap_init=no
13371 fi
13372 rm -f core conftest.err conftest.$ac_objext \
13373 conftest$ac_exeext conftest.$ac_ext
13374 LIBS=$ac_check_lib_save_LIBS
13375 fi
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5
13377 $as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
13378 if test "x$ac_cv_lib_ldap_ldap_init" = xyes; then :
13379 cat >>confdefs.h <<_ACEOF
13380 #define HAVE_LIBLDAP 1
13381 _ACEOF
13382
13383 LIBS="-lldap $LIBS"
13384
13385 fi
13386
13387 fi
13388
13389 if test x$ac_cv_func_ldap_init != xyes ; then
13390 if test x$ac_cv_lib_ldap_ldap_init != xyes ; then
13391 as_fn_error $? "Could not locate LDAP library." "$LINENO" 5
13392 fi
13393 fi
13394 LDAP_LIBS="$LIBS"
13395
13396 LIBS="$libSAVE"
13397
13398 libSAVE="$LIBS"
13399 for ac_header in sasl/sasl.h
13400 do :
13401 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
13402 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
13403 cat >>confdefs.h <<_ACEOF
13404 #define HAVE_SASL_SASL_H 1
13405 _ACEOF
13406
13407 fi
13408
13409 done
13410
13411 if test x$ac_cv_header_sasl_sasl_h != xyes ; then
13412 as_fn_error $? "Could not locate Cyrus SASL 2.x headers." "$LINENO" 5
13413 fi
13414 ac_fn_c_check_func "$LINENO" "sasl_client_init" "ac_cv_func_sasl_client_init"
13415 if test "x$ac_cv_func_sasl_client_init" = xyes; then :
13416
13417 else
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
13419 $as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
13420 if ${ac_cv_lib_sasl2_sasl_client_init+:} false; then :
13421 $as_echo_n "(cached) " >&6
13422 else
13423 ac_check_lib_save_LIBS=$LIBS
13424 LIBS="-lsasl2 $LIBS"
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427
13428 /* Override any GCC internal prototype to avoid an error.
13429 Use char because int might match the return type of a GCC
13430 builtin and then its argument prototype would still apply. */
13431 #ifdef __cplusplus
13432 extern "C"
13433 #endif
13434 char sasl_client_init ();
13435 int
13436 main ()
13437 {
13438 return sasl_client_init ();
13439 ;
13440 return 0;
13441 }
13442 _ACEOF
13443 if ac_fn_c_try_link "$LINENO"; then :
13444 ac_cv_lib_sasl2_sasl_client_init=yes
13445 else
13446 ac_cv_lib_sasl2_sasl_client_init=no
13447 fi
13448 rm -f core conftest.err conftest.$ac_objext \
13449 conftest$ac_exeext conftest.$ac_ext
13450 LIBS=$ac_check_lib_save_LIBS
13451 fi
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
13453 $as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
13454 if test "x$ac_cv_lib_sasl2_sasl_client_init" = xyes; then :
13455 cat >>confdefs.h <<_ACEOF
13456 #define HAVE_LIBSASL2 1
13457 _ACEOF
13458
13459 LIBS="-lsasl2 $LIBS"
13460
13461 fi
13462
13463 fi
13464
13465 if test x$ac_cv_func_sasl_client_init != xyes ; then
13466 if test x$ac_cv_lib_sasl2_sasl_client_init != xyes ; then
13467 as_fn_error $? "Could not locate Cyrus SASL 2.x library." "$LINENO" 5
13468 fi
13469 fi
13470 SASL_LIBS="$LIBS"
13471
13472 LIBS="$libSAVE"
13473
13474 libSAVE="$LIBS"
13475 for ac_prog in krb5-config
13476 do
13477 # Extract the first word of "$ac_prog", so it can be a program name with args.
13478 set dummy $ac_prog; ac_word=$2
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13480 $as_echo_n "checking for $ac_word... " >&6; }
13481 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483 else
13484 case $KRB5_CONFIG in
13485 [\\/]* | ?:[\\/]*)
13486 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
13487 ;;
13488 *)
13489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13490 for as_dir in $PATH
13491 do
13492 IFS=$as_save_IFS
13493 test -z "$as_dir" && as_dir=.
13494 for ac_exec_ext in '' $ac_executable_extensions; do
13495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13496 ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13498 break 2
13499 fi
13500 done
13501 done
13502 IFS=$as_save_IFS
13503
13504 ;;
13505 esac
13506 fi
13507 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
13508 if test -n "$KRB5_CONFIG"; then
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
13510 $as_echo "$KRB5_CONFIG" >&6; }
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13514 fi
13515
13516
13517 test -n "$KRB5_CONFIG" && break
13518 done
13519 test -n "$KRB5_CONFIG" || KRB5_CONFIG="not-found"
13520
13521 if test x$KRB5_CONFIG = xnot-found ; then
13522 as_fn_error $? "Could not locate Kerberos libraries." "$LINENO" 5
13523 fi
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos 5 headers" >&5
13525 $as_echo_n "checking for Kerberos 5 headers... " >&6; }
13526 KRB5_CFLAGS=`$KRB5_CONFIG --cflags`
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CFLAGS" >&5
13528 $as_echo "$KRB5_CFLAGS" >&6; }
13529
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos 5 libraries" >&5
13531 $as_echo_n "checking for Kerberos 5 libraries... " >&6; }
13532 KRB5_LIBS=`$KRB5_CONFIG --libs`
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_LIBS" >&5
13534 $as_echo "$KRB5_LIBS" >&6; }
13535
13536 LIBS="$libSAVE"
13537
13538 cppflagsSAVE="$CPPFLAGS"
13539 CPPFLAGS="$KRB5_CFLAGS"
13540 for ac_header in et/com_err.h com_err.h
13541 do :
13542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13543 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13544 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13545 cat >>confdefs.h <<_ACEOF
13546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13547 _ACEOF
13548
13549 fi
13550
13551 done
13552
13553 CPPFLAGS="$cppflagsSAVE"
13554
13555 libSAVE="$LIBS"
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI headers" >&5
13557 $as_echo_n "checking for GSSAPI headers... " >&6; }
13558 GSSAPI_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSSAPI_CFLAGS" >&5
13560 $as_echo "$GSSAPI_CFLAGS" >&6; }
13561
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI libraries" >&5
13563 $as_echo_n "checking for GSSAPI libraries... " >&6; }
13564 GSSAPI_LIBS=`$KRB5_CONFIG --libs gssapi`
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSSAPI_LIBS" >&5
13566 $as_echo "$GSSAPI_LIBS" >&6; }
13567
13568 LIBS="$libSAVE"
13569 fi
13570
13571 # Check whether --enable-largefile was given.
13572 if test "${enable_largefile+set}" = set; then :
13573 enableval=$enable_largefile;
13574 fi
13575
13576 if test "$enable_largefile" != no; then
13577
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13579 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13580 if ${ac_cv_sys_largefile_CC+:} false; then :
13581 $as_echo_n "(cached) " >&6
13582 else
13583 ac_cv_sys_largefile_CC=no
13584 if test "$GCC" != yes; then
13585 ac_save_CC=$CC
13586 while :; do
13587 # IRIX 6.2 and later do not support large files by default,
13588 # so use the C compiler's -n32 option if that helps.
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13591 #include <sys/types.h>
13592 /* Check that off_t can represent 2**63 - 1 correctly.
13593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13594 since some C++ compilers masquerading as C compilers
13595 incorrectly reject 9223372036854775807. */
13596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13598 && LARGE_OFF_T % 2147483647 == 1)
13599 ? 1 : -1];
13600 int
13601 main ()
13602 {
13603
13604 ;
13605 return 0;
13606 }
13607 _ACEOF
13608 if ac_fn_c_try_compile "$LINENO"; then :
13609 break
13610 fi
13611 rm -f core conftest.err conftest.$ac_objext
13612 CC="$CC -n32"
13613 if ac_fn_c_try_compile "$LINENO"; then :
13614 ac_cv_sys_largefile_CC=' -n32'; break
13615 fi
13616 rm -f core conftest.err conftest.$ac_objext
13617 break
13618 done
13619 CC=$ac_save_CC
13620 rm -f conftest.$ac_ext
13621 fi
13622 fi
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13624 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13625 if test "$ac_cv_sys_largefile_CC" != no; then
13626 CC=$CC$ac_cv_sys_largefile_CC
13627 fi
13628
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13630 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13631 if ${ac_cv_sys_file_offset_bits+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 while :; do
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637 #include <sys/types.h>
13638 /* Check that off_t can represent 2**63 - 1 correctly.
13639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13640 since some C++ compilers masquerading as C compilers
13641 incorrectly reject 9223372036854775807. */
13642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13644 && LARGE_OFF_T % 2147483647 == 1)
13645 ? 1 : -1];
13646 int
13647 main ()
13648 {
13649
13650 ;
13651 return 0;
13652 }
13653 _ACEOF
13654 if ac_fn_c_try_compile "$LINENO"; then :
13655 ac_cv_sys_file_offset_bits=no; break
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660 #define _FILE_OFFSET_BITS 64
13661 #include <sys/types.h>
13662 /* Check that off_t can represent 2**63 - 1 correctly.
13663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13664 since some C++ compilers masquerading as C compilers
13665 incorrectly reject 9223372036854775807. */
13666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13668 && LARGE_OFF_T % 2147483647 == 1)
13669 ? 1 : -1];
13670 int
13671 main ()
13672 {
13673
13674 ;
13675 return 0;
13676 }
13677 _ACEOF
13678 if ac_fn_c_try_compile "$LINENO"; then :
13679 ac_cv_sys_file_offset_bits=64; break
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 ac_cv_sys_file_offset_bits=unknown
13683 break
13684 done
13685 fi
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13687 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13688 case $ac_cv_sys_file_offset_bits in #(
13689 no | unknown) ;;
13690 *)
13691 cat >>confdefs.h <<_ACEOF
13692 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13693 _ACEOF
13694 ;;
13695 esac
13696 rm -rf conftest*
13697 if test $ac_cv_sys_file_offset_bits = unknown; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13699 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13700 if ${ac_cv_sys_large_files+:} false; then :
13701 $as_echo_n "(cached) " >&6
13702 else
13703 while :; do
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13706 #include <sys/types.h>
13707 /* Check that off_t can represent 2**63 - 1 correctly.
13708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13709 since some C++ compilers masquerading as C compilers
13710 incorrectly reject 9223372036854775807. */
13711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13713 && LARGE_OFF_T % 2147483647 == 1)
13714 ? 1 : -1];
13715 int
13716 main ()
13717 {
13718
13719 ;
13720 return 0;
13721 }
13722 _ACEOF
13723 if ac_fn_c_try_compile "$LINENO"; then :
13724 ac_cv_sys_large_files=no; break
13725 fi
13726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728 /* end confdefs.h. */
13729 #define _LARGE_FILES 1
13730 #include <sys/types.h>
13731 /* Check that off_t can represent 2**63 - 1 correctly.
13732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13733 since some C++ compilers masquerading as C compilers
13734 incorrectly reject 9223372036854775807. */
13735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13737 && LARGE_OFF_T % 2147483647 == 1)
13738 ? 1 : -1];
13739 int
13740 main ()
13741 {
13742
13743 ;
13744 return 0;
13745 }
13746 _ACEOF
13747 if ac_fn_c_try_compile "$LINENO"; then :
13748 ac_cv_sys_large_files=1; break
13749 fi
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 ac_cv_sys_large_files=unknown
13752 break
13753 done
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13756 $as_echo "$ac_cv_sys_large_files" >&6; }
13757 case $ac_cv_sys_large_files in #(
13758 no | unknown) ;;
13759 *)
13760 cat >>confdefs.h <<_ACEOF
13761 #define _LARGE_FILES $ac_cv_sys_large_files
13762 _ACEOF
13763 ;;
13764 esac
13765 rm -rf conftest*
13766 fi
13767
13768
13769 fi
13770
13771 ac_config_headers="$ac_config_headers config.h"
13772
13773
13774
13775
13776 cat >>confdefs.h <<_ACEOF
13777 #define DBUS_PACKAGE "$DBUS_PACKAGE"
13778 _ACEOF
13779
13780
13781 # Check whether --enable-xml-docs was given.
13782 if test "${enable_xml_docs+set}" = set; then :
13783 enableval=$enable_xml_docs; xml_docs=$withval
13784 else
13785 xml_docs=no
13786 fi
13787
13788 if test x$xml_docs = xyes; then
13789 REFORMAT_XML_DOCS_TRUE=
13790 REFORMAT_XML_DOCS_FALSE='#'
13791 else
13792 REFORMAT_XML_DOCS_TRUE='#'
13793 REFORMAT_XML_DOCS_FALSE=
13794 fi
13795
13796 for ac_prog in xmlto
13797 do
13798 # Extract the first word of "$ac_prog", so it can be a program name with args.
13799 set dummy $ac_prog; ac_word=$2
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13801 $as_echo_n "checking for $ac_word... " >&6; }
13802 if ${ac_cv_path_PATH_XMLTO+:} false; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 case $PATH_XMLTO in
13806 [\\/]* | ?:[\\/]*)
13807 ac_cv_path_PATH_XMLTO="$PATH_XMLTO" # Let the user override the test with a path.
13808 ;;
13809 *)
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH
13812 do
13813 IFS=$as_save_IFS
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
13816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13817 ac_cv_path_PATH_XMLTO="$as_dir/$ac_word$ac_exec_ext"
13818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13819 break 2
13820 fi
13821 done
13822 done
13823 IFS=$as_save_IFS
13824
13825 ;;
13826 esac
13827 fi
13828 PATH_XMLTO=$ac_cv_path_PATH_XMLTO
13829 if test -n "$PATH_XMLTO"; then
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_XMLTO" >&5
13831 $as_echo "$PATH_XMLTO" >&6; }
13832 else
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13834 $as_echo "no" >&6; }
13835 fi
13836
13837
13838 test -n "$PATH_XMLTO" && break
13839 done
13840 test -n "$PATH_XMLTO" || PATH_XMLTO=":"
13841
13842
13843
13844 # Check whether --enable-compat-dtd was given.
13845 if test "${enable_compat_dtd+set}" = set; then :
13846 enableval=$enable_compat_dtd; compat_dtd=$withval
13847 else
13848 compat_dtd=no
13849 fi
13850
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which version of the DocBook DTD to use" >&5
13852 $as_echo_n "checking which version of the DocBook DTD to use... " >&6; }
13853 if test x$compat_dtd = xyes ; then
13854 DOCBOOK_PACKAGE_START=
13855 DOCBOOK_PACKAGE_END=
13856 DOCBOOK_VERSION=4.3
13857 else
13858 DOCBOOK_PACKAGE_START="<package>"
13859 DOCBOOK_PACKAGE_END="</package>"
13860 DOCBOOK_VERSION=4.4
13861 fi
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_VERSION" >&5
13863 $as_echo "$DOCBOOK_VERSION" >&6; }
13864
13865
13866
13867
13868 currentuser=`id -un`
13869
13870 currentgroup=`id -gn`
13871
13872 currentuid=`id -u`
13873
13874 currentgid=`id -g`
13875
13876 for ac_prog in pwd
13877 do
13878 # Extract the first word of "$ac_prog", so it can be a program name with args.
13879 set dummy $ac_prog; ac_word=$2
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13881 $as_echo_n "checking for $ac_word... " >&6; }
13882 if ${ac_cv_path_PATH_PWD+:} false; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 case $PATH_PWD in
13886 [\\/]* | ?:[\\/]*)
13887 ac_cv_path_PATH_PWD="$PATH_PWD" # Let the user override the test with a path.
13888 ;;
13889 *)
13890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13891 for as_dir in $PATH
13892 do
13893 IFS=$as_save_IFS
13894 test -z "$as_dir" && as_dir=.
13895 for ac_exec_ext in '' $ac_executable_extensions; do
13896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13897 ac_cv_path_PATH_PWD="$as_dir/$ac_word$ac_exec_ext"
13898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13899 break 2
13900 fi
13901 done
13902 done
13903 IFS=$as_save_IFS
13904
13905 ;;
13906 esac
13907 fi
13908 PATH_PWD=$ac_cv_path_PATH_PWD
13909 if test -n "$PATH_PWD"; then
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PWD" >&5
13911 $as_echo "$PATH_PWD" >&6; }
13912 else
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 $as_echo "no" >&6; }
13915 fi
13916
13917
13918 test -n "$PATH_PWD" && break
13919 done
13920 test -n "$PATH_PWD" || PATH_PWD="pwd"
13921
13922
13923 # Check whether --enable-systemd was given.
13924 if test "${enable_systemd+set}" = set; then :
13925 enableval=$enable_systemd; systemd=$enableval
13926 if test x$systemd = xyes ; then
13927 SYSTEMDSYSTEMUNITDIR=`pkg-config --variable=systemdsystemunitdir systemd`
13928 fi
13929
13930 else
13931 if pkg-config systemd 2> /dev/null ; then
13932 SYSTEMDSYSTEMUNITDIR=`pkg-config --variable=systemdsystemunitdir systemd 2> /dev/null`
13933 systemd=yes
13934 else
13935 systemd=no
13936 fi
13937
13938 fi
13939
13940
13941 # Check whether --enable-sysvinit was given.
13942 if test "${enable_sysvinit+set}" = set; then :
13943 enableval=$enable_sysvinit; sysvinit=$enableval
13944 else
13945 if test x$systemd = xno ; then
13946 sysvinit=yes
13947 else
13948 sysvinit=no
13949 fi
13950
13951 fi
13952
13953 if test x$systemd = xyes ; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing systemd unit file" >&5
13955 $as_echo "installing systemd unit file" >&6; }
13956 if test "x$SYSTEMDSYSTEMUNITDIR" = x ; then
13957 as_fn_error $? "error locating systemd system unit directory" "$LINENO" 5
13958 fi
13959
13960 else
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not installing systemd unit file" >&5
13962 $as_echo "not installing systemd unit file" >&6; }
13963 fi
13964 if test x$systemd = xyes; then
13965 SYSTEMD_TRUE=
13966 SYSTEMD_FALSE='#'
13967 else
13968 SYSTEMD_TRUE='#'
13969 SYSTEMD_FALSE=
13970 fi
13971
13972 if test x$sysvinit = xyes ; then
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing sysv init script" >&5
13974 $as_echo "installing sysv init script" >&6; }
13975 else
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not installing sysv init script" >&5
13977 $as_echo "not installing sysv init script" >&6; }
13978 fi
13979 if test x$sysvinit = xyes; then
13980 SYSVINIT_TRUE=
13981 SYSVINIT_FALSE='#'
13982 else
13983 SYSVINIT_TRUE='#'
13984 SYSVINIT_FALSE=
13985 fi
13986
13987
13988 # Check whether --enable-pie was given.
13989 if test "${enable_pie+set}" = set; then :
13990 enableval=$enable_pie; pie=$enableval
13991 else
13992 pie=no
13993 fi
13994
13995 if test x$pie = xyes ; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: building position-independent executables" >&5
13997 $as_echo "building position-independent executables" >&6; }
13998 else
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NOT building position-independent executables" >&5
14000 $as_echo "NOT building position-independent executables" >&6; }
14001 fi
14002 if test x$pie = xyes; then
14003 PIE_TRUE=
14004 PIE_FALSE='#'
14005 else
14006 PIE_TRUE='#'
14007 PIE_FALSE=
14008 fi
14009
14010
14011 # Check whether --enable-now was given.
14012 if test "${enable_now+set}" = set; then :
14013 enableval=$enable_now; now=$enableval
14014 else
14015 now=no
14016 fi
14017
14018 if test x$now = xyes ; then
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: building bind-now executables" >&5
14020 $as_echo "building bind-now executables" >&6; }
14021 else
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NOT building bind-now executables" >&5
14023 $as_echo "NOT building bind-now executables" >&6; }
14024 fi
14025 if test x$now = xyes; then
14026 NOW_TRUE=
14027 NOW_FALSE='#'
14028 else
14029 NOW_TRUE='#'
14030 NOW_FALSE=
14031 fi
14032
14033
14034 ac_config_commands="$ac_config_commands src/mkhomedirfor+x"
14035
14036 ac_config_commands="$ac_config_commands src/mkmyhomedir+x"
14037
14038 ac_config_commands="$ac_config_commands src/reload+x"
14039
14040 ac_config_commands="$ac_config_commands scripts/oddjobd+x"
14041
14042 ac_config_commands="$ac_config_commands tests/sanity.sh+x"
14043
14044
14045 ac_config_files="$ac_config_files Makefile autoversion src/Makefile scripts/Makefile scripts/oddjobd scripts/oddjobd.service sample/Makefile src/oddjob.pc src/oddjob.conf src/oddjob.conf.5 src/oddjob-mkhomedir.conf.5 src/oddjobd.conf src/oddjobd.conf.5 src/oddjobd-introspection.conf.5 src/oddjobd-mkhomedir.conf.5 src/oddjobd-local.conf src/oddjob_request.1 src/oddjobd.8 src/pam_oddjob_mkhomedir.8 src/oddjob-mkhomedir.conf src/oddjobd-mkhomedir.conf src/make-i11nconf.sh src/printenv.sh src/mkhomedirfor src/mkmyhomedir src/reload python/Makefile oddjobconfig.dtd sample/oddjobd-sample.conf sample/oddjob-sample.conf sample/oddjob-sample.sh doc/Makefile doc/oddjob.xml tests/Makefile tests/test-oddjobd.conf tests/sanity.sh tests/006/expected_stdout tests/007/expected_stdout tests/008/expected_stdout tests/cmdparse/Makefile"
14046
14047 cat >confcache <<\_ACEOF
14048 # This file is a shell script that caches the results of configure
14049 # tests run on this system so they can be shared between configure
14050 # scripts and configure runs, see configure's option --config-cache.
14051 # It is not useful on other systems. If it contains results you don't
14052 # want to keep, you may remove or edit it.
14053 #
14054 # config.status only pays attention to the cache file if you give it
14055 # the --recheck option to rerun configure.
14056 #
14057 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14058 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14059 # following values.
14060
14061 _ACEOF
14062
14063 # The following way of writing the cache mishandles newlines in values,
14064 # but we know of no workaround that is simple, portable, and efficient.
14065 # So, we kill variables containing newlines.
14066 # Ultrix sh set writes to stderr and can't be redirected directly,
14067 # and sets the high bit in the cache file unless we assign to the vars.
14068 (
14069 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14070 eval ac_val=\$$ac_var
14071 case $ac_val in #(
14072 *${as_nl}*)
14073 case $ac_var in #(
14074 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14075 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14076 esac
14077 case $ac_var in #(
14078 _ | IFS | as_nl) ;; #(
14079 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14080 *) { eval $ac_var=; unset $ac_var;} ;;
14081 esac ;;
14082 esac
14083 done
14084
14085 (set) 2>&1 |
14086 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14087 *${as_nl}ac_space=\ *)
14088 # `set' does not quote correctly, so add quotes: double-quote
14089 # substitution turns \\\\ into \\, and sed turns \\ into \.
14090 sed -n \
14091 "s/'/'\\\\''/g;
14092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14093 ;; #(
14094 *)
14095 # `set' quotes correctly as required by POSIX, so do not add quotes.
14096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14097 ;;
14098 esac |
14099 sort
14100 ) |
14101 sed '
14102 /^ac_cv_env_/b end
14103 t clear
14104 :clear
14105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14106 t end
14107 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14108 :end' >>confcache
14109 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14110 if test -w "$cache_file"; then
14111 if test "x$cache_file" != "x/dev/null"; then
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14113 $as_echo "$as_me: updating cache $cache_file" >&6;}
14114 if test ! -f "$cache_file" || test -h "$cache_file"; then
14115 cat confcache >"$cache_file"
14116 else
14117 case $cache_file in #(
14118 */* | ?:*)
14119 mv -f confcache "$cache_file"$$ &&
14120 mv -f "$cache_file"$$ "$cache_file" ;; #(
14121 *)
14122 mv -f confcache "$cache_file" ;;
14123 esac
14124 fi
14125 fi
14126 else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14128 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14129 fi
14130 fi
14131 rm -f confcache
14132
14133 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14134 # Let make expand exec_prefix.
14135 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14136
14137 DEFS=-DHAVE_CONFIG_H
14138
14139 ac_libobjs=
14140 ac_ltlibobjs=
14141 U=
14142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14143 # 1. Remove the extension, and $U if already installed.
14144 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14145 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14146 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14147 # will be set to the directory where LIBOBJS objects are built.
14148 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14149 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14150 done
14151 LIBOBJS=$ac_libobjs
14152
14153 LTLIBOBJS=$ac_ltlibobjs
14154
14155
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14157 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14158 if test -n "$am_sleep_pid"; then
14159 # Hide warnings about reused PIDs.
14160 wait $am_sleep_pid 2>/dev/null
14161 fi
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14163 $as_echo "done" >&6; }
14164 if test -n "$EXEEXT"; then
14165 am__EXEEXT_TRUE=
14166 am__EXEEXT_FALSE='#'
14167 else
14168 am__EXEEXT_TRUE='#'
14169 am__EXEEXT_FALSE=
14170 fi
14171
14172 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14173 as_fn_error $? "conditional \"AMDEP\" was never defined.
14174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14175 fi
14176 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14177 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14179 fi
14180 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14181 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14183 fi
14184 if test -z "${BUILD_PAM_TRUE}" && test -z "${BUILD_PAM_FALSE}"; then
14185 as_fn_error $? "conditional \"BUILD_PAM\" was never defined.
14186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14187 fi
14188 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
14189 as_fn_error $? "conditional \"SYSTEMD\" was never defined.
14190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14191 fi
14192 if test -z "${INSTALL_SAMPLE_TRUE}" && test -z "${INSTALL_SAMPLE_FALSE}"; then
14193 as_fn_error $? "conditional \"INSTALL_SAMPLE\" was never defined.
14194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14195 fi
14196 if test -z "${ENABLE_EXPERIMENTAL_TRUE}" && test -z "${ENABLE_EXPERIMENTAL_FALSE}"; then
14197 as_fn_error $? "conditional \"ENABLE_EXPERIMENTAL\" was never defined.
14198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14199 fi
14200 if test -z "${LIBODDJOB_TRUE}" && test -z "${LIBODDJOB_FALSE}"; then
14201 as_fn_error $? "conditional \"LIBODDJOB\" was never defined.
14202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14203 fi
14204 if test -z "${PYTHON_TRUE}" && test -z "${PYTHON_FALSE}"; then
14205 as_fn_error $? "conditional \"PYTHON\" was never defined.
14206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14207 fi
14208 if test -z "${REFORMAT_XML_DOCS_TRUE}" && test -z "${REFORMAT_XML_DOCS_FALSE}"; then
14209 as_fn_error $? "conditional \"REFORMAT_XML_DOCS\" was never defined.
14210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14211 fi
14212 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
14213 as_fn_error $? "conditional \"SYSTEMD\" was never defined.
14214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14215 fi
14216 if test -z "${SYSVINIT_TRUE}" && test -z "${SYSVINIT_FALSE}"; then
14217 as_fn_error $? "conditional \"SYSVINIT\" was never defined.
14218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14219 fi
14220 if test -z "${PIE_TRUE}" && test -z "${PIE_FALSE}"; then
14221 as_fn_error $? "conditional \"PIE\" was never defined.
14222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14223 fi
14224 if test -z "${NOW_TRUE}" && test -z "${NOW_FALSE}"; then
14225 as_fn_error $? "conditional \"NOW\" was never defined.
14226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14227 fi
14228
14229 : "${CONFIG_STATUS=./config.status}"
14230 ac_write_fail=0
14231 ac_clean_files_save=$ac_clean_files
14232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14234 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14235 as_write_fail=0
14236 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14237 #! $SHELL
14238 # Generated by $as_me.
14239 # Run this file to recreate the current configuration.
14240 # Compiler output produced by configure, useful for debugging
14241 # configure, is in config.log if it exists.
14242
14243 debug=false
14244 ac_cs_recheck=false
14245 ac_cs_silent=false
14246
14247 SHELL=\${CONFIG_SHELL-$SHELL}
14248 export SHELL
14249 _ASEOF
14250 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14251 ## -------------------- ##
14252 ## M4sh Initialization. ##
14253 ## -------------------- ##
14254
14255 # Be more Bourne compatible
14256 DUALCASE=1; export DUALCASE # for MKS sh
14257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14258 emulate sh
14259 NULLCMD=:
14260 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14261 # is contrary to our usage. Disable this feature.
14262 alias -g '${1+"$@"}'='"$@"'
14263 setopt NO_GLOB_SUBST
14264 else
14265 case `(set -o) 2>/dev/null` in #(
14266 *posix*) :
14267 set -o posix ;; #(
14268 *) :
14269 ;;
14270 esac
14271 fi
14272
14273
14274 as_nl='
14275 '
14276 export as_nl
14277 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14278 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14281 # Prefer a ksh shell builtin over an external printf program on Solaris,
14282 # but without wasting forks for bash or zsh.
14283 if test -z "$BASH_VERSION$ZSH_VERSION" \
14284 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14285 as_echo='print -r --'
14286 as_echo_n='print -rn --'
14287 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14288 as_echo='printf %s\n'
14289 as_echo_n='printf %s'
14290 else
14291 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14292 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14293 as_echo_n='/usr/ucb/echo -n'
14294 else
14295 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14296 as_echo_n_body='eval
14297 arg=$1;
14298 case $arg in #(
14299 *"$as_nl"*)
14300 expr "X$arg" : "X\\(.*\\)$as_nl";
14301 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14302 esac;
14303 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14304 '
14305 export as_echo_n_body
14306 as_echo_n='sh -c $as_echo_n_body as_echo'
14307 fi
14308 export as_echo_body
14309 as_echo='sh -c $as_echo_body as_echo'
14310 fi
14311
14312 # The user is always right.
14313 if test "${PATH_SEPARATOR+set}" != set; then
14314 PATH_SEPARATOR=:
14315 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14316 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14317 PATH_SEPARATOR=';'
14318 }
14319 fi
14320
14321
14322 # IFS
14323 # We need space, tab and new line, in precisely that order. Quoting is
14324 # there to prevent editors from complaining about space-tab.
14325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14326 # splitting by setting IFS to empty value.)
14327 IFS=" "" $as_nl"
14328
14329 # Find who we are. Look in the path if we contain no directory separator.
14330 as_myself=
14331 case $0 in #((
14332 *[\\/]* ) as_myself=$0 ;;
14333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14334 for as_dir in $PATH
14335 do
14336 IFS=$as_save_IFS
14337 test -z "$as_dir" && as_dir=.
14338 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14339 done
14340 IFS=$as_save_IFS
14341
14342 ;;
14343 esac
14344 # We did not find ourselves, most probably we were run as `sh COMMAND'
14345 # in which case we are not to be found in the path.
14346 if test "x$as_myself" = x; then
14347 as_myself=$0
14348 fi
14349 if test ! -f "$as_myself"; then
14350 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14351 exit 1
14352 fi
14353
14354 # Unset variables that we do not need and which cause bugs (e.g. in
14355 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14356 # suppresses any "Segmentation fault" message there. '((' could
14357 # trigger a bug in pdksh 5.2.14.
14358 for as_var in BASH_ENV ENV MAIL MAILPATH
14359 do eval test x\${$as_var+set} = xset \
14360 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14361 done
14362 PS1='$ '
14363 PS2='> '
14364 PS4='+ '
14365
14366 # NLS nuisances.
14367 LC_ALL=C
14368 export LC_ALL
14369 LANGUAGE=C
14370 export LANGUAGE
14371
14372 # CDPATH.
14373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14374
14375
14376 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14377 # ----------------------------------------
14378 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14379 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14380 # script with STATUS, using 1 if that was 0.
14381 as_fn_error ()
14382 {
14383 as_status=$1; test $as_status -eq 0 && as_status=1
14384 if test "$4"; then
14385 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14386 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14387 fi
14388 $as_echo "$as_me: error: $2" >&2
14389 as_fn_exit $as_status
14390 } # as_fn_error
14391
14392
14393 # as_fn_set_status STATUS
14394 # -----------------------
14395 # Set $? to STATUS, without forking.
14396 as_fn_set_status ()
14397 {
14398 return $1
14399 } # as_fn_set_status
14400
14401 # as_fn_exit STATUS
14402 # -----------------
14403 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14404 as_fn_exit ()
14405 {
14406 set +e
14407 as_fn_set_status $1
14408 exit $1
14409 } # as_fn_exit
14410
14411 # as_fn_unset VAR
14412 # ---------------
14413 # Portably unset VAR.
14414 as_fn_unset ()
14415 {
14416 { eval $1=; unset $1;}
14417 }
14418 as_unset=as_fn_unset
14419 # as_fn_append VAR VALUE
14420 # ----------------------
14421 # Append the text in VALUE to the end of the definition contained in VAR. Take
14422 # advantage of any shell optimizations that allow amortized linear growth over
14423 # repeated appends, instead of the typical quadratic growth present in naive
14424 # implementations.
14425 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14426 eval 'as_fn_append ()
14427 {
14428 eval $1+=\$2
14429 }'
14430 else
14431 as_fn_append ()
14432 {
14433 eval $1=\$$1\$2
14434 }
14435 fi # as_fn_append
14436
14437 # as_fn_arith ARG...
14438 # ------------------
14439 # Perform arithmetic evaluation on the ARGs, and store the result in the
14440 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14441 # must be portable across $(()) and expr.
14442 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14443 eval 'as_fn_arith ()
14444 {
14445 as_val=$(( $* ))
14446 }'
14447 else
14448 as_fn_arith ()
14449 {
14450 as_val=`expr "$@" || test $? -eq 1`
14451 }
14452 fi # as_fn_arith
14453
14454
14455 if expr a : '\(a\)' >/dev/null 2>&1 &&
14456 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14457 as_expr=expr
14458 else
14459 as_expr=false
14460 fi
14461
14462 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14463 as_basename=basename
14464 else
14465 as_basename=false
14466 fi
14467
14468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14469 as_dirname=dirname
14470 else
14471 as_dirname=false
14472 fi
14473
14474 as_me=`$as_basename -- "$0" ||
14475 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14476 X"$0" : 'X\(//\)$' \| \
14477 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14478 $as_echo X/"$0" |
14479 sed '/^.*\/\([^/][^/]*\)\/*$/{
14480 s//\1/
14481 q
14482 }
14483 /^X\/\(\/\/\)$/{
14484 s//\1/
14485 q
14486 }
14487 /^X\/\(\/\).*/{
14488 s//\1/
14489 q
14490 }
14491 s/.*/./; q'`
14492
14493 # Avoid depending upon Character Ranges.
14494 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14495 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14496 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14497 as_cr_digits='0123456789'
14498 as_cr_alnum=$as_cr_Letters$as_cr_digits
14499
14500 ECHO_C= ECHO_N= ECHO_T=
14501 case `echo -n x` in #(((((
14502 -n*)
14503 case `echo 'xy\c'` in
14504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14505 xy) ECHO_C='\c';;
14506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14507 ECHO_T=' ';;
14508 esac;;
14509 *)
14510 ECHO_N='-n';;
14511 esac
14512
14513 rm -f conf$$ conf$$.exe conf$$.file
14514 if test -d conf$$.dir; then
14515 rm -f conf$$.dir/conf$$.file
14516 else
14517 rm -f conf$$.dir
14518 mkdir conf$$.dir 2>/dev/null
14519 fi
14520 if (echo >conf$$.file) 2>/dev/null; then
14521 if ln -s conf$$.file conf$$ 2>/dev/null; then
14522 as_ln_s='ln -s'
14523 # ... but there are two gotchas:
14524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14526 # In both cases, we have to default to `cp -pR'.
14527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14528 as_ln_s='cp -pR'
14529 elif ln conf$$.file conf$$ 2>/dev/null; then
14530 as_ln_s=ln
14531 else
14532 as_ln_s='cp -pR'
14533 fi
14534 else
14535 as_ln_s='cp -pR'
14536 fi
14537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14538 rmdir conf$$.dir 2>/dev/null
14539
14540
14541 # as_fn_mkdir_p
14542 # -------------
14543 # Create "$as_dir" as a directory, including parents if necessary.
14544 as_fn_mkdir_p ()
14545 {
14546
14547 case $as_dir in #(
14548 -*) as_dir=./$as_dir;;
14549 esac
14550 test -d "$as_dir" || eval $as_mkdir_p || {
14551 as_dirs=
14552 while :; do
14553 case $as_dir in #(
14554 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14555 *) as_qdir=$as_dir;;
14556 esac
14557 as_dirs="'$as_qdir' $as_dirs"
14558 as_dir=`$as_dirname -- "$as_dir" ||
14559 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14560 X"$as_dir" : 'X\(//\)[^/]' \| \
14561 X"$as_dir" : 'X\(//\)$' \| \
14562 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14563 $as_echo X"$as_dir" |
14564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14565 s//\1/
14566 q
14567 }
14568 /^X\(\/\/\)[^/].*/{
14569 s//\1/
14570 q
14571 }
14572 /^X\(\/\/\)$/{
14573 s//\1/
14574 q
14575 }
14576 /^X\(\/\).*/{
14577 s//\1/
14578 q
14579 }
14580 s/.*/./; q'`
14581 test -d "$as_dir" && break
14582 done
14583 test -z "$as_dirs" || eval "mkdir $as_dirs"
14584 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14585
14586
14587 } # as_fn_mkdir_p
14588 if mkdir -p . 2>/dev/null; then
14589 as_mkdir_p='mkdir -p "$as_dir"'
14590 else
14591 test -d ./-p && rmdir ./-p
14592 as_mkdir_p=false
14593 fi
14594
14595
14596 # as_fn_executable_p FILE
14597 # -----------------------
14598 # Test if FILE is an executable regular file.
14599 as_fn_executable_p ()
14600 {
14601 test -f "$1" && test -x "$1"
14602 } # as_fn_executable_p
14603 as_test_x='test -x'
14604 as_executable_p=as_fn_executable_p
14605
14606 # Sed expression to map a string onto a valid CPP name.
14607 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14608
14609 # Sed expression to map a string onto a valid variable name.
14610 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14611
14612
14613 exec 6>&1
14614 ## ----------------------------------- ##
14615 ## Main body of $CONFIG_STATUS script. ##
14616 ## ----------------------------------- ##
14617 _ASEOF
14618 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14619
14620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14621 # Save the log message, to keep $0 and so on meaningful, and to
14622 # report actual input values of CONFIG_FILES etc. instead of their
14623 # values after options handling.
14624 ac_log="
14625 This file was extended by oddjob $as_me 0.34.7, which was
14626 generated by GNU Autoconf 2.69. Invocation command line was
14627
14628 CONFIG_FILES = $CONFIG_FILES
14629 CONFIG_HEADERS = $CONFIG_HEADERS
14630 CONFIG_LINKS = $CONFIG_LINKS
14631 CONFIG_COMMANDS = $CONFIG_COMMANDS
14632 $ $0 $@
14633
14634 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14635 "
14636
14637 _ACEOF
14638
14639 case $ac_config_files in *"
14640 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14641 esac
14642
14643 case $ac_config_headers in *"
14644 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14645 esac
14646
14647
14648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14649 # Files that config.status was made for.
14650 config_files="$ac_config_files"
14651 config_headers="$ac_config_headers"
14652 config_commands="$ac_config_commands"
14653
14654 _ACEOF
14655
14656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14657 ac_cs_usage="\
14658 \`$as_me' instantiates files and other configuration actions
14659 from templates according to the current configuration. Unless the files
14660 and actions are specified as TAGs, all are instantiated by default.
14661
14662 Usage: $0 [OPTION]... [TAG]...
14663
14664 -h, --help print this help, then exit
14665 -V, --version print version number and configuration settings, then exit
14666 --config print configuration, then exit
14667 -q, --quiet, --silent
14668 do not print progress messages
14669 -d, --debug don't remove temporary files
14670 --recheck update $as_me by reconfiguring in the same conditions
14671 --file=FILE[:TEMPLATE]
14672 instantiate the configuration file FILE
14673 --header=FILE[:TEMPLATE]
14674 instantiate the configuration header FILE
14675
14676 Configuration files:
14677 $config_files
14678
14679 Configuration headers:
14680 $config_headers
14681
14682 Configuration commands:
14683 $config_commands
14684
14685 Report bugs to the package provider."
14686
14687 _ACEOF
14688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14689 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14690 ac_cs_version="\\
14691 oddjob config.status 0.34.7
14692 configured by $0, generated by GNU Autoconf 2.69,
14693 with options \\"\$ac_cs_config\\"
14694
14695 Copyright (C) 2012 Free Software Foundation, Inc.
14696 This config.status script is free software; the Free Software Foundation
14697 gives unlimited permission to copy, distribute and modify it."
14698
14699 ac_pwd='$ac_pwd'
14700 srcdir='$srcdir'
14701 INSTALL='$INSTALL'
14702 MKDIR_P='$MKDIR_P'
14703 AWK='$AWK'
14704 test -n "\$AWK" || AWK=awk
14705 _ACEOF
14706
14707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14708 # The default lists apply if the user does not specify any file.
14709 ac_need_defaults=:
14710 while test $# != 0
14711 do
14712 case $1 in
14713 --*=?*)
14714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14715 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14716 ac_shift=:
14717 ;;
14718 --*=)
14719 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14720 ac_optarg=
14721 ac_shift=:
14722 ;;
14723 *)
14724 ac_option=$1
14725 ac_optarg=$2
14726 ac_shift=shift
14727 ;;
14728 esac
14729
14730 case $ac_option in
14731 # Handling of the options.
14732 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14733 ac_cs_recheck=: ;;
14734 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14735 $as_echo "$ac_cs_version"; exit ;;
14736 --config | --confi | --conf | --con | --co | --c )
14737 $as_echo "$ac_cs_config"; exit ;;
14738 --debug | --debu | --deb | --de | --d | -d )
14739 debug=: ;;
14740 --file | --fil | --fi | --f )
14741 $ac_shift
14742 case $ac_optarg in
14743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14744 '') as_fn_error $? "missing file argument" ;;
14745 esac
14746 as_fn_append CONFIG_FILES " '$ac_optarg'"
14747 ac_need_defaults=false;;
14748 --header | --heade | --head | --hea )
14749 $ac_shift
14750 case $ac_optarg in
14751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14752 esac
14753 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14754 ac_need_defaults=false;;
14755 --he | --h)
14756 # Conflict between --help and --header
14757 as_fn_error $? "ambiguous option: \`$1'
14758 Try \`$0 --help' for more information.";;
14759 --help | --hel | -h )
14760 $as_echo "$ac_cs_usage"; exit ;;
14761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14762 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14763 ac_cs_silent=: ;;
14764
14765 # This is an error.
14766 -*) as_fn_error $? "unrecognized option: \`$1'
14767 Try \`$0 --help' for more information." ;;
14768
14769 *) as_fn_append ac_config_targets " $1"
14770 ac_need_defaults=false ;;
14771
14772 esac
14773 shift
14774 done
14775
14776 ac_configure_extra_args=
14777
14778 if $ac_cs_silent; then
14779 exec 6>/dev/null
14780 ac_configure_extra_args="$ac_configure_extra_args --silent"
14781 fi
14782
14783 _ACEOF
14784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14785 if \$ac_cs_recheck; then
14786 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14787 shift
14788 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14789 CONFIG_SHELL='$SHELL'
14790 export CONFIG_SHELL
14791 exec "\$@"
14792 fi
14793
14794 _ACEOF
14795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14796 exec 5>>config.log
14797 {
14798 echo
14799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14800 ## Running $as_me. ##
14801 _ASBOX
14802 $as_echo "$ac_log"
14803 } >&5
14804
14805 _ACEOF
14806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14807 #
14808 # INIT-COMMANDS
14809 #
14810 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14811
14812
14813 # The HP-UX ksh and POSIX shell print the target directory to stdout
14814 # if CDPATH is set.
14815 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14816
14817 sed_quote_subst='$sed_quote_subst'
14818 double_quote_subst='$double_quote_subst'
14819 delay_variable_subst='$delay_variable_subst'
14820 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14821 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14822 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14823 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14824 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14825 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14826 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14827 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14828 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14829 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14830 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14831 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14832 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14833 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14834 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14835 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14836 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14837 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14838 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14839 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14840 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14841 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14842 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14843 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14844 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14845 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14846 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14847 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14848 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14849 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14850 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14851 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14852 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14853 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14854 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14855 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14856 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14857 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14858 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14859 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14860 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14861 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14862 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14863 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14864 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14865 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14866 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14867 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14868 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14869 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14870 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14871 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14872 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14873 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14874 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14875 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14876 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14877 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14878 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"`'
14879 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14880 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14881 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14882 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14883 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14884 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14885 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14886 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14887 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14888 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14889 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14890 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14891 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14892 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14893 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14894 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14895 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14896 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14897 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14898 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14899 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14900 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14901 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14902 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14903 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14904 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14905 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14906 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14907 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14908 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14909 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14910 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14911 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14912 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14913 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14914 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14915 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14916 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14917 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14918 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14919 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14920 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14921 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14922 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14923 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14924 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14925 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14926 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14927 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14928 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14929 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14930 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14931 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14932 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14933 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14934 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14935 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14936 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14937 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14938 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14939 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14940 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14941 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14942 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14943 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14944 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14945 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14946 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14947 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14948 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14949 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14950 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14951 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14952 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14953 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14954 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14955
14956 LTCC='$LTCC'
14957 LTCFLAGS='$LTCFLAGS'
14958 compiler='$compiler_DEFAULT'
14959
14960 # A function that is used when there is no print builtin or printf.
14961 func_fallback_echo ()
14962 {
14963 eval 'cat <<_LTECHO_EOF
14964 \$1
14965 _LTECHO_EOF'
14966 }
14967
14968 # Quote evaled strings.
14969 for var in SHELL \
14970 ECHO \
14971 PATH_SEPARATOR \
14972 SED \
14973 GREP \
14974 EGREP \
14975 FGREP \
14976 LD \
14977 NM \
14978 LN_S \
14979 lt_SP2NL \
14980 lt_NL2SP \
14981 reload_flag \
14982 OBJDUMP \
14983 deplibs_check_method \
14984 file_magic_cmd \
14985 file_magic_glob \
14986 want_nocaseglob \
14987 DLLTOOL \
14988 sharedlib_from_linklib_cmd \
14989 AR \
14990 AR_FLAGS \
14991 archiver_list_spec \
14992 STRIP \
14993 RANLIB \
14994 CC \
14995 CFLAGS \
14996 compiler \
14997 lt_cv_sys_global_symbol_pipe \
14998 lt_cv_sys_global_symbol_to_cdecl \
14999 lt_cv_sys_global_symbol_to_import \
15000 lt_cv_sys_global_symbol_to_c_name_address \
15001 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15002 lt_cv_nm_interface \
15003 nm_file_list_spec \
15004 lt_cv_truncate_bin \
15005 lt_prog_compiler_no_builtin_flag \
15006 lt_prog_compiler_pic \
15007 lt_prog_compiler_wl \
15008 lt_prog_compiler_static \
15009 lt_cv_prog_compiler_c_o \
15010 need_locks \
15011 MANIFEST_TOOL \
15012 DSYMUTIL \
15013 NMEDIT \
15014 LIPO \
15015 OTOOL \
15016 OTOOL64 \
15017 shrext_cmds \
15018 export_dynamic_flag_spec \
15019 whole_archive_flag_spec \
15020 compiler_needs_object \
15021 with_gnu_ld \
15022 allow_undefined_flag \
15023 no_undefined_flag \
15024 hardcode_libdir_flag_spec \
15025 hardcode_libdir_separator \
15026 exclude_expsyms \
15027 include_expsyms \
15028 file_list_spec \
15029 variables_saved_for_relink \
15030 libname_spec \
15031 library_names_spec \
15032 soname_spec \
15033 install_override_mode \
15034 finish_eval \
15035 old_striplib \
15036 striplib; do
15037 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15038 *[\\\\\\\`\\"\\\$]*)
15039 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15040 ;;
15041 *)
15042 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15043 ;;
15044 esac
15045 done
15046
15047 # Double-quote double-evaled strings.
15048 for var in reload_cmds \
15049 old_postinstall_cmds \
15050 old_postuninstall_cmds \
15051 old_archive_cmds \
15052 extract_expsyms_cmds \
15053 old_archive_from_new_cmds \
15054 old_archive_from_expsyms_cmds \
15055 archive_cmds \
15056 archive_expsym_cmds \
15057 module_cmds \
15058 module_expsym_cmds \
15059 export_symbols_cmds \
15060 prelink_cmds \
15061 postlink_cmds \
15062 postinstall_cmds \
15063 postuninstall_cmds \
15064 finish_cmds \
15065 sys_lib_search_path_spec \
15066 configure_time_dlsearch_path \
15067 configure_time_lt_sys_library_path; do
15068 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15069 *[\\\\\\\`\\"\\\$]*)
15070 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15071 ;;
15072 *)
15073 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15074 ;;
15075 esac
15076 done
15077
15078 ac_aux_dir='$ac_aux_dir'
15079
15080 # See if we are running on zsh, and set the options that allow our
15081 # commands through without removal of \ escapes INIT.
15082 if test -n "\${ZSH_VERSION+set}"; then
15083 setopt NO_GLOB_SUBST
15084 fi
15085
15086
15087 PACKAGE='$PACKAGE'
15088 VERSION='$VERSION'
15089 RM='$RM'
15090 ofile='$ofile'
15091
15092
15093
15094
15095 _ACEOF
15096
15097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15098
15099 # Handling of arguments.
15100 for ac_config_target in $ac_config_targets
15101 do
15102 case $ac_config_target in
15103 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15104 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15105 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15106 "src/mkhomedirfor+x") CONFIG_COMMANDS="$CONFIG_COMMANDS src/mkhomedirfor+x" ;;
15107 "src/mkmyhomedir+x") CONFIG_COMMANDS="$CONFIG_COMMANDS src/mkmyhomedir+x" ;;
15108 "src/reload+x") CONFIG_COMMANDS="$CONFIG_COMMANDS src/reload+x" ;;
15109 "scripts/oddjobd+x") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts/oddjobd+x" ;;
15110 "tests/sanity.sh+x") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/sanity.sh+x" ;;
15111 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15112 "autoversion") CONFIG_FILES="$CONFIG_FILES autoversion" ;;
15113 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15114 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
15115 "scripts/oddjobd") CONFIG_FILES="$CONFIG_FILES scripts/oddjobd" ;;
15116 "scripts/oddjobd.service") CONFIG_FILES="$CONFIG_FILES scripts/oddjobd.service" ;;
15117 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
15118 "src/oddjob.pc") CONFIG_FILES="$CONFIG_FILES src/oddjob.pc" ;;
15119 "src/oddjob.conf") CONFIG_FILES="$CONFIG_FILES src/oddjob.conf" ;;
15120 "src/oddjob.conf.5") CONFIG_FILES="$CONFIG_FILES src/oddjob.conf.5" ;;
15121 "src/oddjob-mkhomedir.conf.5") CONFIG_FILES="$CONFIG_FILES src/oddjob-mkhomedir.conf.5" ;;
15122 "src/oddjobd.conf") CONFIG_FILES="$CONFIG_FILES src/oddjobd.conf" ;;
15123 "src/oddjobd.conf.5") CONFIG_FILES="$CONFIG_FILES src/oddjobd.conf.5" ;;
15124 "src/oddjobd-introspection.conf.5") CONFIG_FILES="$CONFIG_FILES src/oddjobd-introspection.conf.5" ;;
15125 "src/oddjobd-mkhomedir.conf.5") CONFIG_FILES="$CONFIG_FILES src/oddjobd-mkhomedir.conf.5" ;;
15126 "src/oddjobd-local.conf") CONFIG_FILES="$CONFIG_FILES src/oddjobd-local.conf" ;;
15127 "src/oddjob_request.1") CONFIG_FILES="$CONFIG_FILES src/oddjob_request.1" ;;
15128 "src/oddjobd.8") CONFIG_FILES="$CONFIG_FILES src/oddjobd.8" ;;
15129 "src/pam_oddjob_mkhomedir.8") CONFIG_FILES="$CONFIG_FILES src/pam_oddjob_mkhomedir.8" ;;
15130 "src/oddjob-mkhomedir.conf") CONFIG_FILES="$CONFIG_FILES src/oddjob-mkhomedir.conf" ;;
15131 "src/oddjobd-mkhomedir.conf") CONFIG_FILES="$CONFIG_FILES src/oddjobd-mkhomedir.conf" ;;
15132 "src/make-i11nconf.sh") CONFIG_FILES="$CONFIG_FILES src/make-i11nconf.sh" ;;
15133 "src/printenv.sh") CONFIG_FILES="$CONFIG_FILES src/printenv.sh" ;;
15134 "src/mkhomedirfor") CONFIG_FILES="$CONFIG_FILES src/mkhomedirfor" ;;
15135 "src/mkmyhomedir") CONFIG_FILES="$CONFIG_FILES src/mkmyhomedir" ;;
15136 "src/reload") CONFIG_FILES="$CONFIG_FILES src/reload" ;;
15137 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15138 "oddjobconfig.dtd") CONFIG_FILES="$CONFIG_FILES oddjobconfig.dtd" ;;
15139 "sample/oddjobd-sample.conf") CONFIG_FILES="$CONFIG_FILES sample/oddjobd-sample.conf" ;;
15140 "sample/oddjob-sample.conf") CONFIG_FILES="$CONFIG_FILES sample/oddjob-sample.conf" ;;
15141 "sample/oddjob-sample.sh") CONFIG_FILES="$CONFIG_FILES sample/oddjob-sample.sh" ;;
15142 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15143 "doc/oddjob.xml") CONFIG_FILES="$CONFIG_FILES doc/oddjob.xml" ;;
15144 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15145 "tests/test-oddjobd.conf") CONFIG_FILES="$CONFIG_FILES tests/test-oddjobd.conf" ;;
15146 "tests/sanity.sh") CONFIG_FILES="$CONFIG_FILES tests/sanity.sh" ;;
15147 "tests/006/expected_stdout") CONFIG_FILES="$CONFIG_FILES tests/006/expected_stdout" ;;
15148 "tests/007/expected_stdout") CONFIG_FILES="$CONFIG_FILES tests/007/expected_stdout" ;;
15149 "tests/008/expected_stdout") CONFIG_FILES="$CONFIG_FILES tests/008/expected_stdout" ;;
15150 "tests/cmdparse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cmdparse/Makefile" ;;
15151
15152 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15153 esac
15154 done
15155
15156
15157 # If the user did not use the arguments to specify the items to instantiate,
15158 # then the envvar interface is used. Set only those that are not.
15159 # We use the long form for the default assignment because of an extremely
15160 # bizarre bug on SunOS 4.1.3.
15161 if $ac_need_defaults; then
15162 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15163 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15164 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15165 fi
15166
15167 # Have a temporary directory for convenience. Make it in the build tree
15168 # simply because there is no reason against having it here, and in addition,
15169 # creating and moving files from /tmp can sometimes cause problems.
15170 # Hook for its removal unless debugging.
15171 # Note that there is a small window in which the directory will not be cleaned:
15172 # after its creation but before its name has been assigned to `$tmp'.
15173 $debug ||
15174 {
15175 tmp= ac_tmp=
15176 trap 'exit_status=$?
15177 : "${ac_tmp:=$tmp}"
15178 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15179 ' 0
15180 trap 'as_fn_exit 1' 1 2 13 15
15181 }
15182 # Create a (secure) tmp directory for tmp files.
15183
15184 {
15185 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15186 test -d "$tmp"
15187 } ||
15188 {
15189 tmp=./conf$$-$RANDOM
15190 (umask 077 && mkdir "$tmp")
15191 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15192 ac_tmp=$tmp
15193
15194 # Set up the scripts for CONFIG_FILES section.
15195 # No need to generate them if there are no CONFIG_FILES.
15196 # This happens for instance with `./config.status config.h'.
15197 if test -n "$CONFIG_FILES"; then
15198
15199
15200 ac_cr=`echo X | tr X '\015'`
15201 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15202 # But we know of no other shell where ac_cr would be empty at this
15203 # point, so we can use a bashism as a fallback.
15204 if test "x$ac_cr" = x; then
15205 eval ac_cr=\$\'\\r\'
15206 fi
15207 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15208 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15209 ac_cs_awk_cr='\\r'
15210 else
15211 ac_cs_awk_cr=$ac_cr
15212 fi
15213
15214 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15215 _ACEOF
15216
15217
15218 {
15219 echo "cat >conf$$subs.awk <<_ACEOF" &&
15220 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15221 echo "_ACEOF"
15222 } >conf$$subs.sh ||
15223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15224 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15225 ac_delim='%!_!# '
15226 for ac_last_try in false false false false false :; do
15227 . ./conf$$subs.sh ||
15228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15229
15230 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15231 if test $ac_delim_n = $ac_delim_num; then
15232 break
15233 elif $ac_last_try; then
15234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15235 else
15236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15237 fi
15238 done
15239 rm -f conf$$subs.sh
15240
15241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15242 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15243 _ACEOF
15244 sed -n '
15245 h
15246 s/^/S["/; s/!.*/"]=/
15247 p
15248 g
15249 s/^[^!]*!//
15250 :repl
15251 t repl
15252 s/'"$ac_delim"'$//
15253 t delim
15254 :nl
15255 h
15256 s/\(.\{148\}\)..*/\1/
15257 t more1
15258 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15259 p
15260 n
15261 b repl
15262 :more1
15263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15264 p
15265 g
15266 s/.\{148\}//
15267 t nl
15268 :delim
15269 h
15270 s/\(.\{148\}\)..*/\1/
15271 t more2
15272 s/["\\]/\\&/g; s/^/"/; s/$/"/
15273 p
15274 b
15275 :more2
15276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15277 p
15278 g
15279 s/.\{148\}//
15280 t delim
15281 ' <conf$$subs.awk | sed '
15282 /^[^""]/{
15283 N
15284 s/\n//
15285 }
15286 ' >>$CONFIG_STATUS || ac_write_fail=1
15287 rm -f conf$$subs.awk
15288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15289 _ACAWK
15290 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15291 for (key in S) S_is_set[key] = 1
15292 FS = ""
15293
15294 }
15295 {
15296 line = $ 0
15297 nfields = split(line, field, "@")
15298 substed = 0
15299 len = length(field[1])
15300 for (i = 2; i < nfields; i++) {
15301 key = field[i]
15302 keylen = length(key)
15303 if (S_is_set[key]) {
15304 value = S[key]
15305 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15306 len += length(value) + length(field[++i])
15307 substed = 1
15308 } else
15309 len += 1 + keylen
15310 }
15311
15312 print line
15313 }
15314
15315 _ACAWK
15316 _ACEOF
15317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15318 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15319 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15320 else
15321 cat
15322 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15323 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15324 _ACEOF
15325
15326 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15327 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15328 # trailing colons and then remove the whole line if VPATH becomes empty
15329 # (actually we leave an empty line to preserve line numbers).
15330 if test "x$srcdir" = x.; then
15331 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15332 h
15333 s///
15334 s/^/:/
15335 s/[ ]*$/:/
15336 s/:\$(srcdir):/:/g
15337 s/:\${srcdir}:/:/g
15338 s/:@srcdir@:/:/g
15339 s/^:*//
15340 s/:*$//
15341 x
15342 s/\(=[ ]*\).*/\1/
15343 G
15344 s/\n//
15345 s/^[^=]*=[ ]*$//
15346 }'
15347 fi
15348
15349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15350 fi # test -n "$CONFIG_FILES"
15351
15352 # Set up the scripts for CONFIG_HEADERS section.
15353 # No need to generate them if there are no CONFIG_HEADERS.
15354 # This happens for instance with `./config.status Makefile'.
15355 if test -n "$CONFIG_HEADERS"; then
15356 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15357 BEGIN {
15358 _ACEOF
15359
15360 # Transform confdefs.h into an awk script `defines.awk', embedded as
15361 # here-document in config.status, that substitutes the proper values into
15362 # config.h.in to produce config.h.
15363
15364 # Create a delimiter string that does not exist in confdefs.h, to ease
15365 # handling of long lines.
15366 ac_delim='%!_!# '
15367 for ac_last_try in false false :; do
15368 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15369 if test -z "$ac_tt"; then
15370 break
15371 elif $ac_last_try; then
15372 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15373 else
15374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15375 fi
15376 done
15377
15378 # For the awk script, D is an array of macro values keyed by name,
15379 # likewise P contains macro parameters if any. Preserve backslash
15380 # newline sequences.
15381
15382 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15383 sed -n '
15384 s/.\{148\}/&'"$ac_delim"'/g
15385 t rset
15386 :rset
15387 s/^[ ]*#[ ]*define[ ][ ]*/ /
15388 t def
15389 d
15390 :def
15391 s/\\$//
15392 t bsnl
15393 s/["\\]/\\&/g
15394 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15395 D["\1"]=" \3"/p
15396 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15397 d
15398 :bsnl
15399 s/["\\]/\\&/g
15400 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15401 D["\1"]=" \3\\\\\\n"\\/p
15402 t cont
15403 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15404 t cont
15405 d
15406 :cont
15407 n
15408 s/.\{148\}/&'"$ac_delim"'/g
15409 t clear
15410 :clear
15411 s/\\$//
15412 t bsnlc
15413 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15414 d
15415 :bsnlc
15416 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15417 b cont
15418 ' <confdefs.h | sed '
15419 s/'"$ac_delim"'/"\\\
15420 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15421
15422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15423 for (key in D) D_is_set[key] = 1
15424 FS = ""
15425 }
15426 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15427 line = \$ 0
15428 split(line, arg, " ")
15429 if (arg[1] == "#") {
15430 defundef = arg[2]
15431 mac1 = arg[3]
15432 } else {
15433 defundef = substr(arg[1], 2)
15434 mac1 = arg[2]
15435 }
15436 split(mac1, mac2, "(") #)
15437 macro = mac2[1]
15438 prefix = substr(line, 1, index(line, defundef) - 1)
15439 if (D_is_set[macro]) {
15440 # Preserve the white space surrounding the "#".
15441 print prefix "define", macro P[macro] D[macro]
15442 next
15443 } else {
15444 # Replace #undef with comments. This is necessary, for example,
15445 # in the case of _POSIX_SOURCE, which is predefined and required
15446 # on some systems where configure will not decide to define it.
15447 if (defundef == "undef") {
15448 print "/*", prefix defundef, macro, "*/"
15449 next
15450 }
15451 }
15452 }
15453 { print }
15454 _ACAWK
15455 _ACEOF
15456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15457 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15458 fi # test -n "$CONFIG_HEADERS"
15459
15460
15461 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15462 shift
15463 for ac_tag
15464 do
15465 case $ac_tag in
15466 :[FHLC]) ac_mode=$ac_tag; continue;;
15467 esac
15468 case $ac_mode$ac_tag in
15469 :[FHL]*:*);;
15470 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15471 :[FH]-) ac_tag=-:-;;
15472 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15473 esac
15474 ac_save_IFS=$IFS
15475 IFS=:
15476 set x $ac_tag
15477 IFS=$ac_save_IFS
15478 shift
15479 ac_file=$1
15480 shift
15481
15482 case $ac_mode in
15483 :L) ac_source=$1;;
15484 :[FH])
15485 ac_file_inputs=
15486 for ac_f
15487 do
15488 case $ac_f in
15489 -) ac_f="$ac_tmp/stdin";;
15490 *) # Look for the file first in the build tree, then in the source tree
15491 # (if the path is not absolute). The absolute path cannot be DOS-style,
15492 # because $ac_f cannot contain `:'.
15493 test -f "$ac_f" ||
15494 case $ac_f in
15495 [\\/$]*) false;;
15496 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15497 esac ||
15498 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15499 esac
15500 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15501 as_fn_append ac_file_inputs " '$ac_f'"
15502 done
15503
15504 # Let's still pretend it is `configure' which instantiates (i.e., don't
15505 # use $as_me), people would be surprised to read:
15506 # /* config.h. Generated by config.status. */
15507 configure_input='Generated from '`
15508 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15509 `' by configure.'
15510 if test x"$ac_file" != x-; then
15511 configure_input="$ac_file. $configure_input"
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15513 $as_echo "$as_me: creating $ac_file" >&6;}
15514 fi
15515 # Neutralize special characters interpreted by sed in replacement strings.
15516 case $configure_input in #(
15517 *\&* | *\|* | *\\* )
15518 ac_sed_conf_input=`$as_echo "$configure_input" |
15519 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15520 *) ac_sed_conf_input=$configure_input;;
15521 esac
15522
15523 case $ac_tag in
15524 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15526 esac
15527 ;;
15528 esac
15529
15530 ac_dir=`$as_dirname -- "$ac_file" ||
15531 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15532 X"$ac_file" : 'X\(//\)[^/]' \| \
15533 X"$ac_file" : 'X\(//\)$' \| \
15534 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15535 $as_echo X"$ac_file" |
15536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15537 s//\1/
15538 q
15539 }
15540 /^X\(\/\/\)[^/].*/{
15541 s//\1/
15542 q
15543 }
15544 /^X\(\/\/\)$/{
15545 s//\1/
15546 q
15547 }
15548 /^X\(\/\).*/{
15549 s//\1/
15550 q
15551 }
15552 s/.*/./; q'`
15553 as_dir="$ac_dir"; as_fn_mkdir_p
15554 ac_builddir=.
15555
15556 case "$ac_dir" in
15557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15558 *)
15559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15560 # A ".." for each directory in $ac_dir_suffix.
15561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15562 case $ac_top_builddir_sub in
15563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15565 esac ;;
15566 esac
15567 ac_abs_top_builddir=$ac_pwd
15568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15569 # for backward compatibility:
15570 ac_top_builddir=$ac_top_build_prefix
15571
15572 case $srcdir in
15573 .) # We are building in place.
15574 ac_srcdir=.
15575 ac_top_srcdir=$ac_top_builddir_sub
15576 ac_abs_top_srcdir=$ac_pwd ;;
15577 [\\/]* | ?:[\\/]* ) # Absolute name.
15578 ac_srcdir=$srcdir$ac_dir_suffix;
15579 ac_top_srcdir=$srcdir
15580 ac_abs_top_srcdir=$srcdir ;;
15581 *) # Relative name.
15582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15583 ac_top_srcdir=$ac_top_build_prefix$srcdir
15584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15585 esac
15586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15587
15588
15589 case $ac_mode in
15590 :F)
15591 #
15592 # CONFIG_FILE
15593 #
15594
15595 case $INSTALL in
15596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15597 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15598 esac
15599 ac_MKDIR_P=$MKDIR_P
15600 case $MKDIR_P in
15601 [\\/$]* | ?:[\\/]* ) ;;
15602 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15603 esac
15604 _ACEOF
15605
15606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15607 # If the template does not know about datarootdir, expand it.
15608 # FIXME: This hack should be removed a few years after 2.60.
15609 ac_datarootdir_hack=; ac_datarootdir_seen=
15610 ac_sed_dataroot='
15611 /datarootdir/ {
15612 p
15613 q
15614 }
15615 /@datadir@/p
15616 /@docdir@/p
15617 /@infodir@/p
15618 /@localedir@/p
15619 /@mandir@/p'
15620 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15621 *datarootdir*) ac_datarootdir_seen=yes;;
15622 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15624 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15625 _ACEOF
15626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15627 ac_datarootdir_hack='
15628 s&@datadir@&$datadir&g
15629 s&@docdir@&$docdir&g
15630 s&@infodir@&$infodir&g
15631 s&@localedir@&$localedir&g
15632 s&@mandir@&$mandir&g
15633 s&\\\${datarootdir}&$datarootdir&g' ;;
15634 esac
15635 _ACEOF
15636
15637 # Neutralize VPATH when `$srcdir' = `.'.
15638 # Shell code in configure.ac might set extrasub.
15639 # FIXME: do we really want to maintain this feature?
15640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15641 ac_sed_extra="$ac_vpsub
15642 $extrasub
15643 _ACEOF
15644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15645 :t
15646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15647 s|@configure_input@|$ac_sed_conf_input|;t t
15648 s&@top_builddir@&$ac_top_builddir_sub&;t t
15649 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15650 s&@srcdir@&$ac_srcdir&;t t
15651 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15652 s&@top_srcdir@&$ac_top_srcdir&;t t
15653 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15654 s&@builddir@&$ac_builddir&;t t
15655 s&@abs_builddir@&$ac_abs_builddir&;t t
15656 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15657 s&@INSTALL@&$ac_INSTALL&;t t
15658 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15659 $ac_datarootdir_hack
15660 "
15661 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15662 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15663
15664 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15665 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15667 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15669 which seems to be undefined. Please make sure it is defined" >&5
15670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15671 which seems to be undefined. Please make sure it is defined" >&2;}
15672
15673 rm -f "$ac_tmp/stdin"
15674 case $ac_file in
15675 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15676 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15677 esac \
15678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15679 ;;
15680 :H)
15681 #
15682 # CONFIG_HEADER
15683 #
15684 if test x"$ac_file" != x-; then
15685 {
15686 $as_echo "/* $configure_input */" \
15687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15688 } >"$ac_tmp/config.h" \
15689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15690 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15692 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15693 else
15694 rm -f "$ac_file"
15695 mv "$ac_tmp/config.h" "$ac_file" \
15696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15697 fi
15698 else
15699 $as_echo "/* $configure_input */" \
15700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15701 || as_fn_error $? "could not create -" "$LINENO" 5
15702 fi
15703 # Compute "$ac_file"'s index in $config_headers.
15704 _am_arg="$ac_file"
15705 _am_stamp_count=1
15706 for _am_header in $config_headers :; do
15707 case $_am_header in
15708 $_am_arg | $_am_arg:* )
15709 break ;;
15710 * )
15711 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15712 esac
15713 done
15714 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15715 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15716 X"$_am_arg" : 'X\(//\)[^/]' \| \
15717 X"$_am_arg" : 'X\(//\)$' \| \
15718 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15719 $as_echo X"$_am_arg" |
15720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15721 s//\1/
15722 q
15723 }
15724 /^X\(\/\/\)[^/].*/{
15725 s//\1/
15726 q
15727 }
15728 /^X\(\/\/\)$/{
15729 s//\1/
15730 q
15731 }
15732 /^X\(\/\).*/{
15733 s//\1/
15734 q
15735 }
15736 s/.*/./; q'`/stamp-h$_am_stamp_count
15737 ;;
15738
15739 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15740 $as_echo "$as_me: executing $ac_file commands" >&6;}
15741 ;;
15742 esac
15743
15744
15745 case $ac_file$ac_mode in
15746 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15747 # Older Autoconf quotes --file arguments for eval, but not when files
15748 # are listed without --file. Let's play safe and only enable the eval
15749 # if we detect the quoting.
15750 # TODO: see whether this extra hack can be removed once we start
15751 # requiring Autoconf 2.70 or later.
15752 case $CONFIG_FILES in #(
15753 *\'*) :
15754 eval set x "$CONFIG_FILES" ;; #(
15755 *) :
15756 set x $CONFIG_FILES ;; #(
15757 *) :
15758 ;;
15759 esac
15760 shift
15761 # Used to flag and report bootstrapping failures.
15762 am_rc=0
15763 for am_mf
15764 do
15765 # Strip MF so we end up with the name of the file.
15766 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15767 # Check whether this is an Automake generated Makefile which includes
15768 # dependency-tracking related rules and includes.
15769 # Grep'ing the whole file directly is not great: AIX grep has a line
15770 # limit of 2048, but all sed's we know have understand at least 4000.
15771 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15772 || continue
15773 am_dirpart=`$as_dirname -- "$am_mf" ||
15774 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15775 X"$am_mf" : 'X\(//\)[^/]' \| \
15776 X"$am_mf" : 'X\(//\)$' \| \
15777 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15778 $as_echo X"$am_mf" |
15779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15780 s//\1/
15781 q
15782 }
15783 /^X\(\/\/\)[^/].*/{
15784 s//\1/
15785 q
15786 }
15787 /^X\(\/\/\)$/{
15788 s//\1/
15789 q
15790 }
15791 /^X\(\/\).*/{
15792 s//\1/
15793 q
15794 }
15795 s/.*/./; q'`
15796 am_filepart=`$as_basename -- "$am_mf" ||
15797 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15798 X"$am_mf" : 'X\(//\)$' \| \
15799 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15800 $as_echo X/"$am_mf" |
15801 sed '/^.*\/\([^/][^/]*\)\/*$/{
15802 s//\1/
15803 q
15804 }
15805 /^X\/\(\/\/\)$/{
15806 s//\1/
15807 q
15808 }
15809 /^X\/\(\/\).*/{
15810 s//\1/
15811 q
15812 }
15813 s/.*/./; q'`
15814 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15815 && sed -e '/# am--include-marker/d' "$am_filepart" \
15816 | $MAKE -f - am--depfiles" >&5
15817 (cd "$am_dirpart" \
15818 && sed -e '/# am--include-marker/d' "$am_filepart" \
15819 | $MAKE -f - am--depfiles) >&5 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } || am_rc=$?
15823 done
15824 if test $am_rc -ne 0; then
15825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15827 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15828 for automatic dependency tracking. If GNU make was not used, consider
15829 re-running the configure script with MAKE=\"gmake\" (or whatever is
15830 necessary). You can also try re-running configure with the
15831 '--disable-dependency-tracking' option to at least be able to build
15832 the package (albeit without support for automatic dependency tracking).
15833 See \`config.log' for more details" "$LINENO" 5; }
15834 fi
15835 { am_dirpart=; unset am_dirpart;}
15836 { am_filepart=; unset am_filepart;}
15837 { am_mf=; unset am_mf;}
15838 { am_rc=; unset am_rc;}
15839 rm -f conftest-deps.mk
15840 }
15841 ;;
15842 "libtool":C)
15843
15844 # See if we are running on zsh, and set the options that allow our
15845 # commands through without removal of \ escapes.
15846 if test -n "${ZSH_VERSION+set}"; then
15847 setopt NO_GLOB_SUBST
15848 fi
15849
15850 cfgfile=${ofile}T
15851 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15852 $RM "$cfgfile"
15853
15854 cat <<_LT_EOF >> "$cfgfile"
15855 #! $SHELL
15856 # Generated automatically by $as_me ($PACKAGE) $VERSION
15857 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15858 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15859
15860 # Provide generalized library-building support services.
15861 # Written by Gordon Matzigkeit, 1996
15862
15863 # Copyright (C) 2014 Free Software Foundation, Inc.
15864 # This is free software; see the source for copying conditions. There is NO
15865 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15866
15867 # GNU Libtool is free software; you can redistribute it and/or modify
15868 # it under the terms of the GNU General Public License as published by
15869 # the Free Software Foundation; either version 2 of of the License, or
15870 # (at your option) any later version.
15871 #
15872 # As a special exception to the GNU General Public License, if you
15873 # distribute this file as part of a program or library that is built
15874 # using GNU Libtool, you may include this file under the same
15875 # distribution terms that you use for the rest of that program.
15876 #
15877 # GNU Libtool is distributed in the hope that it will be useful, but
15878 # WITHOUT ANY WARRANTY; without even the implied warranty of
15879 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15880 # GNU General Public License for more details.
15881 #
15882 # You should have received a copy of the GNU General Public License
15883 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15884
15885
15886 # The names of the tagged configurations supported by this script.
15887 available_tags=''
15888
15889 # Configured defaults for sys_lib_dlsearch_path munging.
15890 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15891
15892 # ### BEGIN LIBTOOL CONFIG
15893
15894 # Which release of libtool.m4 was used?
15895 macro_version=$macro_version
15896 macro_revision=$macro_revision
15897
15898 # Whether or not to build shared libraries.
15899 build_libtool_libs=$enable_shared
15900
15901 # Whether or not to build static libraries.
15902 build_old_libs=$enable_static
15903
15904 # What type of objects to build.
15905 pic_mode=$pic_mode
15906
15907 # Whether or not to optimize for fast installation.
15908 fast_install=$enable_fast_install
15909
15910 # Shared archive member basename,for filename based shared library versioning on AIX.
15911 shared_archive_member_spec=$shared_archive_member_spec
15912
15913 # Shell to use when invoking shell scripts.
15914 SHELL=$lt_SHELL
15915
15916 # An echo program that protects backslashes.
15917 ECHO=$lt_ECHO
15918
15919 # The PATH separator for the build system.
15920 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15921
15922 # The host system.
15923 host_alias=$host_alias
15924 host=$host
15925 host_os=$host_os
15926
15927 # The build system.
15928 build_alias=$build_alias
15929 build=$build
15930 build_os=$build_os
15931
15932 # A sed program that does not truncate output.
15933 SED=$lt_SED
15934
15935 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15936 Xsed="\$SED -e 1s/^X//"
15937
15938 # A grep program that handles long lines.
15939 GREP=$lt_GREP
15940
15941 # An ERE matcher.
15942 EGREP=$lt_EGREP
15943
15944 # A literal string matcher.
15945 FGREP=$lt_FGREP
15946
15947 # A BSD- or MS-compatible name lister.
15948 NM=$lt_NM
15949
15950 # Whether we need soft or hard links.
15951 LN_S=$lt_LN_S
15952
15953 # What is the maximum length of a command?
15954 max_cmd_len=$max_cmd_len
15955
15956 # Object file suffix (normally "o").
15957 objext=$ac_objext
15958
15959 # Executable file suffix (normally "").
15960 exeext=$exeext
15961
15962 # whether the shell understands "unset".
15963 lt_unset=$lt_unset
15964
15965 # turn spaces into newlines.
15966 SP2NL=$lt_lt_SP2NL
15967
15968 # turn newlines into spaces.
15969 NL2SP=$lt_lt_NL2SP
15970
15971 # convert \$build file names to \$host format.
15972 to_host_file_cmd=$lt_cv_to_host_file_cmd
15973
15974 # convert \$build files to toolchain format.
15975 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15976
15977 # An object symbol dumper.
15978 OBJDUMP=$lt_OBJDUMP
15979
15980 # Method to check whether dependent libraries are shared objects.
15981 deplibs_check_method=$lt_deplibs_check_method
15982
15983 # Command to use when deplibs_check_method = "file_magic".
15984 file_magic_cmd=$lt_file_magic_cmd
15985
15986 # How to find potential files when deplibs_check_method = "file_magic".
15987 file_magic_glob=$lt_file_magic_glob
15988
15989 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15990 want_nocaseglob=$lt_want_nocaseglob
15991
15992 # DLL creation program.
15993 DLLTOOL=$lt_DLLTOOL
15994
15995 # Command to associate shared and link libraries.
15996 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15997
15998 # The archiver.
15999 AR=$lt_AR
16000
16001 # Flags to create an archive.
16002 AR_FLAGS=$lt_AR_FLAGS
16003
16004 # How to feed a file listing to the archiver.
16005 archiver_list_spec=$lt_archiver_list_spec
16006
16007 # A symbol stripping program.
16008 STRIP=$lt_STRIP
16009
16010 # Commands used to install an old-style archive.
16011 RANLIB=$lt_RANLIB
16012 old_postinstall_cmds=$lt_old_postinstall_cmds
16013 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16014
16015 # Whether to use a lock for old archive extraction.
16016 lock_old_archive_extraction=$lock_old_archive_extraction
16017
16018 # A C compiler.
16019 LTCC=$lt_CC
16020
16021 # LTCC compiler flags.
16022 LTCFLAGS=$lt_CFLAGS
16023
16024 # Take the output of nm and produce a listing of raw symbols and C names.
16025 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16026
16027 # Transform the output of nm in a proper C declaration.
16028 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16029
16030 # Transform the output of nm into a list of symbols to manually relocate.
16031 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16032
16033 # Transform the output of nm in a C name address pair.
16034 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16035
16036 # Transform the output of nm in a C name address pair when lib prefix is needed.
16037 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16038
16039 # The name lister interface.
16040 nm_interface=$lt_lt_cv_nm_interface
16041
16042 # Specify filename containing input files for \$NM.
16043 nm_file_list_spec=$lt_nm_file_list_spec
16044
16045 # The root where to search for dependent libraries,and where our libraries should be installed.
16046 lt_sysroot=$lt_sysroot
16047
16048 # Command to truncate a binary pipe.
16049 lt_truncate_bin=$lt_lt_cv_truncate_bin
16050
16051 # The name of the directory that contains temporary libtool files.
16052 objdir=$objdir
16053
16054 # Used to examine libraries when file_magic_cmd begins with "file".
16055 MAGIC_CMD=$MAGIC_CMD
16056
16057 # Must we lock files when doing compilation?
16058 need_locks=$lt_need_locks
16059
16060 # Manifest tool.
16061 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16062
16063 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16064 DSYMUTIL=$lt_DSYMUTIL
16065
16066 # Tool to change global to local symbols on Mac OS X.
16067 NMEDIT=$lt_NMEDIT
16068
16069 # Tool to manipulate fat objects and archives on Mac OS X.
16070 LIPO=$lt_LIPO
16071
16072 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16073 OTOOL=$lt_OTOOL
16074
16075 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16076 OTOOL64=$lt_OTOOL64
16077
16078 # Old archive suffix (normally "a").
16079 libext=$libext
16080
16081 # Shared library suffix (normally ".so").
16082 shrext_cmds=$lt_shrext_cmds
16083
16084 # The commands to extract the exported symbol list from a shared archive.
16085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16086
16087 # Variables whose values should be saved in libtool wrapper scripts and
16088 # restored at link time.
16089 variables_saved_for_relink=$lt_variables_saved_for_relink
16090
16091 # Do we need the "lib" prefix for modules?
16092 need_lib_prefix=$need_lib_prefix
16093
16094 # Do we need a version for libraries?
16095 need_version=$need_version
16096
16097 # Library versioning type.
16098 version_type=$version_type
16099
16100 # Shared library runtime path variable.
16101 runpath_var=$runpath_var
16102
16103 # Shared library path variable.
16104 shlibpath_var=$shlibpath_var
16105
16106 # Is shlibpath searched before the hard-coded library search path?
16107 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16108
16109 # Format of library name prefix.
16110 libname_spec=$lt_libname_spec
16111
16112 # List of archive names. First name is the real one, the rest are links.
16113 # The last name is the one that the linker finds with -lNAME
16114 library_names_spec=$lt_library_names_spec
16115
16116 # The coded name of the library, if different from the real name.
16117 soname_spec=$lt_soname_spec
16118
16119 # Permission mode override for installation of shared libraries.
16120 install_override_mode=$lt_install_override_mode
16121
16122 # Command to use after installation of a shared archive.
16123 postinstall_cmds=$lt_postinstall_cmds
16124
16125 # Command to use after uninstallation of a shared archive.
16126 postuninstall_cmds=$lt_postuninstall_cmds
16127
16128 # Commands used to finish a libtool library installation in a directory.
16129 finish_cmds=$lt_finish_cmds
16130
16131 # As "finish_cmds", except a single script fragment to be evaled but
16132 # not shown.
16133 finish_eval=$lt_finish_eval
16134
16135 # Whether we should hardcode library paths into libraries.
16136 hardcode_into_libs=$hardcode_into_libs
16137
16138 # Compile-time system search path for libraries.
16139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16140
16141 # Detected run-time system search path for libraries.
16142 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16143
16144 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16145 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16146
16147 # Whether dlopen is supported.
16148 dlopen_support=$enable_dlopen
16149
16150 # Whether dlopen of programs is supported.
16151 dlopen_self=$enable_dlopen_self
16152
16153 # Whether dlopen of statically linked programs is supported.
16154 dlopen_self_static=$enable_dlopen_self_static
16155
16156 # Commands to strip libraries.
16157 old_striplib=$lt_old_striplib
16158 striplib=$lt_striplib
16159
16160
16161 # The linker used to build libraries.
16162 LD=$lt_LD
16163
16164 # How to create reloadable object files.
16165 reload_flag=$lt_reload_flag
16166 reload_cmds=$lt_reload_cmds
16167
16168 # Commands used to build an old-style archive.
16169 old_archive_cmds=$lt_old_archive_cmds
16170
16171 # A language specific compiler.
16172 CC=$lt_compiler
16173
16174 # Is the compiler the GNU compiler?
16175 with_gcc=$GCC
16176
16177 # Compiler flag to turn off builtin functions.
16178 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16179
16180 # Additional compiler flags for building library objects.
16181 pic_flag=$lt_lt_prog_compiler_pic
16182
16183 # How to pass a linker flag through the compiler.
16184 wl=$lt_lt_prog_compiler_wl
16185
16186 # Compiler flag to prevent dynamic linking.
16187 link_static_flag=$lt_lt_prog_compiler_static
16188
16189 # Does compiler simultaneously support -c and -o options?
16190 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16191
16192 # Whether or not to add -lc for building shared libraries.
16193 build_libtool_need_lc=$archive_cmds_need_lc
16194
16195 # Whether or not to disallow shared libs when runtime libs are static.
16196 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16197
16198 # Compiler flag to allow reflexive dlopens.
16199 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16200
16201 # Compiler flag to generate shared objects directly from archives.
16202 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16203
16204 # Whether the compiler copes with passing no objects directly.
16205 compiler_needs_object=$lt_compiler_needs_object
16206
16207 # Create an old-style archive from a shared archive.
16208 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16209
16210 # Create a temporary old-style archive to link instead of a shared archive.
16211 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16212
16213 # Commands used to build a shared archive.
16214 archive_cmds=$lt_archive_cmds
16215 archive_expsym_cmds=$lt_archive_expsym_cmds
16216
16217 # Commands used to build a loadable module if different from building
16218 # a shared archive.
16219 module_cmds=$lt_module_cmds
16220 module_expsym_cmds=$lt_module_expsym_cmds
16221
16222 # Whether we are building with GNU ld or not.
16223 with_gnu_ld=$lt_with_gnu_ld
16224
16225 # Flag that allows shared libraries with undefined symbols to be built.
16226 allow_undefined_flag=$lt_allow_undefined_flag
16227
16228 # Flag that enforces no undefined symbols.
16229 no_undefined_flag=$lt_no_undefined_flag
16230
16231 # Flag to hardcode \$libdir into a binary during linking.
16232 # This must work even if \$libdir does not exist
16233 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16234
16235 # Whether we need a single "-rpath" flag with a separated argument.
16236 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16237
16238 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16239 # DIR into the resulting binary.
16240 hardcode_direct=$hardcode_direct
16241
16242 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16243 # DIR into the resulting binary and the resulting library dependency is
16244 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16245 # library is relocated.
16246 hardcode_direct_absolute=$hardcode_direct_absolute
16247
16248 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16249 # into the resulting binary.
16250 hardcode_minus_L=$hardcode_minus_L
16251
16252 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16253 # into the resulting binary.
16254 hardcode_shlibpath_var=$hardcode_shlibpath_var
16255
16256 # Set to "yes" if building a shared library automatically hardcodes DIR
16257 # into the library and all subsequent libraries and executables linked
16258 # against it.
16259 hardcode_automatic=$hardcode_automatic
16260
16261 # Set to yes if linker adds runtime paths of dependent libraries
16262 # to runtime path list.
16263 inherit_rpath=$inherit_rpath
16264
16265 # Whether libtool must link a program against all its dependency libraries.
16266 link_all_deplibs=$link_all_deplibs
16267
16268 # Set to "yes" if exported symbols are required.
16269 always_export_symbols=$always_export_symbols
16270
16271 # The commands to list exported symbols.
16272 export_symbols_cmds=$lt_export_symbols_cmds
16273
16274 # Symbols that should not be listed in the preloaded symbols.
16275 exclude_expsyms=$lt_exclude_expsyms
16276
16277 # Symbols that must always be exported.
16278 include_expsyms=$lt_include_expsyms
16279
16280 # Commands necessary for linking programs (against libraries) with templates.
16281 prelink_cmds=$lt_prelink_cmds
16282
16283 # Commands necessary for finishing linking programs.
16284 postlink_cmds=$lt_postlink_cmds
16285
16286 # Specify filename containing input files.
16287 file_list_spec=$lt_file_list_spec
16288
16289 # How to hardcode a shared library path into an executable.
16290 hardcode_action=$hardcode_action
16291
16292 # ### END LIBTOOL CONFIG
16293
16294 _LT_EOF
16295
16296 cat <<'_LT_EOF' >> "$cfgfile"
16297
16298 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16299
16300 # func_munge_path_list VARIABLE PATH
16301 # -----------------------------------
16302 # VARIABLE is name of variable containing _space_ separated list of
16303 # directories to be munged by the contents of PATH, which is string
16304 # having a format:
16305 # "DIR[:DIR]:"
16306 # string "DIR[ DIR]" will be prepended to VARIABLE
16307 # ":DIR[:DIR]"
16308 # string "DIR[ DIR]" will be appended to VARIABLE
16309 # "DIRP[:DIRP]::[DIRA:]DIRA"
16310 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16311 # "DIRA[ DIRA]" will be appended to VARIABLE
16312 # "DIR[:DIR]"
16313 # VARIABLE will be replaced by "DIR[ DIR]"
16314 func_munge_path_list ()
16315 {
16316 case x$2 in
16317 x)
16318 ;;
16319 *:)
16320 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16321 ;;
16322 x:*)
16323 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16324 ;;
16325 *::*)
16326 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16327 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16328 ;;
16329 *)
16330 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16331 ;;
16332 esac
16333 }
16334
16335
16336 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16337 func_cc_basename ()
16338 {
16339 for cc_temp in $*""; do
16340 case $cc_temp in
16341 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16342 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16343 \-*) ;;
16344 *) break;;
16345 esac
16346 done
16347 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16348 }
16349
16350
16351 # ### END FUNCTIONS SHARED WITH CONFIGURE
16352
16353 _LT_EOF
16354
16355 case $host_os in
16356 aix3*)
16357 cat <<\_LT_EOF >> "$cfgfile"
16358 # AIX sometimes has problems with the GCC collect2 program. For some
16359 # reason, if we set the COLLECT_NAMES environment variable, the problems
16360 # vanish in a puff of smoke.
16361 if test set != "${COLLECT_NAMES+set}"; then
16362 COLLECT_NAMES=
16363 export COLLECT_NAMES
16364 fi
16365 _LT_EOF
16366 ;;
16367 esac
16368
16369
16370 ltmain=$ac_aux_dir/ltmain.sh
16371
16372
16373 # We use sed instead of cat because bash on DJGPP gets confused if
16374 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16375 # text mode, it properly converts lines to CR/LF. This bash problem
16376 # is reportedly fixed, but why not run on old versions too?
16377 sed '$q' "$ltmain" >> "$cfgfile" \
16378 || (rm -f "$cfgfile"; exit 1)
16379
16380 mv -f "$cfgfile" "$ofile" ||
16381 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16382 chmod +x "$ofile"
16383
16384 ;;
16385 "src/mkhomedirfor+x":C) chmod +x src/mkhomedirfor ;;
16386 "src/mkmyhomedir+x":C) chmod +x src/mkmyhomedir ;;
16387 "src/reload+x":C) chmod +x src/reload ;;
16388 "scripts/oddjobd+x":C) chmod +x scripts/oddjobd ;;
16389 "tests/sanity.sh+x":C) chmod a+rx,u+w,go-w tests/sanity.sh ;;
16390
16391 esac
16392 done # for ac_tag
16393
16394
16395 as_fn_exit 0
16396 _ACEOF
16397 ac_clean_files=$ac_clean_files_save
16398
16399 test $ac_write_fail = 0 ||
16400 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16401
16402
16403 # configure is writing to config.log, and then calls config.status.
16404 # config.status does its own redirection, appending to config.log.
16405 # Unfortunately, on DOS this fails, as config.log is still kept open
16406 # by configure, so config.status won't be able to write to it; its
16407 # output is simply discarded. So we exec the FD to /dev/null,
16408 # effectively closing config.log, so it can be properly (re)opened and
16409 # appended to by config.status. When coming back to configure, we
16410 # need to make the FD available again.
16411 if test "$no_create" != yes; then
16412 ac_cs_success=:
16413 ac_config_status_args=
16414 test "$silent" = yes &&
16415 ac_config_status_args="$ac_config_status_args --quiet"
16416 exec 5>/dev/null
16417 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16418 exec 5>>config.log
16419 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16420 # would make configure fail if this is the last instruction.
16421 $ac_cs_success || as_fn_exit 1
16422 fi
16423 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16425 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16426 fi
16427