Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libpwquality 1.4.5.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
198 fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell [email protected] about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326 return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427 return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541 *)
542 ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573 else
574 as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='libpwquality'
620 PACKAGE_TARNAME='libpwquality'
621 PACKAGE_VERSION='1.4.5'
622 PACKAGE_STRING='libpwquality 1.4.5'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 # Factoring default headers for most tests.
627 ac_includes_default="\
628 #include <stddef.h>
629 #ifdef HAVE_STDIO_H
630 # include <stdio.h>
631 #endif
632 #ifdef HAVE_STDLIB_H
633 # include <stdlib.h>
634 #endif
635 #ifdef HAVE_STRING_H
636 # include <string.h>
637 #endif
638 #ifdef HAVE_INTTYPES_H
639 # include <inttypes.h>
640 #endif
641 #ifdef HAVE_STDINT_H
642 # include <stdint.h>
643 #endif
644 #ifdef HAVE_STRINGS_H
645 # include <strings.h>
646 #endif
647 #ifdef HAVE_SYS_TYPES_H
648 # include <sys/types.h>
649 #endif
650 #ifdef HAVE_SYS_STAT_H
651 # include <sys/stat.h>
652 #endif
653 #ifdef HAVE_UNISTD_H
654 # include <unistd.h>
655 #endif"
656
657 ac_header_c_list=
658 gt_needs=
659 ac_subst_vars='am__EXEEXT_FALSE
660 am__EXEEXT_TRUE
661 LTLIBOBJS
662 LIBOBJS
663 LIBCRACK
664 PYTHONSITEDIR
665 PYTHONREV
666 PYTHONBINARY
667 BUILD_PYTHON_BINDINGS_FALSE
668 BUILD_PYTHON_BINDINGS_TRUE
669 SCONFIGDIR
670 SECUREDIR
671 HAVE_PAM_FALSE
672 HAVE_PAM_TRUE
673 PAM_LIBS
674 HAVE_LD_VERSION_SCRIPT_FALSE
675 HAVE_LD_VERSION_SCRIPT_TRUE
676 POSUB
677 LTLIBINTL
678 LIBINTL
679 INTLLIBS
680 LTLIBICONV
681 LIBICONV
682 INTL_MACOSX_LIBS
683 CPP
684 XGETTEXT_EXTRA_OPTIONS
685 MSGMERGE
686 XGETTEXT_015
687 XGETTEXT
688 GMSGFMT_015
689 MSGFMT_015
690 GMSGFMT
691 MSGFMT
692 GETTEXT_MACRO_VERSION
693 USE_NLS
694 LT_SYS_LIBRARY_PATH
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 MANIFEST_TOOL
701 RANLIB
702 DLLTOOL
703 OBJDUMP
704 NM
705 ac_ct_DUMPBIN
706 DUMPBIN
707 LD
708 FGREP
709 EGREP
710 GREP
711 SED
712 LIBTOOL
713 LN_S
714 ac_ct_AR
715 AR
716 am__fastdepCC_FALSE
717 am__fastdepCC_TRUE
718 CCDEPMODE
719 am__nodep
720 AMDEPBACKSLASH
721 AMDEP_FALSE
722 AMDEP_TRUE
723 am__include
724 DEPDIR
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 PWQUALITY_LT_REVISION
733 PWQUALITY_LT_AGE
734 PWQUALITY_LT_CURRENT
735 host_os
736 host_vendor
737 host_cpu
738 host
739 build_os
740 build_vendor
741 build_cpu
742 build
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 CSCOPE
748 ETAGS
749 CTAGS
750 am__untar
751 am__tar
752 AMTAR
753 am__leading_dot
754 SET_MAKE
755 AWK
756 mkdir_p
757 MKDIR_P
758 INSTALL_STRIP_PROGRAM
759 STRIP
760 install_sh
761 MAKEINFO
762 AUTOHEADER
763 AUTOMAKE
764 AUTOCONF
765 ACLOCAL
766 VERSION
767 PACKAGE
768 CYGPATH_W
769 am__isrc
770 INSTALL_DATA
771 INSTALL_SCRIPT
772 INSTALL_PROGRAM
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 runstatedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL
812 am__quote'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_silent_rules
817 enable_dependency_tracking
818 enable_shared
819 enable_static
820 with_pic
821 enable_fast_install
822 with_aix_soname
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 enable_nls
827 enable_rpath
828 with_libiconv_prefix
829 with_libintl_prefix
830 enable_ld_version_script
831 enable_pam
832 with_securedir
833 with_sconfigdir
834 enable_python_bindings
835 with_python_binary
836 with_python_rev
837 with_pythonsitedir
838 with_randomdev
839 enable_cracklib_check
840 '
841 ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 LIBS
848 CPPFLAGS
849 LT_SYS_LIBRARY_PATH
850 CPP'
851
852
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
874
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 runstatedir='${localstatedir}/run'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir='${datarootdir}/info'
894 htmldir='${docdir}'
895 dvidir='${docdir}'
896 pdfdir='${docdir}'
897 psdir='${docdir}'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
901
902 ac_prev=
903 ac_dashdash=
904 for ac_option
905 do
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
909 ac_prev=
910 continue
911 fi
912
913 case $ac_option in
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915 *=) ac_optarg= ;;
916 *) ac_optarg=yes ;;
917 esac
918
919 case $ac_dashdash$ac_option in
920 --)
921 ac_dashdash=yes ;;
922
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 ac_prev=bindir ;;
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926 bindir=$ac_optarg ;;
927
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
932
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
939
940 --config-cache | -C)
941 cache_file=config.cache ;;
942
943 -datadir | --datadir | --datadi | --datad)
944 ac_prev=datadir ;;
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
947
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
954
955 -disable-* | --disable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: \`$ac_useropt'"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=no ;;
970
971 -docdir | --docdir | --docdi | --doc | --do)
972 ac_prev=docdir ;;
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974 docdir=$ac_optarg ;;
975
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 ac_prev=dvidir ;;
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979 dvidir=$ac_optarg ;;
980
981 -enable-* | --enable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: \`$ac_useropt'"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=\$ac_optarg ;;
996
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1005
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1008 with_gas=yes ;;
1009
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1016
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1021
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 ac_prev=htmldir ;;
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 | --ht=*)
1026 htmldir=$ac_optarg ;;
1027
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1034
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 ac_prev=infodir ;;
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1039
1040 -libdir | --libdir | --libdi | --libd)
1041 ac_prev=libdir ;;
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1044
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1051
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1056
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir=$ac_optarg ;;
1063
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 ac_prev=mandir ;;
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1068
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1071 with_fp=no ;;
1072
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1075 no_create=yes ;;
1076
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 no_recursion=yes ;;
1080
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1089
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 ac_prev=prefix ;;
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1094
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1101
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1108
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1125
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 ac_prev=pdfdir ;;
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1130
1131 -psdir | --psdir | --psdi | --psd | --ps)
1132 ac_prev=psdir ;;
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 psdir=$ac_optarg ;;
1135
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1138 silent=yes ;;
1139
1140 -runstatedir | --runstatedir | --runstatedi | --runstated \
1141 | --runstate | --runstat | --runsta | --runst | --runs \
1142 | --run | --ru | --r)
1143 ac_prev=runstatedir ;;
1144 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1145 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1146 | --run=* | --ru=* | --r=*)
1147 runstatedir=$ac_optarg ;;
1148
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 ac_prev=sbindir ;;
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 | --sbi=* | --sb=*)
1153 sbindir=$ac_optarg ;;
1154
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1158 | --sha | --sh)
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 | --sha=* | --sh=*)
1164 sharedstatedir=$ac_optarg ;;
1165
1166 -site | --site | --sit)
1167 ac_prev=site ;;
1168 -site=* | --site=* | --sit=*)
1169 site=$ac_optarg ;;
1170
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 ac_prev=srcdir ;;
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1175
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1182
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1187
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 verbose=yes ;;
1190
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1193
1194 -with-* | --with-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: \`$ac_useropt'"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=\$ac_optarg ;;
1209
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: \`$ac_useropt'"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=no ;;
1225
1226 --x)
1227 # Obsolete; use --with-x.
1228 with_x=yes ;;
1229
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1236
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1243
1244 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1245 Try \`$0 --help' for more information"
1246 ;;
1247
1248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 case $ac_envvar in #(
1252 '' | [0-9]* | *[!_$as_cr_alnum]* )
1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 esac
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1257
1258 *)
1259 # FIXME: should be removed in autoconf 3.0.
1260 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 ;;
1265
1266 esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271 as_fn_error $? "missing argument to $ac_option"
1272 fi
1273
1274 if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1276 no) ;;
1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1278 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1280 fi
1281
1282 # Check all directory arguments for consistency.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir runstatedir
1287 do
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301 done
1302
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 as_fn_error $? "working directory cannot be determined"
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 as_fn_error $? "pwd does not report name of working directory"
1331
1332
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$as_myself" ||
1338 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$as_myself" : 'X\(//\)[^/]' \| \
1340 X"$as_myself" : 'X\(//\)$' \| \
1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342 printf "%s\n" X"$as_myself" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
1360 srcdir=$ac_confdir
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 srcdir=..
1363 fi
1364 else
1365 ac_srcdir_defaulted=no
1366 fi
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 fi
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399 \`configure' configures libpwquality 1.4.5 to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking ...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1424
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/libpwquality]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of libpwquality 1.4.5:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --enable-silent-rules less verbose build output (undo: "make V=1")
1479 --disable-silent-rules verbose build output (undo: "make V=0")
1480 --enable-dependency-tracking
1481 do not reject slow dependency extractors
1482 --disable-dependency-tracking
1483 speeds up one-time build
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --disable-nls do not use Native Language Support
1490 --disable-rpath do not hardcode runtime library paths
1491 --enable-ld-version-script
1492 enable/disable use of linker version script.
1493 (default is system dependent)
1494 --enable-pam build PAM module [default=check]
1495 --enable-python-bindings
1496 enable Python bindings (default: yes)
1497 --disable-cracklib-check
1498 disable cracklib dictionary check
1499
1500 Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1504 both]
1505 --with-aix-soname=aix|svr4|both
1506 shared library versioning (aka "SONAME") variant to
1507 provide on AIX, [default=aix].
1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1510 compiler's sysroot if not specified).
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1513 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1514 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1515 --without-libintl-prefix don't search for libintl in includedir and libdir
1516 --with-securedir=DIR path to location of PAMs [default=$libdir/security]
1517 --with-sconfigdir=DIR path to PAM conf files
1518 [default=$sysconfdir/security]
1519 --with-python-binary=python3 python binary name with which modules should be built
1520 --with-python-rev=2.7 version of python for which modules should be built
1521 --with-pythonsitedir=DIR directory of the python site packages [default=$libdir/python$PYTHONREV/site-packages]
1522 --with-randomdev=(<path>|yes)
1523 use specified random device instead of /dev/urandom
1524
1525 Some influential environment variables:
1526 CC C compiler command
1527 CFLAGS C compiler flags
1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1529 nonstandard directory <lib dir>
1530 LIBS libraries to pass to the linker, e.g. -l<library>
1531 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1532 you have headers in a nonstandard directory <include dir>
1533 LT_SYS_LIBRARY_PATH
1534 User-defined run-time library search path.
1535 CPP C preprocessor
1536
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1539
1540 Report bugs to the package provider.
1541 _ACEOF
1542 ac_status=$?
1543 fi
1544
1545 if test "$ac_init_help" = "recursive"; then
1546 # If there are subdirs, report their specific --help.
1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548 test -d "$ac_dir" ||
1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550 continue
1551 ac_builddir=.
1552
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *)
1556 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562 esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1568
1569 case $srcdir in
1570 .) # We are building in place.
1571 ac_srcdir=.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1578 *) # Relative name.
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for configure.gnu first; this name is used for a wrapper for
1587 # Metaconfig's "Configure" on case-insensitive file systems.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1594 else
1595 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 fi || ac_status=$?
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1598 done
1599 fi
1600
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1603 cat <<\_ACEOF
1604 libpwquality configure 1.4.5
1605 generated by GNU Autoconf 2.71
1606
1607 Copyright (C) 2021 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1610 _ACEOF
1611 exit
1612 fi
1613
1614 ## ------------------------ ##
1615 ## Autoconf initialization. ##
1616 ## ------------------------ ##
1617
1618 # ac_fn_c_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_compile ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext conftest.beam
1625 if { { ac_try="$ac_compile"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 printf "%s\n" "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext
1644 then :
1645 ac_retval=0
1646 else $as_nop
1647 printf "%s\n" "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651 fi
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_compile
1656
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 printf %s "checking for $2... " >&6; }
1666 if eval test \${$3+y}
1667 then :
1668 printf %s "(cached) " >&6
1669 else $as_nop
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 $4
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"
1676 then :
1677 eval "$3=yes"
1678 else $as_nop
1679 eval "$3=no"
1680 fi
1681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1682 fi
1683 eval ac_res=\$$3
1684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 printf "%s\n" "$ac_res" >&6; }
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
1688 } # ac_fn_c_check_header_compile
1689
1690 # ac_fn_c_try_link LINENO
1691 # -----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_link ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 printf "%s\n" "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest$ac_exeext && {
1716 test "$cross_compiling" = yes ||
1717 test -x conftest$ac_exeext
1718 }
1719 then :
1720 ac_retval=0
1721 else $as_nop
1722 printf "%s\n" "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726 fi
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_link
1736
1737 # ac_fn_c_check_func LINENO FUNC VAR
1738 # ----------------------------------
1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1740 ac_fn_c_check_func ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 printf %s "checking for $2... " >&6; }
1745 if eval test \${$3+y}
1746 then :
1747 printf %s "(cached) " >&6
1748 else $as_nop
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753 #define $2 innocuous_$2
1754
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (); below. */
1757
1758 #include <limits.h>
1759 #undef $2
1760
1761 /* Override any GCC internal prototype to avoid an error.
1762 Use char because int might match the return type of a GCC
1763 builtin and then its argument prototype would still apply. */
1764 #ifdef __cplusplus
1765 extern "C"
1766 #endif
1767 char $2 ();
1768 /* The GNU C library defines this for functions which it implements
1769 to always fail with ENOSYS. Some functions are actually named
1770 something starting with __ and the normal name is an alias. */
1771 #if defined __stub_$2 || defined __stub___$2
1772 choke me
1773 #endif
1774
1775 int
1776 main (void)
1777 {
1778 return $2 ();
1779 ;
1780 return 0;
1781 }
1782 _ACEOF
1783 if ac_fn_c_try_link "$LINENO"
1784 then :
1785 eval "$3=yes"
1786 else $as_nop
1787 eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1790 conftest$ac_exeext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 printf "%s\n" "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797 } # ac_fn_c_check_func
1798
1799 # ac_fn_c_try_cpp LINENO
1800 # ----------------------
1801 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_cpp ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_cpp conftest.$ac_ext"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 printf "%s\n" "$ac_try_echo"; } >&5
1812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } > conftest.i && {
1821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 }
1824 then :
1825 ac_retval=0
1826 else $as_nop
1827 printf "%s\n" "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831 fi
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_cpp
1836
1837 # ac_fn_c_try_run LINENO
1838 # ----------------------
1839 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1840 # executables *can* be run.
1841 ac_fn_c_try_run ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 printf "%s\n" "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>&5
1852 ac_status=$?
1853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855 { { case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 printf "%s\n" "$ac_try_echo"; } >&5
1861 (eval "$ac_try") 2>&5
1862 ac_status=$?
1863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; }; }
1865 then :
1866 ac_retval=0
1867 else $as_nop
1868 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1869 printf "%s\n" "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=$ac_status
1873 fi
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878 } # ac_fn_c_try_run
1879 ac_configure_args_raw=
1880 for ac_arg
1881 do
1882 case $ac_arg in
1883 *\'*)
1884 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1885 esac
1886 as_fn_append ac_configure_args_raw " '$ac_arg'"
1887 done
1888
1889 case $ac_configure_args_raw in
1890 *$as_nl*)
1891 ac_safe_unquote= ;;
1892 *)
1893 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1894 ac_unsafe_a="$ac_unsafe_z#~"
1895 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1896 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1897 esac
1898
1899 cat >config.log <<_ACEOF
1900 This file contains any messages produced by compilers while
1901 running configure, to aid debugging if configure makes a mistake.
1902
1903 It was created by libpwquality $as_me 1.4.5, which was
1904 generated by GNU Autoconf 2.71. Invocation command line was
1905
1906 $ $0$ac_configure_args_raw
1907
1908 _ACEOF
1909 exec 5>>config.log
1910 {
1911 cat <<_ASUNAME
1912 ## --------- ##
1913 ## Platform. ##
1914 ## --------- ##
1915
1916 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1917 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1918 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1919 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1920 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1921
1922 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1923 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1924
1925 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1926 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1927 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1928 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1929 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1930 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1931 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1932
1933 _ASUNAME
1934
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938 IFS=$as_save_IFS
1939 case $as_dir in #(((
1940 '') as_dir=./ ;;
1941 */) ;;
1942 *) as_dir=$as_dir/ ;;
1943 esac
1944 printf "%s\n" "PATH: $as_dir"
1945 done
1946 IFS=$as_save_IFS
1947
1948 } >&5
1949
1950 cat >&5 <<_ACEOF
1951
1952
1953 ## ----------- ##
1954 ## Core tests. ##
1955 ## ----------- ##
1956
1957 _ACEOF
1958
1959
1960 # Keep a trace of the command line.
1961 # Strip out --no-create and --no-recursion so they do not pile up.
1962 # Strip out --silent because we don't want to record it for future runs.
1963 # Also quote any args containing shell meta-characters.
1964 # Make two passes to allow for proper duplicate-argument suppression.
1965 ac_configure_args=
1966 ac_configure_args0=
1967 ac_configure_args1=
1968 ac_must_keep_next=false
1969 for ac_pass in 1 2
1970 do
1971 for ac_arg
1972 do
1973 case $ac_arg in
1974 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1976 | -silent | --silent | --silen | --sile | --sil)
1977 continue ;;
1978 *\'*)
1979 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1980 esac
1981 case $ac_pass in
1982 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1983 2)
1984 as_fn_append ac_configure_args1 " '$ac_arg'"
1985 if test $ac_must_keep_next = true; then
1986 ac_must_keep_next=false # Got value, back to normal.
1987 else
1988 case $ac_arg in
1989 *=* | --config-cache | -C | -disable-* | --disable-* \
1990 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1991 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1992 | -with-* | --with-* | -without-* | --without-* | --x)
1993 case "$ac_configure_args0 " in
1994 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1995 esac
1996 ;;
1997 -* ) ac_must_keep_next=true ;;
1998 esac
1999 fi
2000 as_fn_append ac_configure_args " '$ac_arg'"
2001 ;;
2002 esac
2003 done
2004 done
2005 { ac_configure_args0=; unset ac_configure_args0;}
2006 { ac_configure_args1=; unset ac_configure_args1;}
2007
2008 # When interrupted or exit'd, cleanup temporary files, and complete
2009 # config.log. We remove comments because anyway the quotes in there
2010 # would cause problems or look ugly.
2011 # WARNING: Use '\'' to represent an apostrophe within the trap.
2012 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2013 trap 'exit_status=$?
2014 # Sanitize IFS.
2015 IFS=" "" $as_nl"
2016 # Save into config.log some information that might help in debugging.
2017 {
2018 echo
2019
2020 printf "%s\n" "## ---------------- ##
2021 ## Cache variables. ##
2022 ## ---------------- ##"
2023 echo
2024 # The following way of writing the cache mishandles newlines in values,
2025 (
2026 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in #(
2029 *${as_nl}*)
2030 case $ac_var in #(
2031 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2032 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2033 esac
2034 case $ac_var in #(
2035 _ | IFS | as_nl) ;; #(
2036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2037 *) { eval $ac_var=; unset $ac_var;} ;;
2038 esac ;;
2039 esac
2040 done
2041 (set) 2>&1 |
2042 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2043 *${as_nl}ac_space=\ *)
2044 sed -n \
2045 "s/'\''/'\''\\\\'\'''\''/g;
2046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2047 ;; #(
2048 *)
2049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2050 ;;
2051 esac |
2052 sort
2053 )
2054 echo
2055
2056 printf "%s\n" "## ----------------- ##
2057 ## Output variables. ##
2058 ## ----------------- ##"
2059 echo
2060 for ac_var in $ac_subst_vars
2061 do
2062 eval ac_val=\$$ac_var
2063 case $ac_val in
2064 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065 esac
2066 printf "%s\n" "$ac_var='\''$ac_val'\''"
2067 done | sort
2068 echo
2069
2070 if test -n "$ac_subst_files"; then
2071 printf "%s\n" "## ------------------- ##
2072 ## File substitutions. ##
2073 ## ------------------- ##"
2074 echo
2075 for ac_var in $ac_subst_files
2076 do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 printf "%s\n" "$ac_var='\''$ac_val'\''"
2082 done | sort
2083 echo
2084 fi
2085
2086 if test -s confdefs.h; then
2087 printf "%s\n" "## ----------- ##
2088 ## confdefs.h. ##
2089 ## ----------- ##"
2090 echo
2091 cat confdefs.h
2092 echo
2093 fi
2094 test "$ac_signal" != 0 &&
2095 printf "%s\n" "$as_me: caught signal $ac_signal"
2096 printf "%s\n" "$as_me: exit $exit_status"
2097 } >&5
2098 rm -f core *.core core.conftest.* &&
2099 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2100 exit $exit_status
2101 ' 0
2102 for ac_signal in 1 2 13 15; do
2103 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2104 done
2105 ac_signal=0
2106
2107 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2108 rm -f -r conftest* confdefs.h
2109
2110 printf "%s\n" "/* confdefs.h */" > confdefs.h
2111
2112 # Predefined preprocessor variables.
2113
2114 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2115
2116 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2117
2118 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2119
2120 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2121
2122 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2123
2124 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2125
2126
2127 # Let the site file select an alternate cache file if it wants to.
2128 # Prefer an explicitly selected file to automatically selected ones.
2129 if test -n "$CONFIG_SITE"; then
2130 ac_site_files="$CONFIG_SITE"
2131 elif test "x$prefix" != xNONE; then
2132 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2133 else
2134 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2135 fi
2136
2137 for ac_site_file in $ac_site_files
2138 do
2139 case $ac_site_file in #(
2140 */*) :
2141 ;; #(
2142 *) :
2143 ac_site_file=./$ac_site_file ;;
2144 esac
2145 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2148 sed 's/^/| /' "$ac_site_file" >&5
2149 . "$ac_site_file" \
2150 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2152 as_fn_error $? "failed to load site script $ac_site_file
2153 See \`config.log' for more details" "$LINENO" 5; }
2154 fi
2155 done
2156
2157 if test -r "$cache_file"; then
2158 # Some versions of bash will fail to source /dev/null (special files
2159 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2160 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2163 case $cache_file in
2164 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165 *) . "./$cache_file";;
2166 esac
2167 fi
2168 else
2169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2171 >$cache_file
2172 fi
2173
2174 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2175 # Test code for whether the C compiler supports C89 (global declarations)
2176 ac_c_conftest_c89_globals='
2177 /* Does the compiler advertise C89 conformance?
2178 Do not test the value of __STDC__, because some compilers set it to 0
2179 while being otherwise adequately conformant. */
2180 #if !defined __STDC__
2181 # error "Compiler does not advertise C89 conformance"
2182 #endif
2183
2184 #include <stddef.h>
2185 #include <stdarg.h>
2186 struct stat;
2187 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2188 struct buf { int x; };
2189 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2190 static char *e (p, i)
2191 char **p;
2192 int i;
2193 {
2194 return p[i];
2195 }
2196 static char *f (char * (*g) (char **, int), char **p, ...)
2197 {
2198 char *s;
2199 va_list v;
2200 va_start (v,p);
2201 s = g (p, va_arg (v,int));
2202 va_end (v);
2203 return s;
2204 }
2205
2206 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2207 function prototypes and stuff, but not \xHH hex character constants.
2208 These do not provoke an error unfortunately, instead are silently treated
2209 as an "x". The following induces an error, until -std is added to get
2210 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2211 array size at least. It is necessary to write \x00 == 0 to get something
2212 that is true only with -std. */
2213 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2214
2215 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2216 inside strings and character constants. */
2217 #define FOO(x) '\''x'\''
2218 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2219
2220 int test (int i, double x);
2221 struct s1 {int (*f) (int a);};
2222 struct s2 {int (*f) (double a);};
2223 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2224 int, int);'
2225
2226 # Test code for whether the C compiler supports C89 (body of main).
2227 ac_c_conftest_c89_main='
2228 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2229 '
2230
2231 # Test code for whether the C compiler supports C99 (global declarations)
2232 ac_c_conftest_c99_globals='
2233 // Does the compiler advertise C99 conformance?
2234 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2235 # error "Compiler does not advertise C99 conformance"
2236 #endif
2237
2238 #include <stdbool.h>
2239 extern int puts (const char *);
2240 extern int printf (const char *, ...);
2241 extern int dprintf (int, const char *, ...);
2242 extern void *malloc (size_t);
2243
2244 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2245 // dprintf is used instead of fprintf to avoid needing to declare
2246 // FILE and stderr.
2247 #define debug(...) dprintf (2, __VA_ARGS__)
2248 #define showlist(...) puts (#__VA_ARGS__)
2249 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2250 static void
2251 test_varargs_macros (void)
2252 {
2253 int x = 1234;
2254 int y = 5678;
2255 debug ("Flag");
2256 debug ("X = %d\n", x);
2257 showlist (The first, second, and third items.);
2258 report (x>y, "x is %d but y is %d", x, y);
2259 }
2260
2261 // Check long long types.
2262 #define BIG64 18446744073709551615ull
2263 #define BIG32 4294967295ul
2264 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2265 #if !BIG_OK
2266 #error "your preprocessor is broken"
2267 #endif
2268 #if BIG_OK
2269 #else
2270 #error "your preprocessor is broken"
2271 #endif
2272 static long long int bignum = -9223372036854775807LL;
2273 static unsigned long long int ubignum = BIG64;
2274
2275 struct incomplete_array
2276 {
2277 int datasize;
2278 double data[];
2279 };
2280
2281 struct named_init {
2282 int number;
2283 const wchar_t *name;
2284 double average;
2285 };
2286
2287 typedef const char *ccp;
2288
2289 static inline int
2290 test_restrict (ccp restrict text)
2291 {
2292 // See if C++-style comments work.
2293 // Iterate through items via the restricted pointer.
2294 // Also check for declarations in for loops.
2295 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2296 continue;
2297 return 0;
2298 }
2299
2300 // Check varargs and va_copy.
2301 static bool
2302 test_varargs (const char *format, ...)
2303 {
2304 va_list args;
2305 va_start (args, format);
2306 va_list args_copy;
2307 va_copy (args_copy, args);
2308
2309 const char *str = "";
2310 int number = 0;
2311 float fnumber = 0;
2312
2313 while (*format)
2314 {
2315 switch (*format++)
2316 {
2317 case '\''s'\'': // string
2318 str = va_arg (args_copy, const char *);
2319 break;
2320 case '\''d'\'': // int
2321 number = va_arg (args_copy, int);
2322 break;
2323 case '\''f'\'': // float
2324 fnumber = va_arg (args_copy, double);
2325 break;
2326 default:
2327 break;
2328 }
2329 }
2330 va_end (args_copy);
2331 va_end (args);
2332
2333 return *str && number && fnumber;
2334 }
2335 '
2336
2337 # Test code for whether the C compiler supports C99 (body of main).
2338 ac_c_conftest_c99_main='
2339 // Check bool.
2340 _Bool success = false;
2341 success |= (argc != 0);
2342
2343 // Check restrict.
2344 if (test_restrict ("String literal") == 0)
2345 success = true;
2346 char *restrict newvar = "Another string";
2347
2348 // Check varargs.
2349 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2350 test_varargs_macros ();
2351
2352 // Check flexible array members.
2353 struct incomplete_array *ia =
2354 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2355 ia->datasize = 10;
2356 for (int i = 0; i < ia->datasize; ++i)
2357 ia->data[i] = i * 1.234;
2358
2359 // Check named initializers.
2360 struct named_init ni = {
2361 .number = 34,
2362 .name = L"Test wide string",
2363 .average = 543.34343,
2364 };
2365
2366 ni.number = 58;
2367
2368 int dynamic_array[ni.number];
2369 dynamic_array[0] = argv[0][0];
2370 dynamic_array[ni.number - 1] = 543;
2371
2372 // work around unused variable warnings
2373 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2374 || dynamic_array[ni.number - 1] != 543);
2375 '
2376
2377 # Test code for whether the C compiler supports C11 (global declarations)
2378 ac_c_conftest_c11_globals='
2379 // Does the compiler advertise C11 conformance?
2380 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2381 # error "Compiler does not advertise C11 conformance"
2382 #endif
2383
2384 // Check _Alignas.
2385 char _Alignas (double) aligned_as_double;
2386 char _Alignas (0) no_special_alignment;
2387 extern char aligned_as_int;
2388 char _Alignas (0) _Alignas (int) aligned_as_int;
2389
2390 // Check _Alignof.
2391 enum
2392 {
2393 int_alignment = _Alignof (int),
2394 int_array_alignment = _Alignof (int[100]),
2395 char_alignment = _Alignof (char)
2396 };
2397 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2398
2399 // Check _Noreturn.
2400 int _Noreturn does_not_return (void) { for (;;) continue; }
2401
2402 // Check _Static_assert.
2403 struct test_static_assert
2404 {
2405 int x;
2406 _Static_assert (sizeof (int) <= sizeof (long int),
2407 "_Static_assert does not work in struct");
2408 long int y;
2409 };
2410
2411 // Check UTF-8 literals.
2412 #define u8 syntax error!
2413 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2414
2415 // Check duplicate typedefs.
2416 typedef long *long_ptr;
2417 typedef long int *long_ptr;
2418 typedef long_ptr long_ptr;
2419
2420 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2421 struct anonymous
2422 {
2423 union {
2424 struct { int i; int j; };
2425 struct { int k; long int l; } w;
2426 };
2427 int m;
2428 } v1;
2429 '
2430
2431 # Test code for whether the C compiler supports C11 (body of main).
2432 ac_c_conftest_c11_main='
2433 _Static_assert ((offsetof (struct anonymous, i)
2434 == offsetof (struct anonymous, w.k)),
2435 "Anonymous union alignment botch");
2436 v1.i = 2;
2437 v1.w.k = 5;
2438 ok |= v1.i != 5;
2439 '
2440
2441 # Test code for whether the C compiler supports C11 (complete).
2442 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2443 ${ac_c_conftest_c99_globals}
2444 ${ac_c_conftest_c11_globals}
2445
2446 int
2447 main (int argc, char **argv)
2448 {
2449 int ok = 0;
2450 ${ac_c_conftest_c89_main}
2451 ${ac_c_conftest_c99_main}
2452 ${ac_c_conftest_c11_main}
2453 return ok;
2454 }
2455 "
2456
2457 # Test code for whether the C compiler supports C99 (complete).
2458 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2459 ${ac_c_conftest_c99_globals}
2460
2461 int
2462 main (int argc, char **argv)
2463 {
2464 int ok = 0;
2465 ${ac_c_conftest_c89_main}
2466 ${ac_c_conftest_c99_main}
2467 return ok;
2468 }
2469 "
2470
2471 # Test code for whether the C compiler supports C89 (complete).
2472 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2473
2474 int
2475 main (int argc, char **argv)
2476 {
2477 int ok = 0;
2478 ${ac_c_conftest_c89_main}
2479 return ok;
2480 }
2481 "
2482
2483 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2484 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2485 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2486 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2487 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2488 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2489 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2490 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2491 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2492 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2493 gt_needs="$gt_needs "
2494
2495 # Auxiliary files required by this configure script.
2496 ac_aux_files="config.rpath ltmain.sh ar-lib compile config.guess config.sub missing install-sh"
2497
2498 # Locations in which to look for auxiliary files.
2499 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2500
2501 # Search for a directory containing all of the required auxiliary files,
2502 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2503 # If we don't find one directory that contains all the files we need,
2504 # we report the set of missing files from the *first* directory in
2505 # $ac_aux_dir_candidates and give up.
2506 ac_missing_aux_files=""
2507 ac_first_candidate=:
2508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 as_found=false
2511 for as_dir in $ac_aux_dir_candidates
2512 do
2513 IFS=$as_save_IFS
2514 case $as_dir in #(((
2515 '') as_dir=./ ;;
2516 */) ;;
2517 *) as_dir=$as_dir/ ;;
2518 esac
2519 as_found=:
2520
2521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2522 ac_aux_dir_found=yes
2523 ac_install_sh=
2524 for ac_aux in $ac_aux_files
2525 do
2526 # As a special case, if "install-sh" is required, that requirement
2527 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2528 # and $ac_install_sh is set appropriately for whichever one is found.
2529 if test x"$ac_aux" = x"install-sh"
2530 then
2531 if test -f "${as_dir}install-sh"; then
2532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2533 ac_install_sh="${as_dir}install-sh -c"
2534 elif test -f "${as_dir}install.sh"; then
2535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2536 ac_install_sh="${as_dir}install.sh -c"
2537 elif test -f "${as_dir}shtool"; then
2538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2539 ac_install_sh="${as_dir}shtool install -c"
2540 else
2541 ac_aux_dir_found=no
2542 if $ac_first_candidate; then
2543 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2544 else
2545 break
2546 fi
2547 fi
2548 else
2549 if test -f "${as_dir}${ac_aux}"; then
2550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2551 else
2552 ac_aux_dir_found=no
2553 if $ac_first_candidate; then
2554 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2555 else
2556 break
2557 fi
2558 fi
2559 fi
2560 done
2561 if test "$ac_aux_dir_found" = yes; then
2562 ac_aux_dir="$as_dir"
2563 break
2564 fi
2565 ac_first_candidate=false
2566
2567 as_found=false
2568 done
2569 IFS=$as_save_IFS
2570 if $as_found
2571 then :
2572
2573 else $as_nop
2574 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2575 fi
2576
2577
2578 # These three variables are undocumented and unsupported,
2579 # and are intended to be withdrawn in a future Autoconf release.
2580 # They can cause serious problems if a builder's source tree is in a directory
2581 # whose full name contains unusual characters.
2582 if test -f "${ac_aux_dir}config.guess"; then
2583 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2584 fi
2585 if test -f "${ac_aux_dir}config.sub"; then
2586 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2587 fi
2588 if test -f "$ac_aux_dir/configure"; then
2589 ac_configure="$SHELL ${ac_aux_dir}configure"
2590 fi
2591
2592 # Check that the precious variables saved in the cache have kept the same
2593 # value.
2594 ac_cache_corrupted=false
2595 for ac_var in $ac_precious_vars; do
2596 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2597 eval ac_new_set=\$ac_env_${ac_var}_set
2598 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2599 eval ac_new_val=\$ac_env_${ac_var}_value
2600 case $ac_old_set,$ac_new_set in
2601 set,)
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2603 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2605 ,set)
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2607 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2609 ,);;
2610 *)
2611 if test "x$ac_old_val" != "x$ac_new_val"; then
2612 # differences in whitespace do not lead to failure.
2613 ac_old_val_w=`echo x $ac_old_val`
2614 ac_new_val_w=`echo x $ac_new_val`
2615 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2617 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2618 ac_cache_corrupted=:
2619 else
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2621 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2622 eval $ac_var=\$ac_old_val
2623 fi
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2625 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2627 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2628 fi;;
2629 esac
2630 # Pass precious variables to config.status.
2631 if test "$ac_new_set" = set; then
2632 case $ac_new_val in
2633 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2634 *) ac_arg=$ac_var=$ac_new_val ;;
2635 esac
2636 case " $ac_configure_args " in
2637 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2638 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2639 esac
2640 fi
2641 done
2642 if $ac_cache_corrupted; then
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2644 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2646 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2647 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2648 and start over" "$LINENO" 5
2649 fi
2650 ## -------------------- ##
2651 ## Main body of script. ##
2652 ## -------------------- ##
2653
2654 ac_ext=c
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660
2661 ac_config_headers="$ac_config_headers config.h"
2662
2663 am__api_version='1.16'
2664
2665
2666
2667 # Find a good install program. We prefer a C program (faster),
2668 # so one script is as good as another. But avoid the broken or
2669 # incompatible versions:
2670 # SysV /etc/install, /usr/sbin/install
2671 # SunOS /usr/etc/install
2672 # IRIX /sbin/install
2673 # AIX /bin/install
2674 # AmigaOS /C/install, which installs bootblocks on floppy discs
2675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2678 # OS/2's system install, which has a completely different semantic
2679 # ./install, which can be erroneously created by make from ./install.sh.
2680 # Reject install programs that cannot install multiple files.
2681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2682 printf %s "checking for a BSD-compatible install... " >&6; }
2683 if test -z "$INSTALL"; then
2684 if test ${ac_cv_path_install+y}
2685 then :
2686 printf %s "(cached) " >&6
2687 else $as_nop
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 case $as_dir in #(((
2693 '') as_dir=./ ;;
2694 */) ;;
2695 *) as_dir=$as_dir/ ;;
2696 esac
2697 # Account for fact that we put trailing slashes in our PATH walk.
2698 case $as_dir in #((
2699 ./ | /[cC]/* | \
2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2702 /usr/ucb/* ) ;;
2703 *)
2704 # OSF1 and SCO ODT 3.0 have their own names for install.
2705 # Don't use installbsd from OSF since it installs stuff as root
2706 # by default.
2707 for ac_prog in ginstall scoinst install; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2710 if test $ac_prog = install &&
2711 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # AIX install. It has an incompatible calling convention.
2713 :
2714 elif test $ac_prog = install &&
2715 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # program-specific install script used by HP pwplus--don't use.
2717 :
2718 else
2719 rm -rf conftest.one conftest.two conftest.dir
2720 echo one > conftest.one
2721 echo two > conftest.two
2722 mkdir conftest.dir
2723 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2724 test -s conftest.one && test -s conftest.two &&
2725 test -s conftest.dir/conftest.one &&
2726 test -s conftest.dir/conftest.two
2727 then
2728 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2729 break 3
2730 fi
2731 fi
2732 fi
2733 done
2734 done
2735 ;;
2736 esac
2737
2738 done
2739 IFS=$as_save_IFS
2740
2741 rm -rf conftest.one conftest.two conftest.dir
2742
2743 fi
2744 if test ${ac_cv_path_install+y}; then
2745 INSTALL=$ac_cv_path_install
2746 else
2747 # As a last resort, use the slow shell script. Don't cache a
2748 # value for INSTALL within a source directory, because that will
2749 # break other packages using the cache if that directory is
2750 # removed, or if the value is a relative name.
2751 INSTALL=$ac_install_sh
2752 fi
2753 fi
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2755 printf "%s\n" "$INSTALL" >&6; }
2756
2757 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2758 # It thinks the first close brace ends the variable substitution.
2759 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2760
2761 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2762
2763 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2764
2765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2766 printf %s "checking whether build environment is sane... " >&6; }
2767 # Reject unsafe characters in $srcdir or the absolute working directory
2768 # name. Accept space and tab only in the latter.
2769 am_lf='
2770 '
2771 case `pwd` in
2772 *[\\\"\#\$\&\'\`$am_lf]*)
2773 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2774 esac
2775 case $srcdir in
2776 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2777 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2778 esac
2779
2780 # Do 'set' in a subshell so we don't clobber the current shell's
2781 # arguments. Must try -L first in case configure is actually a
2782 # symlink; some systems play weird games with the mod time of symlinks
2783 # (eg FreeBSD returns the mod time of the symlink's containing
2784 # directory).
2785 if (
2786 am_has_slept=no
2787 for am_try in 1 2; do
2788 echo "timestamp, slept: $am_has_slept" > conftest.file
2789 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2790 if test "$*" = "X"; then
2791 # -L didn't work.
2792 set X `ls -t "$srcdir/configure" conftest.file`
2793 fi
2794 if test "$*" != "X $srcdir/configure conftest.file" \
2795 && test "$*" != "X conftest.file $srcdir/configure"; then
2796
2797 # If neither matched, then we have a broken ls. This can happen
2798 # if, for instance, CONFIG_SHELL is bash and it inherits a
2799 # broken ls alias from the environment. This has actually
2800 # happened. Such a system could not be considered "sane".
2801 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2802 alias in your environment" "$LINENO" 5
2803 fi
2804 if test "$2" = conftest.file || test $am_try -eq 2; then
2805 break
2806 fi
2807 # Just in case.
2808 sleep 1
2809 am_has_slept=yes
2810 done
2811 test "$2" = conftest.file
2812 )
2813 then
2814 # Ok.
2815 :
2816 else
2817 as_fn_error $? "newly created file is older than distributed files!
2818 Check your system clock" "$LINENO" 5
2819 fi
2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2821 printf "%s\n" "yes" >&6; }
2822 # If we didn't sleep, we still need to ensure time stamps of config.status and
2823 # generated files are strictly newer.
2824 am_sleep_pid=
2825 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2826 ( sleep 1 ) &
2827 am_sleep_pid=$!
2828 fi
2829
2830 rm -f conftest.file
2831
2832 test "$program_prefix" != NONE &&
2833 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2834 # Use a double $ so make ignores it.
2835 test "$program_suffix" != NONE &&
2836 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2837 # Double any \ or $.
2838 # By default was `s,x,x', remove it if useless.
2839 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2840 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2841
2842
2843 # Expand $ac_aux_dir to an absolute path.
2844 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2845
2846
2847 if test x"${MISSING+set}" != xset; then
2848 MISSING="\${SHELL} '$am_aux_dir/missing'"
2849 fi
2850 # Use eval to expand $SHELL
2851 if eval "$MISSING --is-lightweight"; then
2852 am_missing_run="$MISSING "
2853 else
2854 am_missing_run=
2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2856 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2857 fi
2858
2859 if test x"${install_sh+set}" != xset; then
2860 case $am_aux_dir in
2861 *\ * | *\ *)
2862 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2863 *)
2864 install_sh="\${SHELL} $am_aux_dir/install-sh"
2865 esac
2866 fi
2867
2868 # Installed binaries are usually stripped using 'strip' when the user
2869 # run "make install-strip". However 'strip' might not be the right
2870 # tool to use in cross-compilation environments, therefore Automake
2871 # will honor the 'STRIP' environment variable to overrule this program.
2872 if test "$cross_compiling" != no; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}strip; ac_word=$2
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 printf %s "checking for $ac_word... " >&6; }
2878 if test ${ac_cv_prog_STRIP+y}
2879 then :
2880 printf %s "(cached) " >&6
2881 else $as_nop
2882 if test -n "$STRIP"; then
2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 case $as_dir in #(((
2890 '') as_dir=./ ;;
2891 */) ;;
2892 *) as_dir=$as_dir/ ;;
2893 esac
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 STRIP=$ac_cv_prog_STRIP
2907 if test -n "$STRIP"; then
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2909 printf "%s\n" "$STRIP" >&6; }
2910 else
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 printf "%s\n" "no" >&6; }
2913 fi
2914
2915
2916 fi
2917 if test -z "$ac_cv_prog_STRIP"; then
2918 ac_ct_STRIP=$STRIP
2919 # Extract the first word of "strip", so it can be a program name with args.
2920 set dummy strip; ac_word=$2
2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 printf %s "checking for $ac_word... " >&6; }
2923 if test ${ac_cv_prog_ac_ct_STRIP+y}
2924 then :
2925 printf %s "(cached) " >&6
2926 else $as_nop
2927 if test -n "$ac_ct_STRIP"; then
2928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 case $as_dir in #(((
2935 '') as_dir=./ ;;
2936 */) ;;
2937 *) as_dir=$as_dir/ ;;
2938 esac
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_ac_ct_STRIP="strip"
2942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2952 if test -n "$ac_ct_STRIP"; then
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2954 printf "%s\n" "$ac_ct_STRIP" >&6; }
2955 else
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 printf "%s\n" "no" >&6; }
2958 fi
2959
2960 if test "x$ac_ct_STRIP" = x; then
2961 STRIP=":"
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969 STRIP=$ac_ct_STRIP
2970 fi
2971 else
2972 STRIP="$ac_cv_prog_STRIP"
2973 fi
2974
2975 fi
2976 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2977
2978
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2980 printf %s "checking for a race-free mkdir -p... " >&6; }
2981 if test -z "$MKDIR_P"; then
2982 if test ${ac_cv_path_mkdir+y}
2983 then :
2984 printf %s "(cached) " >&6
2985 else $as_nop
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2988 do
2989 IFS=$as_save_IFS
2990 case $as_dir in #(((
2991 '') as_dir=./ ;;
2992 */) ;;
2993 *) as_dir=$as_dir/ ;;
2994 esac
2995 for ac_prog in mkdir gmkdir; do
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2998 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2999 'mkdir ('*'coreutils) '* | \
3000 'BusyBox '* | \
3001 'mkdir (fileutils) '4.1*)
3002 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3003 break 3;;
3004 esac
3005 done
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011
3012 test -d ./--version && rmdir ./--version
3013 if test ${ac_cv_path_mkdir+y}; then
3014 MKDIR_P="$ac_cv_path_mkdir -p"
3015 else
3016 # As a last resort, use the slow shell script. Don't cache a
3017 # value for MKDIR_P within a source directory, because that will
3018 # break other packages using the cache if that directory is
3019 # removed, or if the value is a relative name.
3020 MKDIR_P="$ac_install_sh -d"
3021 fi
3022 fi
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3024 printf "%s\n" "$MKDIR_P" >&6; }
3025
3026 for ac_prog in gawk mawk nawk awk
3027 do
3028 # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 printf %s "checking for $ac_word... " >&6; }
3032 if test ${ac_cv_prog_AWK+y}
3033 then :
3034 printf %s "(cached) " >&6
3035 else $as_nop
3036 if test -n "$AWK"; then
3037 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042 IFS=$as_save_IFS
3043 case $as_dir in #(((
3044 '') as_dir=./ ;;
3045 */) ;;
3046 *) as_dir=$as_dir/ ;;
3047 esac
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3050 ac_cv_prog_AWK="$ac_prog"
3051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3052 break 2
3053 fi
3054 done
3055 done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 AWK=$ac_cv_prog_AWK
3061 if test -n "$AWK"; then
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3063 printf "%s\n" "$AWK" >&6; }
3064 else
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 printf "%s\n" "no" >&6; }
3067 fi
3068
3069
3070 test -n "$AWK" && break
3071 done
3072
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3074 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3075 set x ${MAKE-make}
3076 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3077 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3078 then :
3079 printf %s "(cached) " >&6
3080 else $as_nop
3081 cat >conftest.make <<\_ACEOF
3082 SHELL = /bin/sh
3083 all:
3084 @echo '@@@%%%=$(MAKE)=@@@%%%'
3085 _ACEOF
3086 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3087 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3088 *@@@%%%=?*=@@@%%%*)
3089 eval ac_cv_prog_make_${ac_make}_set=yes;;
3090 *)
3091 eval ac_cv_prog_make_${ac_make}_set=no;;
3092 esac
3093 rm -f conftest.make
3094 fi
3095 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3097 printf "%s\n" "yes" >&6; }
3098 SET_MAKE=
3099 else
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 printf "%s\n" "no" >&6; }
3102 SET_MAKE="MAKE=${MAKE-make}"
3103 fi
3104
3105 rm -rf .tst 2>/dev/null
3106 mkdir .tst 2>/dev/null
3107 if test -d .tst; then
3108 am__leading_dot=.
3109 else
3110 am__leading_dot=_
3111 fi
3112 rmdir .tst 2>/dev/null
3113
3114 # Check whether --enable-silent-rules was given.
3115 if test ${enable_silent_rules+y}
3116 then :
3117 enableval=$enable_silent_rules;
3118 fi
3119
3120 case $enable_silent_rules in # (((
3121 yes) AM_DEFAULT_VERBOSITY=0;;
3122 no) AM_DEFAULT_VERBOSITY=1;;
3123 *) AM_DEFAULT_VERBOSITY=1;;
3124 esac
3125 am_make=${MAKE-make}
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3127 printf %s "checking whether $am_make supports nested variables... " >&6; }
3128 if test ${am_cv_make_support_nested_variables+y}
3129 then :
3130 printf %s "(cached) " >&6
3131 else $as_nop
3132 if printf "%s\n" 'TRUE=$(BAR$(V))
3133 BAR0=false
3134 BAR1=true
3135 V=1
3136 am__doit:
3137 @$(TRUE)
3138 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3139 am_cv_make_support_nested_variables=yes
3140 else
3141 am_cv_make_support_nested_variables=no
3142 fi
3143 fi
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3145 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3146 if test $am_cv_make_support_nested_variables = yes; then
3147 AM_V='$(V)'
3148 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3149 else
3150 AM_V=$AM_DEFAULT_VERBOSITY
3151 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3152 fi
3153 AM_BACKSLASH='\'
3154
3155 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3156 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3157 # is not polluted with repeated "-I."
3158 am__isrc=' -I$(srcdir)'
3159 # test to see if srcdir already configured
3160 if test -f $srcdir/config.status; then
3161 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3162 fi
3163 fi
3164
3165 # test whether we have cygpath
3166 if test -z "$CYGPATH_W"; then
3167 if (cygpath --version) >/dev/null 2>/dev/null; then
3168 CYGPATH_W='cygpath -w'
3169 else
3170 CYGPATH_W=echo
3171 fi
3172 fi
3173
3174
3175 # Define the identity of the package.
3176 PACKAGE='libpwquality'
3177 VERSION='1.4.5'
3178
3179
3180 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3181
3182
3183 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3184
3185 # Some tools Automake needs.
3186
3187 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3188
3189
3190 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3191
3192
3193 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3194
3195
3196 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3197
3198
3199 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3200
3201 # For better backward compatibility. To be removed once Automake 1.9.x
3202 # dies out for good. For more background, see:
3203 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3204 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3205 mkdir_p='$(MKDIR_P)'
3206
3207 # We need awk for the "check" target (and possibly the TAP driver). The
3208 # system "awk" is bad on some platforms.
3209 # Always define AMTAR for backward compatibility. Yes, it's still used
3210 # in the wild :-( We should find a proper way to deprecate it ...
3211 AMTAR='$${TAR-tar}'
3212
3213
3214 # We'll loop over all known methods to create a tar archive until one works.
3215 _am_tools='gnutar pax cpio none'
3216
3217 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3218
3219
3220
3221
3222
3223 # Variables for tags utilities; see am/tags.am
3224 if test -z "$CTAGS"; then
3225 CTAGS=ctags
3226 fi
3227
3228 if test -z "$ETAGS"; then
3229 ETAGS=etags
3230 fi
3231
3232 if test -z "$CSCOPE"; then
3233 CSCOPE=cscope
3234 fi
3235
3236
3237
3238 # POSIX will say in a future version that running "rm -f" with no argument
3239 # is OK; and we want to be able to make that assumption in our Makefile
3240 # recipes. So use an aggressive probe to check that the usage we want is
3241 # actually supported "in the wild" to an acceptable degree.
3242 # See automake bug#10828.
3243 # To make any issue more visible, cause the running configure to be aborted
3244 # by default if the 'rm' program in use doesn't match our expectations; the
3245 # user can still override this though.
3246 if rm -f && rm -fr && rm -rf; then : OK; else
3247 cat >&2 <<'END'
3248 Oops!
3249
3250 Your 'rm' program seems unable to run without file operands specified
3251 on the command line, even when the '-f' option is present. This is contrary
3252 to the behaviour of most rm programs out there, and not conforming with
3253 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3254
3255 Please tell [email protected] about your system, including the value
3256 of your $PATH and any error possibly output before this message. This
3257 can help us improve future automake versions.
3258
3259 END
3260 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3261 echo 'Configuration will proceed anyway, since you have set the' >&2
3262 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3263 echo >&2
3264 else
3265 cat >&2 <<'END'
3266 Aborting the configuration process, to ensure you take notice of the issue.
3267
3268 You can download and install GNU coreutils to get an 'rm' implementation
3269 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3270
3271 If you want to complete the configuration process using your problematic
3272 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3273 to "yes", and re-run configure.
3274
3275 END
3276 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3277 fi
3278 fi
3279
3280
3281
3282
3283
3284 # Make sure we can run config.sub.
3285 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3286 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3287
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3289 printf %s "checking build system type... " >&6; }
3290 if test ${ac_cv_build+y}
3291 then :
3292 printf %s "(cached) " >&6
3293 else $as_nop
3294 ac_build_alias=$build_alias
3295 test "x$ac_build_alias" = x &&
3296 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3297 test "x$ac_build_alias" = x &&
3298 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3299 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3300 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3301
3302 fi
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3304 printf "%s\n" "$ac_cv_build" >&6; }
3305 case $ac_cv_build in
3306 *-*-*) ;;
3307 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3308 esac
3309 build=$ac_cv_build
3310 ac_save_IFS=$IFS; IFS='-'
3311 set x $ac_cv_build
3312 shift
3313 build_cpu=$1
3314 build_vendor=$2
3315 shift; shift
3316 # Remember, the first character of IFS is used to create $*,
3317 # except with old shells:
3318 build_os=$*
3319 IFS=$ac_save_IFS
3320 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3321
3322
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3324 printf %s "checking host system type... " >&6; }
3325 if test ${ac_cv_host+y}
3326 then :
3327 printf %s "(cached) " >&6
3328 else $as_nop
3329 if test "x$host_alias" = x; then
3330 ac_cv_host=$ac_cv_build
3331 else
3332 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3333 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3334 fi
3335
3336 fi
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3338 printf "%s\n" "$ac_cv_host" >&6; }
3339 case $ac_cv_host in
3340 *-*-*) ;;
3341 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3342 esac
3343 host=$ac_cv_host
3344 ac_save_IFS=$IFS; IFS='-'
3345 set x $ac_cv_host
3346 shift
3347 host_cpu=$1
3348 host_vendor=$2
3349 shift; shift
3350 # Remember, the first character of IFS is used to create $*,
3351 # except with old shells:
3352 host_os=$*
3353 IFS=$ac_save_IFS
3354 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3355
3356
3357
3358 echo \#buildapi-variable-no-builddir > /dev/null
3359
3360 PWQUALITY_LT_CURRENT=1
3361 PWQUALITY_LT_AGE=0
3362 PWQUALITY_LT_REVISION=2
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379 DEPDIR="${am__leading_dot}deps"
3380
3381 ac_config_commands="$ac_config_commands depfiles"
3382
3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3384 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3385 cat > confinc.mk << 'END'
3386 am__doit:
3387 @echo this is the am__doit target >confinc.out
3388 .PHONY: am__doit
3389 END
3390 am__include="#"
3391 am__quote=
3392 # BSD make does it like this.
3393 echo '.include "confinc.mk" # ignored' > confmf.BSD
3394 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3395 echo 'include confinc.mk # ignored' > confmf.GNU
3396 _am_result=no
3397 for s in GNU BSD; do
3398 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3399 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }
3403 case $?:`cat confinc.out 2>/dev/null` in #(
3404 '0:this is the am__doit target') :
3405 case $s in #(
3406 BSD) :
3407 am__include='.include' am__quote='"' ;; #(
3408 *) :
3409 am__include='include' am__quote='' ;;
3410 esac ;; #(
3411 *) :
3412 ;;
3413 esac
3414 if test "$am__include" != "#"; then
3415 _am_result="yes ($s style)"
3416 break
3417 fi
3418 done
3419 rm -f confinc.* confmf.*
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3421 printf "%s\n" "${_am_result}" >&6; }
3422
3423 # Check whether --enable-dependency-tracking was given.
3424 if test ${enable_dependency_tracking+y}
3425 then :
3426 enableval=$enable_dependency_tracking;
3427 fi
3428
3429 if test "x$enable_dependency_tracking" != xno; then
3430 am_depcomp="$ac_aux_dir/depcomp"
3431 AMDEPBACKSLASH='\'
3432 am__nodep='_no'
3433 fi
3434 if test "x$enable_dependency_tracking" != xno; then
3435 AMDEP_TRUE=
3436 AMDEP_FALSE='#'
3437 else
3438 AMDEP_TRUE='#'
3439 AMDEP_FALSE=
3440 fi
3441
3442
3443 ac_ext=c
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 if test -n "$ac_tool_prefix"; then
3449 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3450 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 printf %s "checking for $ac_word... " >&6; }
3453 if test ${ac_cv_prog_CC+y}
3454 then :
3455 printf %s "(cached) " >&6
3456 else $as_nop
3457 if test -n "$CC"; then
3458 ac_cv_prog_CC="$CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3462 do
3463 IFS=$as_save_IFS
3464 case $as_dir in #(((
3465 '') as_dir=./ ;;
3466 */) ;;
3467 *) as_dir=$as_dir/ ;;
3468 esac
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3471 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475 done
3476 done
3477 IFS=$as_save_IFS
3478
3479 fi
3480 fi
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 printf "%s\n" "$CC" >&6; }
3485 else
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 printf "%s\n" "no" >&6; }
3488 fi
3489
3490
3491 fi
3492 if test -z "$ac_cv_prog_CC"; then
3493 ac_ct_CC=$CC
3494 # Extract the first word of "gcc", so it can be a program name with args.
3495 set dummy gcc; ac_word=$2
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 printf %s "checking for $ac_word... " >&6; }
3498 if test ${ac_cv_prog_ac_ct_CC+y}
3499 then :
3500 printf %s "(cached) " >&6
3501 else $as_nop
3502 if test -n "$ac_ct_CC"; then
3503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508 IFS=$as_save_IFS
3509 case $as_dir in #(((
3510 '') as_dir=./ ;;
3511 */) ;;
3512 *) as_dir=$as_dir/ ;;
3513 esac
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_ac_ct_CC="gcc"
3517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3518 break 2
3519 fi
3520 done
3521 done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 printf "%s\n" "$ac_ct_CC" >&6; }
3530 else
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 printf "%s\n" "no" >&6; }
3533 fi
3534
3535 if test "x$ac_ct_CC" = x; then
3536 CC=""
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3543 esac
3544 CC=$ac_ct_CC
3545 fi
3546 else
3547 CC="$ac_cv_prog_CC"
3548 fi
3549
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}cc; ac_word=$2
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 printf %s "checking for $ac_word... " >&6; }
3556 if test ${ac_cv_prog_CC+y}
3557 then :
3558 printf %s "(cached) " >&6
3559 else $as_nop
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3565 do
3566 IFS=$as_save_IFS
3567 case $as_dir in #(((
3568 '') as_dir=./ ;;
3569 */) ;;
3570 *) as_dir=$as_dir/ ;;
3571 esac
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_CC="${ac_tool_prefix}cc"
3575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3576 break 2
3577 fi
3578 done
3579 done
3580 IFS=$as_save_IFS
3581
3582 fi
3583 fi
3584 CC=$ac_cv_prog_CC
3585 if test -n "$CC"; then
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3587 printf "%s\n" "$CC" >&6; }
3588 else
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 printf "%s\n" "no" >&6; }
3591 fi
3592
3593
3594 fi
3595 fi
3596 if test -z "$CC"; then
3597 # Extract the first word of "cc", so it can be a program name with args.
3598 set dummy cc; ac_word=$2
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 printf %s "checking for $ac_word... " >&6; }
3601 if test ${ac_cv_prog_CC+y}
3602 then :
3603 printf %s "(cached) " >&6
3604 else $as_nop
3605 if test -n "$CC"; then
3606 ac_cv_prog_CC="$CC" # Let the user override the test.
3607 else
3608 ac_prog_rejected=no
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612 IFS=$as_save_IFS
3613 case $as_dir in #(((
3614 '') as_dir=./ ;;
3615 */) ;;
3616 *) as_dir=$as_dir/ ;;
3617 esac
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3620 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3621 ac_prog_rejected=yes
3622 continue
3623 fi
3624 ac_cv_prog_CC="cc"
3625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3626 break 2
3627 fi
3628 done
3629 done
3630 IFS=$as_save_IFS
3631
3632 if test $ac_prog_rejected = yes; then
3633 # We found a bogon in the path, so make sure we never use it.
3634 set dummy $ac_cv_prog_CC
3635 shift
3636 if test $# != 0; then
3637 # We chose a different compiler from the bogus one.
3638 # However, it has the same basename, so the bogon will be chosen
3639 # first if we set CC to just the basename; use the full file name.
3640 shift
3641 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3642 fi
3643 fi
3644 fi
3645 fi
3646 CC=$ac_cv_prog_CC
3647 if test -n "$CC"; then
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649 printf "%s\n" "$CC" >&6; }
3650 else
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 printf "%s\n" "no" >&6; }
3653 fi
3654
3655
3656 fi
3657 if test -z "$CC"; then
3658 if test -n "$ac_tool_prefix"; then
3659 for ac_prog in cl.exe
3660 do
3661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 printf %s "checking for $ac_word... " >&6; }
3665 if test ${ac_cv_prog_CC+y}
3666 then :
3667 printf %s "(cached) " >&6
3668 else $as_nop
3669 if test -n "$CC"; then
3670 ac_cv_prog_CC="$CC" # Let the user override the test.
3671 else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675 IFS=$as_save_IFS
3676 case $as_dir in #(((
3677 '') as_dir=./ ;;
3678 */) ;;
3679 *) as_dir=$as_dir/ ;;
3680 esac
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3683 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687 done
3688 done
3689 IFS=$as_save_IFS
3690
3691 fi
3692 fi
3693 CC=$ac_cv_prog_CC
3694 if test -n "$CC"; then
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3696 printf "%s\n" "$CC" >&6; }
3697 else
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 printf "%s\n" "no" >&6; }
3700 fi
3701
3702
3703 test -n "$CC" && break
3704 done
3705 fi
3706 if test -z "$CC"; then
3707 ac_ct_CC=$CC
3708 for ac_prog in cl.exe
3709 do
3710 # Extract the first word of "$ac_prog", so it can be a program name with args.
3711 set dummy $ac_prog; ac_word=$2
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 printf %s "checking for $ac_word... " >&6; }
3714 if test ${ac_cv_prog_ac_ct_CC+y}
3715 then :
3716 printf %s "(cached) " >&6
3717 else $as_nop
3718 if test -n "$ac_ct_CC"; then
3719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724 IFS=$as_save_IFS
3725 case $as_dir in #(((
3726 '') as_dir=./ ;;
3727 */) ;;
3728 *) as_dir=$as_dir/ ;;
3729 esac
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_ac_ct_CC="$ac_prog"
3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736 done
3737 done
3738 IFS=$as_save_IFS
3739
3740 fi
3741 fi
3742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3743 if test -n "$ac_ct_CC"; then
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3745 printf "%s\n" "$ac_ct_CC" >&6; }
3746 else
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 printf "%s\n" "no" >&6; }
3749 fi
3750
3751
3752 test -n "$ac_ct_CC" && break
3753 done
3754
3755 if test "x$ac_ct_CC" = x; then
3756 CC=""
3757 else
3758 case $cross_compiling:$ac_tool_warned in
3759 yes:)
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3761 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3762 ac_tool_warned=yes ;;
3763 esac
3764 CC=$ac_ct_CC
3765 fi
3766 fi
3767
3768 fi
3769 if test -z "$CC"; then
3770 if test -n "$ac_tool_prefix"; then
3771 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3772 set dummy ${ac_tool_prefix}clang; ac_word=$2
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 printf %s "checking for $ac_word... " >&6; }
3775 if test ${ac_cv_prog_CC+y}
3776 then :
3777 printf %s "(cached) " >&6
3778 else $as_nop
3779 if test -n "$CC"; then
3780 ac_cv_prog_CC="$CC" # Let the user override the test.
3781 else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3784 do
3785 IFS=$as_save_IFS
3786 case $as_dir in #(((
3787 '') as_dir=./ ;;
3788 */) ;;
3789 *) as_dir=$as_dir/ ;;
3790 esac
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_CC="${ac_tool_prefix}clang"
3794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3795 break 2
3796 fi
3797 done
3798 done
3799 IFS=$as_save_IFS
3800
3801 fi
3802 fi
3803 CC=$ac_cv_prog_CC
3804 if test -n "$CC"; then
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806 printf "%s\n" "$CC" >&6; }
3807 else
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 printf "%s\n" "no" >&6; }
3810 fi
3811
3812
3813 fi
3814 if test -z "$ac_cv_prog_CC"; then
3815 ac_ct_CC=$CC
3816 # Extract the first word of "clang", so it can be a program name with args.
3817 set dummy clang; ac_word=$2
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 printf %s "checking for $ac_word... " >&6; }
3820 if test ${ac_cv_prog_ac_ct_CC+y}
3821 then :
3822 printf %s "(cached) " >&6
3823 else $as_nop
3824 if test -n "$ac_ct_CC"; then
3825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3829 do
3830 IFS=$as_save_IFS
3831 case $as_dir in #(((
3832 '') as_dir=./ ;;
3833 */) ;;
3834 *) as_dir=$as_dir/ ;;
3835 esac
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3838 ac_cv_prog_ac_ct_CC="clang"
3839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3840 break 2
3841 fi
3842 done
3843 done
3844 IFS=$as_save_IFS
3845
3846 fi
3847 fi
3848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3849 if test -n "$ac_ct_CC"; then
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3851 printf "%s\n" "$ac_ct_CC" >&6; }
3852 else
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 printf "%s\n" "no" >&6; }
3855 fi
3856
3857 if test "x$ac_ct_CC" = x; then
3858 CC=""
3859 else
3860 case $cross_compiling:$ac_tool_warned in
3861 yes:)
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3863 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3864 ac_tool_warned=yes ;;
3865 esac
3866 CC=$ac_ct_CC
3867 fi
3868 else
3869 CC="$ac_cv_prog_CC"
3870 fi
3871
3872 fi
3873
3874
3875 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error $? "no acceptable C compiler found in \$PATH
3878 See \`config.log' for more details" "$LINENO" 5; }
3879
3880 # Provide some information about the compiler.
3881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3882 set X $ac_compile
3883 ac_compiler=$2
3884 for ac_option in --version -v -V -qversion -version; do
3885 { { ac_try="$ac_compiler $ac_option >&5"
3886 case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889 esac
3890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891 printf "%s\n" "$ac_try_echo"; } >&5
3892 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3893 ac_status=$?
3894 if test -s conftest.err; then
3895 sed '10a\
3896 ... rest of stderr output deleted ...
3897 10q' conftest.err >conftest.er1
3898 cat conftest.er1 >&5
3899 fi
3900 rm -f conftest.er1 conftest.err
3901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }
3903 done
3904
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907
3908 int
3909 main (void)
3910 {
3911
3912 ;
3913 return 0;
3914 }
3915 _ACEOF
3916 ac_clean_files_save=$ac_clean_files
3917 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3918 # Try to create an executable without -o first, disregard a.out.
3919 # It will help us diagnose broken compilers, and finding out an intuition
3920 # of exeext.
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3922 printf %s "checking whether the C compiler works... " >&6; }
3923 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3924
3925 # The possible output files:
3926 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3927
3928 ac_rmfiles=
3929 for ac_file in $ac_files
3930 do
3931 case $ac_file in
3932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3933 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3934 esac
3935 done
3936 rm -f $ac_rmfiles
3937
3938 if { { ac_try="$ac_link_default"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 printf "%s\n" "$ac_try_echo"; } >&5
3945 (eval "$ac_link_default") 2>&5
3946 ac_status=$?
3947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }
3949 then :
3950 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3951 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3952 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3953 # so that the user can short-circuit this test for compilers unknown to
3954 # Autoconf.
3955 for ac_file in $ac_files ''
3956 do
3957 test -f "$ac_file" || continue
3958 case $ac_file in
3959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3960 ;;
3961 [ab].out )
3962 # We found the default executable, but exeext='' is most
3963 # certainly right.
3964 break;;
3965 *.* )
3966 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3967 then :; else
3968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3969 fi
3970 # We set ac_cv_exeext here because the later test for it is not
3971 # safe: cross compilers may not add the suffix if given an `-o'
3972 # argument, so we may need to know it at that point already.
3973 # Even if this section looks crufty: it has the advantage of
3974 # actually working.
3975 break;;
3976 * )
3977 break;;
3978 esac
3979 done
3980 test "$ac_cv_exeext" = no && ac_cv_exeext=
3981
3982 else $as_nop
3983 ac_file=''
3984 fi
3985 if test -z "$ac_file"
3986 then :
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 printf "%s\n" "no" >&6; }
3989 printf "%s\n" "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error 77 "C compiler cannot create executables
3995 See \`config.log' for more details" "$LINENO" 5; }
3996 else $as_nop
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3998 printf "%s\n" "yes" >&6; }
3999 fi
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4001 printf %s "checking for C compiler default output file name... " >&6; }
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4003 printf "%s\n" "$ac_file" >&6; }
4004 ac_exeext=$ac_cv_exeext
4005
4006 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4007 ac_clean_files=$ac_clean_files_save
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4009 printf %s "checking for suffix of executables... " >&6; }
4010 if { { ac_try="$ac_link"
4011 case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 printf "%s\n" "$ac_try_echo"; } >&5
4017 (eval "$ac_link") 2>&5
4018 ac_status=$?
4019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }
4021 then :
4022 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4023 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4024 # work properly (i.e., refer to `conftest.exe'), while it won't with
4025 # `rm'.
4026 for ac_file in conftest.exe conftest conftest.*; do
4027 test -f "$ac_file" || continue
4028 case $ac_file in
4029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4030 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4031 break;;
4032 * ) break;;
4033 esac
4034 done
4035 else $as_nop
4036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4039 See \`config.log' for more details" "$LINENO" 5; }
4040 fi
4041 rm -f conftest conftest$ac_cv_exeext
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4043 printf "%s\n" "$ac_cv_exeext" >&6; }
4044
4045 rm -f conftest.$ac_ext
4046 EXEEXT=$ac_cv_exeext
4047 ac_exeext=$EXEEXT
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050 #include <stdio.h>
4051 int
4052 main (void)
4053 {
4054 FILE *f = fopen ("conftest.out", "w");
4055 return ferror (f) || fclose (f) != 0;
4056
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 ac_clean_files="$ac_clean_files conftest.out"
4062 # Check that the compiler produces executables we can run. If not, either
4063 # the compiler is broken, or we cross compile.
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4065 printf %s "checking whether we are cross compiling... " >&6; }
4066 if test "$cross_compiling" != yes; then
4067 { { ac_try="$ac_link"
4068 case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 printf "%s\n" "$ac_try_echo"; } >&5
4074 (eval "$ac_link") 2>&5
4075 ac_status=$?
4076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }
4078 if { ac_try='./conftest$ac_cv_exeext'
4079 { { case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 printf "%s\n" "$ac_try_echo"; } >&5
4085 (eval "$ac_try") 2>&5
4086 ac_status=$?
4087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088 test $ac_status = 0; }; }; then
4089 cross_compiling=no
4090 else
4091 if test "$cross_compiling" = maybe; then
4092 cross_compiling=yes
4093 else
4094 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4095 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4096 as_fn_error 77 "cannot run C compiled programs.
4097 If you meant to cross compile, use \`--host'.
4098 See \`config.log' for more details" "$LINENO" 5; }
4099 fi
4100 fi
4101 fi
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4103 printf "%s\n" "$cross_compiling" >&6; }
4104
4105 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4106 ac_clean_files=$ac_clean_files_save
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4108 printf %s "checking for suffix of object files... " >&6; }
4109 if test ${ac_cv_objext+y}
4110 then :
4111 printf %s "(cached) " >&6
4112 else $as_nop
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115
4116 int
4117 main (void)
4118 {
4119
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 rm -f conftest.o conftest.obj
4125 if { { ac_try="$ac_compile"
4126 case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131 printf "%s\n" "$ac_try_echo"; } >&5
4132 (eval "$ac_compile") 2>&5
4133 ac_status=$?
4134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4135 test $ac_status = 0; }
4136 then :
4137 for ac_file in conftest.o conftest.obj conftest.*; do
4138 test -f "$ac_file" || continue;
4139 case $ac_file in
4140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4141 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4142 break;;
4143 esac
4144 done
4145 else $as_nop
4146 printf "%s\n" "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4148
4149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4150 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4151 as_fn_error $? "cannot compute suffix of object files: cannot compile
4152 See \`config.log' for more details" "$LINENO" 5; }
4153 fi
4154 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4155 fi
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4157 printf "%s\n" "$ac_cv_objext" >&6; }
4158 OBJEXT=$ac_cv_objext
4159 ac_objext=$OBJEXT
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4161 printf %s "checking whether the compiler supports GNU C... " >&6; }
4162 if test ${ac_cv_c_compiler_gnu+y}
4163 then :
4164 printf %s "(cached) " >&6
4165 else $as_nop
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168
4169 int
4170 main (void)
4171 {
4172 #ifndef __GNUC__
4173 choke me
4174 #endif
4175
4176 ;
4177 return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"
4181 then :
4182 ac_compiler_gnu=yes
4183 else $as_nop
4184 ac_compiler_gnu=no
4185 fi
4186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4187 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4188
4189 fi
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4191 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193
4194 if test $ac_compiler_gnu = yes; then
4195 GCC=yes
4196 else
4197 GCC=
4198 fi
4199 ac_test_CFLAGS=${CFLAGS+y}
4200 ac_save_CFLAGS=$CFLAGS
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4202 printf %s "checking whether $CC accepts -g... " >&6; }
4203 if test ${ac_cv_prog_cc_g+y}
4204 then :
4205 printf %s "(cached) " >&6
4206 else $as_nop
4207 ac_save_c_werror_flag=$ac_c_werror_flag
4208 ac_c_werror_flag=yes
4209 ac_cv_prog_cc_g=no
4210 CFLAGS="-g"
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213
4214 int
4215 main (void)
4216 {
4217
4218 ;
4219 return 0;
4220 }
4221 _ACEOF
4222 if ac_fn_c_try_compile "$LINENO"
4223 then :
4224 ac_cv_prog_cc_g=yes
4225 else $as_nop
4226 CFLAGS=""
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229
4230 int
4231 main (void)
4232 {
4233
4234 ;
4235 return 0;
4236 }
4237 _ACEOF
4238 if ac_fn_c_try_compile "$LINENO"
4239 then :
4240
4241 else $as_nop
4242 ac_c_werror_flag=$ac_save_c_werror_flag
4243 CFLAGS="-g"
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246
4247 int
4248 main (void)
4249 {
4250
4251 ;
4252 return 0;
4253 }
4254 _ACEOF
4255 if ac_fn_c_try_compile "$LINENO"
4256 then :
4257 ac_cv_prog_cc_g=yes
4258 fi
4259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4260 fi
4261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4262 fi
4263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4264 ac_c_werror_flag=$ac_save_c_werror_flag
4265 fi
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4267 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4268 if test $ac_test_CFLAGS; then
4269 CFLAGS=$ac_save_CFLAGS
4270 elif test $ac_cv_prog_cc_g = yes; then
4271 if test "$GCC" = yes; then
4272 CFLAGS="-g -O2"
4273 else
4274 CFLAGS="-g"
4275 fi
4276 else
4277 if test "$GCC" = yes; then
4278 CFLAGS="-O2"
4279 else
4280 CFLAGS=
4281 fi
4282 fi
4283 ac_prog_cc_stdc=no
4284 if test x$ac_prog_cc_stdc = xno
4285 then :
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4287 printf %s "checking for $CC option to enable C11 features... " >&6; }
4288 if test ${ac_cv_prog_cc_c11+y}
4289 then :
4290 printf %s "(cached) " >&6
4291 else $as_nop
4292 ac_cv_prog_cc_c11=no
4293 ac_save_CC=$CC
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 $ac_c_conftest_c11_program
4297 _ACEOF
4298 for ac_arg in '' -std=gnu11
4299 do
4300 CC="$ac_save_CC $ac_arg"
4301 if ac_fn_c_try_compile "$LINENO"
4302 then :
4303 ac_cv_prog_cc_c11=$ac_arg
4304 fi
4305 rm -f core conftest.err conftest.$ac_objext conftest.beam
4306 test "x$ac_cv_prog_cc_c11" != "xno" && break
4307 done
4308 rm -f conftest.$ac_ext
4309 CC=$ac_save_CC
4310 fi
4311
4312 if test "x$ac_cv_prog_cc_c11" = xno
4313 then :
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4315 printf "%s\n" "unsupported" >&6; }
4316 else $as_nop
4317 if test "x$ac_cv_prog_cc_c11" = x
4318 then :
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4320 printf "%s\n" "none needed" >&6; }
4321 else $as_nop
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4323 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4324 CC="$CC $ac_cv_prog_cc_c11"
4325 fi
4326 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4327 ac_prog_cc_stdc=c11
4328 fi
4329 fi
4330 if test x$ac_prog_cc_stdc = xno
4331 then :
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4333 printf %s "checking for $CC option to enable C99 features... " >&6; }
4334 if test ${ac_cv_prog_cc_c99+y}
4335 then :
4336 printf %s "(cached) " >&6
4337 else $as_nop
4338 ac_cv_prog_cc_c99=no
4339 ac_save_CC=$CC
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 $ac_c_conftest_c99_program
4343 _ACEOF
4344 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4345 do
4346 CC="$ac_save_CC $ac_arg"
4347 if ac_fn_c_try_compile "$LINENO"
4348 then :
4349 ac_cv_prog_cc_c99=$ac_arg
4350 fi
4351 rm -f core conftest.err conftest.$ac_objext conftest.beam
4352 test "x$ac_cv_prog_cc_c99" != "xno" && break
4353 done
4354 rm -f conftest.$ac_ext
4355 CC=$ac_save_CC
4356 fi
4357
4358 if test "x$ac_cv_prog_cc_c99" = xno
4359 then :
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4361 printf "%s\n" "unsupported" >&6; }
4362 else $as_nop
4363 if test "x$ac_cv_prog_cc_c99" = x
4364 then :
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4366 printf "%s\n" "none needed" >&6; }
4367 else $as_nop
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4369 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4370 CC="$CC $ac_cv_prog_cc_c99"
4371 fi
4372 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4373 ac_prog_cc_stdc=c99
4374 fi
4375 fi
4376 if test x$ac_prog_cc_stdc = xno
4377 then :
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4379 printf %s "checking for $CC option to enable C89 features... " >&6; }
4380 if test ${ac_cv_prog_cc_c89+y}
4381 then :
4382 printf %s "(cached) " >&6
4383 else $as_nop
4384 ac_cv_prog_cc_c89=no
4385 ac_save_CC=$CC
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 $ac_c_conftest_c89_program
4389 _ACEOF
4390 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4391 do
4392 CC="$ac_save_CC $ac_arg"
4393 if ac_fn_c_try_compile "$LINENO"
4394 then :
4395 ac_cv_prog_cc_c89=$ac_arg
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext conftest.beam
4398 test "x$ac_cv_prog_cc_c89" != "xno" && break
4399 done
4400 rm -f conftest.$ac_ext
4401 CC=$ac_save_CC
4402 fi
4403
4404 if test "x$ac_cv_prog_cc_c89" = xno
4405 then :
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4407 printf "%s\n" "unsupported" >&6; }
4408 else $as_nop
4409 if test "x$ac_cv_prog_cc_c89" = x
4410 then :
4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4412 printf "%s\n" "none needed" >&6; }
4413 else $as_nop
4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4415 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4416 CC="$CC $ac_cv_prog_cc_c89"
4417 fi
4418 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4419 ac_prog_cc_stdc=c89
4420 fi
4421 fi
4422
4423 ac_ext=c
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428
4429
4430 ac_ext=c
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4436 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4437 if test ${am_cv_prog_cc_c_o+y}
4438 then :
4439 printf %s "(cached) " >&6
4440 else $as_nop
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443
4444 int
4445 main (void)
4446 {
4447
4448 ;
4449 return 0;
4450 }
4451 _ACEOF
4452 # Make sure it works both with $CC and with simple cc.
4453 # Following AC_PROG_CC_C_O, we do the test twice because some
4454 # compilers refuse to overwrite an existing .o file with -o,
4455 # though they will create one.
4456 am_cv_prog_cc_c_o=yes
4457 for am_i in 1 2; do
4458 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4459 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } \
4463 && test -f conftest2.$ac_objext; then
4464 : OK
4465 else
4466 am_cv_prog_cc_c_o=no
4467 break
4468 fi
4469 done
4470 rm -f core conftest*
4471 unset am_i
4472 fi
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4474 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4475 if test "$am_cv_prog_cc_c_o" != yes; then
4476 # Losing compiler, so override with the script.
4477 # FIXME: It is wrong to rewrite CC.
4478 # But if we don't then we get into trouble of one sort or another.
4479 # A longer-term fix would be to have automake use am__CC in this case,
4480 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4481 CC="$am_aux_dir/compile $CC"
4482 fi
4483 ac_ext=c
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488
4489
4490 depcc="$CC" am_compiler_list=
4491
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4493 printf %s "checking dependency style of $depcc... " >&6; }
4494 if test ${am_cv_CC_dependencies_compiler_type+y}
4495 then :
4496 printf %s "(cached) " >&6
4497 else $as_nop
4498 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4499 # We make a subdir and do the tests there. Otherwise we can end up
4500 # making bogus files that we don't know about and never remove. For
4501 # instance it was reported that on HP-UX the gcc test will end up
4502 # making a dummy file named 'D' -- because '-MD' means "put the output
4503 # in D".
4504 rm -rf conftest.dir
4505 mkdir conftest.dir
4506 # Copy depcomp to subdir because otherwise we won't find it if we're
4507 # using a relative directory.
4508 cp "$am_depcomp" conftest.dir
4509 cd conftest.dir
4510 # We will build objects and dependencies in a subdirectory because
4511 # it helps to detect inapplicable dependency modes. For instance
4512 # both Tru64's cc and ICC support -MD to output dependencies as a
4513 # side effect of compilation, but ICC will put the dependencies in
4514 # the current directory while Tru64 will put them in the object
4515 # directory.
4516 mkdir sub
4517
4518 am_cv_CC_dependencies_compiler_type=none
4519 if test "$am_compiler_list" = ""; then
4520 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4521 fi
4522 am__universal=false
4523 case " $depcc " in #(
4524 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4525 esac
4526
4527 for depmode in $am_compiler_list; do
4528 # Setup a source with many dependencies, because some compilers
4529 # like to wrap large dependency lists on column 80 (with \), and
4530 # we should not choose a depcomp mode which is confused by this.
4531 #
4532 # We need to recreate these files for each test, as the compiler may
4533 # overwrite some of them when testing with obscure command lines.
4534 # This happens at least with the AIX C compiler.
4535 : > sub/conftest.c
4536 for i in 1 2 3 4 5 6; do
4537 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4538 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4539 # Solaris 10 /bin/sh.
4540 echo '/* dummy */' > sub/conftst$i.h
4541 done
4542 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4543
4544 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4545 # mode. It turns out that the SunPro C++ compiler does not properly
4546 # handle '-M -o', and we need to detect this. Also, some Intel
4547 # versions had trouble with output in subdirs.
4548 am__obj=sub/conftest.${OBJEXT-o}
4549 am__minus_obj="-o $am__obj"
4550 case $depmode in
4551 gcc)
4552 # This depmode causes a compiler race in universal mode.
4553 test "$am__universal" = false || continue
4554 ;;
4555 nosideeffect)
4556 # After this tag, mechanisms are not by side-effect, so they'll
4557 # only be used when explicitly requested.
4558 if test "x$enable_dependency_tracking" = xyes; then
4559 continue
4560 else
4561 break
4562 fi
4563 ;;
4564 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4565 # This compiler won't grok '-c -o', but also, the minuso test has
4566 # not run yet. These depmodes are late enough in the game, and
4567 # so weak that their functioning should not be impacted.
4568 am__obj=conftest.${OBJEXT-o}
4569 am__minus_obj=
4570 ;;
4571 none) break ;;
4572 esac
4573 if depmode=$depmode \
4574 source=sub/conftest.c object=$am__obj \
4575 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4576 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4577 >/dev/null 2>conftest.err &&
4578 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4579 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4580 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4581 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4582 # icc doesn't choke on unknown options, it will just issue warnings
4583 # or remarks (even with -Werror). So we grep stderr for any message
4584 # that says an option was ignored or not supported.
4585 # When given -MP, icc 7.0 and 7.1 complain thusly:
4586 # icc: Command line warning: ignoring option '-M'; no argument required
4587 # The diagnosis changed in icc 8.0:
4588 # icc: Command line remark: option '-MP' not supported
4589 if (grep 'ignoring option' conftest.err ||
4590 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4591 am_cv_CC_dependencies_compiler_type=$depmode
4592 break
4593 fi
4594 fi
4595 done
4596
4597 cd ..
4598 rm -rf conftest.dir
4599 else
4600 am_cv_CC_dependencies_compiler_type=none
4601 fi
4602
4603 fi
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4605 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4606 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4607
4608 if
4609 test "x$enable_dependency_tracking" != xno \
4610 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4611 am__fastdepCC_TRUE=
4612 am__fastdepCC_FALSE='#'
4613 else
4614 am__fastdepCC_TRUE='#'
4615 am__fastdepCC_FALSE=
4616 fi
4617
4618
4619
4620 ac_header= ac_cache=
4621 for ac_item in $ac_header_c_list
4622 do
4623 if test $ac_cache; then
4624 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4625 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4626 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4627 fi
4628 ac_header= ac_cache=
4629 elif test $ac_header; then
4630 ac_cache=$ac_item
4631 else
4632 ac_header=$ac_item
4633 fi
4634 done
4635
4636
4637
4638
4639
4640
4641
4642
4643 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4644 then :
4645
4646 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4647
4648 fi
4649
4650
4651
4652
4653
4654
4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4656 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4657 if test ${ac_cv_safe_to_define___extensions__+y}
4658 then :
4659 printf %s "(cached) " >&6
4660 else $as_nop
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4663
4664 # define __EXTENSIONS__ 1
4665 $ac_includes_default
4666 int
4667 main (void)
4668 {
4669
4670 ;
4671 return 0;
4672 }
4673 _ACEOF
4674 if ac_fn_c_try_compile "$LINENO"
4675 then :
4676 ac_cv_safe_to_define___extensions__=yes
4677 else $as_nop
4678 ac_cv_safe_to_define___extensions__=no
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4681 fi
4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4683 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4684
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4686 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4687 if test ${ac_cv_should_define__xopen_source+y}
4688 then :
4689 printf %s "(cached) " >&6
4690 else $as_nop
4691 ac_cv_should_define__xopen_source=no
4692 if test $ac_cv_header_wchar_h = yes
4693 then :
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696
4697 #include <wchar.h>
4698 mbstate_t x;
4699 int
4700 main (void)
4701 {
4702
4703 ;
4704 return 0;
4705 }
4706 _ACEOF
4707 if ac_fn_c_try_compile "$LINENO"
4708 then :
4709
4710 else $as_nop
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713
4714 #define _XOPEN_SOURCE 500
4715 #include <wchar.h>
4716 mbstate_t x;
4717 int
4718 main (void)
4719 {
4720
4721 ;
4722 return 0;
4723 }
4724 _ACEOF
4725 if ac_fn_c_try_compile "$LINENO"
4726 then :
4727 ac_cv_should_define__xopen_source=yes
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4732 fi
4733 fi
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4735 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4736
4737 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4738
4739 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4740
4741 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4742
4743 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4744
4745 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4746
4747 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4748
4749 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4750
4751 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4752
4753 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4754
4755 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4756
4757 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4758
4759 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4760
4761 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4762
4763 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4764
4765 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4766
4767 if test $ac_cv_header_minix_config_h = yes
4768 then :
4769 MINIX=yes
4770 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4771
4772 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4773
4774 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4775
4776 else $as_nop
4777 MINIX=
4778 fi
4779 if test $ac_cv_safe_to_define___extensions__ = yes
4780 then :
4781 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4782
4783 fi
4784 if test $ac_cv_should_define__xopen_source = yes
4785 then :
4786 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4787
4788 fi
4789
4790
4791 if test -n "$ac_tool_prefix"; then
4792 for ac_prog in ar lib "link -lib"
4793 do
4794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 printf %s "checking for $ac_word... " >&6; }
4798 if test ${ac_cv_prog_AR+y}
4799 then :
4800 printf %s "(cached) " >&6
4801 else $as_nop
4802 if test -n "$AR"; then
4803 ac_cv_prog_AR="$AR" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808 IFS=$as_save_IFS
4809 case $as_dir in #(((
4810 '') as_dir=./ ;;
4811 */) ;;
4812 *) as_dir=$as_dir/ ;;
4813 esac
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4818 break 2
4819 fi
4820 done
4821 done
4822 IFS=$as_save_IFS
4823
4824 fi
4825 fi
4826 AR=$ac_cv_prog_AR
4827 if test -n "$AR"; then
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4829 printf "%s\n" "$AR" >&6; }
4830 else
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 printf "%s\n" "no" >&6; }
4833 fi
4834
4835
4836 test -n "$AR" && break
4837 done
4838 fi
4839 if test -z "$AR"; then
4840 ac_ct_AR=$AR
4841 for ac_prog in ar lib "link -lib"
4842 do
4843 # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 printf %s "checking for $ac_word... " >&6; }
4847 if test ${ac_cv_prog_ac_ct_AR+y}
4848 then :
4849 printf %s "(cached) " >&6
4850 else $as_nop
4851 if test -n "$ac_ct_AR"; then
4852 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857 IFS=$as_save_IFS
4858 case $as_dir in #(((
4859 '') as_dir=./ ;;
4860 */) ;;
4861 *) as_dir=$as_dir/ ;;
4862 esac
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4865 ac_cv_prog_ac_ct_AR="$ac_prog"
4866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869 done
4870 done
4871 IFS=$as_save_IFS
4872
4873 fi
4874 fi
4875 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4876 if test -n "$ac_ct_AR"; then
4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4878 printf "%s\n" "$ac_ct_AR" >&6; }
4879 else
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 printf "%s\n" "no" >&6; }
4882 fi
4883
4884
4885 test -n "$ac_ct_AR" && break
4886 done
4887
4888 if test "x$ac_ct_AR" = x; then
4889 AR="false"
4890 else
4891 case $cross_compiling:$ac_tool_warned in
4892 yes:)
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4894 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895 ac_tool_warned=yes ;;
4896 esac
4897 AR=$ac_ct_AR
4898 fi
4899 fi
4900
4901 : ${AR=ar}
4902
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4904 printf %s "checking the archiver ($AR) interface... " >&6; }
4905 if test ${am_cv_ar_interface+y}
4906 then :
4907 printf %s "(cached) " >&6
4908 else $as_nop
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914
4915 am_cv_ar_interface=ar
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918 int some_variable = 0;
4919 _ACEOF
4920 if ac_fn_c_try_compile "$LINENO"
4921 then :
4922 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4924 (eval $am_ar_try) 2>&5
4925 ac_status=$?
4926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4927 test $ac_status = 0; }
4928 if test "$ac_status" -eq 0; then
4929 am_cv_ar_interface=ar
4930 else
4931 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4933 (eval $am_ar_try) 2>&5
4934 ac_status=$?
4935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4936 test $ac_status = 0; }
4937 if test "$ac_status" -eq 0; then
4938 am_cv_ar_interface=lib
4939 else
4940 am_cv_ar_interface=unknown
4941 fi
4942 fi
4943 rm -f conftest.lib libconftest.a
4944
4945 fi
4946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4947 ac_ext=c
4948 ac_cpp='$CPP $CPPFLAGS'
4949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952
4953 fi
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4955 printf "%s\n" "$am_cv_ar_interface" >&6; }
4956
4957 case $am_cv_ar_interface in
4958 ar)
4959 ;;
4960 lib)
4961 # Microsoft lib, so override with the ar-lib wrapper script.
4962 # FIXME: It is wrong to rewrite AR.
4963 # But if we don't then we get into trouble of one sort or another.
4964 # A longer-term fix would be to have automake use am__AR in this case,
4965 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4966 # similar.
4967 AR="$am_aux_dir/ar-lib $AR"
4968 ;;
4969 unknown)
4970 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4971 ;;
4972 esac
4973
4974 ac_ext=c
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979 if test -n "$ac_tool_prefix"; then
4980 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 printf %s "checking for $ac_word... " >&6; }
4984 if test ${ac_cv_prog_CC+y}
4985 then :
4986 printf %s "(cached) " >&6
4987 else $as_nop
4988 if test -n "$CC"; then
4989 ac_cv_prog_CC="$CC" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994 IFS=$as_save_IFS
4995 case $as_dir in #(((
4996 '') as_dir=./ ;;
4997 */) ;;
4998 *) as_dir=$as_dir/ ;;
4999 esac
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5004 break 2
5005 fi
5006 done
5007 done
5008 IFS=$as_save_IFS
5009
5010 fi
5011 fi
5012 CC=$ac_cv_prog_CC
5013 if test -n "$CC"; then
5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5015 printf "%s\n" "$CC" >&6; }
5016 else
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 printf "%s\n" "no" >&6; }
5019 fi
5020
5021
5022 fi
5023 if test -z "$ac_cv_prog_CC"; then
5024 ac_ct_CC=$CC
5025 # Extract the first word of "gcc", so it can be a program name with args.
5026 set dummy gcc; ac_word=$2
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 printf %s "checking for $ac_word... " >&6; }
5029 if test ${ac_cv_prog_ac_ct_CC+y}
5030 then :
5031 printf %s "(cached) " >&6
5032 else $as_nop
5033 if test -n "$ac_ct_CC"; then
5034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039 IFS=$as_save_IFS
5040 case $as_dir in #(((
5041 '') as_dir=./ ;;
5042 */) ;;
5043 *) as_dir=$as_dir/ ;;
5044 esac
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5047 ac_cv_prog_ac_ct_CC="gcc"
5048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5049 break 2
5050 fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5058 if test -n "$ac_ct_CC"; then
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5060 printf "%s\n" "$ac_ct_CC" >&6; }
5061 else
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 printf "%s\n" "no" >&6; }
5064 fi
5065
5066 if test "x$ac_ct_CC" = x; then
5067 CC=""
5068 else
5069 case $cross_compiling:$ac_tool_warned in
5070 yes:)
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5072 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5073 ac_tool_warned=yes ;;
5074 esac
5075 CC=$ac_ct_CC
5076 fi
5077 else
5078 CC="$ac_cv_prog_CC"
5079 fi
5080
5081 if test -z "$CC"; then
5082 if test -n "$ac_tool_prefix"; then
5083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5084 set dummy ${ac_tool_prefix}cc; ac_word=$2
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 printf %s "checking for $ac_word... " >&6; }
5087 if test ${ac_cv_prog_CC+y}
5088 then :
5089 printf %s "(cached) " >&6
5090 else $as_nop
5091 if test -n "$CC"; then
5092 ac_cv_prog_CC="$CC" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097 IFS=$as_save_IFS
5098 case $as_dir in #(((
5099 '') as_dir=./ ;;
5100 */) ;;
5101 *) as_dir=$as_dir/ ;;
5102 esac
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_CC="${ac_tool_prefix}cc"
5106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5107 break 2
5108 fi
5109 done
5110 done
5111 IFS=$as_save_IFS
5112
5113 fi
5114 fi
5115 CC=$ac_cv_prog_CC
5116 if test -n "$CC"; then
5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5118 printf "%s\n" "$CC" >&6; }
5119 else
5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 printf "%s\n" "no" >&6; }
5122 fi
5123
5124
5125 fi
5126 fi
5127 if test -z "$CC"; then
5128 # Extract the first word of "cc", so it can be a program name with args.
5129 set dummy cc; ac_word=$2
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131 printf %s "checking for $ac_word... " >&6; }
5132 if test ${ac_cv_prog_CC+y}
5133 then :
5134 printf %s "(cached) " >&6
5135 else $as_nop
5136 if test -n "$CC"; then
5137 ac_cv_prog_CC="$CC" # Let the user override the test.
5138 else
5139 ac_prog_rejected=no
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5142 do
5143 IFS=$as_save_IFS
5144 case $as_dir in #(((
5145 '') as_dir=./ ;;
5146 */) ;;
5147 *) as_dir=$as_dir/ ;;
5148 esac
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5151 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5152 ac_prog_rejected=yes
5153 continue
5154 fi
5155 ac_cv_prog_CC="cc"
5156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163 if test $ac_prog_rejected = yes; then
5164 # We found a bogon in the path, so make sure we never use it.
5165 set dummy $ac_cv_prog_CC
5166 shift
5167 if test $# != 0; then
5168 # We chose a different compiler from the bogus one.
5169 # However, it has the same basename, so the bogon will be chosen
5170 # first if we set CC to just the basename; use the full file name.
5171 shift
5172 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5173 fi
5174 fi
5175 fi
5176 fi
5177 CC=$ac_cv_prog_CC
5178 if test -n "$CC"; then
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5180 printf "%s\n" "$CC" >&6; }
5181 else
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 printf "%s\n" "no" >&6; }
5184 fi
5185
5186
5187 fi
5188 if test -z "$CC"; then
5189 if test -n "$ac_tool_prefix"; then
5190 for ac_prog in cl.exe
5191 do
5192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 printf %s "checking for $ac_word... " >&6; }
5196 if test ${ac_cv_prog_CC+y}
5197 then :
5198 printf %s "(cached) " >&6
5199 else $as_nop
5200 if test -n "$CC"; then
5201 ac_cv_prog_CC="$CC" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206 IFS=$as_save_IFS
5207 case $as_dir in #(((
5208 '') as_dir=./ ;;
5209 */) ;;
5210 *) as_dir=$as_dir/ ;;
5211 esac
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5216 break 2
5217 fi
5218 done
5219 done
5220 IFS=$as_save_IFS
5221
5222 fi
5223 fi
5224 CC=$ac_cv_prog_CC
5225 if test -n "$CC"; then
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5227 printf "%s\n" "$CC" >&6; }
5228 else
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 printf "%s\n" "no" >&6; }
5231 fi
5232
5233
5234 test -n "$CC" && break
5235 done
5236 fi
5237 if test -z "$CC"; then
5238 ac_ct_CC=$CC
5239 for ac_prog in cl.exe
5240 do
5241 # Extract the first word of "$ac_prog", so it can be a program name with args.
5242 set dummy $ac_prog; ac_word=$2
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 printf %s "checking for $ac_word... " >&6; }
5245 if test ${ac_cv_prog_ac_ct_CC+y}
5246 then :
5247 printf %s "(cached) " >&6
5248 else $as_nop
5249 if test -n "$ac_ct_CC"; then
5250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255 IFS=$as_save_IFS
5256 case $as_dir in #(((
5257 '') as_dir=./ ;;
5258 */) ;;
5259 *) as_dir=$as_dir/ ;;
5260 esac
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_ac_ct_CC="$ac_prog"
5264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267 done
5268 done
5269 IFS=$as_save_IFS
5270
5271 fi
5272 fi
5273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5274 if test -n "$ac_ct_CC"; then
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5276 printf "%s\n" "$ac_ct_CC" >&6; }
5277 else
5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 printf "%s\n" "no" >&6; }
5280 fi
5281
5282
5283 test -n "$ac_ct_CC" && break
5284 done
5285
5286 if test "x$ac_ct_CC" = x; then
5287 CC=""
5288 else
5289 case $cross_compiling:$ac_tool_warned in
5290 yes:)
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293 ac_tool_warned=yes ;;
5294 esac
5295 CC=$ac_ct_CC
5296 fi
5297 fi
5298
5299 fi
5300 if test -z "$CC"; then
5301 if test -n "$ac_tool_prefix"; then
5302 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5303 set dummy ${ac_tool_prefix}clang; ac_word=$2
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 printf %s "checking for $ac_word... " >&6; }
5306 if test ${ac_cv_prog_CC+y}
5307 then :
5308 printf %s "(cached) " >&6
5309 else $as_nop
5310 if test -n "$CC"; then
5311 ac_cv_prog_CC="$CC" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316 IFS=$as_save_IFS
5317 case $as_dir in #(((
5318 '') as_dir=./ ;;
5319 */) ;;
5320 *) as_dir=$as_dir/ ;;
5321 esac
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5324 ac_cv_prog_CC="${ac_tool_prefix}clang"
5325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5326 break 2
5327 fi
5328 done
5329 done
5330 IFS=$as_save_IFS
5331
5332 fi
5333 fi
5334 CC=$ac_cv_prog_CC
5335 if test -n "$CC"; then
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5337 printf "%s\n" "$CC" >&6; }
5338 else
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 printf "%s\n" "no" >&6; }
5341 fi
5342
5343
5344 fi
5345 if test -z "$ac_cv_prog_CC"; then
5346 ac_ct_CC=$CC
5347 # Extract the first word of "clang", so it can be a program name with args.
5348 set dummy clang; ac_word=$2
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 printf %s "checking for $ac_word... " >&6; }
5351 if test ${ac_cv_prog_ac_ct_CC+y}
5352 then :
5353 printf %s "(cached) " >&6
5354 else $as_nop
5355 if test -n "$ac_ct_CC"; then
5356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361 IFS=$as_save_IFS
5362 case $as_dir in #(((
5363 '') as_dir=./ ;;
5364 */) ;;
5365 *) as_dir=$as_dir/ ;;
5366 esac
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5369 ac_cv_prog_ac_ct_CC="clang"
5370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5371 break 2
5372 fi
5373 done
5374 done
5375 IFS=$as_save_IFS
5376
5377 fi
5378 fi
5379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5380 if test -n "$ac_ct_CC"; then
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5382 printf "%s\n" "$ac_ct_CC" >&6; }
5383 else
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 printf "%s\n" "no" >&6; }
5386 fi
5387
5388 if test "x$ac_ct_CC" = x; then
5389 CC=""
5390 else
5391 case $cross_compiling:$ac_tool_warned in
5392 yes:)
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5394 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5395 ac_tool_warned=yes ;;
5396 esac
5397 CC=$ac_ct_CC
5398 fi
5399 else
5400 CC="$ac_cv_prog_CC"
5401 fi
5402
5403 fi
5404
5405
5406 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5407 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5408 as_fn_error $? "no acceptable C compiler found in \$PATH
5409 See \`config.log' for more details" "$LINENO" 5; }
5410
5411 # Provide some information about the compiler.
5412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5413 set X $ac_compile
5414 ac_compiler=$2
5415 for ac_option in --version -v -V -qversion -version; do
5416 { { ac_try="$ac_compiler $ac_option >&5"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5422 printf "%s\n" "$ac_try_echo"; } >&5
5423 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5424 ac_status=$?
5425 if test -s conftest.err; then
5426 sed '10a\
5427 ... rest of stderr output deleted ...
5428 10q' conftest.err >conftest.er1
5429 cat conftest.er1 >&5
5430 fi
5431 rm -f conftest.er1 conftest.err
5432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5433 test $ac_status = 0; }
5434 done
5435
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5437 printf %s "checking whether the compiler supports GNU C... " >&6; }
5438 if test ${ac_cv_c_compiler_gnu+y}
5439 then :
5440 printf %s "(cached) " >&6
5441 else $as_nop
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444
5445 int
5446 main (void)
5447 {
5448 #ifndef __GNUC__
5449 choke me
5450 #endif
5451
5452 ;
5453 return 0;
5454 }
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"
5457 then :
5458 ac_compiler_gnu=yes
5459 else $as_nop
5460 ac_compiler_gnu=no
5461 fi
5462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5463 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5464
5465 fi
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5467 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469
5470 if test $ac_compiler_gnu = yes; then
5471 GCC=yes
5472 else
5473 GCC=
5474 fi
5475 ac_test_CFLAGS=${CFLAGS+y}
5476 ac_save_CFLAGS=$CFLAGS
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5478 printf %s "checking whether $CC accepts -g... " >&6; }
5479 if test ${ac_cv_prog_cc_g+y}
5480 then :
5481 printf %s "(cached) " >&6
5482 else $as_nop
5483 ac_save_c_werror_flag=$ac_c_werror_flag
5484 ac_c_werror_flag=yes
5485 ac_cv_prog_cc_g=no
5486 CFLAGS="-g"
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489
5490 int
5491 main (void)
5492 {
5493
5494 ;
5495 return 0;
5496 }
5497 _ACEOF
5498 if ac_fn_c_try_compile "$LINENO"
5499 then :
5500 ac_cv_prog_cc_g=yes
5501 else $as_nop
5502 CFLAGS=""
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5505
5506 int
5507 main (void)
5508 {
5509
5510 ;
5511 return 0;
5512 }
5513 _ACEOF
5514 if ac_fn_c_try_compile "$LINENO"
5515 then :
5516
5517 else $as_nop
5518 ac_c_werror_flag=$ac_save_c_werror_flag
5519 CFLAGS="-g"
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522
5523 int
5524 main (void)
5525 {
5526
5527 ;
5528 return 0;
5529 }
5530 _ACEOF
5531 if ac_fn_c_try_compile "$LINENO"
5532 then :
5533 ac_cv_prog_cc_g=yes
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5536 fi
5537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5540 ac_c_werror_flag=$ac_save_c_werror_flag
5541 fi
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5543 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5544 if test $ac_test_CFLAGS; then
5545 CFLAGS=$ac_save_CFLAGS
5546 elif test $ac_cv_prog_cc_g = yes; then
5547 if test "$GCC" = yes; then
5548 CFLAGS="-g -O2"
5549 else
5550 CFLAGS="-g"
5551 fi
5552 else
5553 if test "$GCC" = yes; then
5554 CFLAGS="-O2"
5555 else
5556 CFLAGS=
5557 fi
5558 fi
5559 ac_prog_cc_stdc=no
5560 if test x$ac_prog_cc_stdc = xno
5561 then :
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5563 printf %s "checking for $CC option to enable C11 features... " >&6; }
5564 if test ${ac_cv_prog_cc_c11+y}
5565 then :
5566 printf %s "(cached) " >&6
5567 else $as_nop
5568 ac_cv_prog_cc_c11=no
5569 ac_save_CC=$CC
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 $ac_c_conftest_c11_program
5573 _ACEOF
5574 for ac_arg in '' -std=gnu11
5575 do
5576 CC="$ac_save_CC $ac_arg"
5577 if ac_fn_c_try_compile "$LINENO"
5578 then :
5579 ac_cv_prog_cc_c11=$ac_arg
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.beam
5582 test "x$ac_cv_prog_cc_c11" != "xno" && break
5583 done
5584 rm -f conftest.$ac_ext
5585 CC=$ac_save_CC
5586 fi
5587
5588 if test "x$ac_cv_prog_cc_c11" = xno
5589 then :
5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5591 printf "%s\n" "unsupported" >&6; }
5592 else $as_nop
5593 if test "x$ac_cv_prog_cc_c11" = x
5594 then :
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5596 printf "%s\n" "none needed" >&6; }
5597 else $as_nop
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5599 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5600 CC="$CC $ac_cv_prog_cc_c11"
5601 fi
5602 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5603 ac_prog_cc_stdc=c11
5604 fi
5605 fi
5606 if test x$ac_prog_cc_stdc = xno
5607 then :
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5609 printf %s "checking for $CC option to enable C99 features... " >&6; }
5610 if test ${ac_cv_prog_cc_c99+y}
5611 then :
5612 printf %s "(cached) " >&6
5613 else $as_nop
5614 ac_cv_prog_cc_c99=no
5615 ac_save_CC=$CC
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 $ac_c_conftest_c99_program
5619 _ACEOF
5620 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5621 do
5622 CC="$ac_save_CC $ac_arg"
5623 if ac_fn_c_try_compile "$LINENO"
5624 then :
5625 ac_cv_prog_cc_c99=$ac_arg
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext conftest.beam
5628 test "x$ac_cv_prog_cc_c99" != "xno" && break
5629 done
5630 rm -f conftest.$ac_ext
5631 CC=$ac_save_CC
5632 fi
5633
5634 if test "x$ac_cv_prog_cc_c99" = xno
5635 then :
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5637 printf "%s\n" "unsupported" >&6; }
5638 else $as_nop
5639 if test "x$ac_cv_prog_cc_c99" = x
5640 then :
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5642 printf "%s\n" "none needed" >&6; }
5643 else $as_nop
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5645 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5646 CC="$CC $ac_cv_prog_cc_c99"
5647 fi
5648 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5649 ac_prog_cc_stdc=c99
5650 fi
5651 fi
5652 if test x$ac_prog_cc_stdc = xno
5653 then :
5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5655 printf %s "checking for $CC option to enable C89 features... " >&6; }
5656 if test ${ac_cv_prog_cc_c89+y}
5657 then :
5658 printf %s "(cached) " >&6
5659 else $as_nop
5660 ac_cv_prog_cc_c89=no
5661 ac_save_CC=$CC
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 $ac_c_conftest_c89_program
5665 _ACEOF
5666 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5667 do
5668 CC="$ac_save_CC $ac_arg"
5669 if ac_fn_c_try_compile "$LINENO"
5670 then :
5671 ac_cv_prog_cc_c89=$ac_arg
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.beam
5674 test "x$ac_cv_prog_cc_c89" != "xno" && break
5675 done
5676 rm -f conftest.$ac_ext
5677 CC=$ac_save_CC
5678 fi
5679
5680 if test "x$ac_cv_prog_cc_c89" = xno
5681 then :
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5683 printf "%s\n" "unsupported" >&6; }
5684 else $as_nop
5685 if test "x$ac_cv_prog_cc_c89" = x
5686 then :
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5688 printf "%s\n" "none needed" >&6; }
5689 else $as_nop
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5691 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5692 CC="$CC $ac_cv_prog_cc_c89"
5693 fi
5694 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5695 ac_prog_cc_stdc=c89
5696 fi
5697 fi
5698
5699 ac_ext=c
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704
5705
5706 ac_ext=c
5707 ac_cpp='$CPP $CPPFLAGS'
5708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5712 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5713 if test ${am_cv_prog_cc_c_o+y}
5714 then :
5715 printf %s "(cached) " >&6
5716 else $as_nop
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719
5720 int
5721 main (void)
5722 {
5723
5724 ;
5725 return 0;
5726 }
5727 _ACEOF
5728 # Make sure it works both with $CC and with simple cc.
5729 # Following AC_PROG_CC_C_O, we do the test twice because some
5730 # compilers refuse to overwrite an existing .o file with -o,
5731 # though they will create one.
5732 am_cv_prog_cc_c_o=yes
5733 for am_i in 1 2; do
5734 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5735 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } \
5739 && test -f conftest2.$ac_objext; then
5740 : OK
5741 else
5742 am_cv_prog_cc_c_o=no
5743 break
5744 fi
5745 done
5746 rm -f core conftest*
5747 unset am_i
5748 fi
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5750 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5751 if test "$am_cv_prog_cc_c_o" != yes; then
5752 # Losing compiler, so override with the script.
5753 # FIXME: It is wrong to rewrite CC.
5754 # But if we don't then we get into trouble of one sort or another.
5755 # A longer-term fix would be to have automake use am__CC in this case,
5756 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5757 CC="$am_aux_dir/compile $CC"
5758 fi
5759 ac_ext=c
5760 ac_cpp='$CPP $CPPFLAGS'
5761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5764
5765
5766 depcc="$CC" am_compiler_list=
5767
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5769 printf %s "checking dependency style of $depcc... " >&6; }
5770 if test ${am_cv_CC_dependencies_compiler_type+y}
5771 then :
5772 printf %s "(cached) " >&6
5773 else $as_nop
5774 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5775 # We make a subdir and do the tests there. Otherwise we can end up
5776 # making bogus files that we don't know about and never remove. For
5777 # instance it was reported that on HP-UX the gcc test will end up
5778 # making a dummy file named 'D' -- because '-MD' means "put the output
5779 # in D".
5780 rm -rf conftest.dir
5781 mkdir conftest.dir
5782 # Copy depcomp to subdir because otherwise we won't find it if we're
5783 # using a relative directory.
5784 cp "$am_depcomp" conftest.dir
5785 cd conftest.dir
5786 # We will build objects and dependencies in a subdirectory because
5787 # it helps to detect inapplicable dependency modes. For instance
5788 # both Tru64's cc and ICC support -MD to output dependencies as a
5789 # side effect of compilation, but ICC will put the dependencies in
5790 # the current directory while Tru64 will put them in the object
5791 # directory.
5792 mkdir sub
5793
5794 am_cv_CC_dependencies_compiler_type=none
5795 if test "$am_compiler_list" = ""; then
5796 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5797 fi
5798 am__universal=false
5799 case " $depcc " in #(
5800 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5801 esac
5802
5803 for depmode in $am_compiler_list; do
5804 # Setup a source with many dependencies, because some compilers
5805 # like to wrap large dependency lists on column 80 (with \), and
5806 # we should not choose a depcomp mode which is confused by this.
5807 #
5808 # We need to recreate these files for each test, as the compiler may
5809 # overwrite some of them when testing with obscure command lines.
5810 # This happens at least with the AIX C compiler.
5811 : > sub/conftest.c
5812 for i in 1 2 3 4 5 6; do
5813 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5814 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5815 # Solaris 10 /bin/sh.
5816 echo '/* dummy */' > sub/conftst$i.h
5817 done
5818 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5819
5820 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5821 # mode. It turns out that the SunPro C++ compiler does not properly
5822 # handle '-M -o', and we need to detect this. Also, some Intel
5823 # versions had trouble with output in subdirs.
5824 am__obj=sub/conftest.${OBJEXT-o}
5825 am__minus_obj="-o $am__obj"
5826 case $depmode in
5827 gcc)
5828 # This depmode causes a compiler race in universal mode.
5829 test "$am__universal" = false || continue
5830 ;;
5831 nosideeffect)
5832 # After this tag, mechanisms are not by side-effect, so they'll
5833 # only be used when explicitly requested.
5834 if test "x$enable_dependency_tracking" = xyes; then
5835 continue
5836 else
5837 break
5838 fi
5839 ;;
5840 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5841 # This compiler won't grok '-c -o', but also, the minuso test has
5842 # not run yet. These depmodes are late enough in the game, and
5843 # so weak that their functioning should not be impacted.
5844 am__obj=conftest.${OBJEXT-o}
5845 am__minus_obj=
5846 ;;
5847 none) break ;;
5848 esac
5849 if depmode=$depmode \
5850 source=sub/conftest.c object=$am__obj \
5851 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5852 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5853 >/dev/null 2>conftest.err &&
5854 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5856 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5858 # icc doesn't choke on unknown options, it will just issue warnings
5859 # or remarks (even with -Werror). So we grep stderr for any message
5860 # that says an option was ignored or not supported.
5861 # When given -MP, icc 7.0 and 7.1 complain thusly:
5862 # icc: Command line warning: ignoring option '-M'; no argument required
5863 # The diagnosis changed in icc 8.0:
5864 # icc: Command line remark: option '-MP' not supported
5865 if (grep 'ignoring option' conftest.err ||
5866 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5867 am_cv_CC_dependencies_compiler_type=$depmode
5868 break
5869 fi
5870 fi
5871 done
5872
5873 cd ..
5874 rm -rf conftest.dir
5875 else
5876 am_cv_CC_dependencies_compiler_type=none
5877 fi
5878
5879 fi
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5881 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5882 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5883
5884 if
5885 test "x$enable_dependency_tracking" != xno \
5886 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5887 am__fastdepCC_TRUE=
5888 am__fastdepCC_FALSE='#'
5889 else
5890 am__fastdepCC_TRUE='#'
5891 am__fastdepCC_FALSE=
5892 fi
5893
5894
5895
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5897 printf %s "checking whether ln -s works... " >&6; }
5898 LN_S=$as_ln_s
5899 if test "$LN_S" = "ln -s"; then
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5901 printf "%s\n" "yes" >&6; }
5902 else
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5904 printf "%s\n" "no, using $LN_S" >&6; }
5905 fi
5906
5907 case `pwd` in
5908 *\ * | *\ *)
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5910 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5911 esac
5912
5913
5914
5915 macro_version='2.4.6'
5916 macro_revision='2.4.6'
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931 ltmain=$ac_aux_dir/ltmain.sh
5932
5933 # Backslashify metacharacters that are still active within
5934 # double-quoted strings.
5935 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5936
5937 # Same as above, but do not quote variable references.
5938 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5939
5940 # Sed substitution to delay expansion of an escaped shell variable in a
5941 # double_quote_subst'ed string.
5942 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5943
5944 # Sed substitution to delay expansion of an escaped single quote.
5945 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5946
5947 # Sed substitution to avoid accidental globbing in evaled expressions
5948 no_glob_subst='s/\*/\\\*/g'
5949
5950 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5951 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5952 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5953
5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5955 printf %s "checking how to print strings... " >&6; }
5956 # Test print first, because it will be a builtin if present.
5957 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5958 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5959 ECHO='print -r --'
5960 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5961 ECHO='printf %s\n'
5962 else
5963 # Use this function as a fallback that always works.
5964 func_fallback_echo ()
5965 {
5966 eval 'cat <<_LTECHO_EOF
5967 $1
5968 _LTECHO_EOF'
5969 }
5970 ECHO='func_fallback_echo'
5971 fi
5972
5973 # func_echo_all arg...
5974 # Invoke $ECHO with all args, space-separated.
5975 func_echo_all ()
5976 {
5977 $ECHO ""
5978 }
5979
5980 case $ECHO in
5981 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5982 printf "%s\n" "printf" >&6; } ;;
5983 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5984 printf "%s\n" "print -r" >&6; } ;;
5985 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5986 printf "%s\n" "cat" >&6; } ;;
5987 esac
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6003 printf %s "checking for a sed that does not truncate output... " >&6; }
6004 if test ${ac_cv_path_SED+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else $as_nop
6008 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6009 for ac_i in 1 2 3 4 5 6 7; do
6010 ac_script="$ac_script$as_nl$ac_script"
6011 done
6012 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6013 { ac_script=; unset ac_script;}
6014 if test -z "$SED"; then
6015 ac_path_SED_found=false
6016 # Loop through the user's path and test for each of PROGNAME-LIST
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020 IFS=$as_save_IFS
6021 case $as_dir in #(((
6022 '') as_dir=./ ;;
6023 */) ;;
6024 *) as_dir=$as_dir/ ;;
6025 esac
6026 for ac_prog in sed gsed
6027 do
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6030 as_fn_executable_p "$ac_path_SED" || continue
6031 # Check for GNU ac_path_SED and select it if it is found.
6032 # Check for GNU $ac_path_SED
6033 case `"$ac_path_SED" --version 2>&1` in
6034 *GNU*)
6035 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6036 *)
6037 ac_count=0
6038 printf %s 0123456789 >"conftest.in"
6039 while :
6040 do
6041 cat "conftest.in" "conftest.in" >"conftest.tmp"
6042 mv "conftest.tmp" "conftest.in"
6043 cp "conftest.in" "conftest.nl"
6044 printf "%s\n" '' >> "conftest.nl"
6045 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6047 as_fn_arith $ac_count + 1 && ac_count=$as_val
6048 if test $ac_count -gt ${ac_path_SED_max-0}; then
6049 # Best one so far, save it but keep looking for a better one
6050 ac_cv_path_SED="$ac_path_SED"
6051 ac_path_SED_max=$ac_count
6052 fi
6053 # 10*(2^10) chars as input seems more than enough
6054 test $ac_count -gt 10 && break
6055 done
6056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6057 esac
6058
6059 $ac_path_SED_found && break 3
6060 done
6061 done
6062 done
6063 IFS=$as_save_IFS
6064 if test -z "$ac_cv_path_SED"; then
6065 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6066 fi
6067 else
6068 ac_cv_path_SED=$SED
6069 fi
6070
6071 fi
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6073 printf "%s\n" "$ac_cv_path_SED" >&6; }
6074 SED="$ac_cv_path_SED"
6075 rm -f conftest.sed
6076
6077 test -z "$SED" && SED=sed
6078 Xsed="$SED -e 1s/^X//"
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6091 printf %s "checking for grep that handles long lines and -e... " >&6; }
6092 if test ${ac_cv_path_GREP+y}
6093 then :
6094 printf %s "(cached) " >&6
6095 else $as_nop
6096 if test -z "$GREP"; then
6097 ac_path_GREP_found=false
6098 # Loop through the user's path and test for each of PROGNAME-LIST
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6101 do
6102 IFS=$as_save_IFS
6103 case $as_dir in #(((
6104 '') as_dir=./ ;;
6105 */) ;;
6106 *) as_dir=$as_dir/ ;;
6107 esac
6108 for ac_prog in grep ggrep
6109 do
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6112 as_fn_executable_p "$ac_path_GREP" || continue
6113 # Check for GNU ac_path_GREP and select it if it is found.
6114 # Check for GNU $ac_path_GREP
6115 case `"$ac_path_GREP" --version 2>&1` in
6116 *GNU*)
6117 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6118 *)
6119 ac_count=0
6120 printf %s 0123456789 >"conftest.in"
6121 while :
6122 do
6123 cat "conftest.in" "conftest.in" >"conftest.tmp"
6124 mv "conftest.tmp" "conftest.in"
6125 cp "conftest.in" "conftest.nl"
6126 printf "%s\n" 'GREP' >> "conftest.nl"
6127 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6129 as_fn_arith $ac_count + 1 && ac_count=$as_val
6130 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6131 # Best one so far, save it but keep looking for a better one
6132 ac_cv_path_GREP="$ac_path_GREP"
6133 ac_path_GREP_max=$ac_count
6134 fi
6135 # 10*(2^10) chars as input seems more than enough
6136 test $ac_count -gt 10 && break
6137 done
6138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6139 esac
6140
6141 $ac_path_GREP_found && break 3
6142 done
6143 done
6144 done
6145 IFS=$as_save_IFS
6146 if test -z "$ac_cv_path_GREP"; then
6147 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6148 fi
6149 else
6150 ac_cv_path_GREP=$GREP
6151 fi
6152
6153 fi
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6155 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6156 GREP="$ac_cv_path_GREP"
6157
6158
6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6160 printf %s "checking for egrep... " >&6; }
6161 if test ${ac_cv_path_EGREP+y}
6162 then :
6163 printf %s "(cached) " >&6
6164 else $as_nop
6165 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6166 then ac_cv_path_EGREP="$GREP -E"
6167 else
6168 if test -z "$EGREP"; then
6169 ac_path_EGREP_found=false
6170 # Loop through the user's path and test for each of PROGNAME-LIST
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6173 do
6174 IFS=$as_save_IFS
6175 case $as_dir in #(((
6176 '') as_dir=./ ;;
6177 */) ;;
6178 *) as_dir=$as_dir/ ;;
6179 esac
6180 for ac_prog in egrep
6181 do
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6184 as_fn_executable_p "$ac_path_EGREP" || continue
6185 # Check for GNU ac_path_EGREP and select it if it is found.
6186 # Check for GNU $ac_path_EGREP
6187 case `"$ac_path_EGREP" --version 2>&1` in
6188 *GNU*)
6189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6190 *)
6191 ac_count=0
6192 printf %s 0123456789 >"conftest.in"
6193 while :
6194 do
6195 cat "conftest.in" "conftest.in" >"conftest.tmp"
6196 mv "conftest.tmp" "conftest.in"
6197 cp "conftest.in" "conftest.nl"
6198 printf "%s\n" 'EGREP' >> "conftest.nl"
6199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6201 as_fn_arith $ac_count + 1 && ac_count=$as_val
6202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6203 # Best one so far, save it but keep looking for a better one
6204 ac_cv_path_EGREP="$ac_path_EGREP"
6205 ac_path_EGREP_max=$ac_count
6206 fi
6207 # 10*(2^10) chars as input seems more than enough
6208 test $ac_count -gt 10 && break
6209 done
6210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6211 esac
6212
6213 $ac_path_EGREP_found && break 3
6214 done
6215 done
6216 done
6217 IFS=$as_save_IFS
6218 if test -z "$ac_cv_path_EGREP"; then
6219 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6220 fi
6221 else
6222 ac_cv_path_EGREP=$EGREP
6223 fi
6224
6225 fi
6226 fi
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6228 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6229 EGREP="$ac_cv_path_EGREP"
6230
6231
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6233 printf %s "checking for fgrep... " >&6; }
6234 if test ${ac_cv_path_FGREP+y}
6235 then :
6236 printf %s "(cached) " >&6
6237 else $as_nop
6238 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6239 then ac_cv_path_FGREP="$GREP -F"
6240 else
6241 if test -z "$FGREP"; then
6242 ac_path_FGREP_found=false
6243 # Loop through the user's path and test for each of PROGNAME-LIST
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6246 do
6247 IFS=$as_save_IFS
6248 case $as_dir in #(((
6249 '') as_dir=./ ;;
6250 */) ;;
6251 *) as_dir=$as_dir/ ;;
6252 esac
6253 for ac_prog in fgrep
6254 do
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6257 as_fn_executable_p "$ac_path_FGREP" || continue
6258 # Check for GNU ac_path_FGREP and select it if it is found.
6259 # Check for GNU $ac_path_FGREP
6260 case `"$ac_path_FGREP" --version 2>&1` in
6261 *GNU*)
6262 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6263 *)
6264 ac_count=0
6265 printf %s 0123456789 >"conftest.in"
6266 while :
6267 do
6268 cat "conftest.in" "conftest.in" >"conftest.tmp"
6269 mv "conftest.tmp" "conftest.in"
6270 cp "conftest.in" "conftest.nl"
6271 printf "%s\n" 'FGREP' >> "conftest.nl"
6272 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6274 as_fn_arith $ac_count + 1 && ac_count=$as_val
6275 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6276 # Best one so far, save it but keep looking for a better one
6277 ac_cv_path_FGREP="$ac_path_FGREP"
6278 ac_path_FGREP_max=$ac_count
6279 fi
6280 # 10*(2^10) chars as input seems more than enough
6281 test $ac_count -gt 10 && break
6282 done
6283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6284 esac
6285
6286 $ac_path_FGREP_found && break 3
6287 done
6288 done
6289 done
6290 IFS=$as_save_IFS
6291 if test -z "$ac_cv_path_FGREP"; then
6292 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6293 fi
6294 else
6295 ac_cv_path_FGREP=$FGREP
6296 fi
6297
6298 fi
6299 fi
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6301 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6302 FGREP="$ac_cv_path_FGREP"
6303
6304
6305 test -z "$GREP" && GREP=grep
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 # Check whether --with-gnu-ld was given.
6326 if test ${with_gnu_ld+y}
6327 then :
6328 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6329 else $as_nop
6330 with_gnu_ld=no
6331 fi
6332
6333 ac_prog=ld
6334 if test yes = "$GCC"; then
6335 # Check if gcc -print-prog-name=ld gives a path.
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6337 printf %s "checking for ld used by $CC... " >&6; }
6338 case $host in
6339 *-*-mingw*)
6340 # gcc leaves a trailing carriage return, which upsets mingw
6341 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6342 *)
6343 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6344 esac
6345 case $ac_prog in
6346 # Accept absolute paths.
6347 [\\/]* | ?:[\\/]*)
6348 re_direlt='/[^/][^/]*/\.\./'
6349 # Canonicalize the pathname of ld
6350 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6351 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6352 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6353 done
6354 test -z "$LD" && LD=$ac_prog
6355 ;;
6356 "")
6357 # If it fails, then pretend we aren't using GCC.
6358 ac_prog=ld
6359 ;;
6360 *)
6361 # If it is relative, then search for the first ld in PATH.
6362 with_gnu_ld=unknown
6363 ;;
6364 esac
6365 elif test yes = "$with_gnu_ld"; then
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6367 printf %s "checking for GNU ld... " >&6; }
6368 else
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6370 printf %s "checking for non-GNU ld... " >&6; }
6371 fi
6372 if test ${lt_cv_path_LD+y}
6373 then :
6374 printf %s "(cached) " >&6
6375 else $as_nop
6376 if test -z "$LD"; then
6377 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6378 for ac_dir in $PATH; do
6379 IFS=$lt_save_ifs
6380 test -z "$ac_dir" && ac_dir=.
6381 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6382 lt_cv_path_LD=$ac_dir/$ac_prog
6383 # Check to see if the program is GNU ld. I'd rather use --version,
6384 # but apparently some variants of GNU ld only accept -v.
6385 # Break only if it was the GNU/non-GNU ld that we prefer.
6386 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6387 *GNU* | *'with BFD'*)
6388 test no != "$with_gnu_ld" && break
6389 ;;
6390 *)
6391 test yes != "$with_gnu_ld" && break
6392 ;;
6393 esac
6394 fi
6395 done
6396 IFS=$lt_save_ifs
6397 else
6398 lt_cv_path_LD=$LD # Let the user override the test with a path.
6399 fi
6400 fi
6401
6402 LD=$lt_cv_path_LD
6403 if test -n "$LD"; then
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6405 printf "%s\n" "$LD" >&6; }
6406 else
6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 printf "%s\n" "no" >&6; }
6409 fi
6410 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6412 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6413 if test ${lt_cv_prog_gnu_ld+y}
6414 then :
6415 printf %s "(cached) " >&6
6416 else $as_nop
6417 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6418 case `$LD -v 2>&1 </dev/null` in
6419 *GNU* | *'with BFD'*)
6420 lt_cv_prog_gnu_ld=yes
6421 ;;
6422 *)
6423 lt_cv_prog_gnu_ld=no
6424 ;;
6425 esac
6426 fi
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6428 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6429 with_gnu_ld=$lt_cv_prog_gnu_ld
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6440 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6441 if test ${lt_cv_path_NM+y}
6442 then :
6443 printf %s "(cached) " >&6
6444 else $as_nop
6445 if test -n "$NM"; then
6446 # Let the user override the test.
6447 lt_cv_path_NM=$NM
6448 else
6449 lt_nm_to_check=${ac_tool_prefix}nm
6450 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6451 lt_nm_to_check="$lt_nm_to_check nm"
6452 fi
6453 for lt_tmp_nm in $lt_nm_to_check; do
6454 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6455 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6456 IFS=$lt_save_ifs
6457 test -z "$ac_dir" && ac_dir=.
6458 tmp_nm=$ac_dir/$lt_tmp_nm
6459 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6460 # Check to see if the nm accepts a BSD-compat flag.
6461 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6462 # nm: unknown option "B" ignored
6463 # Tru64's nm complains that /dev/null is an invalid object file
6464 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6465 case $build_os in
6466 mingw*) lt_bad_file=conftest.nm/nofile ;;
6467 *) lt_bad_file=/dev/null ;;
6468 esac
6469 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6470 *$lt_bad_file* | *'Invalid file or object type'*)
6471 lt_cv_path_NM="$tmp_nm -B"
6472 break 2
6473 ;;
6474 *)
6475 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6476 */dev/null*)
6477 lt_cv_path_NM="$tmp_nm -p"
6478 break 2
6479 ;;
6480 *)
6481 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6482 continue # so that we can try to find one that supports BSD flags
6483 ;;
6484 esac
6485 ;;
6486 esac
6487 fi
6488 done
6489 IFS=$lt_save_ifs
6490 done
6491 : ${lt_cv_path_NM=no}
6492 fi
6493 fi
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6495 printf "%s\n" "$lt_cv_path_NM" >&6; }
6496 if test no != "$lt_cv_path_NM"; then
6497 NM=$lt_cv_path_NM
6498 else
6499 # Didn't find any BSD compatible name lister, look for dumpbin.
6500 if test -n "$DUMPBIN"; then :
6501 # Let the user override the test.
6502 else
6503 if test -n "$ac_tool_prefix"; then
6504 for ac_prog in dumpbin "link -dump"
6505 do
6506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 printf %s "checking for $ac_word... " >&6; }
6510 if test ${ac_cv_prog_DUMPBIN+y}
6511 then :
6512 printf %s "(cached) " >&6
6513 else $as_nop
6514 if test -n "$DUMPBIN"; then
6515 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520 IFS=$as_save_IFS
6521 case $as_dir in #(((
6522 '') as_dir=./ ;;
6523 */) ;;
6524 *) as_dir=$as_dir/ ;;
6525 esac
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 DUMPBIN=$ac_cv_prog_DUMPBIN
6539 if test -n "$DUMPBIN"; then
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6541 printf "%s\n" "$DUMPBIN" >&6; }
6542 else
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 printf "%s\n" "no" >&6; }
6545 fi
6546
6547
6548 test -n "$DUMPBIN" && break
6549 done
6550 fi
6551 if test -z "$DUMPBIN"; then
6552 ac_ct_DUMPBIN=$DUMPBIN
6553 for ac_prog in dumpbin "link -dump"
6554 do
6555 # Extract the first word of "$ac_prog", so it can be a program name with args.
6556 set dummy $ac_prog; ac_word=$2
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 printf %s "checking for $ac_word... " >&6; }
6559 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6560 then :
6561 printf %s "(cached) " >&6
6562 else $as_nop
6563 if test -n "$ac_ct_DUMPBIN"; then
6564 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6565 else
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
6569 IFS=$as_save_IFS
6570 case $as_dir in #(((
6571 '') as_dir=./ ;;
6572 */) ;;
6573 *) as_dir=$as_dir/ ;;
6574 esac
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6577 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581 done
6582 done
6583 IFS=$as_save_IFS
6584
6585 fi
6586 fi
6587 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6588 if test -n "$ac_ct_DUMPBIN"; then
6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6590 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6591 else
6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593 printf "%s\n" "no" >&6; }
6594 fi
6595
6596
6597 test -n "$ac_ct_DUMPBIN" && break
6598 done
6599
6600 if test "x$ac_ct_DUMPBIN" = x; then
6601 DUMPBIN=":"
6602 else
6603 case $cross_compiling:$ac_tool_warned in
6604 yes:)
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607 ac_tool_warned=yes ;;
6608 esac
6609 DUMPBIN=$ac_ct_DUMPBIN
6610 fi
6611 fi
6612
6613 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6614 *COFF*)
6615 DUMPBIN="$DUMPBIN -symbols -headers"
6616 ;;
6617 *)
6618 DUMPBIN=:
6619 ;;
6620 esac
6621 fi
6622
6623 if test : != "$DUMPBIN"; then
6624 NM=$DUMPBIN
6625 fi
6626 fi
6627 test -z "$NM" && NM=nm
6628
6629
6630
6631
6632
6633
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6635 printf %s "checking the name lister ($NM) interface... " >&6; }
6636 if test ${lt_cv_nm_interface+y}
6637 then :
6638 printf %s "(cached) " >&6
6639 else $as_nop
6640 lt_cv_nm_interface="BSD nm"
6641 echo "int some_variable = 0;" > conftest.$ac_ext
6642 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6643 (eval "$ac_compile" 2>conftest.err)
6644 cat conftest.err >&5
6645 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6646 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6647 cat conftest.err >&5
6648 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6649 cat conftest.out >&5
6650 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6651 lt_cv_nm_interface="MS dumpbin"
6652 fi
6653 rm -f conftest*
6654 fi
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6656 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6657
6658 # find the maximum length of command line arguments
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6660 printf %s "checking the maximum length of command line arguments... " >&6; }
6661 if test ${lt_cv_sys_max_cmd_len+y}
6662 then :
6663 printf %s "(cached) " >&6
6664 else $as_nop
6665 i=0
6666 teststring=ABCD
6667
6668 case $build_os in
6669 msdosdjgpp*)
6670 # On DJGPP, this test can blow up pretty badly due to problems in libc
6671 # (any single argument exceeding 2000 bytes causes a buffer overrun
6672 # during glob expansion). Even if it were fixed, the result of this
6673 # check would be larger than it should be.
6674 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6675 ;;
6676
6677 gnu*)
6678 # Under GNU Hurd, this test is not required because there is
6679 # no limit to the length of command line arguments.
6680 # Libtool will interpret -1 as no limit whatsoever
6681 lt_cv_sys_max_cmd_len=-1;
6682 ;;
6683
6684 cygwin* | mingw* | cegcc*)
6685 # On Win9x/ME, this test blows up -- it succeeds, but takes
6686 # about 5 minutes as the teststring grows exponentially.
6687 # Worse, since 9x/ME are not pre-emptively multitasking,
6688 # you end up with a "frozen" computer, even though with patience
6689 # the test eventually succeeds (with a max line length of 256k).
6690 # Instead, let's just punt: use the minimum linelength reported by
6691 # all of the supported platforms: 8192 (on NT/2K/XP).
6692 lt_cv_sys_max_cmd_len=8192;
6693 ;;
6694
6695 mint*)
6696 # On MiNT this can take a long time and run out of memory.
6697 lt_cv_sys_max_cmd_len=8192;
6698 ;;
6699
6700 amigaos*)
6701 # On AmigaOS with pdksh, this test takes hours, literally.
6702 # So we just punt and use a minimum line length of 8192.
6703 lt_cv_sys_max_cmd_len=8192;
6704 ;;
6705
6706 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6707 # This has been around since 386BSD, at least. Likely further.
6708 if test -x /sbin/sysctl; then
6709 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6710 elif test -x /usr/sbin/sysctl; then
6711 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6712 else
6713 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6714 fi
6715 # And add a safety zone
6716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6718 ;;
6719
6720 interix*)
6721 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6722 lt_cv_sys_max_cmd_len=196608
6723 ;;
6724
6725 os2*)
6726 # The test takes a long time on OS/2.
6727 lt_cv_sys_max_cmd_len=8192
6728 ;;
6729
6730 osf*)
6731 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6732 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6733 # nice to cause kernel panics so lets avoid the loop below.
6734 # First set a reasonable default.
6735 lt_cv_sys_max_cmd_len=16384
6736 #
6737 if test -x /sbin/sysconfig; then
6738 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6739 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6740 esac
6741 fi
6742 ;;
6743 sco3.2v5*)
6744 lt_cv_sys_max_cmd_len=102400
6745 ;;
6746 sysv5* | sco5v6* | sysv4.2uw2*)
6747 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6748 if test -n "$kargmax"; then
6749 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6750 else
6751 lt_cv_sys_max_cmd_len=32768
6752 fi
6753 ;;
6754 *)
6755 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6756 if test -n "$lt_cv_sys_max_cmd_len" && \
6757 test undefined != "$lt_cv_sys_max_cmd_len"; then
6758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6760 else
6761 # Make teststring a little bigger before we do anything with it.
6762 # a 1K string should be a reasonable start.
6763 for i in 1 2 3 4 5 6 7 8; do
6764 teststring=$teststring$teststring
6765 done
6766 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6767 # If test is not a shell built-in, we'll probably end up computing a
6768 # maximum length that is only half of the actual maximum length, but
6769 # we can't tell.
6770 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6771 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6772 test 17 != "$i" # 1/2 MB should be enough
6773 do
6774 i=`expr $i + 1`
6775 teststring=$teststring$teststring
6776 done
6777 # Only check the string length outside the loop.
6778 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6779 teststring=
6780 # Add a significant safety factor because C++ compilers can tack on
6781 # massive amounts of additional arguments before passing them to the
6782 # linker. It appears as though 1/2 is a usable value.
6783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6784 fi
6785 ;;
6786 esac
6787
6788 fi
6789
6790 if test -n "$lt_cv_sys_max_cmd_len"; then
6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6792 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6793 else
6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6795 printf "%s\n" "none" >&6; }
6796 fi
6797 max_cmd_len=$lt_cv_sys_max_cmd_len
6798
6799
6800
6801
6802
6803
6804 : ${CP="cp -f"}
6805 : ${MV="mv -f"}
6806 : ${RM="rm -f"}
6807
6808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6809 lt_unset=unset
6810 else
6811 lt_unset=false
6812 fi
6813
6814
6815
6816
6817
6818 # test EBCDIC or ASCII
6819 case `echo X|tr X '\101'` in
6820 A) # ASCII based system
6821 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6822 lt_SP2NL='tr \040 \012'
6823 lt_NL2SP='tr \015\012 \040\040'
6824 ;;
6825 *) # EBCDIC based system
6826 lt_SP2NL='tr \100 \n'
6827 lt_NL2SP='tr \r\n \100\100'
6828 ;;
6829 esac
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6840 printf %s "checking how to convert $build file names to $host format... " >&6; }
6841 if test ${lt_cv_to_host_file_cmd+y}
6842 then :
6843 printf %s "(cached) " >&6
6844 else $as_nop
6845 case $host in
6846 *-*-mingw* )
6847 case $build in
6848 *-*-mingw* ) # actually msys
6849 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6850 ;;
6851 *-*-cygwin* )
6852 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6853 ;;
6854 * ) # otherwise, assume *nix
6855 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6856 ;;
6857 esac
6858 ;;
6859 *-*-cygwin* )
6860 case $build in
6861 *-*-mingw* ) # actually msys
6862 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6863 ;;
6864 *-*-cygwin* )
6865 lt_cv_to_host_file_cmd=func_convert_file_noop
6866 ;;
6867 * ) # otherwise, assume *nix
6868 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6869 ;;
6870 esac
6871 ;;
6872 * ) # unhandled hosts (and "normal" native builds)
6873 lt_cv_to_host_file_cmd=func_convert_file_noop
6874 ;;
6875 esac
6876
6877 fi
6878
6879 to_host_file_cmd=$lt_cv_to_host_file_cmd
6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6881 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6882
6883
6884
6885
6886
6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6888 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6889 if test ${lt_cv_to_tool_file_cmd+y}
6890 then :
6891 printf %s "(cached) " >&6
6892 else $as_nop
6893 #assume ordinary cross tools, or native build.
6894 lt_cv_to_tool_file_cmd=func_convert_file_noop
6895 case $host in
6896 *-*-mingw* )
6897 case $build in
6898 *-*-mingw* ) # actually msys
6899 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6900 ;;
6901 esac
6902 ;;
6903 esac
6904
6905 fi
6906
6907 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6909 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6910
6911
6912
6913
6914
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6916 printf %s "checking for $LD option to reload object files... " >&6; }
6917 if test ${lt_cv_ld_reload_flag+y}
6918 then :
6919 printf %s "(cached) " >&6
6920 else $as_nop
6921 lt_cv_ld_reload_flag='-r'
6922 fi
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6924 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6925 reload_flag=$lt_cv_ld_reload_flag
6926 case $reload_flag in
6927 "" | " "*) ;;
6928 *) reload_flag=" $reload_flag" ;;
6929 esac
6930 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6931 case $host_os in
6932 cygwin* | mingw* | pw32* | cegcc*)
6933 if test yes != "$GCC"; then
6934 reload_cmds=false
6935 fi
6936 ;;
6937 darwin*)
6938 if test yes = "$GCC"; then
6939 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6940 else
6941 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6942 fi
6943 ;;
6944 esac
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954 if test -n "$ac_tool_prefix"; then
6955 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6956 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 printf %s "checking for $ac_word... " >&6; }
6959 if test ${ac_cv_prog_OBJDUMP+y}
6960 then :
6961 printf %s "(cached) " >&6
6962 else $as_nop
6963 if test -n "$OBJDUMP"; then
6964 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969 IFS=$as_save_IFS
6970 case $as_dir in #(((
6971 '') as_dir=./ ;;
6972 */) ;;
6973 *) as_dir=$as_dir/ ;;
6974 esac
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6977 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6979 break 2
6980 fi
6981 done
6982 done
6983 IFS=$as_save_IFS
6984
6985 fi
6986 fi
6987 OBJDUMP=$ac_cv_prog_OBJDUMP
6988 if test -n "$OBJDUMP"; then
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6990 printf "%s\n" "$OBJDUMP" >&6; }
6991 else
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 printf "%s\n" "no" >&6; }
6994 fi
6995
6996
6997 fi
6998 if test -z "$ac_cv_prog_OBJDUMP"; then
6999 ac_ct_OBJDUMP=$OBJDUMP
7000 # Extract the first word of "objdump", so it can be a program name with args.
7001 set dummy objdump; ac_word=$2
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 printf %s "checking for $ac_word... " >&6; }
7004 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7005 then :
7006 printf %s "(cached) " >&6
7007 else $as_nop
7008 if test -n "$ac_ct_OBJDUMP"; then
7009 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014 IFS=$as_save_IFS
7015 case $as_dir in #(((
7016 '') as_dir=./ ;;
7017 */) ;;
7018 *) as_dir=$as_dir/ ;;
7019 esac
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7033 if test -n "$ac_ct_OBJDUMP"; then
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7035 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7036 else
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 printf "%s\n" "no" >&6; }
7039 fi
7040
7041 if test "x$ac_ct_OBJDUMP" = x; then
7042 OBJDUMP="false"
7043 else
7044 case $cross_compiling:$ac_tool_warned in
7045 yes:)
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048 ac_tool_warned=yes ;;
7049 esac
7050 OBJDUMP=$ac_ct_OBJDUMP
7051 fi
7052 else
7053 OBJDUMP="$ac_cv_prog_OBJDUMP"
7054 fi
7055
7056 test -z "$OBJDUMP" && OBJDUMP=objdump
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7067 printf %s "checking how to recognize dependent libraries... " >&6; }
7068 if test ${lt_cv_deplibs_check_method+y}
7069 then :
7070 printf %s "(cached) " >&6
7071 else $as_nop
7072 lt_cv_file_magic_cmd='$MAGIC_CMD'
7073 lt_cv_file_magic_test_file=
7074 lt_cv_deplibs_check_method='unknown'
7075 # Need to set the preceding variable on all platforms that support
7076 # interlibrary dependencies.
7077 # 'none' -- dependencies not supported.
7078 # 'unknown' -- same as none, but documents that we really don't know.
7079 # 'pass_all' -- all dependencies passed with no checks.
7080 # 'test_compile' -- check by making test program.
7081 # 'file_magic [[regex]]' -- check by looking for files in library path
7082 # that responds to the $file_magic_cmd with a given extended regex.
7083 # If you have 'file' or equivalent on your system and you're not sure
7084 # whether 'pass_all' will *always* work, you probably want this one.
7085
7086 case $host_os in
7087 aix[4-9]*)
7088 lt_cv_deplibs_check_method=pass_all
7089 ;;
7090
7091 beos*)
7092 lt_cv_deplibs_check_method=pass_all
7093 ;;
7094
7095 bsdi[45]*)
7096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7097 lt_cv_file_magic_cmd='/usr/bin/file -L'
7098 lt_cv_file_magic_test_file=/shlib/libc.so
7099 ;;
7100
7101 cygwin*)
7102 # func_win32_libid is a shell function defined in ltmain.sh
7103 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7104 lt_cv_file_magic_cmd='func_win32_libid'
7105 ;;
7106
7107 mingw* | pw32*)
7108 # Base MSYS/MinGW do not provide the 'file' command needed by
7109 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7110 # unless we find 'file', for example because we are cross-compiling.
7111 if ( file / ) >/dev/null 2>&1; then
7112 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7113 lt_cv_file_magic_cmd='func_win32_libid'
7114 else
7115 # Keep this pattern in sync with the one in func_win32_libid.
7116 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7117 lt_cv_file_magic_cmd='$OBJDUMP -f'
7118 fi
7119 ;;
7120
7121 cegcc*)
7122 # use the weaker test based on 'objdump'. See mingw*.
7123 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7124 lt_cv_file_magic_cmd='$OBJDUMP -f'
7125 ;;
7126
7127 darwin* | rhapsody*)
7128 lt_cv_deplibs_check_method=pass_all
7129 ;;
7130
7131 freebsd* | dragonfly*)
7132 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7133 case $host_cpu in
7134 i*86 )
7135 # Not sure whether the presence of OpenBSD here was a mistake.
7136 # Let's accept both of them until this is cleared up.
7137 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7138 lt_cv_file_magic_cmd=/usr/bin/file
7139 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7140 ;;
7141 esac
7142 else
7143 lt_cv_deplibs_check_method=pass_all
7144 fi
7145 ;;
7146
7147 haiku*)
7148 lt_cv_deplibs_check_method=pass_all
7149 ;;
7150
7151 hpux10.20* | hpux11*)
7152 lt_cv_file_magic_cmd=/usr/bin/file
7153 case $host_cpu in
7154 ia64*)
7155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7156 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7157 ;;
7158 hppa*64*)
7159 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]'
7160 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7161 ;;
7162 *)
7163 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7164 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7165 ;;
7166 esac
7167 ;;
7168
7169 interix[3-9]*)
7170 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7172 ;;
7173
7174 irix5* | irix6* | nonstopux*)
7175 case $LD in
7176 *-32|*"-32 ") libmagic=32-bit;;
7177 *-n32|*"-n32 ") libmagic=N32;;
7178 *-64|*"-64 ") libmagic=64-bit;;
7179 *) libmagic=never-match;;
7180 esac
7181 lt_cv_deplibs_check_method=pass_all
7182 ;;
7183
7184 # This must be glibc/ELF.
7185 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7186 lt_cv_deplibs_check_method=pass_all
7187 ;;
7188
7189 netbsd*)
7190 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7192 else
7193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7194 fi
7195 ;;
7196
7197 newos6*)
7198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7199 lt_cv_file_magic_cmd=/usr/bin/file
7200 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7201 ;;
7202
7203 *nto* | *qnx*)
7204 lt_cv_deplibs_check_method=pass_all
7205 ;;
7206
7207 openbsd* | bitrig*)
7208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7210 else
7211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7212 fi
7213 ;;
7214
7215 osf3* | osf4* | osf5*)
7216 lt_cv_deplibs_check_method=pass_all
7217 ;;
7218
7219 rdos*)
7220 lt_cv_deplibs_check_method=pass_all
7221 ;;
7222
7223 solaris*)
7224 lt_cv_deplibs_check_method=pass_all
7225 ;;
7226
7227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7228 lt_cv_deplibs_check_method=pass_all
7229 ;;
7230
7231 sysv4 | sysv4.3*)
7232 case $host_vendor in
7233 motorola)
7234 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]'
7235 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7236 ;;
7237 ncr)
7238 lt_cv_deplibs_check_method=pass_all
7239 ;;
7240 sequent)
7241 lt_cv_file_magic_cmd='/bin/file'
7242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7243 ;;
7244 sni)
7245 lt_cv_file_magic_cmd='/bin/file'
7246 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7247 lt_cv_file_magic_test_file=/lib/libc.so
7248 ;;
7249 siemens)
7250 lt_cv_deplibs_check_method=pass_all
7251 ;;
7252 pc)
7253 lt_cv_deplibs_check_method=pass_all
7254 ;;
7255 esac
7256 ;;
7257
7258 tpf*)
7259 lt_cv_deplibs_check_method=pass_all
7260 ;;
7261 os2*)
7262 lt_cv_deplibs_check_method=pass_all
7263 ;;
7264 esac
7265
7266 fi
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7268 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7269
7270 file_magic_glob=
7271 want_nocaseglob=no
7272 if test "$build" = "$host"; then
7273 case $host_os in
7274 mingw* | pw32*)
7275 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7276 want_nocaseglob=yes
7277 else
7278 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7279 fi
7280 ;;
7281 esac
7282 fi
7283
7284 file_magic_cmd=$lt_cv_file_magic_cmd
7285 deplibs_check_method=$lt_cv_deplibs_check_method
7286 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 printf %s "checking for $ac_word... " >&6; }
7314 if test ${ac_cv_prog_DLLTOOL+y}
7315 then :
7316 printf %s "(cached) " >&6
7317 else $as_nop
7318 if test -n "$DLLTOOL"; then
7319 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324 IFS=$as_save_IFS
7325 case $as_dir in #(((
7326 '') as_dir=./ ;;
7327 */) ;;
7328 *) as_dir=$as_dir/ ;;
7329 esac
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7332 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 DLLTOOL=$ac_cv_prog_DLLTOOL
7343 if test -n "$DLLTOOL"; then
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7345 printf "%s\n" "$DLLTOOL" >&6; }
7346 else
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 printf "%s\n" "no" >&6; }
7349 fi
7350
7351
7352 fi
7353 if test -z "$ac_cv_prog_DLLTOOL"; then
7354 ac_ct_DLLTOOL=$DLLTOOL
7355 # Extract the first word of "dlltool", so it can be a program name with args.
7356 set dummy dlltool; ac_word=$2
7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 printf %s "checking for $ac_word... " >&6; }
7359 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7360 then :
7361 printf %s "(cached) " >&6
7362 else $as_nop
7363 if test -n "$ac_ct_DLLTOOL"; then
7364 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369 IFS=$as_save_IFS
7370 case $as_dir in #(((
7371 '') as_dir=./ ;;
7372 */) ;;
7373 *) as_dir=$as_dir/ ;;
7374 esac
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7377 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381 done
7382 done
7383 IFS=$as_save_IFS
7384
7385 fi
7386 fi
7387 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7388 if test -n "$ac_ct_DLLTOOL"; then
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7390 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7391 else
7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 printf "%s\n" "no" >&6; }
7394 fi
7395
7396 if test "x$ac_ct_DLLTOOL" = x; then
7397 DLLTOOL="false"
7398 else
7399 case $cross_compiling:$ac_tool_warned in
7400 yes:)
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7402 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403 ac_tool_warned=yes ;;
7404 esac
7405 DLLTOOL=$ac_ct_DLLTOOL
7406 fi
7407 else
7408 DLLTOOL="$ac_cv_prog_DLLTOOL"
7409 fi
7410
7411 test -z "$DLLTOOL" && DLLTOOL=dlltool
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7423 printf %s "checking how to associate runtime and link libraries... " >&6; }
7424 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7425 then :
7426 printf %s "(cached) " >&6
7427 else $as_nop
7428 lt_cv_sharedlib_from_linklib_cmd='unknown'
7429
7430 case $host_os in
7431 cygwin* | mingw* | pw32* | cegcc*)
7432 # two different shell functions defined in ltmain.sh;
7433 # decide which one to use based on capabilities of $DLLTOOL
7434 case `$DLLTOOL --help 2>&1` in
7435 *--identify-strict*)
7436 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7437 ;;
7438 *)
7439 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7440 ;;
7441 esac
7442 ;;
7443 *)
7444 # fallback: assume linklib IS sharedlib
7445 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7446 ;;
7447 esac
7448
7449 fi
7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7451 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7452 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7453 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7454
7455
7456
7457
7458
7459
7460
7461 if test -n "$ac_tool_prefix"; then
7462 for ac_prog in ar
7463 do
7464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 printf %s "checking for $ac_word... " >&6; }
7468 if test ${ac_cv_prog_AR+y}
7469 then :
7470 printf %s "(cached) " >&6
7471 else $as_nop
7472 if test -n "$AR"; then
7473 ac_cv_prog_AR="$AR" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478 IFS=$as_save_IFS
7479 case $as_dir in #(((
7480 '') as_dir=./ ;;
7481 */) ;;
7482 *) as_dir=$as_dir/ ;;
7483 esac
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7488 break 2
7489 fi
7490 done
7491 done
7492 IFS=$as_save_IFS
7493
7494 fi
7495 fi
7496 AR=$ac_cv_prog_AR
7497 if test -n "$AR"; then
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7499 printf "%s\n" "$AR" >&6; }
7500 else
7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 printf "%s\n" "no" >&6; }
7503 fi
7504
7505
7506 test -n "$AR" && break
7507 done
7508 fi
7509 if test -z "$AR"; then
7510 ac_ct_AR=$AR
7511 for ac_prog in ar
7512 do
7513 # Extract the first word of "$ac_prog", so it can be a program name with args.
7514 set dummy $ac_prog; ac_word=$2
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516 printf %s "checking for $ac_word... " >&6; }
7517 if test ${ac_cv_prog_ac_ct_AR+y}
7518 then :
7519 printf %s "(cached) " >&6
7520 else $as_nop
7521 if test -n "$ac_ct_AR"; then
7522 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527 IFS=$as_save_IFS
7528 case $as_dir in #(((
7529 '') as_dir=./ ;;
7530 */) ;;
7531 *) as_dir=$as_dir/ ;;
7532 esac
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7535 ac_cv_prog_ac_ct_AR="$ac_prog"
7536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7537 break 2
7538 fi
7539 done
7540 done
7541 IFS=$as_save_IFS
7542
7543 fi
7544 fi
7545 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7546 if test -n "$ac_ct_AR"; then
7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7548 printf "%s\n" "$ac_ct_AR" >&6; }
7549 else
7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 printf "%s\n" "no" >&6; }
7552 fi
7553
7554
7555 test -n "$ac_ct_AR" && break
7556 done
7557
7558 if test "x$ac_ct_AR" = x; then
7559 AR="false"
7560 else
7561 case $cross_compiling:$ac_tool_warned in
7562 yes:)
7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565 ac_tool_warned=yes ;;
7566 esac
7567 AR=$ac_ct_AR
7568 fi
7569 fi
7570
7571 : ${AR=ar}
7572 : ${AR_FLAGS=cru}
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7585 printf %s "checking for archiver @FILE support... " >&6; }
7586 if test ${lt_cv_ar_at_file+y}
7587 then :
7588 printf %s "(cached) " >&6
7589 else $as_nop
7590 lt_cv_ar_at_file=no
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593
7594 int
7595 main (void)
7596 {
7597
7598 ;
7599 return 0;
7600 }
7601 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"
7603 then :
7604 echo conftest.$ac_objext > conftest.lst
7605 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7607 (eval $lt_ar_try) 2>&5
7608 ac_status=$?
7609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610 test $ac_status = 0; }
7611 if test 0 -eq "$ac_status"; then
7612 # Ensure the archiver fails upon bogus file names.
7613 rm -f conftest.$ac_objext libconftest.a
7614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7615 (eval $lt_ar_try) 2>&5
7616 ac_status=$?
7617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7618 test $ac_status = 0; }
7619 if test 0 -ne "$ac_status"; then
7620 lt_cv_ar_at_file=@
7621 fi
7622 fi
7623 rm -f conftest.* libconftest.a
7624
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7627
7628 fi
7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7630 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7631
7632 if test no = "$lt_cv_ar_at_file"; then
7633 archiver_list_spec=
7634 else
7635 archiver_list_spec=$lt_cv_ar_at_file
7636 fi
7637
7638
7639
7640
7641
7642
7643
7644 if test -n "$ac_tool_prefix"; then
7645 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7646 set dummy ${ac_tool_prefix}strip; ac_word=$2
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 printf %s "checking for $ac_word... " >&6; }
7649 if test ${ac_cv_prog_STRIP+y}
7650 then :
7651 printf %s "(cached) " >&6
7652 else $as_nop
7653 if test -n "$STRIP"; then
7654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659 IFS=$as_save_IFS
7660 case $as_dir in #(((
7661 '') as_dir=./ ;;
7662 */) ;;
7663 *) as_dir=$as_dir/ ;;
7664 esac
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7669 break 2
7670 fi
7671 done
7672 done
7673 IFS=$as_save_IFS
7674
7675 fi
7676 fi
7677 STRIP=$ac_cv_prog_STRIP
7678 if test -n "$STRIP"; then
7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7680 printf "%s\n" "$STRIP" >&6; }
7681 else
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 printf "%s\n" "no" >&6; }
7684 fi
7685
7686
7687 fi
7688 if test -z "$ac_cv_prog_STRIP"; then
7689 ac_ct_STRIP=$STRIP
7690 # Extract the first word of "strip", so it can be a program name with args.
7691 set dummy strip; ac_word=$2
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 printf %s "checking for $ac_word... " >&6; }
7694 if test ${ac_cv_prog_ac_ct_STRIP+y}
7695 then :
7696 printf %s "(cached) " >&6
7697 else $as_nop
7698 if test -n "$ac_ct_STRIP"; then
7699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7700 else
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7703 do
7704 IFS=$as_save_IFS
7705 case $as_dir in #(((
7706 '') as_dir=./ ;;
7707 */) ;;
7708 *) as_dir=$as_dir/ ;;
7709 esac
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7712 ac_cv_prog_ac_ct_STRIP="strip"
7713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7714 break 2
7715 fi
7716 done
7717 done
7718 IFS=$as_save_IFS
7719
7720 fi
7721 fi
7722 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7723 if test -n "$ac_ct_STRIP"; then
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7725 printf "%s\n" "$ac_ct_STRIP" >&6; }
7726 else
7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 printf "%s\n" "no" >&6; }
7729 fi
7730
7731 if test "x$ac_ct_STRIP" = x; then
7732 STRIP=":"
7733 else
7734 case $cross_compiling:$ac_tool_warned in
7735 yes:)
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738 ac_tool_warned=yes ;;
7739 esac
7740 STRIP=$ac_ct_STRIP
7741 fi
7742 else
7743 STRIP="$ac_cv_prog_STRIP"
7744 fi
7745
7746 test -z "$STRIP" && STRIP=:
7747
7748
7749
7750
7751
7752
7753 if test -n "$ac_tool_prefix"; then
7754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7755 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 printf %s "checking for $ac_word... " >&6; }
7758 if test ${ac_cv_prog_RANLIB+y}
7759 then :
7760 printf %s "(cached) " >&6
7761 else $as_nop
7762 if test -n "$RANLIB"; then
7763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768 IFS=$as_save_IFS
7769 case $as_dir in #(((
7770 '') as_dir=./ ;;
7771 */) ;;
7772 *) as_dir=$as_dir/ ;;
7773 esac
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780 done
7781 done
7782 IFS=$as_save_IFS
7783
7784 fi
7785 fi
7786 RANLIB=$ac_cv_prog_RANLIB
7787 if test -n "$RANLIB"; then
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7789 printf "%s\n" "$RANLIB" >&6; }
7790 else
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 printf "%s\n" "no" >&6; }
7793 fi
7794
7795
7796 fi
7797 if test -z "$ac_cv_prog_RANLIB"; then
7798 ac_ct_RANLIB=$RANLIB
7799 # Extract the first word of "ranlib", so it can be a program name with args.
7800 set dummy ranlib; ac_word=$2
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 printf %s "checking for $ac_word... " >&6; }
7803 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7804 then :
7805 printf %s "(cached) " >&6
7806 else $as_nop
7807 if test -n "$ac_ct_RANLIB"; then
7808 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813 IFS=$as_save_IFS
7814 case $as_dir in #(((
7815 '') as_dir=./ ;;
7816 */) ;;
7817 *) as_dir=$as_dir/ ;;
7818 esac
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_ac_ct_RANLIB="ranlib"
7822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825 done
7826 done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7832 if test -n "$ac_ct_RANLIB"; then
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7834 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7835 else
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 printf "%s\n" "no" >&6; }
7838 fi
7839
7840 if test "x$ac_ct_RANLIB" = x; then
7841 RANLIB=":"
7842 else
7843 case $cross_compiling:$ac_tool_warned in
7844 yes:)
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7846 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7847 ac_tool_warned=yes ;;
7848 esac
7849 RANLIB=$ac_ct_RANLIB
7850 fi
7851 else
7852 RANLIB="$ac_cv_prog_RANLIB"
7853 fi
7854
7855 test -z "$RANLIB" && RANLIB=:
7856
7857
7858
7859
7860
7861
7862 # Determine commands to create old-style static archives.
7863 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7864 old_postinstall_cmds='chmod 644 $oldlib'
7865 old_postuninstall_cmds=
7866
7867 if test -n "$RANLIB"; then
7868 case $host_os in
7869 bitrig* | openbsd*)
7870 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7871 ;;
7872 *)
7873 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7874 ;;
7875 esac
7876 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7877 fi
7878
7879 case $host_os in
7880 darwin*)
7881 lock_old_archive_extraction=yes ;;
7882 *)
7883 lock_old_archive_extraction=no ;;
7884 esac
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924 # If no C compiler was specified, use CC.
7925 LTCC=${LTCC-"$CC"}
7926
7927 # If no C compiler flags were specified, use CFLAGS.
7928 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7929
7930 # Allow CC to be a program name with arguments.
7931 compiler=$CC
7932
7933
7934 # Check for command to grab the raw symbol name followed by C symbol from nm.
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7936 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7937 if test ${lt_cv_sys_global_symbol_pipe+y}
7938 then :
7939 printf %s "(cached) " >&6
7940 else $as_nop
7941
7942 # These are sane defaults that work on at least a few old systems.
7943 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7944
7945 # Character class describing NM global symbol codes.
7946 symcode='[BCDEGRST]'
7947
7948 # Regexp to match symbols that can be accessed directly from C.
7949 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7950
7951 # Define system-specific variables.
7952 case $host_os in
7953 aix*)
7954 symcode='[BCDT]'
7955 ;;
7956 cygwin* | mingw* | pw32* | cegcc*)
7957 symcode='[ABCDGISTW]'
7958 ;;
7959 hpux*)
7960 if test ia64 = "$host_cpu"; then
7961 symcode='[ABCDEGRST]'
7962 fi
7963 ;;
7964 irix* | nonstopux*)
7965 symcode='[BCDEGRST]'
7966 ;;
7967 osf*)
7968 symcode='[BCDEGQRST]'
7969 ;;
7970 solaris*)
7971 symcode='[BDRT]'
7972 ;;
7973 sco3.2v5*)
7974 symcode='[DT]'
7975 ;;
7976 sysv4.2uw2*)
7977 symcode='[DT]'
7978 ;;
7979 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7980 symcode='[ABDT]'
7981 ;;
7982 sysv4)
7983 symcode='[DFNSTU]'
7984 ;;
7985 esac
7986
7987 # If we're using GNU nm, then use its standard symbol codes.
7988 case `$NM -V 2>&1` in
7989 *GNU* | *'with BFD'*)
7990 symcode='[ABCDGIRSTW]' ;;
7991 esac
7992
7993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7994 # Gets list of data symbols to import.
7995 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7996 # Adjust the below global symbol transforms to fixup imported variables.
7997 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7998 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7999 lt_c_name_lib_hook="\
8000 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8001 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8002 else
8003 # Disable hooks by default.
8004 lt_cv_sys_global_symbol_to_import=
8005 lt_cdecl_hook=
8006 lt_c_name_hook=
8007 lt_c_name_lib_hook=
8008 fi
8009
8010 # Transform an extracted symbol line into a proper C declaration.
8011 # Some systems (esp. on ia64) link data and code symbols differently,
8012 # so use this general approach.
8013 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8014 $lt_cdecl_hook\
8015 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8016 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8017
8018 # Transform an extracted symbol line into symbol name and symbol address
8019 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8020 $lt_c_name_hook\
8021 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8022 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8023
8024 # Transform an extracted symbol line into symbol name with lib prefix and
8025 # symbol address.
8026 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8027 $lt_c_name_lib_hook\
8028 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8029 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8030 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8031
8032 # Handle CRLF in mingw tool chain
8033 opt_cr=
8034 case $build_os in
8035 mingw*)
8036 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8037 ;;
8038 esac
8039
8040 # Try without a prefix underscore, then with it.
8041 for ac_symprfx in "" "_"; do
8042
8043 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8044 symxfrm="\\1 $ac_symprfx\\2 \\2"
8045
8046 # Write the raw and C identifiers.
8047 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8048 # Fake it for dumpbin and say T for any non-static function,
8049 # D for any global variable and I for any imported variable.
8050 # Also find C++ and __fastcall symbols from MSVC++,
8051 # which start with @ or ?.
8052 lt_cv_sys_global_symbol_pipe="$AWK '"\
8053 " {last_section=section; section=\$ 3};"\
8054 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8055 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8056 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8057 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8058 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8059 " \$ 0!~/External *\|/{next};"\
8060 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8061 " {if(hide[section]) next};"\
8062 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8063 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8064 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8065 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8066 " ' prfx=^$ac_symprfx"
8067 else
8068 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8069 fi
8070 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8071
8072 # Check to see that the pipe works correctly.
8073 pipe_works=no
8074
8075 rm -f conftest*
8076 cat > conftest.$ac_ext <<_LT_EOF
8077 #ifdef __cplusplus
8078 extern "C" {
8079 #endif
8080 char nm_test_var;
8081 void nm_test_func(void);
8082 void nm_test_func(void){}
8083 #ifdef __cplusplus
8084 }
8085 #endif
8086 int main(){nm_test_var='a';nm_test_func();return(0);}
8087 _LT_EOF
8088
8089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8090 (eval $ac_compile) 2>&5
8091 ac_status=$?
8092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8093 test $ac_status = 0; }; then
8094 # Now try to grab the symbols.
8095 nlist=conftest.nm
8096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8097 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8098 ac_status=$?
8099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8100 test $ac_status = 0; } && test -s "$nlist"; then
8101 # Try sorting and uniquifying the output.
8102 if sort "$nlist" | uniq > "$nlist"T; then
8103 mv -f "$nlist"T "$nlist"
8104 else
8105 rm -f "$nlist"T
8106 fi
8107
8108 # Make sure that we snagged all the symbols we need.
8109 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8110 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8111 cat <<_LT_EOF > conftest.$ac_ext
8112 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8113 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8114 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8115 relocations are performed -- see ld's documentation on pseudo-relocs. */
8116 # define LT_DLSYM_CONST
8117 #elif defined __osf__
8118 /* This system does not cope well with relocations in const data. */
8119 # define LT_DLSYM_CONST
8120 #else
8121 # define LT_DLSYM_CONST const
8122 #endif
8123
8124 #ifdef __cplusplus
8125 extern "C" {
8126 #endif
8127
8128 _LT_EOF
8129 # Now generate the symbol file.
8130 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8131
8132 cat <<_LT_EOF >> conftest.$ac_ext
8133
8134 /* The mapping between symbol names and symbols. */
8135 LT_DLSYM_CONST struct {
8136 const char *name;
8137 void *address;
8138 }
8139 lt__PROGRAM__LTX_preloaded_symbols[] =
8140 {
8141 { "@PROGRAM@", (void *) 0 },
8142 _LT_EOF
8143 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8144 cat <<\_LT_EOF >> conftest.$ac_ext
8145 {0, (void *) 0}
8146 };
8147
8148 /* This works around a problem in FreeBSD linker */
8149 #ifdef FREEBSD_WORKAROUND
8150 static const void *lt_preloaded_setup() {
8151 return lt__PROGRAM__LTX_preloaded_symbols;
8152 }
8153 #endif
8154
8155 #ifdef __cplusplus
8156 }
8157 #endif
8158 _LT_EOF
8159 # Now try linking the two files.
8160 mv conftest.$ac_objext conftstm.$ac_objext
8161 lt_globsym_save_LIBS=$LIBS
8162 lt_globsym_save_CFLAGS=$CFLAGS
8163 LIBS=conftstm.$ac_objext
8164 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8166 (eval $ac_link) 2>&5
8167 ac_status=$?
8168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8169 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8170 pipe_works=yes
8171 fi
8172 LIBS=$lt_globsym_save_LIBS
8173 CFLAGS=$lt_globsym_save_CFLAGS
8174 else
8175 echo "cannot find nm_test_func in $nlist" >&5
8176 fi
8177 else
8178 echo "cannot find nm_test_var in $nlist" >&5
8179 fi
8180 else
8181 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8182 fi
8183 else
8184 echo "$progname: failed program was:" >&5
8185 cat conftest.$ac_ext >&5
8186 fi
8187 rm -rf conftest* conftst*
8188
8189 # Do not use the global_symbol_pipe unless it works.
8190 if test yes = "$pipe_works"; then
8191 break
8192 else
8193 lt_cv_sys_global_symbol_pipe=
8194 fi
8195 done
8196
8197 fi
8198
8199 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8200 lt_cv_sys_global_symbol_to_cdecl=
8201 fi
8202 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8204 printf "%s\n" "failed" >&6; }
8205 else
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8207 printf "%s\n" "ok" >&6; }
8208 fi
8209
8210 # Response file support.
8211 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8212 nm_file_list_spec='@'
8213 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8214 nm_file_list_spec='@'
8215 fi
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8254 printf %s "checking for sysroot... " >&6; }
8255
8256 # Check whether --with-sysroot was given.
8257 if test ${with_sysroot+y}
8258 then :
8259 withval=$with_sysroot;
8260 else $as_nop
8261 with_sysroot=no
8262 fi
8263
8264
8265 lt_sysroot=
8266 case $with_sysroot in #(
8267 yes)
8268 if test yes = "$GCC"; then
8269 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8270 fi
8271 ;; #(
8272 /*)
8273 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8274 ;; #(
8275 no|'')
8276 ;; #(
8277 *)
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8279 printf "%s\n" "$with_sysroot" >&6; }
8280 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8281 ;;
8282 esac
8283
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8285 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8286
8287
8288
8289
8290
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8292 printf %s "checking for a working dd... " >&6; }
8293 if test ${ac_cv_path_lt_DD+y}
8294 then :
8295 printf %s "(cached) " >&6
8296 else $as_nop
8297 printf 0123456789abcdef0123456789abcdef >conftest.i
8298 cat conftest.i conftest.i >conftest2.i
8299 : ${lt_DD:=$DD}
8300 if test -z "$lt_DD"; then
8301 ac_path_lt_DD_found=false
8302 # Loop through the user's path and test for each of PROGNAME-LIST
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306 IFS=$as_save_IFS
8307 case $as_dir in #(((
8308 '') as_dir=./ ;;
8309 */) ;;
8310 *) as_dir=$as_dir/ ;;
8311 esac
8312 for ac_prog in dd
8313 do
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8316 as_fn_executable_p "$ac_path_lt_DD" || continue
8317 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8318 cmp -s conftest.i conftest.out \
8319 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8320 fi
8321 $ac_path_lt_DD_found && break 3
8322 done
8323 done
8324 done
8325 IFS=$as_save_IFS
8326 if test -z "$ac_cv_path_lt_DD"; then
8327 :
8328 fi
8329 else
8330 ac_cv_path_lt_DD=$lt_DD
8331 fi
8332
8333 rm -f conftest.i conftest2.i conftest.out
8334 fi
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8336 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8337
8338
8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8340 printf %s "checking how to truncate binary pipes... " >&6; }
8341 if test ${lt_cv_truncate_bin+y}
8342 then :
8343 printf %s "(cached) " >&6
8344 else $as_nop
8345 printf 0123456789abcdef0123456789abcdef >conftest.i
8346 cat conftest.i conftest.i >conftest2.i
8347 lt_cv_truncate_bin=
8348 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8349 cmp -s conftest.i conftest.out \
8350 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8351 fi
8352 rm -f conftest.i conftest2.i conftest.out
8353 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8354 fi
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8356 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8357
8358
8359
8360
8361
8362
8363
8364 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8365 func_cc_basename ()
8366 {
8367 for cc_temp in $*""; do
8368 case $cc_temp in
8369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8371 \-*) ;;
8372 *) break;;
8373 esac
8374 done
8375 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8376 }
8377
8378 # Check whether --enable-libtool-lock was given.
8379 if test ${enable_libtool_lock+y}
8380 then :
8381 enableval=$enable_libtool_lock;
8382 fi
8383
8384 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8385
8386 # Some flags need to be propagated to the compiler or linker for good
8387 # libtool support.
8388 case $host in
8389 ia64-*-hpux*)
8390 # Find out what ABI is being produced by ac_compile, and set mode
8391 # options accordingly.
8392 echo 'int i;' > conftest.$ac_ext
8393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8394 (eval $ac_compile) 2>&5
8395 ac_status=$?
8396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8397 test $ac_status = 0; }; then
8398 case `/usr/bin/file conftest.$ac_objext` in
8399 *ELF-32*)
8400 HPUX_IA64_MODE=32
8401 ;;
8402 *ELF-64*)
8403 HPUX_IA64_MODE=64
8404 ;;
8405 esac
8406 fi
8407 rm -rf conftest*
8408 ;;
8409 *-*-irix6*)
8410 # Find out what ABI is being produced by ac_compile, and set linker
8411 # options accordingly.
8412 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8414 (eval $ac_compile) 2>&5
8415 ac_status=$?
8416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8417 test $ac_status = 0; }; then
8418 if test yes = "$lt_cv_prog_gnu_ld"; then
8419 case `/usr/bin/file conftest.$ac_objext` in
8420 *32-bit*)
8421 LD="${LD-ld} -melf32bsmip"
8422 ;;
8423 *N32*)
8424 LD="${LD-ld} -melf32bmipn32"
8425 ;;
8426 *64-bit*)
8427 LD="${LD-ld} -melf64bmip"
8428 ;;
8429 esac
8430 else
8431 case `/usr/bin/file conftest.$ac_objext` in
8432 *32-bit*)
8433 LD="${LD-ld} -32"
8434 ;;
8435 *N32*)
8436 LD="${LD-ld} -n32"
8437 ;;
8438 *64-bit*)
8439 LD="${LD-ld} -64"
8440 ;;
8441 esac
8442 fi
8443 fi
8444 rm -rf conftest*
8445 ;;
8446
8447 mips64*-*linux*)
8448 # Find out what ABI is being produced by ac_compile, and set linker
8449 # options accordingly.
8450 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8452 (eval $ac_compile) 2>&5
8453 ac_status=$?
8454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8455 test $ac_status = 0; }; then
8456 emul=elf
8457 case `/usr/bin/file conftest.$ac_objext` in
8458 *32-bit*)
8459 emul="${emul}32"
8460 ;;
8461 *64-bit*)
8462 emul="${emul}64"
8463 ;;
8464 esac
8465 case `/usr/bin/file conftest.$ac_objext` in
8466 *MSB*)
8467 emul="${emul}btsmip"
8468 ;;
8469 *LSB*)
8470 emul="${emul}ltsmip"
8471 ;;
8472 esac
8473 case `/usr/bin/file conftest.$ac_objext` in
8474 *N32*)
8475 emul="${emul}n32"
8476 ;;
8477 esac
8478 LD="${LD-ld} -m $emul"
8479 fi
8480 rm -rf conftest*
8481 ;;
8482
8483 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8484 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8485 # Find out what ABI is being produced by ac_compile, and set linker
8486 # options accordingly. Note that the listed cases only cover the
8487 # situations where additional linker options are needed (such as when
8488 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8489 # vice versa); the common cases where no linker options are needed do
8490 # not appear in the list.
8491 echo 'int i;' > conftest.$ac_ext
8492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8493 (eval $ac_compile) 2>&5
8494 ac_status=$?
8495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8496 test $ac_status = 0; }; then
8497 case `/usr/bin/file conftest.o` in
8498 *32-bit*)
8499 case $host in
8500 x86_64-*kfreebsd*-gnu)
8501 LD="${LD-ld} -m elf_i386_fbsd"
8502 ;;
8503 x86_64-*linux*)
8504 case `/usr/bin/file conftest.o` in
8505 *x86-64*)
8506 LD="${LD-ld} -m elf32_x86_64"
8507 ;;
8508 *)
8509 LD="${LD-ld} -m elf_i386"
8510 ;;
8511 esac
8512 ;;
8513 powerpc64le-*linux*)
8514 LD="${LD-ld} -m elf32lppclinux"
8515 ;;
8516 powerpc64-*linux*)
8517 LD="${LD-ld} -m elf32ppclinux"
8518 ;;
8519 s390x-*linux*)
8520 LD="${LD-ld} -m elf_s390"
8521 ;;
8522 sparc64-*linux*)
8523 LD="${LD-ld} -m elf32_sparc"
8524 ;;
8525 esac
8526 ;;
8527 *64-bit*)
8528 case $host in
8529 x86_64-*kfreebsd*-gnu)
8530 LD="${LD-ld} -m elf_x86_64_fbsd"
8531 ;;
8532 x86_64-*linux*)
8533 LD="${LD-ld} -m elf_x86_64"
8534 ;;
8535 powerpcle-*linux*)
8536 LD="${LD-ld} -m elf64lppc"
8537 ;;
8538 powerpc-*linux*)
8539 LD="${LD-ld} -m elf64ppc"
8540 ;;
8541 s390*-*linux*|s390*-*tpf*)
8542 LD="${LD-ld} -m elf64_s390"
8543 ;;
8544 sparc*-*linux*)
8545 LD="${LD-ld} -m elf64_sparc"
8546 ;;
8547 esac
8548 ;;
8549 esac
8550 fi
8551 rm -rf conftest*
8552 ;;
8553
8554 *-*-sco3.2v5*)
8555 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8556 SAVE_CFLAGS=$CFLAGS
8557 CFLAGS="$CFLAGS -belf"
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8559 printf %s "checking whether the C compiler needs -belf... " >&6; }
8560 if test ${lt_cv_cc_needs_belf+y}
8561 then :
8562 printf %s "(cached) " >&6
8563 else $as_nop
8564 ac_ext=c
8565 ac_cpp='$CPP $CPPFLAGS'
8566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8569
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572
8573 int
8574 main (void)
8575 {
8576
8577 ;
8578 return 0;
8579 }
8580 _ACEOF
8581 if ac_fn_c_try_link "$LINENO"
8582 then :
8583 lt_cv_cc_needs_belf=yes
8584 else $as_nop
8585 lt_cv_cc_needs_belf=no
8586 fi
8587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8588 conftest$ac_exeext conftest.$ac_ext
8589 ac_ext=c
8590 ac_cpp='$CPP $CPPFLAGS'
8591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8594
8595 fi
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8597 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8598 if test yes != "$lt_cv_cc_needs_belf"; then
8599 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8600 CFLAGS=$SAVE_CFLAGS
8601 fi
8602 ;;
8603 *-*solaris*)
8604 # Find out what ABI is being produced by ac_compile, and set linker
8605 # options accordingly.
8606 echo 'int i;' > conftest.$ac_ext
8607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8608 (eval $ac_compile) 2>&5
8609 ac_status=$?
8610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8611 test $ac_status = 0; }; then
8612 case `/usr/bin/file conftest.o` in
8613 *64-bit*)
8614 case $lt_cv_prog_gnu_ld in
8615 yes*)
8616 case $host in
8617 i?86-*-solaris*|x86_64-*-solaris*)
8618 LD="${LD-ld} -m elf_x86_64"
8619 ;;
8620 sparc*-*-solaris*)
8621 LD="${LD-ld} -m elf64_sparc"
8622 ;;
8623 esac
8624 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8625 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8626 LD=${LD-ld}_sol2
8627 fi
8628 ;;
8629 *)
8630 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8631 LD="${LD-ld} -64"
8632 fi
8633 ;;
8634 esac
8635 ;;
8636 esac
8637 fi
8638 rm -rf conftest*
8639 ;;
8640 esac
8641
8642 need_locks=$enable_libtool_lock
8643
8644 if test -n "$ac_tool_prefix"; then
8645 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8646 set dummy ${ac_tool_prefix}mt; ac_word=$2
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 printf %s "checking for $ac_word... " >&6; }
8649 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8650 then :
8651 printf %s "(cached) " >&6
8652 else $as_nop
8653 if test -n "$MANIFEST_TOOL"; then
8654 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8655 else
8656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657 for as_dir in $PATH
8658 do
8659 IFS=$as_save_IFS
8660 case $as_dir in #(((
8661 '') as_dir=./ ;;
8662 */) ;;
8663 *) as_dir=$as_dir/ ;;
8664 esac
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8667 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8669 break 2
8670 fi
8671 done
8672 done
8673 IFS=$as_save_IFS
8674
8675 fi
8676 fi
8677 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8678 if test -n "$MANIFEST_TOOL"; then
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8680 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8681 else
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 printf "%s\n" "no" >&6; }
8684 fi
8685
8686
8687 fi
8688 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8689 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8690 # Extract the first word of "mt", so it can be a program name with args.
8691 set dummy mt; ac_word=$2
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 printf %s "checking for $ac_word... " >&6; }
8694 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8695 then :
8696 printf %s "(cached) " >&6
8697 else $as_nop
8698 if test -n "$ac_ct_MANIFEST_TOOL"; then
8699 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8700 else
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 for as_dir in $PATH
8703 do
8704 IFS=$as_save_IFS
8705 case $as_dir in #(((
8706 '') as_dir=./ ;;
8707 */) ;;
8708 *) as_dir=$as_dir/ ;;
8709 esac
8710 for ac_exec_ext in '' $ac_executable_extensions; do
8711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8712 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8714 break 2
8715 fi
8716 done
8717 done
8718 IFS=$as_save_IFS
8719
8720 fi
8721 fi
8722 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8723 if test -n "$ac_ct_MANIFEST_TOOL"; then
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8725 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8726 else
8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728 printf "%s\n" "no" >&6; }
8729 fi
8730
8731 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8732 MANIFEST_TOOL=":"
8733 else
8734 case $cross_compiling:$ac_tool_warned in
8735 yes:)
8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8738 ac_tool_warned=yes ;;
8739 esac
8740 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8741 fi
8742 else
8743 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8744 fi
8745
8746 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8748 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8749 if test ${lt_cv_path_mainfest_tool+y}
8750 then :
8751 printf %s "(cached) " >&6
8752 else $as_nop
8753 lt_cv_path_mainfest_tool=no
8754 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8755 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8756 cat conftest.err >&5
8757 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8758 lt_cv_path_mainfest_tool=yes
8759 fi
8760 rm -f conftest*
8761 fi
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8763 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8764 if test yes != "$lt_cv_path_mainfest_tool"; then
8765 MANIFEST_TOOL=:
8766 fi
8767
8768
8769
8770
8771
8772
8773 case $host_os in
8774 rhapsody* | darwin*)
8775 if test -n "$ac_tool_prefix"; then
8776 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8777 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779 printf %s "checking for $ac_word... " >&6; }
8780 if test ${ac_cv_prog_DSYMUTIL+y}
8781 then :
8782 printf %s "(cached) " >&6
8783 else $as_nop
8784 if test -n "$DSYMUTIL"; then
8785 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8786 else
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 for as_dir in $PATH
8789 do
8790 IFS=$as_save_IFS
8791 case $as_dir in #(((
8792 '') as_dir=./ ;;
8793 */) ;;
8794 *) as_dir=$as_dir/ ;;
8795 esac
8796 for ac_exec_ext in '' $ac_executable_extensions; do
8797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8798 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8800 break 2
8801 fi
8802 done
8803 done
8804 IFS=$as_save_IFS
8805
8806 fi
8807 fi
8808 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8809 if test -n "$DSYMUTIL"; then
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8811 printf "%s\n" "$DSYMUTIL" >&6; }
8812 else
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 printf "%s\n" "no" >&6; }
8815 fi
8816
8817
8818 fi
8819 if test -z "$ac_cv_prog_DSYMUTIL"; then
8820 ac_ct_DSYMUTIL=$DSYMUTIL
8821 # Extract the first word of "dsymutil", so it can be a program name with args.
8822 set dummy dsymutil; ac_word=$2
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 printf %s "checking for $ac_word... " >&6; }
8825 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8826 then :
8827 printf %s "(cached) " >&6
8828 else $as_nop
8829 if test -n "$ac_ct_DSYMUTIL"; then
8830 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8831 else
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8834 do
8835 IFS=$as_save_IFS
8836 case $as_dir in #(((
8837 '') as_dir=./ ;;
8838 */) ;;
8839 *) as_dir=$as_dir/ ;;
8840 esac
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8843 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8845 break 2
8846 fi
8847 done
8848 done
8849 IFS=$as_save_IFS
8850
8851 fi
8852 fi
8853 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8854 if test -n "$ac_ct_DSYMUTIL"; then
8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8856 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8857 else
8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 printf "%s\n" "no" >&6; }
8860 fi
8861
8862 if test "x$ac_ct_DSYMUTIL" = x; then
8863 DSYMUTIL=":"
8864 else
8865 case $cross_compiling:$ac_tool_warned in
8866 yes:)
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8868 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8869 ac_tool_warned=yes ;;
8870 esac
8871 DSYMUTIL=$ac_ct_DSYMUTIL
8872 fi
8873 else
8874 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8875 fi
8876
8877 if test -n "$ac_tool_prefix"; then
8878 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8879 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 printf %s "checking for $ac_word... " >&6; }
8882 if test ${ac_cv_prog_NMEDIT+y}
8883 then :
8884 printf %s "(cached) " >&6
8885 else $as_nop
8886 if test -n "$NMEDIT"; then
8887 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8888 else
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8891 do
8892 IFS=$as_save_IFS
8893 case $as_dir in #(((
8894 '') as_dir=./ ;;
8895 */) ;;
8896 *) as_dir=$as_dir/ ;;
8897 esac
8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8900 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8902 break 2
8903 fi
8904 done
8905 done
8906 IFS=$as_save_IFS
8907
8908 fi
8909 fi
8910 NMEDIT=$ac_cv_prog_NMEDIT
8911 if test -n "$NMEDIT"; then
8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8913 printf "%s\n" "$NMEDIT" >&6; }
8914 else
8915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 printf "%s\n" "no" >&6; }
8917 fi
8918
8919
8920 fi
8921 if test -z "$ac_cv_prog_NMEDIT"; then
8922 ac_ct_NMEDIT=$NMEDIT
8923 # Extract the first word of "nmedit", so it can be a program name with args.
8924 set dummy nmedit; ac_word=$2
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 printf %s "checking for $ac_word... " >&6; }
8927 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8928 then :
8929 printf %s "(cached) " >&6
8930 else $as_nop
8931 if test -n "$ac_ct_NMEDIT"; then
8932 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8933 else
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935 for as_dir in $PATH
8936 do
8937 IFS=$as_save_IFS
8938 case $as_dir in #(((
8939 '') as_dir=./ ;;
8940 */) ;;
8941 *) as_dir=$as_dir/ ;;
8942 esac
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8945 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8947 break 2
8948 fi
8949 done
8950 done
8951 IFS=$as_save_IFS
8952
8953 fi
8954 fi
8955 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8956 if test -n "$ac_ct_NMEDIT"; then
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8958 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8959 else
8960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 printf "%s\n" "no" >&6; }
8962 fi
8963
8964 if test "x$ac_ct_NMEDIT" = x; then
8965 NMEDIT=":"
8966 else
8967 case $cross_compiling:$ac_tool_warned in
8968 yes:)
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8970 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8971 ac_tool_warned=yes ;;
8972 esac
8973 NMEDIT=$ac_ct_NMEDIT
8974 fi
8975 else
8976 NMEDIT="$ac_cv_prog_NMEDIT"
8977 fi
8978
8979 if test -n "$ac_tool_prefix"; then
8980 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8981 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983 printf %s "checking for $ac_word... " >&6; }
8984 if test ${ac_cv_prog_LIPO+y}
8985 then :
8986 printf %s "(cached) " >&6
8987 else $as_nop
8988 if test -n "$LIPO"; then
8989 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8990 else
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992 for as_dir in $PATH
8993 do
8994 IFS=$as_save_IFS
8995 case $as_dir in #(((
8996 '') as_dir=./ ;;
8997 */) ;;
8998 *) as_dir=$as_dir/ ;;
8999 esac
9000 for ac_exec_ext in '' $ac_executable_extensions; do
9001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9002 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9004 break 2
9005 fi
9006 done
9007 done
9008 IFS=$as_save_IFS
9009
9010 fi
9011 fi
9012 LIPO=$ac_cv_prog_LIPO
9013 if test -n "$LIPO"; then
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9015 printf "%s\n" "$LIPO" >&6; }
9016 else
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018 printf "%s\n" "no" >&6; }
9019 fi
9020
9021
9022 fi
9023 if test -z "$ac_cv_prog_LIPO"; then
9024 ac_ct_LIPO=$LIPO
9025 # Extract the first word of "lipo", so it can be a program name with args.
9026 set dummy lipo; ac_word=$2
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9028 printf %s "checking for $ac_word... " >&6; }
9029 if test ${ac_cv_prog_ac_ct_LIPO+y}
9030 then :
9031 printf %s "(cached) " >&6
9032 else $as_nop
9033 if test -n "$ac_ct_LIPO"; then
9034 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9035 else
9036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 for as_dir in $PATH
9038 do
9039 IFS=$as_save_IFS
9040 case $as_dir in #(((
9041 '') as_dir=./ ;;
9042 */) ;;
9043 *) as_dir=$as_dir/ ;;
9044 esac
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9047 ac_cv_prog_ac_ct_LIPO="lipo"
9048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9049 break 2
9050 fi
9051 done
9052 done
9053 IFS=$as_save_IFS
9054
9055 fi
9056 fi
9057 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9058 if test -n "$ac_ct_LIPO"; then
9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9060 printf "%s\n" "$ac_ct_LIPO" >&6; }
9061 else
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 printf "%s\n" "no" >&6; }
9064 fi
9065
9066 if test "x$ac_ct_LIPO" = x; then
9067 LIPO=":"
9068 else
9069 case $cross_compiling:$ac_tool_warned in
9070 yes:)
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9072 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9073 ac_tool_warned=yes ;;
9074 esac
9075 LIPO=$ac_ct_LIPO
9076 fi
9077 else
9078 LIPO="$ac_cv_prog_LIPO"
9079 fi
9080
9081 if test -n "$ac_tool_prefix"; then
9082 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9083 set dummy ${ac_tool_prefix}otool; ac_word=$2
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 printf %s "checking for $ac_word... " >&6; }
9086 if test ${ac_cv_prog_OTOOL+y}
9087 then :
9088 printf %s "(cached) " >&6
9089 else $as_nop
9090 if test -n "$OTOOL"; then
9091 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9092 else
9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 for as_dir in $PATH
9095 do
9096 IFS=$as_save_IFS
9097 case $as_dir in #(((
9098 '') as_dir=./ ;;
9099 */) ;;
9100 *) as_dir=$as_dir/ ;;
9101 esac
9102 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9104 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9106 break 2
9107 fi
9108 done
9109 done
9110 IFS=$as_save_IFS
9111
9112 fi
9113 fi
9114 OTOOL=$ac_cv_prog_OTOOL
9115 if test -n "$OTOOL"; then
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9117 printf "%s\n" "$OTOOL" >&6; }
9118 else
9119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 printf "%s\n" "no" >&6; }
9121 fi
9122
9123
9124 fi
9125 if test -z "$ac_cv_prog_OTOOL"; then
9126 ac_ct_OTOOL=$OTOOL
9127 # Extract the first word of "otool", so it can be a program name with args.
9128 set dummy otool; ac_word=$2
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 printf %s "checking for $ac_word... " >&6; }
9131 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9132 then :
9133 printf %s "(cached) " >&6
9134 else $as_nop
9135 if test -n "$ac_ct_OTOOL"; then
9136 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9137 else
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9140 do
9141 IFS=$as_save_IFS
9142 case $as_dir in #(((
9143 '') as_dir=./ ;;
9144 */) ;;
9145 *) as_dir=$as_dir/ ;;
9146 esac
9147 for ac_exec_ext in '' $ac_executable_extensions; do
9148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9149 ac_cv_prog_ac_ct_OTOOL="otool"
9150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9151 break 2
9152 fi
9153 done
9154 done
9155 IFS=$as_save_IFS
9156
9157 fi
9158 fi
9159 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9160 if test -n "$ac_ct_OTOOL"; then
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9162 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9163 else
9164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165 printf "%s\n" "no" >&6; }
9166 fi
9167
9168 if test "x$ac_ct_OTOOL" = x; then
9169 OTOOL=":"
9170 else
9171 case $cross_compiling:$ac_tool_warned in
9172 yes:)
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9174 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9175 ac_tool_warned=yes ;;
9176 esac
9177 OTOOL=$ac_ct_OTOOL
9178 fi
9179 else
9180 OTOOL="$ac_cv_prog_OTOOL"
9181 fi
9182
9183 if test -n "$ac_tool_prefix"; then
9184 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9185 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187 printf %s "checking for $ac_word... " >&6; }
9188 if test ${ac_cv_prog_OTOOL64+y}
9189 then :
9190 printf %s "(cached) " >&6
9191 else $as_nop
9192 if test -n "$OTOOL64"; then
9193 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9194 else
9195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196 for as_dir in $PATH
9197 do
9198 IFS=$as_save_IFS
9199 case $as_dir in #(((
9200 '') as_dir=./ ;;
9201 */) ;;
9202 *) as_dir=$as_dir/ ;;
9203 esac
9204 for ac_exec_ext in '' $ac_executable_extensions; do
9205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9206 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9208 break 2
9209 fi
9210 done
9211 done
9212 IFS=$as_save_IFS
9213
9214 fi
9215 fi
9216 OTOOL64=$ac_cv_prog_OTOOL64
9217 if test -n "$OTOOL64"; then
9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9219 printf "%s\n" "$OTOOL64" >&6; }
9220 else
9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 printf "%s\n" "no" >&6; }
9223 fi
9224
9225
9226 fi
9227 if test -z "$ac_cv_prog_OTOOL64"; then
9228 ac_ct_OTOOL64=$OTOOL64
9229 # Extract the first word of "otool64", so it can be a program name with args.
9230 set dummy otool64; ac_word=$2
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9232 printf %s "checking for $ac_word... " >&6; }
9233 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9234 then :
9235 printf %s "(cached) " >&6
9236 else $as_nop
9237 if test -n "$ac_ct_OTOOL64"; then
9238 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9239 else
9240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241 for as_dir in $PATH
9242 do
9243 IFS=$as_save_IFS
9244 case $as_dir in #(((
9245 '') as_dir=./ ;;
9246 */) ;;
9247 *) as_dir=$as_dir/ ;;
9248 esac
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9251 ac_cv_prog_ac_ct_OTOOL64="otool64"
9252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9253 break 2
9254 fi
9255 done
9256 done
9257 IFS=$as_save_IFS
9258
9259 fi
9260 fi
9261 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9262 if test -n "$ac_ct_OTOOL64"; then
9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9264 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9265 else
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267 printf "%s\n" "no" >&6; }
9268 fi
9269
9270 if test "x$ac_ct_OTOOL64" = x; then
9271 OTOOL64=":"
9272 else
9273 case $cross_compiling:$ac_tool_warned in
9274 yes:)
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9276 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9277 ac_tool_warned=yes ;;
9278 esac
9279 OTOOL64=$ac_ct_OTOOL64
9280 fi
9281 else
9282 OTOOL64="$ac_cv_prog_OTOOL64"
9283 fi
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9312 printf %s "checking for -single_module linker flag... " >&6; }
9313 if test ${lt_cv_apple_cc_single_mod+y}
9314 then :
9315 printf %s "(cached) " >&6
9316 else $as_nop
9317 lt_cv_apple_cc_single_mod=no
9318 if test -z "$LT_MULTI_MODULE"; then
9319 # By default we will add the -single_module flag. You can override
9320 # by either setting the environment variable LT_MULTI_MODULE
9321 # non-empty at configure time, or by adding -multi_module to the
9322 # link flags.
9323 rm -rf libconftest.dylib*
9324 echo "int foo(void){return 1;}" > conftest.c
9325 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9326 -dynamiclib -Wl,-single_module conftest.c" >&5
9327 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9328 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9329 _lt_result=$?
9330 # If there is a non-empty error log, and "single_module"
9331 # appears in it, assume the flag caused a linker warning
9332 if test -s conftest.err && $GREP single_module conftest.err; then
9333 cat conftest.err >&5
9334 # Otherwise, if the output was created with a 0 exit code from
9335 # the compiler, it worked.
9336 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9337 lt_cv_apple_cc_single_mod=yes
9338 else
9339 cat conftest.err >&5
9340 fi
9341 rm -rf libconftest.dylib*
9342 rm -f conftest.*
9343 fi
9344 fi
9345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9346 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9347
9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9349 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9350 if test ${lt_cv_ld_exported_symbols_list+y}
9351 then :
9352 printf %s "(cached) " >&6
9353 else $as_nop
9354 lt_cv_ld_exported_symbols_list=no
9355 save_LDFLAGS=$LDFLAGS
9356 echo "_main" > conftest.sym
9357 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360
9361 int
9362 main (void)
9363 {
9364
9365 ;
9366 return 0;
9367 }
9368 _ACEOF
9369 if ac_fn_c_try_link "$LINENO"
9370 then :
9371 lt_cv_ld_exported_symbols_list=yes
9372 else $as_nop
9373 lt_cv_ld_exported_symbols_list=no
9374 fi
9375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9376 conftest$ac_exeext conftest.$ac_ext
9377 LDFLAGS=$save_LDFLAGS
9378
9379 fi
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9381 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9382
9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9384 printf %s "checking for -force_load linker flag... " >&6; }
9385 if test ${lt_cv_ld_force_load+y}
9386 then :
9387 printf %s "(cached) " >&6
9388 else $as_nop
9389 lt_cv_ld_force_load=no
9390 cat > conftest.c << _LT_EOF
9391 int forced_loaded() { return 2;}
9392 _LT_EOF
9393 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9394 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9395 echo "$AR cru libconftest.a conftest.o" >&5
9396 $AR cru libconftest.a conftest.o 2>&5
9397 echo "$RANLIB libconftest.a" >&5
9398 $RANLIB libconftest.a 2>&5
9399 cat > conftest.c << _LT_EOF
9400 int main() { return 0;}
9401 _LT_EOF
9402 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9403 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9404 _lt_result=$?
9405 if test -s conftest.err && $GREP force_load conftest.err; then
9406 cat conftest.err >&5
9407 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9408 lt_cv_ld_force_load=yes
9409 else
9410 cat conftest.err >&5
9411 fi
9412 rm -f conftest.err libconftest.a conftest conftest.c
9413 rm -rf conftest.dSYM
9414
9415 fi
9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9417 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9418 case $host_os in
9419 rhapsody* | darwin1.[012])
9420 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9421 darwin1.*)
9422 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9423 darwin*) # darwin 5.x on
9424 # if running on 10.5 or later, the deployment target defaults
9425 # to the OS version, if on x86, and 10.4, the deployment
9426 # target defaults to 10.4. Don't you love it?
9427 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9428 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9429 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9430 10.[012][,.]*)
9431 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9432 10.*)
9433 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9434 esac
9435 ;;
9436 esac
9437 if test yes = "$lt_cv_apple_cc_single_mod"; then
9438 _lt_dar_single_mod='$single_module'
9439 fi
9440 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9441 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9442 else
9443 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9444 fi
9445 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9446 _lt_dsymutil='~$DSYMUTIL $lib || :'
9447 else
9448 _lt_dsymutil=
9449 fi
9450 ;;
9451 esac
9452
9453 # func_munge_path_list VARIABLE PATH
9454 # -----------------------------------
9455 # VARIABLE is name of variable containing _space_ separated list of
9456 # directories to be munged by the contents of PATH, which is string
9457 # having a format:
9458 # "DIR[:DIR]:"
9459 # string "DIR[ DIR]" will be prepended to VARIABLE
9460 # ":DIR[:DIR]"
9461 # string "DIR[ DIR]" will be appended to VARIABLE
9462 # "DIRP[:DIRP]::[DIRA:]DIRA"
9463 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9464 # "DIRA[ DIRA]" will be appended to VARIABLE
9465 # "DIR[:DIR]"
9466 # VARIABLE will be replaced by "DIR[ DIR]"
9467 func_munge_path_list ()
9468 {
9469 case x$2 in
9470 x)
9471 ;;
9472 *:)
9473 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9474 ;;
9475 x:*)
9476 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9477 ;;
9478 *::*)
9479 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9480 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9481 ;;
9482 *)
9483 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9484 ;;
9485 esac
9486 }
9487
9488 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9489 "
9490 if test "x$ac_cv_header_dlfcn_h" = xyes
9491 then :
9492 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9493
9494 fi
9495
9496
9497
9498
9499
9500 # Set options
9501
9502
9503
9504 enable_dlopen=no
9505
9506
9507 enable_win32_dll=no
9508
9509
9510 # Check whether --enable-shared was given.
9511 if test ${enable_shared+y}
9512 then :
9513 enableval=$enable_shared; p=${PACKAGE-default}
9514 case $enableval in
9515 yes) enable_shared=yes ;;
9516 no) enable_shared=no ;;
9517 *)
9518 enable_shared=no
9519 # Look at the argument we got. We use all the common list separators.
9520 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9521 for pkg in $enableval; do
9522 IFS=$lt_save_ifs
9523 if test "X$pkg" = "X$p"; then
9524 enable_shared=yes
9525 fi
9526 done
9527 IFS=$lt_save_ifs
9528 ;;
9529 esac
9530 else $as_nop
9531 enable_shared=yes
9532 fi
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542 # Check whether --enable-static was given.
9543 if test ${enable_static+y}
9544 then :
9545 enableval=$enable_static; p=${PACKAGE-default}
9546 case $enableval in
9547 yes) enable_static=yes ;;
9548 no) enable_static=no ;;
9549 *)
9550 enable_static=no
9551 # Look at the argument we got. We use all the common list separators.
9552 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9553 for pkg in $enableval; do
9554 IFS=$lt_save_ifs
9555 if test "X$pkg" = "X$p"; then
9556 enable_static=yes
9557 fi
9558 done
9559 IFS=$lt_save_ifs
9560 ;;
9561 esac
9562 else $as_nop
9563 enable_static=yes
9564 fi
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575 # Check whether --with-pic was given.
9576 if test ${with_pic+y}
9577 then :
9578 withval=$with_pic; lt_p=${PACKAGE-default}
9579 case $withval in
9580 yes|no) pic_mode=$withval ;;
9581 *)
9582 pic_mode=default
9583 # Look at the argument we got. We use all the common list separators.
9584 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9585 for lt_pkg in $withval; do
9586 IFS=$lt_save_ifs
9587 if test "X$lt_pkg" = "X$lt_p"; then
9588 pic_mode=yes
9589 fi
9590 done
9591 IFS=$lt_save_ifs
9592 ;;
9593 esac
9594 else $as_nop
9595 pic_mode=default
9596 fi
9597
9598
9599
9600
9601
9602
9603
9604
9605 # Check whether --enable-fast-install was given.
9606 if test ${enable_fast_install+y}
9607 then :
9608 enableval=$enable_fast_install; p=${PACKAGE-default}
9609 case $enableval in
9610 yes) enable_fast_install=yes ;;
9611 no) enable_fast_install=no ;;
9612 *)
9613 enable_fast_install=no
9614 # Look at the argument we got. We use all the common list separators.
9615 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9616 for pkg in $enableval; do
9617 IFS=$lt_save_ifs
9618 if test "X$pkg" = "X$p"; then
9619 enable_fast_install=yes
9620 fi
9621 done
9622 IFS=$lt_save_ifs
9623 ;;
9624 esac
9625 else $as_nop
9626 enable_fast_install=yes
9627 fi
9628
9629
9630
9631
9632
9633
9634
9635
9636 shared_archive_member_spec=
9637 case $host,$enable_shared in
9638 power*-*-aix[5-9]*,yes)
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9640 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9641
9642 # Check whether --with-aix-soname was given.
9643 if test ${with_aix_soname+y}
9644 then :
9645 withval=$with_aix_soname; case $withval in
9646 aix|svr4|both)
9647 ;;
9648 *)
9649 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9650 ;;
9651 esac
9652 lt_cv_with_aix_soname=$with_aix_soname
9653 else $as_nop
9654 if test ${lt_cv_with_aix_soname+y}
9655 then :
9656 printf %s "(cached) " >&6
9657 else $as_nop
9658 lt_cv_with_aix_soname=aix
9659 fi
9660
9661 with_aix_soname=$lt_cv_with_aix_soname
9662 fi
9663
9664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9665 printf "%s\n" "$with_aix_soname" >&6; }
9666 if test aix != "$with_aix_soname"; then
9667 # For the AIX way of multilib, we name the shared archive member
9668 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9669 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9670 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9671 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9672 if test 64 = "${OBJECT_MODE-32}"; then
9673 shared_archive_member_spec=shr_64
9674 else
9675 shared_archive_member_spec=shr
9676 fi
9677 fi
9678 ;;
9679 *)
9680 with_aix_soname=aix
9681 ;;
9682 esac
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693 # This can be used to rebuild libtool when needed
9694 LIBTOOL_DEPS=$ltmain
9695
9696 # Always use our own libtool.
9697 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728 test -z "$LN_S" && LN_S="ln -s"
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743 if test -n "${ZSH_VERSION+set}"; then
9744 setopt NO_GLOB_SUBST
9745 fi
9746
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9748 printf %s "checking for objdir... " >&6; }
9749 if test ${lt_cv_objdir+y}
9750 then :
9751 printf %s "(cached) " >&6
9752 else $as_nop
9753 rm -f .libs 2>/dev/null
9754 mkdir .libs 2>/dev/null
9755 if test -d .libs; then
9756 lt_cv_objdir=.libs
9757 else
9758 # MS-DOS does not allow filenames that begin with a dot.
9759 lt_cv_objdir=_libs
9760 fi
9761 rmdir .libs 2>/dev/null
9762 fi
9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9764 printf "%s\n" "$lt_cv_objdir" >&6; }
9765 objdir=$lt_cv_objdir
9766
9767
9768
9769
9770
9771 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9772
9773
9774
9775
9776 case $host_os in
9777 aix3*)
9778 # AIX sometimes has problems with the GCC collect2 program. For some
9779 # reason, if we set the COLLECT_NAMES environment variable, the problems
9780 # vanish in a puff of smoke.
9781 if test set != "${COLLECT_NAMES+set}"; then
9782 COLLECT_NAMES=
9783 export COLLECT_NAMES
9784 fi
9785 ;;
9786 esac
9787
9788 # Global variables:
9789 ofile=libtool
9790 can_build_shared=yes
9791
9792 # All known linkers require a '.a' archive for static linking (except MSVC,
9793 # which needs '.lib').
9794 libext=a
9795
9796 with_gnu_ld=$lt_cv_prog_gnu_ld
9797
9798 old_CC=$CC
9799 old_CFLAGS=$CFLAGS
9800
9801 # Set sane defaults for various variables
9802 test -z "$CC" && CC=cc
9803 test -z "$LTCC" && LTCC=$CC
9804 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9805 test -z "$LD" && LD=ld
9806 test -z "$ac_objext" && ac_objext=o
9807
9808 func_cc_basename $compiler
9809 cc_basename=$func_cc_basename_result
9810
9811
9812 # Only perform the check for file, if the check method requires it
9813 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9814 case $deplibs_check_method in
9815 file_magic*)
9816 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9818 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9819 if test ${lt_cv_path_MAGIC_CMD+y}
9820 then :
9821 printf %s "(cached) " >&6
9822 else $as_nop
9823 case $MAGIC_CMD in
9824 [\\/*] | ?:[\\/]*)
9825 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9826 ;;
9827 *)
9828 lt_save_MAGIC_CMD=$MAGIC_CMD
9829 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9830 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9831 for ac_dir in $ac_dummy; do
9832 IFS=$lt_save_ifs
9833 test -z "$ac_dir" && ac_dir=.
9834 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9835 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9836 if test -n "$file_magic_test_file"; then
9837 case $deplibs_check_method in
9838 "file_magic "*)
9839 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9840 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9841 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9842 $EGREP "$file_magic_regex" > /dev/null; then
9843 :
9844 else
9845 cat <<_LT_EOF 1>&2
9846
9847 *** Warning: the command libtool uses to detect shared libraries,
9848 *** $file_magic_cmd, produces output that libtool cannot recognize.
9849 *** The result is that libtool may fail to recognize shared libraries
9850 *** as such. This will affect the creation of libtool libraries that
9851 *** depend on shared libraries, but programs linked with such libtool
9852 *** libraries will work regardless of this problem. Nevertheless, you
9853 *** may want to report the problem to your system manager and/or to
9854 *** [email protected]
9855
9856 _LT_EOF
9857 fi ;;
9858 esac
9859 fi
9860 break
9861 fi
9862 done
9863 IFS=$lt_save_ifs
9864 MAGIC_CMD=$lt_save_MAGIC_CMD
9865 ;;
9866 esac
9867 fi
9868
9869 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9870 if test -n "$MAGIC_CMD"; then
9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9872 printf "%s\n" "$MAGIC_CMD" >&6; }
9873 else
9874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 printf "%s\n" "no" >&6; }
9876 fi
9877
9878
9879
9880
9881
9882 if test -z "$lt_cv_path_MAGIC_CMD"; then
9883 if test -n "$ac_tool_prefix"; then
9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9885 printf %s "checking for file... " >&6; }
9886 if test ${lt_cv_path_MAGIC_CMD+y}
9887 then :
9888 printf %s "(cached) " >&6
9889 else $as_nop
9890 case $MAGIC_CMD in
9891 [\\/*] | ?:[\\/]*)
9892 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9893 ;;
9894 *)
9895 lt_save_MAGIC_CMD=$MAGIC_CMD
9896 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9897 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9898 for ac_dir in $ac_dummy; do
9899 IFS=$lt_save_ifs
9900 test -z "$ac_dir" && ac_dir=.
9901 if test -f "$ac_dir/file"; then
9902 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9903 if test -n "$file_magic_test_file"; then
9904 case $deplibs_check_method in
9905 "file_magic "*)
9906 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9907 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9908 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9909 $EGREP "$file_magic_regex" > /dev/null; then
9910 :
9911 else
9912 cat <<_LT_EOF 1>&2
9913
9914 *** Warning: the command libtool uses to detect shared libraries,
9915 *** $file_magic_cmd, produces output that libtool cannot recognize.
9916 *** The result is that libtool may fail to recognize shared libraries
9917 *** as such. This will affect the creation of libtool libraries that
9918 *** depend on shared libraries, but programs linked with such libtool
9919 *** libraries will work regardless of this problem. Nevertheless, you
9920 *** may want to report the problem to your system manager and/or to
9921 *** [email protected]
9922
9923 _LT_EOF
9924 fi ;;
9925 esac
9926 fi
9927 break
9928 fi
9929 done
9930 IFS=$lt_save_ifs
9931 MAGIC_CMD=$lt_save_MAGIC_CMD
9932 ;;
9933 esac
9934 fi
9935
9936 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9937 if test -n "$MAGIC_CMD"; then
9938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9939 printf "%s\n" "$MAGIC_CMD" >&6; }
9940 else
9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942 printf "%s\n" "no" >&6; }
9943 fi
9944
9945
9946 else
9947 MAGIC_CMD=:
9948 fi
9949 fi
9950
9951 fi
9952 ;;
9953 esac
9954
9955 # Use C for the default configuration in the libtool script
9956
9957 lt_save_CC=$CC
9958 ac_ext=c
9959 ac_cpp='$CPP $CPPFLAGS'
9960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9963
9964
9965 # Source file extension for C test sources.
9966 ac_ext=c
9967
9968 # Object file extension for compiled C test sources.
9969 objext=o
9970 objext=$objext
9971
9972 # Code to be used in simple compile tests
9973 lt_simple_compile_test_code="int some_variable = 0;"
9974
9975 # Code to be used in simple link tests
9976 lt_simple_link_test_code='int main(){return(0);}'
9977
9978
9979
9980
9981
9982
9983
9984 # If no C compiler was specified, use CC.
9985 LTCC=${LTCC-"$CC"}
9986
9987 # If no C compiler flags were specified, use CFLAGS.
9988 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9989
9990 # Allow CC to be a program name with arguments.
9991 compiler=$CC
9992
9993 # Save the default compiler, since it gets overwritten when the other
9994 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9995 compiler_DEFAULT=$CC
9996
9997 # save warnings/boilerplate of simple test code
9998 ac_outfile=conftest.$ac_objext
9999 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10000 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10001 _lt_compiler_boilerplate=`cat conftest.err`
10002 $RM conftest*
10003
10004 ac_outfile=conftest.$ac_objext
10005 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10006 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10007 _lt_linker_boilerplate=`cat conftest.err`
10008 $RM -r conftest*
10009
10010
10011 ## CAVEAT EMPTOR:
10012 ## There is no encapsulation within the following macros, do not change
10013 ## the running order or otherwise move them around unless you know exactly
10014 ## what you are doing...
10015 if test -n "$compiler"; then
10016
10017 lt_prog_compiler_no_builtin_flag=
10018
10019 if test yes = "$GCC"; then
10020 case $cc_basename in
10021 nvcc*)
10022 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10023 *)
10024 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10025 esac
10026
10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10028 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10029 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10030 then :
10031 printf %s "(cached) " >&6
10032 else $as_nop
10033 lt_cv_prog_compiler_rtti_exceptions=no
10034 ac_outfile=conftest.$ac_objext
10035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10036 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10037 # Insert the option either (1) after the last *FLAGS variable, or
10038 # (2) before a word containing "conftest.", or (3) at the end.
10039 # Note that $ac_compile itself does not contain backslashes and begins
10040 # with a dollar sign (not a hyphen), so the echo should work correctly.
10041 # The option is referenced via a variable to avoid confusing sed.
10042 lt_compile=`echo "$ac_compile" | $SED \
10043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10045 -e 's:$: $lt_compiler_flag:'`
10046 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10047 (eval "$lt_compile" 2>conftest.err)
10048 ac_status=$?
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 if (exit $ac_status) && test -s "$ac_outfile"; then
10052 # The compiler can only warn and ignore the option if not recognized
10053 # So say no if there are warnings other than the usual output.
10054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10056 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10057 lt_cv_prog_compiler_rtti_exceptions=yes
10058 fi
10059 fi
10060 $RM conftest*
10061
10062 fi
10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10064 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10065
10066 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10067 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10068 else
10069 :
10070 fi
10071
10072 fi
10073
10074
10075
10076
10077
10078
10079 lt_prog_compiler_wl=
10080 lt_prog_compiler_pic=
10081 lt_prog_compiler_static=
10082
10083
10084 if test yes = "$GCC"; then
10085 lt_prog_compiler_wl='-Wl,'
10086 lt_prog_compiler_static='-static'
10087
10088 case $host_os in
10089 aix*)
10090 # All AIX code is PIC.
10091 if test ia64 = "$host_cpu"; then
10092 # AIX 5 now supports IA64 processor
10093 lt_prog_compiler_static='-Bstatic'
10094 fi
10095 lt_prog_compiler_pic='-fPIC'
10096 ;;
10097
10098 amigaos*)
10099 case $host_cpu in
10100 powerpc)
10101 # see comment about AmigaOS4 .so support
10102 lt_prog_compiler_pic='-fPIC'
10103 ;;
10104 m68k)
10105 # FIXME: we need at least 68020 code to build shared libraries, but
10106 # adding the '-m68020' flag to GCC prevents building anything better,
10107 # like '-m68040'.
10108 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10109 ;;
10110 esac
10111 ;;
10112
10113 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10114 # PIC is the default for these OSes.
10115 ;;
10116
10117 mingw* | cygwin* | pw32* | os2* | cegcc*)
10118 # This hack is so that the source file can tell whether it is being
10119 # built for inclusion in a dll (and should export symbols for example).
10120 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10121 # (--disable-auto-import) libraries
10122 lt_prog_compiler_pic='-DDLL_EXPORT'
10123 case $host_os in
10124 os2*)
10125 lt_prog_compiler_static='$wl-static'
10126 ;;
10127 esac
10128 ;;
10129
10130 darwin* | rhapsody*)
10131 # PIC is the default on this platform
10132 # Common symbols not allowed in MH_DYLIB files
10133 lt_prog_compiler_pic='-fno-common'
10134 ;;
10135
10136 haiku*)
10137 # PIC is the default for Haiku.
10138 # The "-static" flag exists, but is broken.
10139 lt_prog_compiler_static=
10140 ;;
10141
10142 hpux*)
10143 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10144 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10145 # sets the default TLS model and affects inlining.
10146 case $host_cpu in
10147 hppa*64*)
10148 # +Z the default
10149 ;;
10150 *)
10151 lt_prog_compiler_pic='-fPIC'
10152 ;;
10153 esac
10154 ;;
10155
10156 interix[3-9]*)
10157 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10158 # Instead, we relocate shared libraries at runtime.
10159 ;;
10160
10161 msdosdjgpp*)
10162 # Just because we use GCC doesn't mean we suddenly get shared libraries
10163 # on systems that don't support them.
10164 lt_prog_compiler_can_build_shared=no
10165 enable_shared=no
10166 ;;
10167
10168 *nto* | *qnx*)
10169 # QNX uses GNU C++, but need to define -shared option too, otherwise
10170 # it will coredump.
10171 lt_prog_compiler_pic='-fPIC -shared'
10172 ;;
10173
10174 sysv4*MP*)
10175 if test -d /usr/nec; then
10176 lt_prog_compiler_pic=-Kconform_pic
10177 fi
10178 ;;
10179
10180 *)
10181 lt_prog_compiler_pic='-fPIC'
10182 ;;
10183 esac
10184
10185 case $cc_basename in
10186 nvcc*) # Cuda Compiler Driver 2.2
10187 lt_prog_compiler_wl='-Xlinker '
10188 if test -n "$lt_prog_compiler_pic"; then
10189 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10190 fi
10191 ;;
10192 esac
10193 else
10194 # PORTME Check for flag to pass linker flags through the system compiler.
10195 case $host_os in
10196 aix*)
10197 lt_prog_compiler_wl='-Wl,'
10198 if test ia64 = "$host_cpu"; then
10199 # AIX 5 now supports IA64 processor
10200 lt_prog_compiler_static='-Bstatic'
10201 else
10202 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10203 fi
10204 ;;
10205
10206 darwin* | rhapsody*)
10207 # PIC is the default on this platform
10208 # Common symbols not allowed in MH_DYLIB files
10209 lt_prog_compiler_pic='-fno-common'
10210 case $cc_basename in
10211 nagfor*)
10212 # NAG Fortran compiler
10213 lt_prog_compiler_wl='-Wl,-Wl,,'
10214 lt_prog_compiler_pic='-PIC'
10215 lt_prog_compiler_static='-Bstatic'
10216 ;;
10217 esac
10218 ;;
10219
10220 mingw* | cygwin* | pw32* | os2* | cegcc*)
10221 # This hack is so that the source file can tell whether it is being
10222 # built for inclusion in a dll (and should export symbols for example).
10223 lt_prog_compiler_pic='-DDLL_EXPORT'
10224 case $host_os in
10225 os2*)
10226 lt_prog_compiler_static='$wl-static'
10227 ;;
10228 esac
10229 ;;
10230
10231 hpux9* | hpux10* | hpux11*)
10232 lt_prog_compiler_wl='-Wl,'
10233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10234 # not for PA HP-UX.
10235 case $host_cpu in
10236 hppa*64*|ia64*)
10237 # +Z the default
10238 ;;
10239 *)
10240 lt_prog_compiler_pic='+Z'
10241 ;;
10242 esac
10243 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10244 lt_prog_compiler_static='$wl-a ${wl}archive'
10245 ;;
10246
10247 irix5* | irix6* | nonstopux*)
10248 lt_prog_compiler_wl='-Wl,'
10249 # PIC (with -KPIC) is the default.
10250 lt_prog_compiler_static='-non_shared'
10251 ;;
10252
10253 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10254 case $cc_basename in
10255 # old Intel for x86_64, which still supported -KPIC.
10256 ecc*)
10257 lt_prog_compiler_wl='-Wl,'
10258 lt_prog_compiler_pic='-KPIC'
10259 lt_prog_compiler_static='-static'
10260 ;;
10261 # icc used to be incompatible with GCC.
10262 # ICC 10 doesn't accept -KPIC any more.
10263 icc* | ifort*)
10264 lt_prog_compiler_wl='-Wl,'
10265 lt_prog_compiler_pic='-fPIC'
10266 lt_prog_compiler_static='-static'
10267 ;;
10268 # Lahey Fortran 8.1.
10269 lf95*)
10270 lt_prog_compiler_wl='-Wl,'
10271 lt_prog_compiler_pic='--shared'
10272 lt_prog_compiler_static='--static'
10273 ;;
10274 nagfor*)
10275 # NAG Fortran compiler
10276 lt_prog_compiler_wl='-Wl,-Wl,,'
10277 lt_prog_compiler_pic='-PIC'
10278 lt_prog_compiler_static='-Bstatic'
10279 ;;
10280 tcc*)
10281 # Fabrice Bellard et al's Tiny C Compiler
10282 lt_prog_compiler_wl='-Wl,'
10283 lt_prog_compiler_pic='-fPIC'
10284 lt_prog_compiler_static='-static'
10285 ;;
10286 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10287 # Portland Group compilers (*not* the Pentium gcc compiler,
10288 # which looks to be a dead project)
10289 lt_prog_compiler_wl='-Wl,'
10290 lt_prog_compiler_pic='-fpic'
10291 lt_prog_compiler_static='-Bstatic'
10292 ;;
10293 ccc*)
10294 lt_prog_compiler_wl='-Wl,'
10295 # All Alpha code is PIC.
10296 lt_prog_compiler_static='-non_shared'
10297 ;;
10298 xl* | bgxl* | bgf* | mpixl*)
10299 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10300 lt_prog_compiler_wl='-Wl,'
10301 lt_prog_compiler_pic='-qpic'
10302 lt_prog_compiler_static='-qstaticlink'
10303 ;;
10304 *)
10305 case `$CC -V 2>&1 | sed 5q` in
10306 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10307 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10308 lt_prog_compiler_pic='-KPIC'
10309 lt_prog_compiler_static='-Bstatic'
10310 lt_prog_compiler_wl=''
10311 ;;
10312 *Sun\ F* | *Sun*Fortran*)
10313 lt_prog_compiler_pic='-KPIC'
10314 lt_prog_compiler_static='-Bstatic'
10315 lt_prog_compiler_wl='-Qoption ld '
10316 ;;
10317 *Sun\ C*)
10318 # Sun C 5.9
10319 lt_prog_compiler_pic='-KPIC'
10320 lt_prog_compiler_static='-Bstatic'
10321 lt_prog_compiler_wl='-Wl,'
10322 ;;
10323 *Intel*\ [CF]*Compiler*)
10324 lt_prog_compiler_wl='-Wl,'
10325 lt_prog_compiler_pic='-fPIC'
10326 lt_prog_compiler_static='-static'
10327 ;;
10328 *Portland\ Group*)
10329 lt_prog_compiler_wl='-Wl,'
10330 lt_prog_compiler_pic='-fpic'
10331 lt_prog_compiler_static='-Bstatic'
10332 ;;
10333 esac
10334 ;;
10335 esac
10336 ;;
10337
10338 newsos6)
10339 lt_prog_compiler_pic='-KPIC'
10340 lt_prog_compiler_static='-Bstatic'
10341 ;;
10342
10343 *nto* | *qnx*)
10344 # QNX uses GNU C++, but need to define -shared option too, otherwise
10345 # it will coredump.
10346 lt_prog_compiler_pic='-fPIC -shared'
10347 ;;
10348
10349 osf3* | osf4* | osf5*)
10350 lt_prog_compiler_wl='-Wl,'
10351 # All OSF/1 code is PIC.
10352 lt_prog_compiler_static='-non_shared'
10353 ;;
10354
10355 rdos*)
10356 lt_prog_compiler_static='-non_shared'
10357 ;;
10358
10359 solaris*)
10360 lt_prog_compiler_pic='-KPIC'
10361 lt_prog_compiler_static='-Bstatic'
10362 case $cc_basename in
10363 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10364 lt_prog_compiler_wl='-Qoption ld ';;
10365 *)
10366 lt_prog_compiler_wl='-Wl,';;
10367 esac
10368 ;;
10369
10370 sunos4*)
10371 lt_prog_compiler_wl='-Qoption ld '
10372 lt_prog_compiler_pic='-PIC'
10373 lt_prog_compiler_static='-Bstatic'
10374 ;;
10375
10376 sysv4 | sysv4.2uw2* | sysv4.3*)
10377 lt_prog_compiler_wl='-Wl,'
10378 lt_prog_compiler_pic='-KPIC'
10379 lt_prog_compiler_static='-Bstatic'
10380 ;;
10381
10382 sysv4*MP*)
10383 if test -d /usr/nec; then
10384 lt_prog_compiler_pic='-Kconform_pic'
10385 lt_prog_compiler_static='-Bstatic'
10386 fi
10387 ;;
10388
10389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10390 lt_prog_compiler_wl='-Wl,'
10391 lt_prog_compiler_pic='-KPIC'
10392 lt_prog_compiler_static='-Bstatic'
10393 ;;
10394
10395 unicos*)
10396 lt_prog_compiler_wl='-Wl,'
10397 lt_prog_compiler_can_build_shared=no
10398 ;;
10399
10400 uts4*)
10401 lt_prog_compiler_pic='-pic'
10402 lt_prog_compiler_static='-Bstatic'
10403 ;;
10404
10405 *)
10406 lt_prog_compiler_can_build_shared=no
10407 ;;
10408 esac
10409 fi
10410
10411 case $host_os in
10412 # For platforms that do not support PIC, -DPIC is meaningless:
10413 *djgpp*)
10414 lt_prog_compiler_pic=
10415 ;;
10416 *)
10417 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10418 ;;
10419 esac
10420
10421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10422 printf %s "checking for $compiler option to produce PIC... " >&6; }
10423 if test ${lt_cv_prog_compiler_pic+y}
10424 then :
10425 printf %s "(cached) " >&6
10426 else $as_nop
10427 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10428 fi
10429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10430 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10431 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10432
10433 #
10434 # Check to make sure the PIC flag actually works.
10435 #
10436 if test -n "$lt_prog_compiler_pic"; then
10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10438 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10439 if test ${lt_cv_prog_compiler_pic_works+y}
10440 then :
10441 printf %s "(cached) " >&6
10442 else $as_nop
10443 lt_cv_prog_compiler_pic_works=no
10444 ac_outfile=conftest.$ac_objext
10445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10446 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10447 # Insert the option either (1) after the last *FLAGS variable, or
10448 # (2) before a word containing "conftest.", or (3) at the end.
10449 # Note that $ac_compile itself does not contain backslashes and begins
10450 # with a dollar sign (not a hyphen), so the echo should work correctly.
10451 # The option is referenced via a variable to avoid confusing sed.
10452 lt_compile=`echo "$ac_compile" | $SED \
10453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10455 -e 's:$: $lt_compiler_flag:'`
10456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10457 (eval "$lt_compile" 2>conftest.err)
10458 ac_status=$?
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 if (exit $ac_status) && test -s "$ac_outfile"; then
10462 # The compiler can only warn and ignore the option if not recognized
10463 # So say no if there are warnings other than the usual output.
10464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10467 lt_cv_prog_compiler_pic_works=yes
10468 fi
10469 fi
10470 $RM conftest*
10471
10472 fi
10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10474 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10475
10476 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10477 case $lt_prog_compiler_pic in
10478 "" | " "*) ;;
10479 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10480 esac
10481 else
10482 lt_prog_compiler_pic=
10483 lt_prog_compiler_can_build_shared=no
10484 fi
10485
10486 fi
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498 #
10499 # Check to make sure the static flag actually works.
10500 #
10501 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10503 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10504 if test ${lt_cv_prog_compiler_static_works+y}
10505 then :
10506 printf %s "(cached) " >&6
10507 else $as_nop
10508 lt_cv_prog_compiler_static_works=no
10509 save_LDFLAGS=$LDFLAGS
10510 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10511 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10513 # The linker can only warn and ignore the option if not recognized
10514 # So say no if there are warnings
10515 if test -s conftest.err; then
10516 # Append any errors to the config.log.
10517 cat conftest.err 1>&5
10518 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10520 if diff conftest.exp conftest.er2 >/dev/null; then
10521 lt_cv_prog_compiler_static_works=yes
10522 fi
10523 else
10524 lt_cv_prog_compiler_static_works=yes
10525 fi
10526 fi
10527 $RM -r conftest*
10528 LDFLAGS=$save_LDFLAGS
10529
10530 fi
10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10532 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10533
10534 if test yes = "$lt_cv_prog_compiler_static_works"; then
10535 :
10536 else
10537 lt_prog_compiler_static=
10538 fi
10539
10540
10541
10542
10543
10544
10545
10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10547 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10548 if test ${lt_cv_prog_compiler_c_o+y}
10549 then :
10550 printf %s "(cached) " >&6
10551 else $as_nop
10552 lt_cv_prog_compiler_c_o=no
10553 $RM -r conftest 2>/dev/null
10554 mkdir conftest
10555 cd conftest
10556 mkdir out
10557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10558
10559 lt_compiler_flag="-o out/conftest2.$ac_objext"
10560 # Insert the option either (1) after the last *FLAGS variable, or
10561 # (2) before a word containing "conftest.", or (3) at the end.
10562 # Note that $ac_compile itself does not contain backslashes and begins
10563 # with a dollar sign (not a hyphen), so the echo should work correctly.
10564 lt_compile=`echo "$ac_compile" | $SED \
10565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10567 -e 's:$: $lt_compiler_flag:'`
10568 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10569 (eval "$lt_compile" 2>out/conftest.err)
10570 ac_status=$?
10571 cat out/conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10574 then
10575 # The compiler can only warn and ignore the option if not recognized
10576 # So say no if there are warnings
10577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10580 lt_cv_prog_compiler_c_o=yes
10581 fi
10582 fi
10583 chmod u+w . 2>&5
10584 $RM conftest*
10585 # SGI C++ compiler will create directory out/ii_files/ for
10586 # template instantiation
10587 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10588 $RM out/* && rmdir out
10589 cd ..
10590 $RM -r conftest
10591 $RM conftest*
10592
10593 fi
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10595 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10596
10597
10598
10599
10600
10601
10602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10603 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10604 if test ${lt_cv_prog_compiler_c_o+y}
10605 then :
10606 printf %s "(cached) " >&6
10607 else $as_nop
10608 lt_cv_prog_compiler_c_o=no
10609 $RM -r conftest 2>/dev/null
10610 mkdir conftest
10611 cd conftest
10612 mkdir out
10613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10614
10615 lt_compiler_flag="-o out/conftest2.$ac_objext"
10616 # Insert the option either (1) after the last *FLAGS variable, or
10617 # (2) before a word containing "conftest.", or (3) at the end.
10618 # Note that $ac_compile itself does not contain backslashes and begins
10619 # with a dollar sign (not a hyphen), so the echo should work correctly.
10620 lt_compile=`echo "$ac_compile" | $SED \
10621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10623 -e 's:$: $lt_compiler_flag:'`
10624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10625 (eval "$lt_compile" 2>out/conftest.err)
10626 ac_status=$?
10627 cat out/conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10630 then
10631 # The compiler can only warn and ignore the option if not recognized
10632 # So say no if there are warnings
10633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10634 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10635 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10636 lt_cv_prog_compiler_c_o=yes
10637 fi
10638 fi
10639 chmod u+w . 2>&5
10640 $RM conftest*
10641 # SGI C++ compiler will create directory out/ii_files/ for
10642 # template instantiation
10643 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10644 $RM out/* && rmdir out
10645 cd ..
10646 $RM -r conftest
10647 $RM conftest*
10648
10649 fi
10650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10651 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10652
10653
10654
10655
10656 hard_links=nottested
10657 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10658 # do not overwrite the value of need_locks provided by the user
10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10660 printf %s "checking if we can lock with hard links... " >&6; }
10661 hard_links=yes
10662 $RM conftest*
10663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10664 touch conftest.a
10665 ln conftest.a conftest.b 2>&5 || hard_links=no
10666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10668 printf "%s\n" "$hard_links" >&6; }
10669 if test no = "$hard_links"; then
10670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10671 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10672 need_locks=warn
10673 fi
10674 else
10675 need_locks=no
10676 fi
10677
10678
10679
10680
10681
10682
10683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10684 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10685
10686 runpath_var=
10687 allow_undefined_flag=
10688 always_export_symbols=no
10689 archive_cmds=
10690 archive_expsym_cmds=
10691 compiler_needs_object=no
10692 enable_shared_with_static_runtimes=no
10693 export_dynamic_flag_spec=
10694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10695 hardcode_automatic=no
10696 hardcode_direct=no
10697 hardcode_direct_absolute=no
10698 hardcode_libdir_flag_spec=
10699 hardcode_libdir_separator=
10700 hardcode_minus_L=no
10701 hardcode_shlibpath_var=unsupported
10702 inherit_rpath=no
10703 link_all_deplibs=unknown
10704 module_cmds=
10705 module_expsym_cmds=
10706 old_archive_from_new_cmds=
10707 old_archive_from_expsyms_cmds=
10708 thread_safe_flag_spec=
10709 whole_archive_flag_spec=
10710 # include_expsyms should be a list of space-separated symbols to be *always*
10711 # included in the symbol list
10712 include_expsyms=
10713 # exclude_expsyms can be an extended regexp of symbols to exclude
10714 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10715 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10716 # as well as any symbol that contains 'd'.
10717 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10718 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10719 # platforms (ab)use it in PIC code, but their linkers get confused if
10720 # the symbol is explicitly referenced. Since portable code cannot
10721 # rely on this symbol name, it's probably fine to never include it in
10722 # preloaded symbol tables.
10723 # Exclude shared library initialization/finalization symbols.
10724 extract_expsyms_cmds=
10725
10726 case $host_os in
10727 cygwin* | mingw* | pw32* | cegcc*)
10728 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10729 # When not using gcc, we currently assume that we are using
10730 # Microsoft Visual C++.
10731 if test yes != "$GCC"; then
10732 with_gnu_ld=no
10733 fi
10734 ;;
10735 interix*)
10736 # we just hope/assume this is gcc and not c89 (= MSVC++)
10737 with_gnu_ld=yes
10738 ;;
10739 openbsd* | bitrig*)
10740 with_gnu_ld=no
10741 ;;
10742 esac
10743
10744 ld_shlibs=yes
10745
10746 # On some targets, GNU ld is compatible enough with the native linker
10747 # that we're better off using the native interface for both.
10748 lt_use_gnu_ld_interface=no
10749 if test yes = "$with_gnu_ld"; then
10750 case $host_os in
10751 aix*)
10752 # The AIX port of GNU ld has always aspired to compatibility
10753 # with the native linker. However, as the warning in the GNU ld
10754 # block says, versions before 2.19.5* couldn't really create working
10755 # shared libraries, regardless of the interface used.
10756 case `$LD -v 2>&1` in
10757 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10758 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10759 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10760 *)
10761 lt_use_gnu_ld_interface=yes
10762 ;;
10763 esac
10764 ;;
10765 *)
10766 lt_use_gnu_ld_interface=yes
10767 ;;
10768 esac
10769 fi
10770
10771 if test yes = "$lt_use_gnu_ld_interface"; then
10772 # If archive_cmds runs LD, not CC, wlarc should be empty
10773 wlarc='$wl'
10774
10775 # Set some defaults for GNU ld with shared library support. These
10776 # are reset later if shared libraries are not supported. Putting them
10777 # here allows them to be overridden if necessary.
10778 runpath_var=LD_RUN_PATH
10779 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10780 export_dynamic_flag_spec='$wl--export-dynamic'
10781 # ancient GNU ld didn't support --whole-archive et. al.
10782 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10783 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10784 else
10785 whole_archive_flag_spec=
10786 fi
10787 supports_anon_versioning=no
10788 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10789 *GNU\ gold*) supports_anon_versioning=yes ;;
10790 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10791 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10792 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10793 *\ 2.11.*) ;; # other 2.11 versions
10794 *) supports_anon_versioning=yes ;;
10795 esac
10796
10797 # See if GNU ld supports shared libraries.
10798 case $host_os in
10799 aix[3-9]*)
10800 # On AIX/PPC, the GNU linker is very broken
10801 if test ia64 != "$host_cpu"; then
10802 ld_shlibs=no
10803 cat <<_LT_EOF 1>&2
10804
10805 *** Warning: the GNU linker, at least up to release 2.19, is reported
10806 *** to be unable to reliably create shared libraries on AIX.
10807 *** Therefore, libtool is disabling shared libraries support. If you
10808 *** really care for shared libraries, you may want to install binutils
10809 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10810 *** You will then need to restart the configuration process.
10811
10812 _LT_EOF
10813 fi
10814 ;;
10815
10816 amigaos*)
10817 case $host_cpu in
10818 powerpc)
10819 # see comment about AmigaOS4 .so support
10820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10821 archive_expsym_cmds=''
10822 ;;
10823 m68k)
10824 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)'
10825 hardcode_libdir_flag_spec='-L$libdir'
10826 hardcode_minus_L=yes
10827 ;;
10828 esac
10829 ;;
10830
10831 beos*)
10832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10833 allow_undefined_flag=unsupported
10834 # Joseph Beckenbach <[email protected]> says some releases of gcc
10835 # support --undefined. This deserves some investigation. FIXME
10836 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10837 else
10838 ld_shlibs=no
10839 fi
10840 ;;
10841
10842 cygwin* | mingw* | pw32* | cegcc*)
10843 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10844 # as there is no search path for DLLs.
10845 hardcode_libdir_flag_spec='-L$libdir'
10846 export_dynamic_flag_spec='$wl--export-all-symbols'
10847 allow_undefined_flag=unsupported
10848 always_export_symbols=no
10849 enable_shared_with_static_runtimes=yes
10850 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'
10851 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10852
10853 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10855 # If the export-symbols file already is a .def file, use it as
10856 # is; otherwise, prepend EXPORTS...
10857 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10858 cp $export_symbols $output_objdir/$soname.def;
10859 else
10860 echo EXPORTS > $output_objdir/$soname.def;
10861 cat $export_symbols >> $output_objdir/$soname.def;
10862 fi~
10863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10864 else
10865 ld_shlibs=no
10866 fi
10867 ;;
10868
10869 haiku*)
10870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10871 link_all_deplibs=yes
10872 ;;
10873
10874 os2*)
10875 hardcode_libdir_flag_spec='-L$libdir'
10876 hardcode_minus_L=yes
10877 allow_undefined_flag=unsupported
10878 shrext_cmds=.dll
10879 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10880 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10881 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10882 $ECHO EXPORTS >> $output_objdir/$libname.def~
10883 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10884 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10885 emximp -o $lib $output_objdir/$libname.def'
10886 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10887 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10888 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10889 $ECHO EXPORTS >> $output_objdir/$libname.def~
10890 prefix_cmds="$SED"~
10891 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10892 prefix_cmds="$prefix_cmds -e 1d";
10893 fi~
10894 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10895 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10896 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10897 emximp -o $lib $output_objdir/$libname.def'
10898 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10899 enable_shared_with_static_runtimes=yes
10900 ;;
10901
10902 interix[3-9]*)
10903 hardcode_direct=no
10904 hardcode_shlibpath_var=no
10905 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10906 export_dynamic_flag_spec='$wl-E'
10907 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10908 # Instead, shared libraries are loaded at an image base (0x10000000 by
10909 # default) and relocated if they conflict, which is a slow very memory
10910 # consuming and fragmenting process. To avoid this, we pick a random,
10911 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10912 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10913 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10914 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'
10915 ;;
10916
10917 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10918 tmp_diet=no
10919 if test linux-dietlibc = "$host_os"; then
10920 case $cc_basename in
10921 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10922 esac
10923 fi
10924 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10925 && test no = "$tmp_diet"
10926 then
10927 tmp_addflag=' $pic_flag'
10928 tmp_sharedflag='-shared'
10929 case $cc_basename,$host_cpu in
10930 pgcc*) # Portland Group C compiler
10931 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'
10932 tmp_addflag=' $pic_flag'
10933 ;;
10934 pgf77* | pgf90* | pgf95* | pgfortran*)
10935 # Portland Group f77 and f90 compilers
10936 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'
10937 tmp_addflag=' $pic_flag -Mnomain' ;;
10938 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10939 tmp_addflag=' -i_dynamic' ;;
10940 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10941 tmp_addflag=' -i_dynamic -nofor_main' ;;
10942 ifc* | ifort*) # Intel Fortran compiler
10943 tmp_addflag=' -nofor_main' ;;
10944 lf95*) # Lahey Fortran 8.1
10945 whole_archive_flag_spec=
10946 tmp_sharedflag='--shared' ;;
10947 nagfor*) # NAGFOR 5.3
10948 tmp_sharedflag='-Wl,-shared' ;;
10949 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10950 tmp_sharedflag='-qmkshrobj'
10951 tmp_addflag= ;;
10952 nvcc*) # Cuda Compiler Driver 2.2
10953 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'
10954 compiler_needs_object=yes
10955 ;;
10956 esac
10957 case `$CC -V 2>&1 | sed 5q` in
10958 *Sun\ C*) # Sun C 5.9
10959 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'
10960 compiler_needs_object=yes
10961 tmp_sharedflag='-G' ;;
10962 *Sun\ F*) # Sun Fortran 8.3
10963 tmp_sharedflag='-G' ;;
10964 esac
10965 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10966
10967 if test yes = "$supports_anon_versioning"; then
10968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10970 echo "local: *; };" >> $output_objdir/$libname.ver~
10971 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10972 fi
10973
10974 case $cc_basename in
10975 tcc*)
10976 export_dynamic_flag_spec='-rdynamic'
10977 ;;
10978 xlf* | bgf* | bgxlf* | mpixlf*)
10979 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10980 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10981 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10982 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10983 if test yes = "$supports_anon_versioning"; then
10984 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10986 echo "local: *; };" >> $output_objdir/$libname.ver~
10987 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10988 fi
10989 ;;
10990 esac
10991 else
10992 ld_shlibs=no
10993 fi
10994 ;;
10995
10996 netbsd*)
10997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10998 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10999 wlarc=
11000 else
11001 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11002 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11003 fi
11004 ;;
11005
11006 solaris*)
11007 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11008 ld_shlibs=no
11009 cat <<_LT_EOF 1>&2
11010
11011 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11012 *** create shared libraries on Solaris systems. Therefore, libtool
11013 *** is disabling shared libraries support. We urge you to upgrade GNU
11014 *** binutils to release 2.9.1 or newer. Another option is to modify
11015 *** your PATH or compiler configuration so that the native linker is
11016 *** used, and then restart.
11017
11018 _LT_EOF
11019 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11020 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11021 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11022 else
11023 ld_shlibs=no
11024 fi
11025 ;;
11026
11027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11028 case `$LD -v 2>&1` in
11029 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11030 ld_shlibs=no
11031 cat <<_LT_EOF 1>&2
11032
11033 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11034 *** reliably create shared libraries on SCO systems. Therefore, libtool
11035 *** is disabling shared libraries support. We urge you to upgrade GNU
11036 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11037 *** your PATH or compiler configuration so that the native linker is
11038 *** used, and then restart.
11039
11040 _LT_EOF
11041 ;;
11042 *)
11043 # For security reasons, it is highly recommended that you always
11044 # use absolute paths for naming shared libraries, and exclude the
11045 # DT_RUNPATH tag from executables and libraries. But doing so
11046 # requires that you compile everything twice, which is a pain.
11047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11048 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11050 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11051 else
11052 ld_shlibs=no
11053 fi
11054 ;;
11055 esac
11056 ;;
11057
11058 sunos4*)
11059 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11060 wlarc=
11061 hardcode_direct=yes
11062 hardcode_shlibpath_var=no
11063 ;;
11064
11065 *)
11066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11067 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11068 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11069 else
11070 ld_shlibs=no
11071 fi
11072 ;;
11073 esac
11074
11075 if test no = "$ld_shlibs"; then
11076 runpath_var=
11077 hardcode_libdir_flag_spec=
11078 export_dynamic_flag_spec=
11079 whole_archive_flag_spec=
11080 fi
11081 else
11082 # PORTME fill in a description of your system's linker (not GNU ld)
11083 case $host_os in
11084 aix3*)
11085 allow_undefined_flag=unsupported
11086 always_export_symbols=yes
11087 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'
11088 # Note: this linker hardcodes the directories in LIBPATH if there
11089 # are no directories specified by -L.
11090 hardcode_minus_L=yes
11091 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11092 # Neither direct hardcoding nor static linking is supported with a
11093 # broken collect2.
11094 hardcode_direct=unsupported
11095 fi
11096 ;;
11097
11098 aix[4-9]*)
11099 if test ia64 = "$host_cpu"; then
11100 # On IA64, the linker does run time linking by default, so we don't
11101 # have to do anything special.
11102 aix_use_runtimelinking=no
11103 exp_sym_flag='-Bexport'
11104 no_entry_flag=
11105 else
11106 # If we're using GNU nm, then we don't want the "-C" option.
11107 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11108 # Without the "-l" option, or with the "-B" option, AIX nm treats
11109 # weak defined symbols like other global defined symbols, whereas
11110 # GNU nm marks them as "W".
11111 # While the 'weak' keyword is ignored in the Export File, we need
11112 # it in the Import File for the 'aix-soname' feature, so we have
11113 # to replace the "-B" option with "-P" for AIX nm.
11114 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11115 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'
11116 else
11117 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'
11118 fi
11119 aix_use_runtimelinking=no
11120
11121 # Test if we are trying to use run time linking or normal
11122 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11123 # have runtime linking enabled, and use it for executables.
11124 # For shared libraries, we enable/disable runtime linking
11125 # depending on the kind of the shared library created -
11126 # when "with_aix_soname,aix_use_runtimelinking" is:
11127 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11128 # "aix,yes" lib.so shared, rtl:yes, for executables
11129 # lib.a static archive
11130 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11131 # lib.a(lib.so.V) shared, rtl:no, for executables
11132 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11133 # lib.a(lib.so.V) shared, rtl:no
11134 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11135 # lib.a static archive
11136 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11137 for ld_flag in $LDFLAGS; do
11138 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11139 aix_use_runtimelinking=yes
11140 break
11141 fi
11142 done
11143 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11144 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11145 # so we don't have lib.a shared libs to link our executables.
11146 # We have to force runtime linking in this case.
11147 aix_use_runtimelinking=yes
11148 LDFLAGS="$LDFLAGS -Wl,-brtl"
11149 fi
11150 ;;
11151 esac
11152
11153 exp_sym_flag='-bexport'
11154 no_entry_flag='-bnoentry'
11155 fi
11156
11157 # When large executables or shared objects are built, AIX ld can
11158 # have problems creating the table of contents. If linking a library
11159 # or program results in "error TOC overflow" add -mminimal-toc to
11160 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11161 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11162
11163 archive_cmds=''
11164 hardcode_direct=yes
11165 hardcode_direct_absolute=yes
11166 hardcode_libdir_separator=':'
11167 link_all_deplibs=yes
11168 file_list_spec='$wl-f,'
11169 case $with_aix_soname,$aix_use_runtimelinking in
11170 aix,*) ;; # traditional, no import file
11171 svr4,* | *,yes) # use import file
11172 # The Import File defines what to hardcode.
11173 hardcode_direct=no
11174 hardcode_direct_absolute=no
11175 ;;
11176 esac
11177
11178 if test yes = "$GCC"; then
11179 case $host_os in aix4.[012]|aix4.[012].*)
11180 # We only want to do this on AIX 4.2 and lower, the check
11181 # below for broken collect2 doesn't work under 4.3+
11182 collect2name=`$CC -print-prog-name=collect2`
11183 if test -f "$collect2name" &&
11184 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11185 then
11186 # We have reworked collect2
11187 :
11188 else
11189 # We have old collect2
11190 hardcode_direct=unsupported
11191 # It fails to find uninstalled libraries when the uninstalled
11192 # path is not listed in the libpath. Setting hardcode_minus_L
11193 # to unsupported forces relinking
11194 hardcode_minus_L=yes
11195 hardcode_libdir_flag_spec='-L$libdir'
11196 hardcode_libdir_separator=
11197 fi
11198 ;;
11199 esac
11200 shared_flag='-shared'
11201 if test yes = "$aix_use_runtimelinking"; then
11202 shared_flag="$shared_flag "'$wl-G'
11203 fi
11204 # Need to ensure runtime linking is disabled for the traditional
11205 # shared library, or the linker may eventually find shared libraries
11206 # /with/ Import File - we do not want to mix them.
11207 shared_flag_aix='-shared'
11208 shared_flag_svr4='-shared $wl-G'
11209 else
11210 # not using gcc
11211 if test ia64 = "$host_cpu"; then
11212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11213 # chokes on -Wl,-G. The following line is correct:
11214 shared_flag='-G'
11215 else
11216 if test yes = "$aix_use_runtimelinking"; then
11217 shared_flag='$wl-G'
11218 else
11219 shared_flag='$wl-bM:SRE'
11220 fi
11221 shared_flag_aix='$wl-bM:SRE'
11222 shared_flag_svr4='$wl-G'
11223 fi
11224 fi
11225
11226 export_dynamic_flag_spec='$wl-bexpall'
11227 # It seems that -bexpall does not export symbols beginning with
11228 # underscore (_), so it is better to generate a list of symbols to export.
11229 always_export_symbols=yes
11230 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11231 # Warning - without using the other runtime loading flags (-brtl),
11232 # -berok will link without error, but may produce a broken library.
11233 allow_undefined_flag='-berok'
11234 # Determine the default libpath from the value encoded in an
11235 # empty executable.
11236 if test set = "${lt_cv_aix_libpath+set}"; then
11237 aix_libpath=$lt_cv_aix_libpath
11238 else
11239 if test ${lt_cv_aix_libpath_+y}
11240 then :
11241 printf %s "(cached) " >&6
11242 else $as_nop
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245
11246 int
11247 main (void)
11248 {
11249
11250 ;
11251 return 0;
11252 }
11253 _ACEOF
11254 if ac_fn_c_try_link "$LINENO"
11255 then :
11256
11257 lt_aix_libpath_sed='
11258 /Import File Strings/,/^$/ {
11259 /^0/ {
11260 s/^0 *\([^ ]*\) *$/\1/
11261 p
11262 }
11263 }'
11264 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11265 # Check for a 64-bit object if we didn't find anything.
11266 if test -z "$lt_cv_aix_libpath_"; then
11267 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11268 fi
11269 fi
11270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11271 conftest$ac_exeext conftest.$ac_ext
11272 if test -z "$lt_cv_aix_libpath_"; then
11273 lt_cv_aix_libpath_=/usr/lib:/lib
11274 fi
11275
11276 fi
11277
11278 aix_libpath=$lt_cv_aix_libpath_
11279 fi
11280
11281 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11282 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
11283 else
11284 if test ia64 = "$host_cpu"; then
11285 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11286 allow_undefined_flag="-z nodefs"
11287 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"
11288 else
11289 # Determine the default libpath from the value encoded in an
11290 # empty executable.
11291 if test set = "${lt_cv_aix_libpath+set}"; then
11292 aix_libpath=$lt_cv_aix_libpath
11293 else
11294 if test ${lt_cv_aix_libpath_+y}
11295 then :
11296 printf %s "(cached) " >&6
11297 else $as_nop
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11300
11301 int
11302 main (void)
11303 {
11304
11305 ;
11306 return 0;
11307 }
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"
11310 then :
11311
11312 lt_aix_libpath_sed='
11313 /Import File Strings/,/^$/ {
11314 /^0/ {
11315 s/^0 *\([^ ]*\) *$/\1/
11316 p
11317 }
11318 }'
11319 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11320 # Check for a 64-bit object if we didn't find anything.
11321 if test -z "$lt_cv_aix_libpath_"; then
11322 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11323 fi
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11326 conftest$ac_exeext conftest.$ac_ext
11327 if test -z "$lt_cv_aix_libpath_"; then
11328 lt_cv_aix_libpath_=/usr/lib:/lib
11329 fi
11330
11331 fi
11332
11333 aix_libpath=$lt_cv_aix_libpath_
11334 fi
11335
11336 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11337 # Warning - without using the other run time loading flags,
11338 # -berok will link without error, but may produce a broken library.
11339 no_undefined_flag=' $wl-bernotok'
11340 allow_undefined_flag=' $wl-berok'
11341 if test yes = "$with_gnu_ld"; then
11342 # We only use this code for GNU lds that support --whole-archive.
11343 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11344 else
11345 # Exported symbols can be pulled into shared objects from archives
11346 whole_archive_flag_spec='$convenience'
11347 fi
11348 archive_cmds_need_lc=yes
11349 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11350 # -brtl affects multiple linker settings, -berok does not and is overridden later
11351 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11352 if test svr4 != "$with_aix_soname"; then
11353 # This is similar to how AIX traditionally builds its shared libraries.
11354 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'
11355 fi
11356 if test aix != "$with_aix_soname"; then
11357 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'
11358 else
11359 # used by -dlpreopen to get the symbols
11360 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11361 fi
11362 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11363 fi
11364 fi
11365 ;;
11366
11367 amigaos*)
11368 case $host_cpu in
11369 powerpc)
11370 # see comment about AmigaOS4 .so support
11371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11372 archive_expsym_cmds=''
11373 ;;
11374 m68k)
11375 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)'
11376 hardcode_libdir_flag_spec='-L$libdir'
11377 hardcode_minus_L=yes
11378 ;;
11379 esac
11380 ;;
11381
11382 bsdi[45]*)
11383 export_dynamic_flag_spec=-rdynamic
11384 ;;
11385
11386 cygwin* | mingw* | pw32* | cegcc*)
11387 # When not using gcc, we currently assume that we are using
11388 # Microsoft Visual C++.
11389 # hardcode_libdir_flag_spec is actually meaningless, as there is
11390 # no search path for DLLs.
11391 case $cc_basename in
11392 cl*)
11393 # Native MSVC
11394 hardcode_libdir_flag_spec=' '
11395 allow_undefined_flag=unsupported
11396 always_export_symbols=yes
11397 file_list_spec='@'
11398 # Tell ltmain to make .lib files, not .a files.
11399 libext=lib
11400 # Tell ltmain to make .dll files, not .so files.
11401 shrext_cmds=.dll
11402 # FIXME: Setting linknames here is a bad hack.
11403 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11404 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11405 cp "$export_symbols" "$output_objdir/$soname.def";
11406 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11407 else
11408 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11409 fi~
11410 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11411 linknames='
11412 # The linker will not automatically build a static lib if we build a DLL.
11413 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11414 enable_shared_with_static_runtimes=yes
11415 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11416 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11417 # Don't use ranlib
11418 old_postinstall_cmds='chmod 644 $oldlib'
11419 postlink_cmds='lt_outputfile="@OUTPUT@"~
11420 lt_tool_outputfile="@TOOL_OUTPUT@"~
11421 case $lt_outputfile in
11422 *.exe|*.EXE) ;;
11423 *)
11424 lt_outputfile=$lt_outputfile.exe
11425 lt_tool_outputfile=$lt_tool_outputfile.exe
11426 ;;
11427 esac~
11428 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11429 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11430 $RM "$lt_outputfile.manifest";
11431 fi'
11432 ;;
11433 *)
11434 # Assume MSVC wrapper
11435 hardcode_libdir_flag_spec=' '
11436 allow_undefined_flag=unsupported
11437 # Tell ltmain to make .lib files, not .a files.
11438 libext=lib
11439 # Tell ltmain to make .dll files, not .so files.
11440 shrext_cmds=.dll
11441 # FIXME: Setting linknames here is a bad hack.
11442 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11443 # The linker will automatically build a .lib file if we build a DLL.
11444 old_archive_from_new_cmds='true'
11445 # FIXME: Should let the user specify the lib program.
11446 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11447 enable_shared_with_static_runtimes=yes
11448 ;;
11449 esac
11450 ;;
11451
11452 darwin* | rhapsody*)
11453
11454
11455 archive_cmds_need_lc=no
11456 hardcode_direct=no
11457 hardcode_automatic=yes
11458 hardcode_shlibpath_var=unsupported
11459 if test yes = "$lt_cv_ld_force_load"; then
11460 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\"`'
11461
11462 else
11463 whole_archive_flag_spec=''
11464 fi
11465 link_all_deplibs=yes
11466 allow_undefined_flag=$_lt_dar_allow_undefined
11467 case $cc_basename in
11468 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11469 *) _lt_dar_can_shared=$GCC ;;
11470 esac
11471 if test yes = "$_lt_dar_can_shared"; then
11472 output_verbose_link_cmd=func_echo_all
11473 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11474 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11475 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"
11476 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"
11477
11478 else
11479 ld_shlibs=no
11480 fi
11481
11482 ;;
11483
11484 dgux*)
11485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11486 hardcode_libdir_flag_spec='-L$libdir'
11487 hardcode_shlibpath_var=no
11488 ;;
11489
11490 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11491 # support. Future versions do this automatically, but an explicit c++rt0.o
11492 # does not break anything, and helps significantly (at the cost of a little
11493 # extra space).
11494 freebsd2.2*)
11495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11496 hardcode_libdir_flag_spec='-R$libdir'
11497 hardcode_direct=yes
11498 hardcode_shlibpath_var=no
11499 ;;
11500
11501 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11502 freebsd2.*)
11503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11504 hardcode_direct=yes
11505 hardcode_minus_L=yes
11506 hardcode_shlibpath_var=no
11507 ;;
11508
11509 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11510 freebsd* | dragonfly*)
11511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11512 hardcode_libdir_flag_spec='-R$libdir'
11513 hardcode_direct=yes
11514 hardcode_shlibpath_var=no
11515 ;;
11516
11517 hpux9*)
11518 if test yes = "$GCC"; then
11519 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'
11520 else
11521 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'
11522 fi
11523 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11524 hardcode_libdir_separator=:
11525 hardcode_direct=yes
11526
11527 # hardcode_minus_L: Not really in the search PATH,
11528 # but as the default location of the library.
11529 hardcode_minus_L=yes
11530 export_dynamic_flag_spec='$wl-E'
11531 ;;
11532
11533 hpux10*)
11534 if test yes,no = "$GCC,$with_gnu_ld"; then
11535 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11536 else
11537 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11538 fi
11539 if test no = "$with_gnu_ld"; then
11540 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11541 hardcode_libdir_separator=:
11542 hardcode_direct=yes
11543 hardcode_direct_absolute=yes
11544 export_dynamic_flag_spec='$wl-E'
11545 # hardcode_minus_L: Not really in the search PATH,
11546 # but as the default location of the library.
11547 hardcode_minus_L=yes
11548 fi
11549 ;;
11550
11551 hpux11*)
11552 if test yes,no = "$GCC,$with_gnu_ld"; then
11553 case $host_cpu in
11554 hppa*64*)
11555 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11556 ;;
11557 ia64*)
11558 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11559 ;;
11560 *)
11561 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11562 ;;
11563 esac
11564 else
11565 case $host_cpu in
11566 hppa*64*)
11567 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11568 ;;
11569 ia64*)
11570 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11571 ;;
11572 *)
11573
11574 # Older versions of the 11.00 compiler do not understand -b yet
11575 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11577 printf %s "checking if $CC understands -b... " >&6; }
11578 if test ${lt_cv_prog_compiler__b+y}
11579 then :
11580 printf %s "(cached) " >&6
11581 else $as_nop
11582 lt_cv_prog_compiler__b=no
11583 save_LDFLAGS=$LDFLAGS
11584 LDFLAGS="$LDFLAGS -b"
11585 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11587 # The linker can only warn and ignore the option if not recognized
11588 # So say no if there are warnings
11589 if test -s conftest.err; then
11590 # Append any errors to the config.log.
11591 cat conftest.err 1>&5
11592 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11594 if diff conftest.exp conftest.er2 >/dev/null; then
11595 lt_cv_prog_compiler__b=yes
11596 fi
11597 else
11598 lt_cv_prog_compiler__b=yes
11599 fi
11600 fi
11601 $RM -r conftest*
11602 LDFLAGS=$save_LDFLAGS
11603
11604 fi
11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11606 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11607
11608 if test yes = "$lt_cv_prog_compiler__b"; then
11609 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11610 else
11611 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11612 fi
11613
11614 ;;
11615 esac
11616 fi
11617 if test no = "$with_gnu_ld"; then
11618 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11619 hardcode_libdir_separator=:
11620
11621 case $host_cpu in
11622 hppa*64*|ia64*)
11623 hardcode_direct=no
11624 hardcode_shlibpath_var=no
11625 ;;
11626 *)
11627 hardcode_direct=yes
11628 hardcode_direct_absolute=yes
11629 export_dynamic_flag_spec='$wl-E'
11630
11631 # hardcode_minus_L: Not really in the search PATH,
11632 # but as the default location of the library.
11633 hardcode_minus_L=yes
11634 ;;
11635 esac
11636 fi
11637 ;;
11638
11639 irix5* | irix6* | nonstopux*)
11640 if test yes = "$GCC"; then
11641 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'
11642 # Try to use the -exported_symbol ld option, if it does not
11643 # work, assume that -exports_file does not work either and
11644 # implicitly export all symbols.
11645 # This should be the same for all languages, so no per-tag cache variable.
11646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11647 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11648 if test ${lt_cv_irix_exported_symbol+y}
11649 then :
11650 printf %s "(cached) " >&6
11651 else $as_nop
11652 save_LDFLAGS=$LDFLAGS
11653 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11656 int foo (void) { return 0; }
11657 _ACEOF
11658 if ac_fn_c_try_link "$LINENO"
11659 then :
11660 lt_cv_irix_exported_symbol=yes
11661 else $as_nop
11662 lt_cv_irix_exported_symbol=no
11663 fi
11664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11665 conftest$ac_exeext conftest.$ac_ext
11666 LDFLAGS=$save_LDFLAGS
11667 fi
11668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11669 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11670 if test yes = "$lt_cv_irix_exported_symbol"; then
11671 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'
11672 fi
11673 else
11674 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'
11675 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'
11676 fi
11677 archive_cmds_need_lc='no'
11678 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11679 hardcode_libdir_separator=:
11680 inherit_rpath=yes
11681 link_all_deplibs=yes
11682 ;;
11683
11684 linux*)
11685 case $cc_basename in
11686 tcc*)
11687 # Fabrice Bellard et al's Tiny C Compiler
11688 ld_shlibs=yes
11689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11690 ;;
11691 esac
11692 ;;
11693
11694 netbsd*)
11695 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11697 else
11698 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11699 fi
11700 hardcode_libdir_flag_spec='-R$libdir'
11701 hardcode_direct=yes
11702 hardcode_shlibpath_var=no
11703 ;;
11704
11705 newsos6)
11706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11707 hardcode_direct=yes
11708 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11709 hardcode_libdir_separator=:
11710 hardcode_shlibpath_var=no
11711 ;;
11712
11713 *nto* | *qnx*)
11714 ;;
11715
11716 openbsd* | bitrig*)
11717 if test -f /usr/libexec/ld.so; then
11718 hardcode_direct=yes
11719 hardcode_shlibpath_var=no
11720 hardcode_direct_absolute=yes
11721 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11722 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11723 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11724 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11725 export_dynamic_flag_spec='$wl-E'
11726 else
11727 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11728 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11729 fi
11730 else
11731 ld_shlibs=no
11732 fi
11733 ;;
11734
11735 os2*)
11736 hardcode_libdir_flag_spec='-L$libdir'
11737 hardcode_minus_L=yes
11738 allow_undefined_flag=unsupported
11739 shrext_cmds=.dll
11740 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11741 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11742 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11743 $ECHO EXPORTS >> $output_objdir/$libname.def~
11744 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11745 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11746 emximp -o $lib $output_objdir/$libname.def'
11747 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11748 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11749 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11750 $ECHO EXPORTS >> $output_objdir/$libname.def~
11751 prefix_cmds="$SED"~
11752 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11753 prefix_cmds="$prefix_cmds -e 1d";
11754 fi~
11755 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11756 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11757 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11758 emximp -o $lib $output_objdir/$libname.def'
11759 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11760 enable_shared_with_static_runtimes=yes
11761 ;;
11762
11763 osf3*)
11764 if test yes = "$GCC"; then
11765 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11766 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'
11767 else
11768 allow_undefined_flag=' -expect_unresolved \*'
11769 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'
11770 fi
11771 archive_cmds_need_lc='no'
11772 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11773 hardcode_libdir_separator=:
11774 ;;
11775
11776 osf4* | osf5*) # as osf3* with the addition of -msym flag
11777 if test yes = "$GCC"; then
11778 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11779 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'
11780 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11781 else
11782 allow_undefined_flag=' -expect_unresolved \*'
11783 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'
11784 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~
11785 $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'
11786
11787 # Both c and cxx compiler support -rpath directly
11788 hardcode_libdir_flag_spec='-rpath $libdir'
11789 fi
11790 archive_cmds_need_lc='no'
11791 hardcode_libdir_separator=:
11792 ;;
11793
11794 solaris*)
11795 no_undefined_flag=' -z defs'
11796 if test yes = "$GCC"; then
11797 wlarc='$wl'
11798 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11799 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11800 $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'
11801 else
11802 case `$CC -V 2>&1` in
11803 *"Compilers 5.0"*)
11804 wlarc=''
11805 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11806 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11807 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11808 ;;
11809 *)
11810 wlarc='$wl'
11811 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11812 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11813 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11814 ;;
11815 esac
11816 fi
11817 hardcode_libdir_flag_spec='-R$libdir'
11818 hardcode_shlibpath_var=no
11819 case $host_os in
11820 solaris2.[0-5] | solaris2.[0-5].*) ;;
11821 *)
11822 # The compiler driver will combine and reorder linker options,
11823 # but understands '-z linker_flag'. GCC discards it without '$wl',
11824 # but is careful enough not to reorder.
11825 # Supported since Solaris 2.6 (maybe 2.5.1?)
11826 if test yes = "$GCC"; then
11827 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11828 else
11829 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11830 fi
11831 ;;
11832 esac
11833 link_all_deplibs=yes
11834 ;;
11835
11836 sunos4*)
11837 if test sequent = "$host_vendor"; then
11838 # Use $CC to link under sequent, because it throws in some extra .o
11839 # files that make .init and .fini sections work.
11840 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11841 else
11842 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11843 fi
11844 hardcode_libdir_flag_spec='-L$libdir'
11845 hardcode_direct=yes
11846 hardcode_minus_L=yes
11847 hardcode_shlibpath_var=no
11848 ;;
11849
11850 sysv4)
11851 case $host_vendor in
11852 sni)
11853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11854 hardcode_direct=yes # is this really true???
11855 ;;
11856 siemens)
11857 ## LD is ld it makes a PLAMLIB
11858 ## CC just makes a GrossModule.
11859 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11860 reload_cmds='$CC -r -o $output$reload_objs'
11861 hardcode_direct=no
11862 ;;
11863 motorola)
11864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11865 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11866 ;;
11867 esac
11868 runpath_var='LD_RUN_PATH'
11869 hardcode_shlibpath_var=no
11870 ;;
11871
11872 sysv4.3*)
11873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11874 hardcode_shlibpath_var=no
11875 export_dynamic_flag_spec='-Bexport'
11876 ;;
11877
11878 sysv4*MP*)
11879 if test -d /usr/nec; then
11880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11881 hardcode_shlibpath_var=no
11882 runpath_var=LD_RUN_PATH
11883 hardcode_runpath_var=yes
11884 ld_shlibs=yes
11885 fi
11886 ;;
11887
11888 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11889 no_undefined_flag='$wl-z,text'
11890 archive_cmds_need_lc=no
11891 hardcode_shlibpath_var=no
11892 runpath_var='LD_RUN_PATH'
11893
11894 if test yes = "$GCC"; then
11895 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11896 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11897 else
11898 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11899 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11900 fi
11901 ;;
11902
11903 sysv5* | sco3.2v5* | sco5v6*)
11904 # Note: We CANNOT use -z defs as we might desire, because we do not
11905 # link with -lc, and that would cause any symbols used from libc to
11906 # always be unresolved, which means just about no library would
11907 # ever link correctly. If we're not using GNU ld we use -z text
11908 # though, which does catch some bad symbols but isn't as heavy-handed
11909 # as -z defs.
11910 no_undefined_flag='$wl-z,text'
11911 allow_undefined_flag='$wl-z,nodefs'
11912 archive_cmds_need_lc=no
11913 hardcode_shlibpath_var=no
11914 hardcode_libdir_flag_spec='$wl-R,$libdir'
11915 hardcode_libdir_separator=':'
11916 link_all_deplibs=yes
11917 export_dynamic_flag_spec='$wl-Bexport'
11918 runpath_var='LD_RUN_PATH'
11919
11920 if test yes = "$GCC"; then
11921 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11922 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11923 else
11924 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11925 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11926 fi
11927 ;;
11928
11929 uts4*)
11930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11931 hardcode_libdir_flag_spec='-L$libdir'
11932 hardcode_shlibpath_var=no
11933 ;;
11934
11935 *)
11936 ld_shlibs=no
11937 ;;
11938 esac
11939
11940 if test sni = "$host_vendor"; then
11941 case $host in
11942 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11943 export_dynamic_flag_spec='$wl-Blargedynsym'
11944 ;;
11945 esac
11946 fi
11947 fi
11948
11949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11950 printf "%s\n" "$ld_shlibs" >&6; }
11951 test no = "$ld_shlibs" && can_build_shared=no
11952
11953 with_gnu_ld=$with_gnu_ld
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969 #
11970 # Do we need to explicitly link libc?
11971 #
11972 case "x$archive_cmds_need_lc" in
11973 x|xyes)
11974 # Assume -lc should be added
11975 archive_cmds_need_lc=yes
11976
11977 if test yes,yes = "$GCC,$enable_shared"; then
11978 case $archive_cmds in
11979 *'~'*)
11980 # FIXME: we may have to deal with multi-command sequences.
11981 ;;
11982 '$CC '*)
11983 # Test whether the compiler implicitly links with -lc since on some
11984 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11985 # to ld, don't add -lc before -lgcc.
11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11987 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11988 if test ${lt_cv_archive_cmds_need_lc+y}
11989 then :
11990 printf %s "(cached) " >&6
11991 else $as_nop
11992 $RM conftest*
11993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11994
11995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11996 (eval $ac_compile) 2>&5
11997 ac_status=$?
11998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11999 test $ac_status = 0; } 2>conftest.err; then
12000 soname=conftest
12001 lib=conftest
12002 libobjs=conftest.$ac_objext
12003 deplibs=
12004 wl=$lt_prog_compiler_wl
12005 pic_flag=$lt_prog_compiler_pic
12006 compiler_flags=-v
12007 linker_flags=-v
12008 verstring=
12009 output_objdir=.
12010 libname=conftest
12011 lt_save_allow_undefined_flag=$allow_undefined_flag
12012 allow_undefined_flag=
12013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12014 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12015 ac_status=$?
12016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12017 test $ac_status = 0; }
12018 then
12019 lt_cv_archive_cmds_need_lc=no
12020 else
12021 lt_cv_archive_cmds_need_lc=yes
12022 fi
12023 allow_undefined_flag=$lt_save_allow_undefined_flag
12024 else
12025 cat conftest.err 1>&5
12026 fi
12027 $RM conftest*
12028
12029 fi
12030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12031 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12032 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12033 ;;
12034 esac
12035 fi
12036 ;;
12037 esac
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12191 printf %s "checking dynamic linker characteristics... " >&6; }
12192
12193 if test yes = "$GCC"; then
12194 case $host_os in
12195 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12196 *) lt_awk_arg='/^libraries:/' ;;
12197 esac
12198 case $host_os in
12199 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12200 *) lt_sed_strip_eq='s|=/|/|g' ;;
12201 esac
12202 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12203 case $lt_search_path_spec in
12204 *\;*)
12205 # if the path contains ";" then we assume it to be the separator
12206 # otherwise default to the standard path separator (i.e. ":") - it is
12207 # assumed that no part of a normal pathname contains ";" but that should
12208 # okay in the real world where ";" in dirpaths is itself problematic.
12209 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12210 ;;
12211 *)
12212 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12213 ;;
12214 esac
12215 # Ok, now we have the path, separated by spaces, we can step through it
12216 # and add multilib dir if necessary...
12217 lt_tmp_lt_search_path_spec=
12218 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12219 # ...but if some path component already ends with the multilib dir we assume
12220 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12221 case "$lt_multi_os_dir; $lt_search_path_spec " in
12222 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12223 lt_multi_os_dir=
12224 ;;
12225 esac
12226 for lt_sys_path in $lt_search_path_spec; do
12227 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12229 elif test -n "$lt_multi_os_dir"; then
12230 test -d "$lt_sys_path" && \
12231 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12232 fi
12233 done
12234 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12235 BEGIN {RS = " "; FS = "/|\n";} {
12236 lt_foo = "";
12237 lt_count = 0;
12238 for (lt_i = NF; lt_i > 0; lt_i--) {
12239 if ($lt_i != "" && $lt_i != ".") {
12240 if ($lt_i == "..") {
12241 lt_count++;
12242 } else {
12243 if (lt_count == 0) {
12244 lt_foo = "/" $lt_i lt_foo;
12245 } else {
12246 lt_count--;
12247 }
12248 }
12249 }
12250 }
12251 if (lt_foo != "") { lt_freq[lt_foo]++; }
12252 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12253 }'`
12254 # AWK program above erroneously prepends '/' to C:/dos/paths
12255 # for these hosts.
12256 case $host_os in
12257 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12258 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12259 esac
12260 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12261 else
12262 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12263 fi
12264 library_names_spec=
12265 libname_spec='lib$name'
12266 soname_spec=
12267 shrext_cmds=.so
12268 postinstall_cmds=
12269 postuninstall_cmds=
12270 finish_cmds=
12271 finish_eval=
12272 shlibpath_var=
12273 shlibpath_overrides_runpath=unknown
12274 version_type=none
12275 dynamic_linker="$host_os ld.so"
12276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12277 need_lib_prefix=unknown
12278 hardcode_into_libs=no
12279
12280 # when you set need_version to no, make sure it does not cause -set_version
12281 # flags to be left without arguments
12282 need_version=unknown
12283
12284
12285
12286 case $host_os in
12287 aix3*)
12288 version_type=linux # correct to gnu/linux during the next big refactor
12289 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12290 shlibpath_var=LIBPATH
12291
12292 # AIX 3 has no versioning support, so we append a major version to the name.
12293 soname_spec='$libname$release$shared_ext$major'
12294 ;;
12295
12296 aix[4-9]*)
12297 version_type=linux # correct to gnu/linux during the next big refactor
12298 need_lib_prefix=no
12299 need_version=no
12300 hardcode_into_libs=yes
12301 if test ia64 = "$host_cpu"; then
12302 # AIX 5 supports IA64
12303 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12304 shlibpath_var=LD_LIBRARY_PATH
12305 else
12306 # With GCC up to 2.95.x, collect2 would create an import file
12307 # for dependence libraries. The import file would start with
12308 # the line '#! .'. This would cause the generated library to
12309 # depend on '.', always an invalid library. This was fixed in
12310 # development snapshots of GCC prior to 3.0.
12311 case $host_os in
12312 aix4 | aix4.[01] | aix4.[01].*)
12313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12314 echo ' yes '
12315 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12316 :
12317 else
12318 can_build_shared=no
12319 fi
12320 ;;
12321 esac
12322 # Using Import Files as archive members, it is possible to support
12323 # filename-based versioning of shared library archives on AIX. While
12324 # this would work for both with and without runtime linking, it will
12325 # prevent static linking of such archives. So we do filename-based
12326 # shared library versioning with .so extension only, which is used
12327 # when both runtime linking and shared linking is enabled.
12328 # Unfortunately, runtime linking may impact performance, so we do
12329 # not want this to be the default eventually. Also, we use the
12330 # versioned .so libs for executables only if there is the -brtl
12331 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12332 # To allow for filename-based versioning support, we need to create
12333 # libNAME.so.V as an archive file, containing:
12334 # *) an Import File, referring to the versioned filename of the
12335 # archive as well as the shared archive member, telling the
12336 # bitwidth (32 or 64) of that shared object, and providing the
12337 # list of exported symbols of that shared object, eventually
12338 # decorated with the 'weak' keyword
12339 # *) the shared object with the F_LOADONLY flag set, to really avoid
12340 # it being seen by the linker.
12341 # At run time we better use the real file rather than another symlink,
12342 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12343
12344 case $with_aix_soname,$aix_use_runtimelinking in
12345 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12346 # soname into executable. Probably we can add versioning support to
12347 # collect2, so additional links can be useful in future.
12348 aix,yes) # traditional libtool
12349 dynamic_linker='AIX unversionable lib.so'
12350 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12351 # instead of lib<name>.a to let people know that these are not
12352 # typical AIX shared libraries.
12353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12354 ;;
12355 aix,no) # traditional AIX only
12356 dynamic_linker='AIX lib.a(lib.so.V)'
12357 # We preserve .a as extension for shared libraries through AIX4.2
12358 # and later when we are not doing run time linking.
12359 library_names_spec='$libname$release.a $libname.a'
12360 soname_spec='$libname$release$shared_ext$major'
12361 ;;
12362 svr4,*) # full svr4 only
12363 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12364 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12365 # We do not specify a path in Import Files, so LIBPATH fires.
12366 shlibpath_overrides_runpath=yes
12367 ;;
12368 *,yes) # both, prefer svr4
12369 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12370 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12371 # unpreferred sharedlib libNAME.a needs extra handling
12372 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"'
12373 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"'
12374 # We do not specify a path in Import Files, so LIBPATH fires.
12375 shlibpath_overrides_runpath=yes
12376 ;;
12377 *,no) # both, prefer aix
12378 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12379 library_names_spec='$libname$release.a $libname.a'
12380 soname_spec='$libname$release$shared_ext$major'
12381 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12382 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)'
12383 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"'
12384 ;;
12385 esac
12386 shlibpath_var=LIBPATH
12387 fi
12388 ;;
12389
12390 amigaos*)
12391 case $host_cpu in
12392 powerpc)
12393 # Since July 2007 AmigaOS4 officially supports .so libraries.
12394 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12396 ;;
12397 m68k)
12398 library_names_spec='$libname.ixlibrary $libname.a'
12399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12400 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'
12401 ;;
12402 esac
12403 ;;
12404
12405 beos*)
12406 library_names_spec='$libname$shared_ext'
12407 dynamic_linker="$host_os ld.so"
12408 shlibpath_var=LIBRARY_PATH
12409 ;;
12410
12411 bsdi[45]*)
12412 version_type=linux # correct to gnu/linux during the next big refactor
12413 need_version=no
12414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12415 soname_spec='$libname$release$shared_ext$major'
12416 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12417 shlibpath_var=LD_LIBRARY_PATH
12418 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12419 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12420 # the default ld.so.conf also contains /usr/contrib/lib and
12421 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12422 # libtool to hard-code these into programs
12423 ;;
12424
12425 cygwin* | mingw* | pw32* | cegcc*)
12426 version_type=windows
12427 shrext_cmds=.dll
12428 need_version=no
12429 need_lib_prefix=no
12430
12431 case $GCC,$cc_basename in
12432 yes,*)
12433 # gcc
12434 library_names_spec='$libname.dll.a'
12435 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12436 postinstall_cmds='base_file=`basename \$file`~
12437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12438 dldir=$destdir/`dirname \$dlpath`~
12439 test -d \$dldir || mkdir -p \$dldir~
12440 $install_prog $dir/$dlname \$dldir/$dlname~
12441 chmod a+x \$dldir/$dlname~
12442 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12443 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12444 fi'
12445 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12446 dlpath=$dir/\$dldll~
12447 $RM \$dlpath'
12448 shlibpath_overrides_runpath=yes
12449
12450 case $host_os in
12451 cygwin*)
12452 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12453 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12454
12455 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12456 ;;
12457 mingw* | cegcc*)
12458 # MinGW DLLs use traditional 'lib' prefix
12459 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12460 ;;
12461 pw32*)
12462 # pw32 DLLs use 'pw' prefix rather than 'lib'
12463 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12464 ;;
12465 esac
12466 dynamic_linker='Win32 ld.exe'
12467 ;;
12468
12469 *,cl*)
12470 # Native MSVC
12471 libname_spec='$name'
12472 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12473 library_names_spec='$libname.dll.lib'
12474
12475 case $build_os in
12476 mingw*)
12477 sys_lib_search_path_spec=
12478 lt_save_ifs=$IFS
12479 IFS=';'
12480 for lt_path in $LIB
12481 do
12482 IFS=$lt_save_ifs
12483 # Let DOS variable expansion print the short 8.3 style file name.
12484 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12485 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12486 done
12487 IFS=$lt_save_ifs
12488 # Convert to MSYS style.
12489 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12490 ;;
12491 cygwin*)
12492 # Convert to unix form, then to dos form, then back to unix form
12493 # but this time dos style (no spaces!) so that the unix form looks
12494 # like /cygdrive/c/PROGRA~1:/cygdr...
12495 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12496 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12497 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12498 ;;
12499 *)
12500 sys_lib_search_path_spec=$LIB
12501 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12502 # It is most probably a Windows format PATH.
12503 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12504 else
12505 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12506 fi
12507 # FIXME: find the short name or the path components, as spaces are
12508 # common. (e.g. "Program Files" -> "PROGRA~1")
12509 ;;
12510 esac
12511
12512 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12513 postinstall_cmds='base_file=`basename \$file`~
12514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12515 dldir=$destdir/`dirname \$dlpath`~
12516 test -d \$dldir || mkdir -p \$dldir~
12517 $install_prog $dir/$dlname \$dldir/$dlname'
12518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12519 dlpath=$dir/\$dldll~
12520 $RM \$dlpath'
12521 shlibpath_overrides_runpath=yes
12522 dynamic_linker='Win32 link.exe'
12523 ;;
12524
12525 *)
12526 # Assume MSVC wrapper
12527 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12528 dynamic_linker='Win32 ld.exe'
12529 ;;
12530 esac
12531 # FIXME: first we should search . and the directory the executable is in
12532 shlibpath_var=PATH
12533 ;;
12534
12535 darwin* | rhapsody*)
12536 dynamic_linker="$host_os dyld"
12537 version_type=darwin
12538 need_lib_prefix=no
12539 need_version=no
12540 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12541 soname_spec='$libname$release$major$shared_ext'
12542 shlibpath_overrides_runpath=yes
12543 shlibpath_var=DYLD_LIBRARY_PATH
12544 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12545
12546 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12547 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12548 ;;
12549
12550 dgux*)
12551 version_type=linux # correct to gnu/linux during the next big refactor
12552 need_lib_prefix=no
12553 need_version=no
12554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12555 soname_spec='$libname$release$shared_ext$major'
12556 shlibpath_var=LD_LIBRARY_PATH
12557 ;;
12558
12559 freebsd* | dragonfly*)
12560 # DragonFly does not have aout. When/if they implement a new
12561 # versioning mechanism, adjust this.
12562 if test -x /usr/bin/objformat; then
12563 objformat=`/usr/bin/objformat`
12564 else
12565 case $host_os in
12566 freebsd[23].*) objformat=aout ;;
12567 *) objformat=elf ;;
12568 esac
12569 fi
12570 version_type=freebsd-$objformat
12571 case $version_type in
12572 freebsd-elf*)
12573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12574 soname_spec='$libname$release$shared_ext$major'
12575 need_version=no
12576 need_lib_prefix=no
12577 ;;
12578 freebsd-*)
12579 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12580 need_version=yes
12581 ;;
12582 esac
12583 shlibpath_var=LD_LIBRARY_PATH
12584 case $host_os in
12585 freebsd2.*)
12586 shlibpath_overrides_runpath=yes
12587 ;;
12588 freebsd3.[01]* | freebsdelf3.[01]*)
12589 shlibpath_overrides_runpath=yes
12590 hardcode_into_libs=yes
12591 ;;
12592 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12593 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12594 shlibpath_overrides_runpath=no
12595 hardcode_into_libs=yes
12596 ;;
12597 *) # from 4.6 on, and DragonFly
12598 shlibpath_overrides_runpath=yes
12599 hardcode_into_libs=yes
12600 ;;
12601 esac
12602 ;;
12603
12604 haiku*)
12605 version_type=linux # correct to gnu/linux during the next big refactor
12606 need_lib_prefix=no
12607 need_version=no
12608 dynamic_linker="$host_os runtime_loader"
12609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12610 soname_spec='$libname$release$shared_ext$major'
12611 shlibpath_var=LIBRARY_PATH
12612 shlibpath_overrides_runpath=no
12613 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12614 hardcode_into_libs=yes
12615 ;;
12616
12617 hpux9* | hpux10* | hpux11*)
12618 # Give a soname corresponding to the major version so that dld.sl refuses to
12619 # link against other versions.
12620 version_type=sunos
12621 need_lib_prefix=no
12622 need_version=no
12623 case $host_cpu in
12624 ia64*)
12625 shrext_cmds='.so'
12626 hardcode_into_libs=yes
12627 dynamic_linker="$host_os dld.so"
12628 shlibpath_var=LD_LIBRARY_PATH
12629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12631 soname_spec='$libname$release$shared_ext$major'
12632 if test 32 = "$HPUX_IA64_MODE"; then
12633 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12634 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12635 else
12636 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12637 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12638 fi
12639 ;;
12640 hppa*64*)
12641 shrext_cmds='.sl'
12642 hardcode_into_libs=yes
12643 dynamic_linker="$host_os dld.sl"
12644 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12647 soname_spec='$libname$release$shared_ext$major'
12648 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12649 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12650 ;;
12651 *)
12652 shrext_cmds='.sl'
12653 dynamic_linker="$host_os dld.sl"
12654 shlibpath_var=SHLIB_PATH
12655 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12657 soname_spec='$libname$release$shared_ext$major'
12658 ;;
12659 esac
12660 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12661 postinstall_cmds='chmod 555 $lib'
12662 # or fails outright, so override atomically:
12663 install_override_mode=555
12664 ;;
12665
12666 interix[3-9]*)
12667 version_type=linux # correct to gnu/linux during the next big refactor
12668 need_lib_prefix=no
12669 need_version=no
12670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12671 soname_spec='$libname$release$shared_ext$major'
12672 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12673 shlibpath_var=LD_LIBRARY_PATH
12674 shlibpath_overrides_runpath=no
12675 hardcode_into_libs=yes
12676 ;;
12677
12678 irix5* | irix6* | nonstopux*)
12679 case $host_os in
12680 nonstopux*) version_type=nonstopux ;;
12681 *)
12682 if test yes = "$lt_cv_prog_gnu_ld"; then
12683 version_type=linux # correct to gnu/linux during the next big refactor
12684 else
12685 version_type=irix
12686 fi ;;
12687 esac
12688 need_lib_prefix=no
12689 need_version=no
12690 soname_spec='$libname$release$shared_ext$major'
12691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12692 case $host_os in
12693 irix5* | nonstopux*)
12694 libsuff= shlibsuff=
12695 ;;
12696 *)
12697 case $LD in # libtool.m4 will add one of these switches to LD
12698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12699 libsuff= shlibsuff= libmagic=32-bit;;
12700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12701 libsuff=32 shlibsuff=N32 libmagic=N32;;
12702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12703 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12704 *) libsuff= shlibsuff= libmagic=never-match;;
12705 esac
12706 ;;
12707 esac
12708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12709 shlibpath_overrides_runpath=no
12710 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12711 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12712 hardcode_into_libs=yes
12713 ;;
12714
12715 # No shared lib support for Linux oldld, aout, or coff.
12716 linux*oldld* | linux*aout* | linux*coff*)
12717 dynamic_linker=no
12718 ;;
12719
12720 linux*android*)
12721 version_type=none # Android doesn't support versioned libraries.
12722 need_lib_prefix=no
12723 need_version=no
12724 library_names_spec='$libname$release$shared_ext'
12725 soname_spec='$libname$release$shared_ext'
12726 finish_cmds=
12727 shlibpath_var=LD_LIBRARY_PATH
12728 shlibpath_overrides_runpath=yes
12729
12730 # This implies no fast_install, which is unacceptable.
12731 # Some rework will be needed to allow for fast_install
12732 # before this can be enabled.
12733 hardcode_into_libs=yes
12734
12735 dynamic_linker='Android linker'
12736 # Don't embed -rpath directories since the linker doesn't support them.
12737 hardcode_libdir_flag_spec='-L$libdir'
12738 ;;
12739
12740 # This must be glibc/ELF.
12741 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12742 version_type=linux # correct to gnu/linux during the next big refactor
12743 need_lib_prefix=no
12744 need_version=no
12745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12746 soname_spec='$libname$release$shared_ext$major'
12747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12748 shlibpath_var=LD_LIBRARY_PATH
12749 shlibpath_overrides_runpath=no
12750
12751 # Some binutils ld are patched to set DT_RUNPATH
12752 if test ${lt_cv_shlibpath_overrides_runpath+y}
12753 then :
12754 printf %s "(cached) " >&6
12755 else $as_nop
12756 lt_cv_shlibpath_overrides_runpath=no
12757 save_LDFLAGS=$LDFLAGS
12758 save_libdir=$libdir
12759 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12760 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12763
12764 int
12765 main (void)
12766 {
12767
12768 ;
12769 return 0;
12770 }
12771 _ACEOF
12772 if ac_fn_c_try_link "$LINENO"
12773 then :
12774 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12775 then :
12776 lt_cv_shlibpath_overrides_runpath=yes
12777 fi
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12780 conftest$ac_exeext conftest.$ac_ext
12781 LDFLAGS=$save_LDFLAGS
12782 libdir=$save_libdir
12783
12784 fi
12785
12786 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12787
12788 # This implies no fast_install, which is unacceptable.
12789 # Some rework will be needed to allow for fast_install
12790 # before this can be enabled.
12791 hardcode_into_libs=yes
12792
12793 # Add ABI-specific directories to the system library path.
12794 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12795
12796 # Ideally, we could use ldconfig to report *all* directores which are
12797 # searched for libraries, however this is still not possible. Aside from not
12798 # being certain /sbin/ldconfig is available, command
12799 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12800 # even though it is searched at run-time. Try to do the best guess by
12801 # appending ld.so.conf contents (and includes) to the search path.
12802 if test -f /etc/ld.so.conf; then
12803 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' ' '`
12804 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12805 fi
12806
12807 # We used to test for /lib/ld.so.1 and disable shared libraries on
12808 # powerpc, because MkLinux only supported shared libraries with the
12809 # GNU dynamic linker. Since this was broken with cross compilers,
12810 # most powerpc-linux boxes support dynamic linking these days and
12811 # people can always --disable-shared, the test was removed, and we
12812 # assume the GNU/Linux dynamic linker is in use.
12813 dynamic_linker='GNU/Linux ld.so'
12814 ;;
12815
12816 netbsd*)
12817 version_type=sunos
12818 need_lib_prefix=no
12819 need_version=no
12820 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12821 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12823 dynamic_linker='NetBSD (a.out) ld.so'
12824 else
12825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12826 soname_spec='$libname$release$shared_ext$major'
12827 dynamic_linker='NetBSD ld.elf_so'
12828 fi
12829 shlibpath_var=LD_LIBRARY_PATH
12830 shlibpath_overrides_runpath=yes
12831 hardcode_into_libs=yes
12832 ;;
12833
12834 newsos6)
12835 version_type=linux # correct to gnu/linux during the next big refactor
12836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12837 shlibpath_var=LD_LIBRARY_PATH
12838 shlibpath_overrides_runpath=yes
12839 ;;
12840
12841 *nto* | *qnx*)
12842 version_type=qnx
12843 need_lib_prefix=no
12844 need_version=no
12845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12846 soname_spec='$libname$release$shared_ext$major'
12847 shlibpath_var=LD_LIBRARY_PATH
12848 shlibpath_overrides_runpath=no
12849 hardcode_into_libs=yes
12850 dynamic_linker='ldqnx.so'
12851 ;;
12852
12853 openbsd* | bitrig*)
12854 version_type=sunos
12855 sys_lib_dlsearch_path_spec=/usr/lib
12856 need_lib_prefix=no
12857 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12858 need_version=no
12859 else
12860 need_version=yes
12861 fi
12862 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12864 shlibpath_var=LD_LIBRARY_PATH
12865 shlibpath_overrides_runpath=yes
12866 ;;
12867
12868 os2*)
12869 libname_spec='$name'
12870 version_type=windows
12871 shrext_cmds=.dll
12872 need_version=no
12873 need_lib_prefix=no
12874 # OS/2 can only load a DLL with a base name of 8 characters or less.
12875 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12876 v=$($ECHO $release$versuffix | tr -d .-);
12877 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12878 $ECHO $n$v`$shared_ext'
12879 library_names_spec='${libname}_dll.$libext'
12880 dynamic_linker='OS/2 ld.exe'
12881 shlibpath_var=BEGINLIBPATH
12882 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12884 postinstall_cmds='base_file=`basename \$file`~
12885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12886 dldir=$destdir/`dirname \$dlpath`~
12887 test -d \$dldir || mkdir -p \$dldir~
12888 $install_prog $dir/$dlname \$dldir/$dlname~
12889 chmod a+x \$dldir/$dlname~
12890 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12891 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12892 fi'
12893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12894 dlpath=$dir/\$dldll~
12895 $RM \$dlpath'
12896 ;;
12897
12898 osf3* | osf4* | osf5*)
12899 version_type=osf
12900 need_lib_prefix=no
12901 need_version=no
12902 soname_spec='$libname$release$shared_ext$major'
12903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12904 shlibpath_var=LD_LIBRARY_PATH
12905 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12907 ;;
12908
12909 rdos*)
12910 dynamic_linker=no
12911 ;;
12912
12913 solaris*)
12914 version_type=linux # correct to gnu/linux during the next big refactor
12915 need_lib_prefix=no
12916 need_version=no
12917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12918 soname_spec='$libname$release$shared_ext$major'
12919 shlibpath_var=LD_LIBRARY_PATH
12920 shlibpath_overrides_runpath=yes
12921 hardcode_into_libs=yes
12922 # ldd complains unless libraries are executable
12923 postinstall_cmds='chmod +x $lib'
12924 ;;
12925
12926 sunos4*)
12927 version_type=sunos
12928 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12929 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12930 shlibpath_var=LD_LIBRARY_PATH
12931 shlibpath_overrides_runpath=yes
12932 if test yes = "$with_gnu_ld"; then
12933 need_lib_prefix=no
12934 fi
12935 need_version=yes
12936 ;;
12937
12938 sysv4 | sysv4.3*)
12939 version_type=linux # correct to gnu/linux during the next big refactor
12940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12941 soname_spec='$libname$release$shared_ext$major'
12942 shlibpath_var=LD_LIBRARY_PATH
12943 case $host_vendor in
12944 sni)
12945 shlibpath_overrides_runpath=no
12946 need_lib_prefix=no
12947 runpath_var=LD_RUN_PATH
12948 ;;
12949 siemens)
12950 need_lib_prefix=no
12951 ;;
12952 motorola)
12953 need_lib_prefix=no
12954 need_version=no
12955 shlibpath_overrides_runpath=no
12956 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12957 ;;
12958 esac
12959 ;;
12960
12961 sysv4*MP*)
12962 if test -d /usr/nec; then
12963 version_type=linux # correct to gnu/linux during the next big refactor
12964 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12965 soname_spec='$libname$shared_ext.$major'
12966 shlibpath_var=LD_LIBRARY_PATH
12967 fi
12968 ;;
12969
12970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12971 version_type=sco
12972 need_lib_prefix=no
12973 need_version=no
12974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12975 soname_spec='$libname$release$shared_ext$major'
12976 shlibpath_var=LD_LIBRARY_PATH
12977 shlibpath_overrides_runpath=yes
12978 hardcode_into_libs=yes
12979 if test yes = "$with_gnu_ld"; then
12980 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12981 else
12982 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12983 case $host_os in
12984 sco3.2v5*)
12985 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12986 ;;
12987 esac
12988 fi
12989 sys_lib_dlsearch_path_spec='/usr/lib'
12990 ;;
12991
12992 tpf*)
12993 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12994 version_type=linux # correct to gnu/linux during the next big refactor
12995 need_lib_prefix=no
12996 need_version=no
12997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12998 shlibpath_var=LD_LIBRARY_PATH
12999 shlibpath_overrides_runpath=no
13000 hardcode_into_libs=yes
13001 ;;
13002
13003 uts4*)
13004 version_type=linux # correct to gnu/linux during the next big refactor
13005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13006 soname_spec='$libname$release$shared_ext$major'
13007 shlibpath_var=LD_LIBRARY_PATH
13008 ;;
13009
13010 *)
13011 dynamic_linker=no
13012 ;;
13013 esac
13014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13015 printf "%s\n" "$dynamic_linker" >&6; }
13016 test no = "$dynamic_linker" && can_build_shared=no
13017
13018 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13019 if test yes = "$GCC"; then
13020 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13021 fi
13022
13023 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13024 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13025 fi
13026
13027 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13028 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13029 fi
13030
13031 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13032 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13033
13034 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13035 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13036
13037 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13038 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13137 printf %s "checking how to hardcode library paths into programs... " >&6; }
13138 hardcode_action=
13139 if test -n "$hardcode_libdir_flag_spec" ||
13140 test -n "$runpath_var" ||
13141 test yes = "$hardcode_automatic"; then
13142
13143 # We can hardcode non-existent directories.
13144 if test no != "$hardcode_direct" &&
13145 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13146 # have to relink, otherwise we might link with an installed library
13147 # when we should be linking with a yet-to-be-installed one
13148 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13149 test no != "$hardcode_minus_L"; then
13150 # Linking always hardcodes the temporary library directory.
13151 hardcode_action=relink
13152 else
13153 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13154 hardcode_action=immediate
13155 fi
13156 else
13157 # We cannot hardcode anything, or else we can only hardcode existing
13158 # directories.
13159 hardcode_action=unsupported
13160 fi
13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13162 printf "%s\n" "$hardcode_action" >&6; }
13163
13164 if test relink = "$hardcode_action" ||
13165 test yes = "$inherit_rpath"; then
13166 # Fast installation is not supported
13167 enable_fast_install=no
13168 elif test yes = "$shlibpath_overrides_runpath" ||
13169 test no = "$enable_shared"; then
13170 # Fast installation is not necessary
13171 enable_fast_install=needless
13172 fi
13173
13174
13175
13176
13177
13178
13179 if test yes != "$enable_dlopen"; then
13180 enable_dlopen=unknown
13181 enable_dlopen_self=unknown
13182 enable_dlopen_self_static=unknown
13183 else
13184 lt_cv_dlopen=no
13185 lt_cv_dlopen_libs=
13186
13187 case $host_os in
13188 beos*)
13189 lt_cv_dlopen=load_add_on
13190 lt_cv_dlopen_libs=
13191 lt_cv_dlopen_self=yes
13192 ;;
13193
13194 mingw* | pw32* | cegcc*)
13195 lt_cv_dlopen=LoadLibrary
13196 lt_cv_dlopen_libs=
13197 ;;
13198
13199 cygwin*)
13200 lt_cv_dlopen=dlopen
13201 lt_cv_dlopen_libs=
13202 ;;
13203
13204 darwin*)
13205 # if libdl is installed we need to link against it
13206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13207 printf %s "checking for dlopen in -ldl... " >&6; }
13208 if test ${ac_cv_lib_dl_dlopen+y}
13209 then :
13210 printf %s "(cached) " >&6
13211 else $as_nop
13212 ac_check_lib_save_LIBS=$LIBS
13213 LIBS="-ldl $LIBS"
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13216
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13220 char dlopen ();
13221 int
13222 main (void)
13223 {
13224 return dlopen ();
13225 ;
13226 return 0;
13227 }
13228 _ACEOF
13229 if ac_fn_c_try_link "$LINENO"
13230 then :
13231 ac_cv_lib_dl_dlopen=yes
13232 else $as_nop
13233 ac_cv_lib_dl_dlopen=no
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13236 conftest$ac_exeext conftest.$ac_ext
13237 LIBS=$ac_check_lib_save_LIBS
13238 fi
13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13240 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13241 if test "x$ac_cv_lib_dl_dlopen" = xyes
13242 then :
13243 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13244 else $as_nop
13245
13246 lt_cv_dlopen=dyld
13247 lt_cv_dlopen_libs=
13248 lt_cv_dlopen_self=yes
13249
13250 fi
13251
13252 ;;
13253
13254 tpf*)
13255 # Don't try to run any link tests for TPF. We know it's impossible
13256 # because TPF is a cross-compiler, and we know how we open DSOs.
13257 lt_cv_dlopen=dlopen
13258 lt_cv_dlopen_libs=
13259 lt_cv_dlopen_self=no
13260 ;;
13261
13262 *)
13263 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13264 if test "x$ac_cv_func_shl_load" = xyes
13265 then :
13266 lt_cv_dlopen=shl_load
13267 else $as_nop
13268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13269 printf %s "checking for shl_load in -ldld... " >&6; }
13270 if test ${ac_cv_lib_dld_shl_load+y}
13271 then :
13272 printf %s "(cached) " >&6
13273 else $as_nop
13274 ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-ldld $LIBS"
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13282 char shl_load ();
13283 int
13284 main (void)
13285 {
13286 return shl_load ();
13287 ;
13288 return 0;
13289 }
13290 _ACEOF
13291 if ac_fn_c_try_link "$LINENO"
13292 then :
13293 ac_cv_lib_dld_shl_load=yes
13294 else $as_nop
13295 ac_cv_lib_dld_shl_load=no
13296 fi
13297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13298 conftest$ac_exeext conftest.$ac_ext
13299 LIBS=$ac_check_lib_save_LIBS
13300 fi
13301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13302 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13303 if test "x$ac_cv_lib_dld_shl_load" = xyes
13304 then :
13305 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13306 else $as_nop
13307 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13308 if test "x$ac_cv_func_dlopen" = xyes
13309 then :
13310 lt_cv_dlopen=dlopen
13311 else $as_nop
13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13313 printf %s "checking for dlopen in -ldl... " >&6; }
13314 if test ${ac_cv_lib_dl_dlopen+y}
13315 then :
13316 printf %s "(cached) " >&6
13317 else $as_nop
13318 ac_check_lib_save_LIBS=$LIBS
13319 LIBS="-ldl $LIBS"
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13322
13323 /* Override any GCC internal prototype to avoid an error.
13324 Use char because int might match the return type of a GCC
13325 builtin and then its argument prototype would still apply. */
13326 char dlopen ();
13327 int
13328 main (void)
13329 {
13330 return dlopen ();
13331 ;
13332 return 0;
13333 }
13334 _ACEOF
13335 if ac_fn_c_try_link "$LINENO"
13336 then :
13337 ac_cv_lib_dl_dlopen=yes
13338 else $as_nop
13339 ac_cv_lib_dl_dlopen=no
13340 fi
13341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13342 conftest$ac_exeext conftest.$ac_ext
13343 LIBS=$ac_check_lib_save_LIBS
13344 fi
13345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13346 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13347 if test "x$ac_cv_lib_dl_dlopen" = xyes
13348 then :
13349 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13350 else $as_nop
13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13352 printf %s "checking for dlopen in -lsvld... " >&6; }
13353 if test ${ac_cv_lib_svld_dlopen+y}
13354 then :
13355 printf %s "(cached) " >&6
13356 else $as_nop
13357 ac_check_lib_save_LIBS=$LIBS
13358 LIBS="-lsvld $LIBS"
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13361
13362 /* Override any GCC internal prototype to avoid an error.
13363 Use char because int might match the return type of a GCC
13364 builtin and then its argument prototype would still apply. */
13365 char dlopen ();
13366 int
13367 main (void)
13368 {
13369 return dlopen ();
13370 ;
13371 return 0;
13372 }
13373 _ACEOF
13374 if ac_fn_c_try_link "$LINENO"
13375 then :
13376 ac_cv_lib_svld_dlopen=yes
13377 else $as_nop
13378 ac_cv_lib_svld_dlopen=no
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13381 conftest$ac_exeext conftest.$ac_ext
13382 LIBS=$ac_check_lib_save_LIBS
13383 fi
13384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13385 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13386 if test "x$ac_cv_lib_svld_dlopen" = xyes
13387 then :
13388 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13389 else $as_nop
13390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13391 printf %s "checking for dld_link in -ldld... " >&6; }
13392 if test ${ac_cv_lib_dld_dld_link+y}
13393 then :
13394 printf %s "(cached) " >&6
13395 else $as_nop
13396 ac_check_lib_save_LIBS=$LIBS
13397 LIBS="-ldld $LIBS"
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400
13401 /* Override any GCC internal prototype to avoid an error.
13402 Use char because int might match the return type of a GCC
13403 builtin and then its argument prototype would still apply. */
13404 char dld_link ();
13405 int
13406 main (void)
13407 {
13408 return dld_link ();
13409 ;
13410 return 0;
13411 }
13412 _ACEOF
13413 if ac_fn_c_try_link "$LINENO"
13414 then :
13415 ac_cv_lib_dld_dld_link=yes
13416 else $as_nop
13417 ac_cv_lib_dld_dld_link=no
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13420 conftest$ac_exeext conftest.$ac_ext
13421 LIBS=$ac_check_lib_save_LIBS
13422 fi
13423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13424 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13425 if test "x$ac_cv_lib_dld_dld_link" = xyes
13426 then :
13427 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13428 fi
13429
13430
13431 fi
13432
13433
13434 fi
13435
13436
13437 fi
13438
13439
13440 fi
13441
13442
13443 fi
13444
13445 ;;
13446 esac
13447
13448 if test no = "$lt_cv_dlopen"; then
13449 enable_dlopen=no
13450 else
13451 enable_dlopen=yes
13452 fi
13453
13454 case $lt_cv_dlopen in
13455 dlopen)
13456 save_CPPFLAGS=$CPPFLAGS
13457 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13458
13459 save_LDFLAGS=$LDFLAGS
13460 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13461
13462 save_LIBS=$LIBS
13463 LIBS="$lt_cv_dlopen_libs $LIBS"
13464
13465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13466 printf %s "checking whether a program can dlopen itself... " >&6; }
13467 if test ${lt_cv_dlopen_self+y}
13468 then :
13469 printf %s "(cached) " >&6
13470 else $as_nop
13471 if test yes = "$cross_compiling"; then :
13472 lt_cv_dlopen_self=cross
13473 else
13474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13475 lt_status=$lt_dlunknown
13476 cat > conftest.$ac_ext <<_LT_EOF
13477 #line $LINENO "configure"
13478 #include "confdefs.h"
13479
13480 #if HAVE_DLFCN_H
13481 #include <dlfcn.h>
13482 #endif
13483
13484 #include <stdio.h>
13485
13486 #ifdef RTLD_GLOBAL
13487 # define LT_DLGLOBAL RTLD_GLOBAL
13488 #else
13489 # ifdef DL_GLOBAL
13490 # define LT_DLGLOBAL DL_GLOBAL
13491 # else
13492 # define LT_DLGLOBAL 0
13493 # endif
13494 #endif
13495
13496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13497 find out it does not work in some platform. */
13498 #ifndef LT_DLLAZY_OR_NOW
13499 # ifdef RTLD_LAZY
13500 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13501 # else
13502 # ifdef DL_LAZY
13503 # define LT_DLLAZY_OR_NOW DL_LAZY
13504 # else
13505 # ifdef RTLD_NOW
13506 # define LT_DLLAZY_OR_NOW RTLD_NOW
13507 # else
13508 # ifdef DL_NOW
13509 # define LT_DLLAZY_OR_NOW DL_NOW
13510 # else
13511 # define LT_DLLAZY_OR_NOW 0
13512 # endif
13513 # endif
13514 # endif
13515 # endif
13516 #endif
13517
13518 /* When -fvisibility=hidden is used, assume the code has been annotated
13519 correspondingly for the symbols needed. */
13520 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13521 int fnord () __attribute__((visibility("default")));
13522 #endif
13523
13524 int fnord () { return 42; }
13525 int main ()
13526 {
13527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13528 int status = $lt_dlunknown;
13529
13530 if (self)
13531 {
13532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13533 else
13534 {
13535 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13536 else puts (dlerror ());
13537 }
13538 /* dlclose (self); */
13539 }
13540 else
13541 puts (dlerror ());
13542
13543 return status;
13544 }
13545 _LT_EOF
13546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13547 (eval $ac_link) 2>&5
13548 ac_status=$?
13549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13550 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13551 (./conftest; exit; ) >&5 2>/dev/null
13552 lt_status=$?
13553 case x$lt_status in
13554 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13555 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13556 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13557 esac
13558 else :
13559 # compilation failed
13560 lt_cv_dlopen_self=no
13561 fi
13562 fi
13563 rm -fr conftest*
13564
13565
13566 fi
13567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13568 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13569
13570 if test yes = "$lt_cv_dlopen_self"; then
13571 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13573 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13574 if test ${lt_cv_dlopen_self_static+y}
13575 then :
13576 printf %s "(cached) " >&6
13577 else $as_nop
13578 if test yes = "$cross_compiling"; then :
13579 lt_cv_dlopen_self_static=cross
13580 else
13581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13582 lt_status=$lt_dlunknown
13583 cat > conftest.$ac_ext <<_LT_EOF
13584 #line $LINENO "configure"
13585 #include "confdefs.h"
13586
13587 #if HAVE_DLFCN_H
13588 #include <dlfcn.h>
13589 #endif
13590
13591 #include <stdio.h>
13592
13593 #ifdef RTLD_GLOBAL
13594 # define LT_DLGLOBAL RTLD_GLOBAL
13595 #else
13596 # ifdef DL_GLOBAL
13597 # define LT_DLGLOBAL DL_GLOBAL
13598 # else
13599 # define LT_DLGLOBAL 0
13600 # endif
13601 #endif
13602
13603 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13604 find out it does not work in some platform. */
13605 #ifndef LT_DLLAZY_OR_NOW
13606 # ifdef RTLD_LAZY
13607 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13608 # else
13609 # ifdef DL_LAZY
13610 # define LT_DLLAZY_OR_NOW DL_LAZY
13611 # else
13612 # ifdef RTLD_NOW
13613 # define LT_DLLAZY_OR_NOW RTLD_NOW
13614 # else
13615 # ifdef DL_NOW
13616 # define LT_DLLAZY_OR_NOW DL_NOW
13617 # else
13618 # define LT_DLLAZY_OR_NOW 0
13619 # endif
13620 # endif
13621 # endif
13622 # endif
13623 #endif
13624
13625 /* When -fvisibility=hidden is used, assume the code has been annotated
13626 correspondingly for the symbols needed. */
13627 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13628 int fnord () __attribute__((visibility("default")));
13629 #endif
13630
13631 int fnord () { return 42; }
13632 int main ()
13633 {
13634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13635 int status = $lt_dlunknown;
13636
13637 if (self)
13638 {
13639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13640 else
13641 {
13642 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13643 else puts (dlerror ());
13644 }
13645 /* dlclose (self); */
13646 }
13647 else
13648 puts (dlerror ());
13649
13650 return status;
13651 }
13652 _LT_EOF
13653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13654 (eval $ac_link) 2>&5
13655 ac_status=$?
13656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13657 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13658 (./conftest; exit; ) >&5 2>/dev/null
13659 lt_status=$?
13660 case x$lt_status in
13661 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13662 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13663 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13664 esac
13665 else :
13666 # compilation failed
13667 lt_cv_dlopen_self_static=no
13668 fi
13669 fi
13670 rm -fr conftest*
13671
13672
13673 fi
13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13675 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13676 fi
13677
13678 CPPFLAGS=$save_CPPFLAGS
13679 LDFLAGS=$save_LDFLAGS
13680 LIBS=$save_LIBS
13681 ;;
13682 esac
13683
13684 case $lt_cv_dlopen_self in
13685 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13686 *) enable_dlopen_self=unknown ;;
13687 esac
13688
13689 case $lt_cv_dlopen_self_static in
13690 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13691 *) enable_dlopen_self_static=unknown ;;
13692 esac
13693 fi
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711 striplib=
13712 old_striplib=
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13714 printf %s "checking whether stripping libraries is possible... " >&6; }
13715 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13716 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13717 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13719 printf "%s\n" "yes" >&6; }
13720 else
13721 # FIXME - insert some real tests, host_os isn't really good enough
13722 case $host_os in
13723 darwin*)
13724 if test -n "$STRIP"; then
13725 striplib="$STRIP -x"
13726 old_striplib="$STRIP -S"
13727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13728 printf "%s\n" "yes" >&6; }
13729 else
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731 printf "%s\n" "no" >&6; }
13732 fi
13733 ;;
13734 *)
13735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736 printf "%s\n" "no" >&6; }
13737 ;;
13738 esac
13739 fi
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752 # Report what library types will actually be built
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13754 printf %s "checking if libtool supports shared libraries... " >&6; }
13755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13756 printf "%s\n" "$can_build_shared" >&6; }
13757
13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13759 printf %s "checking whether to build shared libraries... " >&6; }
13760 test no = "$can_build_shared" && enable_shared=no
13761
13762 # On AIX, shared libraries and static libraries use the same namespace, and
13763 # are all built from PIC.
13764 case $host_os in
13765 aix3*)
13766 test yes = "$enable_shared" && enable_static=no
13767 if test -n "$RANLIB"; then
13768 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13769 postinstall_cmds='$RANLIB $lib'
13770 fi
13771 ;;
13772
13773 aix[4-9]*)
13774 if test ia64 != "$host_cpu"; then
13775 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13776 yes,aix,yes) ;; # shared object as lib.so file only
13777 yes,svr4,*) ;; # shared object as lib.so archive member only
13778 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13779 esac
13780 fi
13781 ;;
13782 esac
13783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13784 printf "%s\n" "$enable_shared" >&6; }
13785
13786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13787 printf %s "checking whether to build static libraries... " >&6; }
13788 # Make sure either enable_shared or enable_static is yes.
13789 test yes = "$enable_shared" || enable_static=yes
13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13791 printf "%s\n" "$enable_static" >&6; }
13792
13793
13794
13795
13796 fi
13797 ac_ext=c
13798 ac_cpp='$CPP $CPPFLAGS'
13799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13802
13803 CC=$lt_save_CC
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819 ac_config_commands="$ac_config_commands libtool"
13820
13821
13822
13823
13824 # Only expand once:
13825
13826
13827
13828 test "${prefix}" = "NONE" && prefix="/usr"
13829 if test ${prefix} = '/usr'
13830 then
13831 if test ${sysconfdir} = '${prefix}/etc'
13832 then
13833 sysconfdir="/etc"
13834 fi
13835 if test ${mandir} = '${prefix}/man'
13836 then
13837 mandir='${prefix}/share/man'
13838 fi
13839 fi
13840
13841
13842
13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13844 printf %s "checking whether NLS is requested... " >&6; }
13845 # Check whether --enable-nls was given.
13846 if test ${enable_nls+y}
13847 then :
13848 enableval=$enable_nls; USE_NLS=$enableval
13849 else $as_nop
13850 USE_NLS=yes
13851 fi
13852
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13854 printf "%s\n" "$USE_NLS" >&6; }
13855
13856
13857
13858
13859 GETTEXT_MACRO_VERSION=0.18
13860
13861
13862
13863
13864 # Prepare PATH_SEPARATOR.
13865 # The user is always right.
13866 if test "${PATH_SEPARATOR+set}" != set; then
13867 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13868 # contains only /bin. Note that ksh looks also at the FPATH variable,
13869 # so we have to set that as well for the test.
13870 PATH_SEPARATOR=:
13871 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13872 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13873 || PATH_SEPARATOR=';'
13874 }
13875 fi
13876
13877 # Find out how to test for executable files. Don't use a zero-byte file,
13878 # as systems may use methods other than mode bits to determine executability.
13879 cat >conf$$.file <<_ASEOF
13880 #! /bin/sh
13881 exit 0
13882 _ASEOF
13883 chmod +x conf$$.file
13884 if test -x conf$$.file >/dev/null 2>&1; then
13885 ac_executable_p="test -x"
13886 else
13887 ac_executable_p="test -f"
13888 fi
13889 rm -f conf$$.file
13890
13891 # Extract the first word of "msgfmt", so it can be a program name with args.
13892 set dummy msgfmt; ac_word=$2
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13894 printf %s "checking for $ac_word... " >&6; }
13895 if test ${ac_cv_path_MSGFMT+y}
13896 then :
13897 printf %s "(cached) " >&6
13898 else $as_nop
13899 case "$MSGFMT" in
13900 [\\/]* | ?:[\\/]*)
13901 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13902 ;;
13903 *)
13904 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13905 for ac_dir in $PATH; do
13906 IFS="$ac_save_IFS"
13907 test -z "$ac_dir" && ac_dir=.
13908 for ac_exec_ext in '' $ac_executable_extensions; do
13909 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13910 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13911 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13912 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13913 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13914 break 2
13915 fi
13916 fi
13917 done
13918 done
13919 IFS="$ac_save_IFS"
13920 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13921 ;;
13922 esac
13923 fi
13924 MSGFMT="$ac_cv_path_MSGFMT"
13925 if test "$MSGFMT" != ":"; then
13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13927 printf "%s\n" "$MSGFMT" >&6; }
13928 else
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930 printf "%s\n" "no" >&6; }
13931 fi
13932
13933 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13934 set dummy gmsgfmt; ac_word=$2
13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13936 printf %s "checking for $ac_word... " >&6; }
13937 if test ${ac_cv_path_GMSGFMT+y}
13938 then :
13939 printf %s "(cached) " >&6
13940 else $as_nop
13941 case $GMSGFMT in
13942 [\\/]* | ?:[\\/]*)
13943 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13944 ;;
13945 *)
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13948 do
13949 IFS=$as_save_IFS
13950 case $as_dir in #(((
13951 '') as_dir=./ ;;
13952 */) ;;
13953 *) as_dir=$as_dir/ ;;
13954 esac
13955 for ac_exec_ext in '' $ac_executable_extensions; do
13956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13957 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
13958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13959 break 2
13960 fi
13961 done
13962 done
13963 IFS=$as_save_IFS
13964
13965 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13966 ;;
13967 esac
13968 fi
13969 GMSGFMT=$ac_cv_path_GMSGFMT
13970 if test -n "$GMSGFMT"; then
13971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13972 printf "%s\n" "$GMSGFMT" >&6; }
13973 else
13974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13975 printf "%s\n" "no" >&6; }
13976 fi
13977
13978
13979
13980 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13981 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13982 *) MSGFMT_015=$MSGFMT ;;
13983 esac
13984
13985 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13986 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13987 *) GMSGFMT_015=$GMSGFMT ;;
13988 esac
13989
13990
13991
13992 # Prepare PATH_SEPARATOR.
13993 # The user is always right.
13994 if test "${PATH_SEPARATOR+set}" != set; then
13995 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13996 # contains only /bin. Note that ksh looks also at the FPATH variable,
13997 # so we have to set that as well for the test.
13998 PATH_SEPARATOR=:
13999 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14000 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14001 || PATH_SEPARATOR=';'
14002 }
14003 fi
14004
14005 # Find out how to test for executable files. Don't use a zero-byte file,
14006 # as systems may use methods other than mode bits to determine executability.
14007 cat >conf$$.file <<_ASEOF
14008 #! /bin/sh
14009 exit 0
14010 _ASEOF
14011 chmod +x conf$$.file
14012 if test -x conf$$.file >/dev/null 2>&1; then
14013 ac_executable_p="test -x"
14014 else
14015 ac_executable_p="test -f"
14016 fi
14017 rm -f conf$$.file
14018
14019 # Extract the first word of "xgettext", so it can be a program name with args.
14020 set dummy xgettext; ac_word=$2
14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14022 printf %s "checking for $ac_word... " >&6; }
14023 if test ${ac_cv_path_XGETTEXT+y}
14024 then :
14025 printf %s "(cached) " >&6
14026 else $as_nop
14027 case "$XGETTEXT" in
14028 [\\/]* | ?:[\\/]*)
14029 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14030 ;;
14031 *)
14032 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14033 for ac_dir in $PATH; do
14034 IFS="$ac_save_IFS"
14035 test -z "$ac_dir" && ac_dir=.
14036 for ac_exec_ext in '' $ac_executable_extensions; do
14037 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14038 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14039 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14040 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14041 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14042 break 2
14043 fi
14044 fi
14045 done
14046 done
14047 IFS="$ac_save_IFS"
14048 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14049 ;;
14050 esac
14051 fi
14052 XGETTEXT="$ac_cv_path_XGETTEXT"
14053 if test "$XGETTEXT" != ":"; then
14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14055 printf "%s\n" "$XGETTEXT" >&6; }
14056 else
14057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14058 printf "%s\n" "no" >&6; }
14059 fi
14060
14061 rm -f messages.po
14062
14063 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14064 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14065 *) XGETTEXT_015=$XGETTEXT ;;
14066 esac
14067
14068
14069
14070 # Prepare PATH_SEPARATOR.
14071 # The user is always right.
14072 if test "${PATH_SEPARATOR+set}" != set; then
14073 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14074 # contains only /bin. Note that ksh looks also at the FPATH variable,
14075 # so we have to set that as well for the test.
14076 PATH_SEPARATOR=:
14077 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14078 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14079 || PATH_SEPARATOR=';'
14080 }
14081 fi
14082
14083 # Find out how to test for executable files. Don't use a zero-byte file,
14084 # as systems may use methods other than mode bits to determine executability.
14085 cat >conf$$.file <<_ASEOF
14086 #! /bin/sh
14087 exit 0
14088 _ASEOF
14089 chmod +x conf$$.file
14090 if test -x conf$$.file >/dev/null 2>&1; then
14091 ac_executable_p="test -x"
14092 else
14093 ac_executable_p="test -f"
14094 fi
14095 rm -f conf$$.file
14096
14097 # Extract the first word of "msgmerge", so it can be a program name with args.
14098 set dummy msgmerge; ac_word=$2
14099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14100 printf %s "checking for $ac_word... " >&6; }
14101 if test ${ac_cv_path_MSGMERGE+y}
14102 then :
14103 printf %s "(cached) " >&6
14104 else $as_nop
14105 case "$MSGMERGE" in
14106 [\\/]* | ?:[\\/]*)
14107 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14108 ;;
14109 *)
14110 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14111 for ac_dir in $PATH; do
14112 IFS="$ac_save_IFS"
14113 test -z "$ac_dir" && ac_dir=.
14114 for ac_exec_ext in '' $ac_executable_extensions; do
14115 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14116 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14117 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14118 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14119 break 2
14120 fi
14121 fi
14122 done
14123 done
14124 IFS="$ac_save_IFS"
14125 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14126 ;;
14127 esac
14128 fi
14129 MSGMERGE="$ac_cv_path_MSGMERGE"
14130 if test "$MSGMERGE" != ":"; then
14131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14132 printf "%s\n" "$MSGMERGE" >&6; }
14133 else
14134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14135 printf "%s\n" "no" >&6; }
14136 fi
14137
14138
14139 test -n "$localedir" || localedir='${datadir}/locale'
14140
14141
14142 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14143
14144
14145 ac_config_commands="$ac_config_commands po-directories"
14146
14147
14148
14149 if test "X$prefix" = "XNONE"; then
14150 acl_final_prefix="$ac_default_prefix"
14151 else
14152 acl_final_prefix="$prefix"
14153 fi
14154 if test "X$exec_prefix" = "XNONE"; then
14155 acl_final_exec_prefix='${prefix}'
14156 else
14157 acl_final_exec_prefix="$exec_prefix"
14158 fi
14159 acl_save_prefix="$prefix"
14160 prefix="$acl_final_prefix"
14161 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14162 prefix="$acl_save_prefix"
14163
14164
14165
14166 # Check whether --with-gnu-ld was given.
14167 if test ${with_gnu_ld+y}
14168 then :
14169 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14170 else $as_nop
14171 with_gnu_ld=no
14172 fi
14173
14174 # Prepare PATH_SEPARATOR.
14175 # The user is always right.
14176 if test "${PATH_SEPARATOR+set}" != set; then
14177 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14178 # contains only /bin. Note that ksh looks also at the FPATH variable,
14179 # so we have to set that as well for the test.
14180 PATH_SEPARATOR=:
14181 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14182 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14183 || PATH_SEPARATOR=';'
14184 }
14185 fi
14186
14187 ac_prog=ld
14188 if test "$GCC" = yes; then
14189 # Check if gcc -print-prog-name=ld gives a path.
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14191 printf %s "checking for ld used by $CC... " >&6; }
14192 case $host in
14193 *-*-mingw*)
14194 # gcc leaves a trailing carriage return which upsets mingw
14195 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14196 *)
14197 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14198 esac
14199 case $ac_prog in
14200 # Accept absolute paths.
14201 [\\/]* | ?:[\\/]*)
14202 re_direlt='/[^/][^/]*/\.\./'
14203 # Canonicalize the pathname of ld
14204 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
14205 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
14206 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14207 done
14208 test -z "$LD" && LD="$ac_prog"
14209 ;;
14210 "")
14211 # If it fails, then pretend we aren't using GCC.
14212 ac_prog=ld
14213 ;;
14214 *)
14215 # If it is relative, then search for the first ld in PATH.
14216 with_gnu_ld=unknown
14217 ;;
14218 esac
14219 elif test "$with_gnu_ld" = yes; then
14220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14221 printf %s "checking for GNU ld... " >&6; }
14222 else
14223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14224 printf %s "checking for non-GNU ld... " >&6; }
14225 fi
14226 if test ${acl_cv_path_LD+y}
14227 then :
14228 printf %s "(cached) " >&6
14229 else $as_nop
14230 if test -z "$LD"; then
14231 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14232 for ac_dir in $PATH; do
14233 IFS="$acl_save_ifs"
14234 test -z "$ac_dir" && ac_dir=.
14235 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14236 acl_cv_path_LD="$ac_dir/$ac_prog"
14237 # Check to see if the program is GNU ld. I'd rather use --version,
14238 # but apparently some variants of GNU ld only accept -v.
14239 # Break only if it was the GNU/non-GNU ld that we prefer.
14240 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
14241 *GNU* | *'with BFD'*)
14242 test "$with_gnu_ld" != no && break
14243 ;;
14244 *)
14245 test "$with_gnu_ld" != yes && break
14246 ;;
14247 esac
14248 fi
14249 done
14250 IFS="$acl_save_ifs"
14251 else
14252 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14253 fi
14254 fi
14255
14256 LD="$acl_cv_path_LD"
14257 if test -n "$LD"; then
14258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14259 printf "%s\n" "$LD" >&6; }
14260 else
14261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14262 printf "%s\n" "no" >&6; }
14263 fi
14264 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14266 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14267 if test ${acl_cv_prog_gnu_ld+y}
14268 then :
14269 printf %s "(cached) " >&6
14270 else $as_nop
14271 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14272 case `$LD -v 2>&1 </dev/null` in
14273 *GNU* | *'with BFD'*)
14274 acl_cv_prog_gnu_ld=yes
14275 ;;
14276 *)
14277 acl_cv_prog_gnu_ld=no
14278 ;;
14279 esac
14280 fi
14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14282 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
14283 with_gnu_ld=$acl_cv_prog_gnu_ld
14284
14285
14286
14287
14288
14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14290 printf %s "checking for shared library run path origin... " >&6; }
14291 if test ${acl_cv_rpath+y}
14292 then :
14293 printf %s "(cached) " >&6
14294 else $as_nop
14295
14296 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14297 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14298 . ./conftest.sh
14299 rm -f ./conftest.sh
14300 acl_cv_rpath=done
14301
14302 fi
14303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14304 printf "%s\n" "$acl_cv_rpath" >&6; }
14305 wl="$acl_cv_wl"
14306 acl_libext="$acl_cv_libext"
14307 acl_shlibext="$acl_cv_shlibext"
14308 acl_libname_spec="$acl_cv_libname_spec"
14309 acl_library_names_spec="$acl_cv_library_names_spec"
14310 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14311 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14312 acl_hardcode_direct="$acl_cv_hardcode_direct"
14313 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14314 # Check whether --enable-rpath was given.
14315 if test ${enable_rpath+y}
14316 then :
14317 enableval=$enable_rpath; :
14318 else $as_nop
14319 enable_rpath=yes
14320 fi
14321
14322
14323 ac_ext=c
14324 ac_cpp='$CPP $CPPFLAGS'
14325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14329 printf %s "checking how to run the C preprocessor... " >&6; }
14330 # On Suns, sometimes $CPP names a directory.
14331 if test -n "$CPP" && test -d "$CPP"; then
14332 CPP=
14333 fi
14334 if test -z "$CPP"; then
14335 if test ${ac_cv_prog_CPP+y}
14336 then :
14337 printf %s "(cached) " >&6
14338 else $as_nop
14339 # Double quotes because $CC needs to be expanded
14340 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14341 do
14342 ac_preproc_ok=false
14343 for ac_c_preproc_warn_flag in '' yes
14344 do
14345 # Use a header file that comes with gcc, so configuring glibc
14346 # with a fresh cross-compiler works.
14347 # On the NeXT, cc -E runs the code through the compiler's parser,
14348 # not just through cpp. "Syntax error" is here to catch this case.
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351 #include <limits.h>
14352 Syntax error
14353 _ACEOF
14354 if ac_fn_c_try_cpp "$LINENO"
14355 then :
14356
14357 else $as_nop
14358 # Broken: fails on valid input.
14359 continue
14360 fi
14361 rm -f conftest.err conftest.i conftest.$ac_ext
14362
14363 # OK, works on sane cases. Now check whether nonexistent headers
14364 # can be detected and how.
14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h. */
14367 #include <ac_nonexistent.h>
14368 _ACEOF
14369 if ac_fn_c_try_cpp "$LINENO"
14370 then :
14371 # Broken: success on invalid input.
14372 continue
14373 else $as_nop
14374 # Passes both tests.
14375 ac_preproc_ok=:
14376 break
14377 fi
14378 rm -f conftest.err conftest.i conftest.$ac_ext
14379
14380 done
14381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14382 rm -f conftest.i conftest.err conftest.$ac_ext
14383 if $ac_preproc_ok
14384 then :
14385 break
14386 fi
14387
14388 done
14389 ac_cv_prog_CPP=$CPP
14390
14391 fi
14392 CPP=$ac_cv_prog_CPP
14393 else
14394 ac_cv_prog_CPP=$CPP
14395 fi
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14397 printf "%s\n" "$CPP" >&6; }
14398 ac_preproc_ok=false
14399 for ac_c_preproc_warn_flag in '' yes
14400 do
14401 # Use a header file that comes with gcc, so configuring glibc
14402 # with a fresh cross-compiler works.
14403 # On the NeXT, cc -E runs the code through the compiler's parser,
14404 # not just through cpp. "Syntax error" is here to catch this case.
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h. */
14407 #include <limits.h>
14408 Syntax error
14409 _ACEOF
14410 if ac_fn_c_try_cpp "$LINENO"
14411 then :
14412
14413 else $as_nop
14414 # Broken: fails on valid input.
14415 continue
14416 fi
14417 rm -f conftest.err conftest.i conftest.$ac_ext
14418
14419 # OK, works on sane cases. Now check whether nonexistent headers
14420 # can be detected and how.
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14423 #include <ac_nonexistent.h>
14424 _ACEOF
14425 if ac_fn_c_try_cpp "$LINENO"
14426 then :
14427 # Broken: success on invalid input.
14428 continue
14429 else $as_nop
14430 # Passes both tests.
14431 ac_preproc_ok=:
14432 break
14433 fi
14434 rm -f conftest.err conftest.i conftest.$ac_ext
14435
14436 done
14437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14438 rm -f conftest.i conftest.err conftest.$ac_ext
14439 if $ac_preproc_ok
14440 then :
14441
14442 else $as_nop
14443 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14444 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14445 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14446 See \`config.log' for more details" "$LINENO" 5; }
14447 fi
14448
14449 ac_ext=c
14450 ac_cpp='$CPP $CPPFLAGS'
14451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14454
14455
14456
14457
14458 acl_libdirstem=lib
14459 acl_libdirstem2=
14460 case "$host_os" in
14461 solaris*)
14462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14463 printf %s "checking for 64-bit host... " >&6; }
14464 if test ${gl_cv_solaris_64bit+y}
14465 then :
14466 printf %s "(cached) " >&6
14467 else $as_nop
14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14470
14471 #ifdef _LP64
14472 sixtyfour bits
14473 #endif
14474
14475 _ACEOF
14476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14477 $EGREP "sixtyfour bits" >/dev/null 2>&1
14478 then :
14479 gl_cv_solaris_64bit=yes
14480 else $as_nop
14481 gl_cv_solaris_64bit=no
14482 fi
14483 rm -rf conftest*
14484
14485
14486 fi
14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14488 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
14489 if test $gl_cv_solaris_64bit = yes; then
14490 acl_libdirstem=lib/64
14491 case "$host_cpu" in
14492 sparc*) acl_libdirstem2=lib/sparcv9 ;;
14493 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14494 esac
14495 fi
14496 ;;
14497 *)
14498 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14499 if test -n "$searchpath"; then
14500 acl_save_IFS="${IFS= }"; IFS=":"
14501 for searchdir in $searchpath; do
14502 if test -d "$searchdir"; then
14503 case "$searchdir" in
14504 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14505 */../ | */.. )
14506 # Better ignore directories of this form. They are misleading.
14507 ;;
14508 *) searchdir=`cd "$searchdir" && pwd`
14509 case "$searchdir" in
14510 */lib64 ) acl_libdirstem=lib64 ;;
14511 esac ;;
14512 esac
14513 fi
14514 done
14515 IFS="$acl_save_IFS"
14516 fi
14517 ;;
14518 esac
14519 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532 use_additional=yes
14533
14534 acl_save_prefix="$prefix"
14535 prefix="$acl_final_prefix"
14536 acl_save_exec_prefix="$exec_prefix"
14537 exec_prefix="$acl_final_exec_prefix"
14538
14539 eval additional_includedir=\"$includedir\"
14540 eval additional_libdir=\"$libdir\"
14541
14542 exec_prefix="$acl_save_exec_prefix"
14543 prefix="$acl_save_prefix"
14544
14545
14546 # Check whether --with-libiconv-prefix was given.
14547 if test ${with_libiconv_prefix+y}
14548 then :
14549 withval=$with_libiconv_prefix;
14550 if test "X$withval" = "Xno"; then
14551 use_additional=no
14552 else
14553 if test "X$withval" = "X"; then
14554
14555 acl_save_prefix="$prefix"
14556 prefix="$acl_final_prefix"
14557 acl_save_exec_prefix="$exec_prefix"
14558 exec_prefix="$acl_final_exec_prefix"
14559
14560 eval additional_includedir=\"$includedir\"
14561 eval additional_libdir=\"$libdir\"
14562
14563 exec_prefix="$acl_save_exec_prefix"
14564 prefix="$acl_save_prefix"
14565
14566 else
14567 additional_includedir="$withval/include"
14568 additional_libdir="$withval/$acl_libdirstem"
14569 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14570 && ! test -d "$withval/$acl_libdirstem"; then
14571 additional_libdir="$withval/$acl_libdirstem2"
14572 fi
14573 fi
14574 fi
14575
14576 fi
14577
14578 LIBICONV=
14579 LTLIBICONV=
14580 INCICONV=
14581 LIBICONV_PREFIX=
14582 HAVE_LIBICONV=
14583 rpathdirs=
14584 ltrpathdirs=
14585 names_already_handled=
14586 names_next_round='iconv '
14587 while test -n "$names_next_round"; do
14588 names_this_round="$names_next_round"
14589 names_next_round=
14590 for name in $names_this_round; do
14591 already_handled=
14592 for n in $names_already_handled; do
14593 if test "$n" = "$name"; then
14594 already_handled=yes
14595 break
14596 fi
14597 done
14598 if test -z "$already_handled"; then
14599 names_already_handled="$names_already_handled $name"
14600 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14601 eval value=\"\$HAVE_LIB$uppername\"
14602 if test -n "$value"; then
14603 if test "$value" = yes; then
14604 eval value=\"\$LIB$uppername\"
14605 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14606 eval value=\"\$LTLIB$uppername\"
14607 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14608 else
14609 :
14610 fi
14611 else
14612 found_dir=
14613 found_la=
14614 found_so=
14615 found_a=
14616 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14617 if test -n "$acl_shlibext"; then
14618 shrext=".$acl_shlibext" # typically: shrext=.so
14619 else
14620 shrext=
14621 fi
14622 if test $use_additional = yes; then
14623 dir="$additional_libdir"
14624 if test -n "$acl_shlibext"; then
14625 if test -f "$dir/$libname$shrext"; then
14626 found_dir="$dir"
14627 found_so="$dir/$libname$shrext"
14628 else
14629 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14630 ver=`(cd "$dir" && \
14631 for f in "$libname$shrext".*; do echo "$f"; done \
14632 | sed -e "s,^$libname$shrext\\\\.,," \
14633 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14634 | sed 1q ) 2>/dev/null`
14635 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14636 found_dir="$dir"
14637 found_so="$dir/$libname$shrext.$ver"
14638 fi
14639 else
14640 eval library_names=\"$acl_library_names_spec\"
14641 for f in $library_names; do
14642 if test -f "$dir/$f"; then
14643 found_dir="$dir"
14644 found_so="$dir/$f"
14645 break
14646 fi
14647 done
14648 fi
14649 fi
14650 fi
14651 if test "X$found_dir" = "X"; then
14652 if test -f "$dir/$libname.$acl_libext"; then
14653 found_dir="$dir"
14654 found_a="$dir/$libname.$acl_libext"
14655 fi
14656 fi
14657 if test "X$found_dir" != "X"; then
14658 if test -f "$dir/$libname.la"; then
14659 found_la="$dir/$libname.la"
14660 fi
14661 fi
14662 fi
14663 if test "X$found_dir" = "X"; then
14664 for x in $LDFLAGS $LTLIBICONV; do
14665
14666 acl_save_prefix="$prefix"
14667 prefix="$acl_final_prefix"
14668 acl_save_exec_prefix="$exec_prefix"
14669 exec_prefix="$acl_final_exec_prefix"
14670 eval x=\"$x\"
14671 exec_prefix="$acl_save_exec_prefix"
14672 prefix="$acl_save_prefix"
14673
14674 case "$x" in
14675 -L*)
14676 dir=`echo "X$x" | sed -e 's/^X-L//'`
14677 if test -n "$acl_shlibext"; then
14678 if test -f "$dir/$libname$shrext"; then
14679 found_dir="$dir"
14680 found_so="$dir/$libname$shrext"
14681 else
14682 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14683 ver=`(cd "$dir" && \
14684 for f in "$libname$shrext".*; do echo "$f"; done \
14685 | sed -e "s,^$libname$shrext\\\\.,," \
14686 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14687 | sed 1q ) 2>/dev/null`
14688 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14689 found_dir="$dir"
14690 found_so="$dir/$libname$shrext.$ver"
14691 fi
14692 else
14693 eval library_names=\"$acl_library_names_spec\"
14694 for f in $library_names; do
14695 if test -f "$dir/$f"; then
14696 found_dir="$dir"
14697 found_so="$dir/$f"
14698 break
14699 fi
14700 done
14701 fi
14702 fi
14703 fi
14704 if test "X$found_dir" = "X"; then
14705 if test -f "$dir/$libname.$acl_libext"; then
14706 found_dir="$dir"
14707 found_a="$dir/$libname.$acl_libext"
14708 fi
14709 fi
14710 if test "X$found_dir" != "X"; then
14711 if test -f "$dir/$libname.la"; then
14712 found_la="$dir/$libname.la"
14713 fi
14714 fi
14715 ;;
14716 esac
14717 if test "X$found_dir" != "X"; then
14718 break
14719 fi
14720 done
14721 fi
14722 if test "X$found_dir" != "X"; then
14723 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14724 if test "X$found_so" != "X"; then
14725 if test "$enable_rpath" = no \
14726 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14727 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14728 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14729 else
14730 haveit=
14731 for x in $ltrpathdirs; do
14732 if test "X$x" = "X$found_dir"; then
14733 haveit=yes
14734 break
14735 fi
14736 done
14737 if test -z "$haveit"; then
14738 ltrpathdirs="$ltrpathdirs $found_dir"
14739 fi
14740 if test "$acl_hardcode_direct" = yes; then
14741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14742 else
14743 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14744 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14745 haveit=
14746 for x in $rpathdirs; do
14747 if test "X$x" = "X$found_dir"; then
14748 haveit=yes
14749 break
14750 fi
14751 done
14752 if test -z "$haveit"; then
14753 rpathdirs="$rpathdirs $found_dir"
14754 fi
14755 else
14756 haveit=
14757 for x in $LDFLAGS $LIBICONV; do
14758
14759 acl_save_prefix="$prefix"
14760 prefix="$acl_final_prefix"
14761 acl_save_exec_prefix="$exec_prefix"
14762 exec_prefix="$acl_final_exec_prefix"
14763 eval x=\"$x\"
14764 exec_prefix="$acl_save_exec_prefix"
14765 prefix="$acl_save_prefix"
14766
14767 if test "X$x" = "X-L$found_dir"; then
14768 haveit=yes
14769 break
14770 fi
14771 done
14772 if test -z "$haveit"; then
14773 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14774 fi
14775 if test "$acl_hardcode_minus_L" != no; then
14776 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14777 else
14778 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14779 fi
14780 fi
14781 fi
14782 fi
14783 else
14784 if test "X$found_a" != "X"; then
14785 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14786 else
14787 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14788 fi
14789 fi
14790 additional_includedir=
14791 case "$found_dir" in
14792 */$acl_libdirstem | */$acl_libdirstem/)
14793 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14794 if test "$name" = 'iconv'; then
14795 LIBICONV_PREFIX="$basedir"
14796 fi
14797 additional_includedir="$basedir/include"
14798 ;;
14799 */$acl_libdirstem2 | */$acl_libdirstem2/)
14800 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14801 if test "$name" = 'iconv'; then
14802 LIBICONV_PREFIX="$basedir"
14803 fi
14804 additional_includedir="$basedir/include"
14805 ;;
14806 esac
14807 if test "X$additional_includedir" != "X"; then
14808 if test "X$additional_includedir" != "X/usr/include"; then
14809 haveit=
14810 if test "X$additional_includedir" = "X/usr/local/include"; then
14811 if test -n "$GCC"; then
14812 case $host_os in
14813 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14814 esac
14815 fi
14816 fi
14817 if test -z "$haveit"; then
14818 for x in $CPPFLAGS $INCICONV; do
14819
14820 acl_save_prefix="$prefix"
14821 prefix="$acl_final_prefix"
14822 acl_save_exec_prefix="$exec_prefix"
14823 exec_prefix="$acl_final_exec_prefix"
14824 eval x=\"$x\"
14825 exec_prefix="$acl_save_exec_prefix"
14826 prefix="$acl_save_prefix"
14827
14828 if test "X$x" = "X-I$additional_includedir"; then
14829 haveit=yes
14830 break
14831 fi
14832 done
14833 if test -z "$haveit"; then
14834 if test -d "$additional_includedir"; then
14835 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14836 fi
14837 fi
14838 fi
14839 fi
14840 fi
14841 if test -n "$found_la"; then
14842 save_libdir="$libdir"
14843 case "$found_la" in
14844 */* | *\\*) . "$found_la" ;;
14845 *) . "./$found_la" ;;
14846 esac
14847 libdir="$save_libdir"
14848 for dep in $dependency_libs; do
14849 case "$dep" in
14850 -L*)
14851 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14852 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14853 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14854 haveit=
14855 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14856 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14857 if test -n "$GCC"; then
14858 case $host_os in
14859 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14860 esac
14861 fi
14862 fi
14863 if test -z "$haveit"; then
14864 haveit=
14865 for x in $LDFLAGS $LIBICONV; do
14866
14867 acl_save_prefix="$prefix"
14868 prefix="$acl_final_prefix"
14869 acl_save_exec_prefix="$exec_prefix"
14870 exec_prefix="$acl_final_exec_prefix"
14871 eval x=\"$x\"
14872 exec_prefix="$acl_save_exec_prefix"
14873 prefix="$acl_save_prefix"
14874
14875 if test "X$x" = "X-L$additional_libdir"; then
14876 haveit=yes
14877 break
14878 fi
14879 done
14880 if test -z "$haveit"; then
14881 if test -d "$additional_libdir"; then
14882 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14883 fi
14884 fi
14885 haveit=
14886 for x in $LDFLAGS $LTLIBICONV; do
14887
14888 acl_save_prefix="$prefix"
14889 prefix="$acl_final_prefix"
14890 acl_save_exec_prefix="$exec_prefix"
14891 exec_prefix="$acl_final_exec_prefix"
14892 eval x=\"$x\"
14893 exec_prefix="$acl_save_exec_prefix"
14894 prefix="$acl_save_prefix"
14895
14896 if test "X$x" = "X-L$additional_libdir"; then
14897 haveit=yes
14898 break
14899 fi
14900 done
14901 if test -z "$haveit"; then
14902 if test -d "$additional_libdir"; then
14903 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14904 fi
14905 fi
14906 fi
14907 fi
14908 ;;
14909 -R*)
14910 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14911 if test "$enable_rpath" != no; then
14912 haveit=
14913 for x in $rpathdirs; do
14914 if test "X$x" = "X$dir"; then
14915 haveit=yes
14916 break
14917 fi
14918 done
14919 if test -z "$haveit"; then
14920 rpathdirs="$rpathdirs $dir"
14921 fi
14922 haveit=
14923 for x in $ltrpathdirs; do
14924 if test "X$x" = "X$dir"; then
14925 haveit=yes
14926 break
14927 fi
14928 done
14929 if test -z "$haveit"; then
14930 ltrpathdirs="$ltrpathdirs $dir"
14931 fi
14932 fi
14933 ;;
14934 -l*)
14935 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14936 ;;
14937 *.la)
14938 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14939 ;;
14940 *)
14941 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14942 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14943 ;;
14944 esac
14945 done
14946 fi
14947 else
14948 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14949 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14950 fi
14951 fi
14952 fi
14953 done
14954 done
14955 if test "X$rpathdirs" != "X"; then
14956 if test -n "$acl_hardcode_libdir_separator"; then
14957 alldirs=
14958 for found_dir in $rpathdirs; do
14959 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14960 done
14961 acl_save_libdir="$libdir"
14962 libdir="$alldirs"
14963 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14964 libdir="$acl_save_libdir"
14965 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14966 else
14967 for found_dir in $rpathdirs; do
14968 acl_save_libdir="$libdir"
14969 libdir="$found_dir"
14970 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14971 libdir="$acl_save_libdir"
14972 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14973 done
14974 fi
14975 fi
14976 if test "X$ltrpathdirs" != "X"; then
14977 for found_dir in $ltrpathdirs; do
14978 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14979 done
14980 fi
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15013 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
15014 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
15015 then :
15016 printf %s "(cached) " >&6
15017 else $as_nop
15018 gt_save_LIBS="$LIBS"
15019 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022 #include <CoreFoundation/CFPreferences.h>
15023 int
15024 main (void)
15025 {
15026 CFPreferencesCopyAppValue(NULL, NULL)
15027 ;
15028 return 0;
15029 }
15030 _ACEOF
15031 if ac_fn_c_try_link "$LINENO"
15032 then :
15033 gt_cv_func_CFPreferencesCopyAppValue=yes
15034 else $as_nop
15035 gt_cv_func_CFPreferencesCopyAppValue=no
15036 fi
15037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15038 conftest$ac_exeext conftest.$ac_ext
15039 LIBS="$gt_save_LIBS"
15040 fi
15041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15042 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15043 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15044
15045 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15046
15047 fi
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15049 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
15050 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
15051 then :
15052 printf %s "(cached) " >&6
15053 else $as_nop
15054 gt_save_LIBS="$LIBS"
15055 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15058 #include <CoreFoundation/CFLocale.h>
15059 int
15060 main (void)
15061 {
15062 CFLocaleCopyCurrent();
15063 ;
15064 return 0;
15065 }
15066 _ACEOF
15067 if ac_fn_c_try_link "$LINENO"
15068 then :
15069 gt_cv_func_CFLocaleCopyCurrent=yes
15070 else $as_nop
15071 gt_cv_func_CFLocaleCopyCurrent=no
15072 fi
15073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15074 conftest$ac_exeext conftest.$ac_ext
15075 LIBS="$gt_save_LIBS"
15076 fi
15077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15078 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15079 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15080
15081 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15082
15083 fi
15084 INTL_MACOSX_LIBS=
15085 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15086 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15087 fi
15088
15089
15090
15091
15092
15093
15094 LIBINTL=
15095 LTLIBINTL=
15096 POSUB=
15097
15098 case " $gt_needs " in
15099 *" need-formatstring-macros "*) gt_api_version=3 ;;
15100 *" need-ngettext "*) gt_api_version=2 ;;
15101 *) gt_api_version=1 ;;
15102 esac
15103 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15104 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15105
15106 if test "$USE_NLS" = "yes"; then
15107 gt_use_preinstalled_gnugettext=no
15108
15109
15110 if test $gt_api_version -ge 3; then
15111 gt_revision_test_code='
15112 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15113 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15114 #endif
15115 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15116 '
15117 else
15118 gt_revision_test_code=
15119 fi
15120 if test $gt_api_version -ge 2; then
15121 gt_expression_test_code=' + * ngettext ("", "", 0)'
15122 else
15123 gt_expression_test_code=
15124 fi
15125
15126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15127 printf %s "checking for GNU gettext in libc... " >&6; }
15128 if eval test \${$gt_func_gnugettext_libc+y}
15129 then :
15130 printf %s "(cached) " >&6
15131 else $as_nop
15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15134
15135 #include <libintl.h>
15136 $gt_revision_test_code
15137 extern int _nl_msg_cat_cntr;
15138 extern int *_nl_domain_bindings;
15139
15140 int
15141 main (void)
15142 {
15143
15144 bindtextdomain ("", "");
15145 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15146
15147 ;
15148 return 0;
15149 }
15150 _ACEOF
15151 if ac_fn_c_try_link "$LINENO"
15152 then :
15153 eval "$gt_func_gnugettext_libc=yes"
15154 else $as_nop
15155 eval "$gt_func_gnugettext_libc=no"
15156 fi
15157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15158 conftest$ac_exeext conftest.$ac_ext
15159 fi
15160 eval ac_res=\$$gt_func_gnugettext_libc
15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15162 printf "%s\n" "$ac_res" >&6; }
15163
15164 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15165
15166
15167
15168
15169
15170 am_save_CPPFLAGS="$CPPFLAGS"
15171
15172 for element in $INCICONV; do
15173 haveit=
15174 for x in $CPPFLAGS; do
15175
15176 acl_save_prefix="$prefix"
15177 prefix="$acl_final_prefix"
15178 acl_save_exec_prefix="$exec_prefix"
15179 exec_prefix="$acl_final_exec_prefix"
15180 eval x=\"$x\"
15181 exec_prefix="$acl_save_exec_prefix"
15182 prefix="$acl_save_prefix"
15183
15184 if test "X$x" = "X$element"; then
15185 haveit=yes
15186 break
15187 fi
15188 done
15189 if test -z "$haveit"; then
15190 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15191 fi
15192 done
15193
15194
15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15196 printf %s "checking for iconv... " >&6; }
15197 if test ${am_cv_func_iconv+y}
15198 then :
15199 printf %s "(cached) " >&6
15200 else $as_nop
15201
15202 am_cv_func_iconv="no, consider installing GNU libiconv"
15203 am_cv_lib_iconv=no
15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h. */
15206
15207 #include <stdlib.h>
15208 #include <iconv.h>
15209
15210 int
15211 main (void)
15212 {
15213 iconv_t cd = iconv_open("","");
15214 iconv(cd,NULL,NULL,NULL,NULL);
15215 iconv_close(cd);
15216 ;
15217 return 0;
15218 }
15219 _ACEOF
15220 if ac_fn_c_try_link "$LINENO"
15221 then :
15222 am_cv_func_iconv=yes
15223 fi
15224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15225 conftest$ac_exeext conftest.$ac_ext
15226 if test "$am_cv_func_iconv" != yes; then
15227 am_save_LIBS="$LIBS"
15228 LIBS="$LIBS $LIBICONV"
15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h. */
15231
15232 #include <stdlib.h>
15233 #include <iconv.h>
15234
15235 int
15236 main (void)
15237 {
15238 iconv_t cd = iconv_open("","");
15239 iconv(cd,NULL,NULL,NULL,NULL);
15240 iconv_close(cd);
15241 ;
15242 return 0;
15243 }
15244 _ACEOF
15245 if ac_fn_c_try_link "$LINENO"
15246 then :
15247 am_cv_lib_iconv=yes
15248 am_cv_func_iconv=yes
15249 fi
15250 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15251 conftest$ac_exeext conftest.$ac_ext
15252 LIBS="$am_save_LIBS"
15253 fi
15254
15255 fi
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15257 printf "%s\n" "$am_cv_func_iconv" >&6; }
15258 if test "$am_cv_func_iconv" = yes; then
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15260 printf %s "checking for working iconv... " >&6; }
15261 if test ${am_cv_func_iconv_works+y}
15262 then :
15263 printf %s "(cached) " >&6
15264 else $as_nop
15265
15266 am_save_LIBS="$LIBS"
15267 if test $am_cv_lib_iconv = yes; then
15268 LIBS="$LIBS $LIBICONV"
15269 fi
15270 if test "$cross_compiling" = yes
15271 then :
15272
15273 case "$host_os" in
15274 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15275 *) am_cv_func_iconv_works="guessing yes" ;;
15276 esac
15277
15278 else $as_nop
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15281
15282 #include <iconv.h>
15283 #include <string.h>
15284 int main ()
15285 {
15286 int result = 0;
15287 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15288 returns. */
15289 {
15290 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15291 if (cd_utf8_to_88591 != (iconv_t)(-1))
15292 {
15293 static const char input[] = "\342\202\254"; /* EURO SIGN */
15294 char buf[10];
15295 const char *inptr = input;
15296 size_t inbytesleft = strlen (input);
15297 char *outptr = buf;
15298 size_t outbytesleft = sizeof (buf);
15299 size_t res = iconv (cd_utf8_to_88591,
15300 (char **) &inptr, &inbytesleft,
15301 &outptr, &outbytesleft);
15302 if (res == 0)
15303 result |= 1;
15304 iconv_close (cd_utf8_to_88591);
15305 }
15306 }
15307 /* Test against Solaris 10 bug: Failures are not distinguishable from
15308 successful returns. */
15309 {
15310 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15311 if (cd_ascii_to_88591 != (iconv_t)(-1))
15312 {
15313 static const char input[] = "\263";
15314 char buf[10];
15315 const char *inptr = input;
15316 size_t inbytesleft = strlen (input);
15317 char *outptr = buf;
15318 size_t outbytesleft = sizeof (buf);
15319 size_t res = iconv (cd_ascii_to_88591,
15320 (char **) &inptr, &inbytesleft,
15321 &outptr, &outbytesleft);
15322 if (res == 0)
15323 result |= 2;
15324 iconv_close (cd_ascii_to_88591);
15325 }
15326 }
15327 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
15328 {
15329 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15330 if (cd_88591_to_utf8 != (iconv_t)(-1))
15331 {
15332 static const char input[] = "\304";
15333 static char buf[2] = { (char)0xDE, (char)0xAD };
15334 const char *inptr = input;
15335 size_t inbytesleft = 1;
15336 char *outptr = buf;
15337 size_t outbytesleft = 1;
15338 size_t res = iconv (cd_88591_to_utf8,
15339 (char **) &inptr, &inbytesleft,
15340 &outptr, &outbytesleft);
15341 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
15342 result |= 4;
15343 iconv_close (cd_88591_to_utf8);
15344 }
15345 }
15346 #if 0 /* This bug could be worked around by the caller. */
15347 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15348 {
15349 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15350 if (cd_88591_to_utf8 != (iconv_t)(-1))
15351 {
15352 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15353 char buf[50];
15354 const char *inptr = input;
15355 size_t inbytesleft = strlen (input);
15356 char *outptr = buf;
15357 size_t outbytesleft = sizeof (buf);
15358 size_t res = iconv (cd_88591_to_utf8,
15359 (char **) &inptr, &inbytesleft,
15360 &outptr, &outbytesleft);
15361 if ((int)res > 0)
15362 result |= 8;
15363 iconv_close (cd_88591_to_utf8);
15364 }
15365 }
15366 #endif
15367 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15368 provided. */
15369 if (/* Try standardized names. */
15370 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15371 /* Try IRIX, OSF/1 names. */
15372 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15373 /* Try AIX names. */
15374 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15375 /* Try HP-UX names. */
15376 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15377 result |= 16;
15378 return result;
15379 }
15380 _ACEOF
15381 if ac_fn_c_try_run "$LINENO"
15382 then :
15383 am_cv_func_iconv_works=yes
15384 else $as_nop
15385 am_cv_func_iconv_works=no
15386 fi
15387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15388 conftest.$ac_objext conftest.beam conftest.$ac_ext
15389 fi
15390
15391 LIBS="$am_save_LIBS"
15392
15393 fi
15394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15395 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
15396 case "$am_cv_func_iconv_works" in
15397 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15398 *) am_func_iconv=yes ;;
15399 esac
15400 else
15401 am_func_iconv=no am_cv_lib_iconv=no
15402 fi
15403 if test "$am_func_iconv" = yes; then
15404
15405 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
15406
15407 fi
15408 if test "$am_cv_lib_iconv" = yes; then
15409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15410 printf %s "checking how to link with libiconv... " >&6; }
15411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15412 printf "%s\n" "$LIBICONV" >&6; }
15413 else
15414 CPPFLAGS="$am_save_CPPFLAGS"
15415 LIBICONV=
15416 LTLIBICONV=
15417 fi
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429 use_additional=yes
15430
15431 acl_save_prefix="$prefix"
15432 prefix="$acl_final_prefix"
15433 acl_save_exec_prefix="$exec_prefix"
15434 exec_prefix="$acl_final_exec_prefix"
15435
15436 eval additional_includedir=\"$includedir\"
15437 eval additional_libdir=\"$libdir\"
15438
15439 exec_prefix="$acl_save_exec_prefix"
15440 prefix="$acl_save_prefix"
15441
15442
15443 # Check whether --with-libintl-prefix was given.
15444 if test ${with_libintl_prefix+y}
15445 then :
15446 withval=$with_libintl_prefix;
15447 if test "X$withval" = "Xno"; then
15448 use_additional=no
15449 else
15450 if test "X$withval" = "X"; then
15451
15452 acl_save_prefix="$prefix"
15453 prefix="$acl_final_prefix"
15454 acl_save_exec_prefix="$exec_prefix"
15455 exec_prefix="$acl_final_exec_prefix"
15456
15457 eval additional_includedir=\"$includedir\"
15458 eval additional_libdir=\"$libdir\"
15459
15460 exec_prefix="$acl_save_exec_prefix"
15461 prefix="$acl_save_prefix"
15462
15463 else
15464 additional_includedir="$withval/include"
15465 additional_libdir="$withval/$acl_libdirstem"
15466 if test "$acl_libdirstem2" != "$acl_libdirstem" \
15467 && ! test -d "$withval/$acl_libdirstem"; then
15468 additional_libdir="$withval/$acl_libdirstem2"
15469 fi
15470 fi
15471 fi
15472
15473 fi
15474
15475 LIBINTL=
15476 LTLIBINTL=
15477 INCINTL=
15478 LIBINTL_PREFIX=
15479 HAVE_LIBINTL=
15480 rpathdirs=
15481 ltrpathdirs=
15482 names_already_handled=
15483 names_next_round='intl '
15484 while test -n "$names_next_round"; do
15485 names_this_round="$names_next_round"
15486 names_next_round=
15487 for name in $names_this_round; do
15488 already_handled=
15489 for n in $names_already_handled; do
15490 if test "$n" = "$name"; then
15491 already_handled=yes
15492 break
15493 fi
15494 done
15495 if test -z "$already_handled"; then
15496 names_already_handled="$names_already_handled $name"
15497 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15498 eval value=\"\$HAVE_LIB$uppername\"
15499 if test -n "$value"; then
15500 if test "$value" = yes; then
15501 eval value=\"\$LIB$uppername\"
15502 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15503 eval value=\"\$LTLIB$uppername\"
15504 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15505 else
15506 :
15507 fi
15508 else
15509 found_dir=
15510 found_la=
15511 found_so=
15512 found_a=
15513 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15514 if test -n "$acl_shlibext"; then
15515 shrext=".$acl_shlibext" # typically: shrext=.so
15516 else
15517 shrext=
15518 fi
15519 if test $use_additional = yes; then
15520 dir="$additional_libdir"
15521 if test -n "$acl_shlibext"; then
15522 if test -f "$dir/$libname$shrext"; then
15523 found_dir="$dir"
15524 found_so="$dir/$libname$shrext"
15525 else
15526 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15527 ver=`(cd "$dir" && \
15528 for f in "$libname$shrext".*; do echo "$f"; done \
15529 | sed -e "s,^$libname$shrext\\\\.,," \
15530 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15531 | sed 1q ) 2>/dev/null`
15532 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15533 found_dir="$dir"
15534 found_so="$dir/$libname$shrext.$ver"
15535 fi
15536 else
15537 eval library_names=\"$acl_library_names_spec\"
15538 for f in $library_names; do
15539 if test -f "$dir/$f"; then
15540 found_dir="$dir"
15541 found_so="$dir/$f"
15542 break
15543 fi
15544 done
15545 fi
15546 fi
15547 fi
15548 if test "X$found_dir" = "X"; then
15549 if test -f "$dir/$libname.$acl_libext"; then
15550 found_dir="$dir"
15551 found_a="$dir/$libname.$acl_libext"
15552 fi
15553 fi
15554 if test "X$found_dir" != "X"; then
15555 if test -f "$dir/$libname.la"; then
15556 found_la="$dir/$libname.la"
15557 fi
15558 fi
15559 fi
15560 if test "X$found_dir" = "X"; then
15561 for x in $LDFLAGS $LTLIBINTL; do
15562
15563 acl_save_prefix="$prefix"
15564 prefix="$acl_final_prefix"
15565 acl_save_exec_prefix="$exec_prefix"
15566 exec_prefix="$acl_final_exec_prefix"
15567 eval x=\"$x\"
15568 exec_prefix="$acl_save_exec_prefix"
15569 prefix="$acl_save_prefix"
15570
15571 case "$x" in
15572 -L*)
15573 dir=`echo "X$x" | sed -e 's/^X-L//'`
15574 if test -n "$acl_shlibext"; then
15575 if test -f "$dir/$libname$shrext"; then
15576 found_dir="$dir"
15577 found_so="$dir/$libname$shrext"
15578 else
15579 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15580 ver=`(cd "$dir" && \
15581 for f in "$libname$shrext".*; do echo "$f"; done \
15582 | sed -e "s,^$libname$shrext\\\\.,," \
15583 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15584 | sed 1q ) 2>/dev/null`
15585 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15586 found_dir="$dir"
15587 found_so="$dir/$libname$shrext.$ver"
15588 fi
15589 else
15590 eval library_names=\"$acl_library_names_spec\"
15591 for f in $library_names; do
15592 if test -f "$dir/$f"; then
15593 found_dir="$dir"
15594 found_so="$dir/$f"
15595 break
15596 fi
15597 done
15598 fi
15599 fi
15600 fi
15601 if test "X$found_dir" = "X"; then
15602 if test -f "$dir/$libname.$acl_libext"; then
15603 found_dir="$dir"
15604 found_a="$dir/$libname.$acl_libext"
15605 fi
15606 fi
15607 if test "X$found_dir" != "X"; then
15608 if test -f "$dir/$libname.la"; then
15609 found_la="$dir/$libname.la"
15610 fi
15611 fi
15612 ;;
15613 esac
15614 if test "X$found_dir" != "X"; then
15615 break
15616 fi
15617 done
15618 fi
15619 if test "X$found_dir" != "X"; then
15620 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15621 if test "X$found_so" != "X"; then
15622 if test "$enable_rpath" = no \
15623 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15624 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15625 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15626 else
15627 haveit=
15628 for x in $ltrpathdirs; do
15629 if test "X$x" = "X$found_dir"; then
15630 haveit=yes
15631 break
15632 fi
15633 done
15634 if test -z "$haveit"; then
15635 ltrpathdirs="$ltrpathdirs $found_dir"
15636 fi
15637 if test "$acl_hardcode_direct" = yes; then
15638 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15639 else
15640 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15641 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15642 haveit=
15643 for x in $rpathdirs; do
15644 if test "X$x" = "X$found_dir"; then
15645 haveit=yes
15646 break
15647 fi
15648 done
15649 if test -z "$haveit"; then
15650 rpathdirs="$rpathdirs $found_dir"
15651 fi
15652 else
15653 haveit=
15654 for x in $LDFLAGS $LIBINTL; do
15655
15656 acl_save_prefix="$prefix"
15657 prefix="$acl_final_prefix"
15658 acl_save_exec_prefix="$exec_prefix"
15659 exec_prefix="$acl_final_exec_prefix"
15660 eval x=\"$x\"
15661 exec_prefix="$acl_save_exec_prefix"
15662 prefix="$acl_save_prefix"
15663
15664 if test "X$x" = "X-L$found_dir"; then
15665 haveit=yes
15666 break
15667 fi
15668 done
15669 if test -z "$haveit"; then
15670 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15671 fi
15672 if test "$acl_hardcode_minus_L" != no; then
15673 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15674 else
15675 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15676 fi
15677 fi
15678 fi
15679 fi
15680 else
15681 if test "X$found_a" != "X"; then
15682 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15683 else
15684 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15685 fi
15686 fi
15687 additional_includedir=
15688 case "$found_dir" in
15689 */$acl_libdirstem | */$acl_libdirstem/)
15690 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15691 if test "$name" = 'intl'; then
15692 LIBINTL_PREFIX="$basedir"
15693 fi
15694 additional_includedir="$basedir/include"
15695 ;;
15696 */$acl_libdirstem2 | */$acl_libdirstem2/)
15697 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15698 if test "$name" = 'intl'; then
15699 LIBINTL_PREFIX="$basedir"
15700 fi
15701 additional_includedir="$basedir/include"
15702 ;;
15703 esac
15704 if test "X$additional_includedir" != "X"; then
15705 if test "X$additional_includedir" != "X/usr/include"; then
15706 haveit=
15707 if test "X$additional_includedir" = "X/usr/local/include"; then
15708 if test -n "$GCC"; then
15709 case $host_os in
15710 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15711 esac
15712 fi
15713 fi
15714 if test -z "$haveit"; then
15715 for x in $CPPFLAGS $INCINTL; do
15716
15717 acl_save_prefix="$prefix"
15718 prefix="$acl_final_prefix"
15719 acl_save_exec_prefix="$exec_prefix"
15720 exec_prefix="$acl_final_exec_prefix"
15721 eval x=\"$x\"
15722 exec_prefix="$acl_save_exec_prefix"
15723 prefix="$acl_save_prefix"
15724
15725 if test "X$x" = "X-I$additional_includedir"; then
15726 haveit=yes
15727 break
15728 fi
15729 done
15730 if test -z "$haveit"; then
15731 if test -d "$additional_includedir"; then
15732 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15733 fi
15734 fi
15735 fi
15736 fi
15737 fi
15738 if test -n "$found_la"; then
15739 save_libdir="$libdir"
15740 case "$found_la" in
15741 */* | *\\*) . "$found_la" ;;
15742 *) . "./$found_la" ;;
15743 esac
15744 libdir="$save_libdir"
15745 for dep in $dependency_libs; do
15746 case "$dep" in
15747 -L*)
15748 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15749 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15750 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15751 haveit=
15752 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15753 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15754 if test -n "$GCC"; then
15755 case $host_os in
15756 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15757 esac
15758 fi
15759 fi
15760 if test -z "$haveit"; then
15761 haveit=
15762 for x in $LDFLAGS $LIBINTL; do
15763
15764 acl_save_prefix="$prefix"
15765 prefix="$acl_final_prefix"
15766 acl_save_exec_prefix="$exec_prefix"
15767 exec_prefix="$acl_final_exec_prefix"
15768 eval x=\"$x\"
15769 exec_prefix="$acl_save_exec_prefix"
15770 prefix="$acl_save_prefix"
15771
15772 if test "X$x" = "X-L$additional_libdir"; then
15773 haveit=yes
15774 break
15775 fi
15776 done
15777 if test -z "$haveit"; then
15778 if test -d "$additional_libdir"; then
15779 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15780 fi
15781 fi
15782 haveit=
15783 for x in $LDFLAGS $LTLIBINTL; do
15784
15785 acl_save_prefix="$prefix"
15786 prefix="$acl_final_prefix"
15787 acl_save_exec_prefix="$exec_prefix"
15788 exec_prefix="$acl_final_exec_prefix"
15789 eval x=\"$x\"
15790 exec_prefix="$acl_save_exec_prefix"
15791 prefix="$acl_save_prefix"
15792
15793 if test "X$x" = "X-L$additional_libdir"; then
15794 haveit=yes
15795 break
15796 fi
15797 done
15798 if test -z "$haveit"; then
15799 if test -d "$additional_libdir"; then
15800 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15801 fi
15802 fi
15803 fi
15804 fi
15805 ;;
15806 -R*)
15807 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15808 if test "$enable_rpath" != no; then
15809 haveit=
15810 for x in $rpathdirs; do
15811 if test "X$x" = "X$dir"; then
15812 haveit=yes
15813 break
15814 fi
15815 done
15816 if test -z "$haveit"; then
15817 rpathdirs="$rpathdirs $dir"
15818 fi
15819 haveit=
15820 for x in $ltrpathdirs; do
15821 if test "X$x" = "X$dir"; then
15822 haveit=yes
15823 break
15824 fi
15825 done
15826 if test -z "$haveit"; then
15827 ltrpathdirs="$ltrpathdirs $dir"
15828 fi
15829 fi
15830 ;;
15831 -l*)
15832 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15833 ;;
15834 *.la)
15835 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15836 ;;
15837 *)
15838 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15839 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15840 ;;
15841 esac
15842 done
15843 fi
15844 else
15845 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15846 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15847 fi
15848 fi
15849 fi
15850 done
15851 done
15852 if test "X$rpathdirs" != "X"; then
15853 if test -n "$acl_hardcode_libdir_separator"; then
15854 alldirs=
15855 for found_dir in $rpathdirs; do
15856 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15857 done
15858 acl_save_libdir="$libdir"
15859 libdir="$alldirs"
15860 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15861 libdir="$acl_save_libdir"
15862 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15863 else
15864 for found_dir in $rpathdirs; do
15865 acl_save_libdir="$libdir"
15866 libdir="$found_dir"
15867 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15868 libdir="$acl_save_libdir"
15869 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15870 done
15871 fi
15872 fi
15873 if test "X$ltrpathdirs" != "X"; then
15874 for found_dir in $ltrpathdirs; do
15875 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15876 done
15877 fi
15878
15879
15880
15881
15882
15883
15884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15885 printf %s "checking for GNU gettext in libintl... " >&6; }
15886 if eval test \${$gt_func_gnugettext_libintl+y}
15887 then :
15888 printf %s "(cached) " >&6
15889 else $as_nop
15890 gt_save_CPPFLAGS="$CPPFLAGS"
15891 CPPFLAGS="$CPPFLAGS $INCINTL"
15892 gt_save_LIBS="$LIBS"
15893 LIBS="$LIBS $LIBINTL"
15894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895 /* end confdefs.h. */
15896
15897 #include <libintl.h>
15898 $gt_revision_test_code
15899 extern int _nl_msg_cat_cntr;
15900 extern
15901 #ifdef __cplusplus
15902 "C"
15903 #endif
15904 const char *_nl_expand_alias (const char *);
15905
15906 int
15907 main (void)
15908 {
15909
15910 bindtextdomain ("", "");
15911 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15912
15913 ;
15914 return 0;
15915 }
15916 _ACEOF
15917 if ac_fn_c_try_link "$LINENO"
15918 then :
15919 eval "$gt_func_gnugettext_libintl=yes"
15920 else $as_nop
15921 eval "$gt_func_gnugettext_libintl=no"
15922 fi
15923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15924 conftest$ac_exeext conftest.$ac_ext
15925 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15926 LIBS="$LIBS $LIBICONV"
15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15929
15930 #include <libintl.h>
15931 $gt_revision_test_code
15932 extern int _nl_msg_cat_cntr;
15933 extern
15934 #ifdef __cplusplus
15935 "C"
15936 #endif
15937 const char *_nl_expand_alias (const char *);
15938
15939 int
15940 main (void)
15941 {
15942
15943 bindtextdomain ("", "");
15944 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15945
15946 ;
15947 return 0;
15948 }
15949 _ACEOF
15950 if ac_fn_c_try_link "$LINENO"
15951 then :
15952 LIBINTL="$LIBINTL $LIBICONV"
15953 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15954 eval "$gt_func_gnugettext_libintl=yes"
15955
15956 fi
15957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15958 conftest$ac_exeext conftest.$ac_ext
15959 fi
15960 CPPFLAGS="$gt_save_CPPFLAGS"
15961 LIBS="$gt_save_LIBS"
15962 fi
15963 eval ac_res=\$$gt_func_gnugettext_libintl
15964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15965 printf "%s\n" "$ac_res" >&6; }
15966 fi
15967
15968 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15969 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15970 && test "$PACKAGE" != gettext-runtime \
15971 && test "$PACKAGE" != gettext-tools; }; then
15972 gt_use_preinstalled_gnugettext=yes
15973 else
15974 LIBINTL=
15975 LTLIBINTL=
15976 INCINTL=
15977 fi
15978
15979
15980
15981 if test -n "$INTL_MACOSX_LIBS"; then
15982 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15983 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15984 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15985 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15986 fi
15987 fi
15988
15989 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15990 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15991
15992 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
15993
15994 else
15995 USE_NLS=no
15996 fi
15997 fi
15998
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16000 printf %s "checking whether to use NLS... " >&6; }
16001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16002 printf "%s\n" "$USE_NLS" >&6; }
16003 if test "$USE_NLS" = "yes"; then
16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16005 printf %s "checking where the gettext function comes from... " >&6; }
16006 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16007 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16008 gt_source="external libintl"
16009 else
16010 gt_source="libc"
16011 fi
16012 else
16013 gt_source="included intl directory"
16014 fi
16015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16016 printf "%s\n" "$gt_source" >&6; }
16017 fi
16018
16019 if test "$USE_NLS" = "yes"; then
16020
16021 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16022 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16024 printf %s "checking how to link with libintl... " >&6; }
16025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16026 printf "%s\n" "$LIBINTL" >&6; }
16027
16028 for element in $INCINTL; do
16029 haveit=
16030 for x in $CPPFLAGS; do
16031
16032 acl_save_prefix="$prefix"
16033 prefix="$acl_final_prefix"
16034 acl_save_exec_prefix="$exec_prefix"
16035 exec_prefix="$acl_final_exec_prefix"
16036 eval x=\"$x\"
16037 exec_prefix="$acl_save_exec_prefix"
16038 prefix="$acl_save_prefix"
16039
16040 if test "X$x" = "X$element"; then
16041 haveit=yes
16042 break
16043 fi
16044 done
16045 if test -z "$haveit"; then
16046 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16047 fi
16048 done
16049
16050 fi
16051
16052
16053 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
16054
16055
16056 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
16057
16058 fi
16059
16060 POSUB=po
16061 fi
16062
16063
16064
16065 INTLLIBS="$LIBINTL"
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075 have_ld_version_script=no
16076 case "${host}" in
16077 *-*-linux*)
16078 have_ld_version_script=yes
16079 ;;
16080 *-*-gnu*)
16081 have_ld_version_script=yes
16082 ;;
16083 esac
16084
16085 # Check whether --enable-ld-version-script was given.
16086 if test ${enable_ld_version_script+y}
16087 then :
16088 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
16089 else $as_nop
16090 :
16091 fi
16092
16093 if test "$have_ld_version_script" = "yes"; then
16094 HAVE_LD_VERSION_SCRIPT_TRUE=
16095 HAVE_LD_VERSION_SCRIPT_FALSE='#'
16096 else
16097 HAVE_LD_VERSION_SCRIPT_TRUE='#'
16098 HAVE_LD_VERSION_SCRIPT_FALSE=
16099 fi
16100
16101
16102 PAM_LIBS=
16103 # Check whether --enable-pam was given.
16104 if test ${enable_pam+y}
16105 then :
16106 enableval=$enable_pam;
16107 else $as_nop
16108 enable_pam=check
16109 fi
16110
16111 if test "$enable_pam" != "no"; then
16112 if test "$enable_pam" = "check"; then
16113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16114 printf %s "checking for pam_start in -lpam... " >&6; }
16115 if test ${ac_cv_lib_pam_pam_start+y}
16116 then :
16117 printf %s "(cached) " >&6
16118 else $as_nop
16119 ac_check_lib_save_LIBS=$LIBS
16120 LIBS="-lpam $LIBS"
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16123
16124 /* Override any GCC internal prototype to avoid an error.
16125 Use char because int might match the return type of a GCC
16126 builtin and then its argument prototype would still apply. */
16127 char pam_start ();
16128 int
16129 main (void)
16130 {
16131 return pam_start ();
16132 ;
16133 return 0;
16134 }
16135 _ACEOF
16136 if ac_fn_c_try_link "$LINENO"
16137 then :
16138 ac_cv_lib_pam_pam_start=yes
16139 else $as_nop
16140 ac_cv_lib_pam_pam_start=no
16141 fi
16142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16143 conftest$ac_exeext conftest.$ac_ext
16144 LIBS=$ac_check_lib_save_LIBS
16145 fi
16146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16147 printf "%s\n" "$ac_cv_lib_pam_pam_start" >&6; }
16148 if test "x$ac_cv_lib_pam_pam_start" = xyes
16149 then :
16150 enable_pam=yes
16151 else $as_nop
16152 enable_pam=no
16153 fi
16154
16155 else
16156 fail=0
16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16158 printf %s "checking for pam_start in -lpam... " >&6; }
16159 if test ${ac_cv_lib_pam_pam_start+y}
16160 then :
16161 printf %s "(cached) " >&6
16162 else $as_nop
16163 ac_check_lib_save_LIBS=$LIBS
16164 LIBS="-lpam $LIBS"
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16167
16168 /* Override any GCC internal prototype to avoid an error.
16169 Use char because int might match the return type of a GCC
16170 builtin and then its argument prototype would still apply. */
16171 char pam_start ();
16172 int
16173 main (void)
16174 {
16175 return pam_start ();
16176 ;
16177 return 0;
16178 }
16179 _ACEOF
16180 if ac_fn_c_try_link "$LINENO"
16181 then :
16182 ac_cv_lib_pam_pam_start=yes
16183 else $as_nop
16184 ac_cv_lib_pam_pam_start=no
16185 fi
16186 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16187 conftest$ac_exeext conftest.$ac_ext
16188 LIBS=$ac_check_lib_save_LIBS
16189 fi
16190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16191 printf "%s\n" "$ac_cv_lib_pam_pam_start" >&6; }
16192 if test "x$ac_cv_lib_pam_pam_start" = xyes
16193 then :
16194 printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h
16195
16196 LIBS="-lpam $LIBS"
16197
16198 else $as_nop
16199 fail=1
16200 fi
16201
16202 test $fail = 1 &&
16203 as_fn_error $? "You must install the PAM development package in order to compile libpwquality" "$LINENO" 5
16204 fi
16205 ac_fn_c_check_func "$LINENO" "pam_modutil_check_user_in_passwd" "ac_cv_func_pam_modutil_check_user_in_passwd"
16206 if test "x$ac_cv_func_pam_modutil_check_user_in_passwd" = xyes
16207 then :
16208
16209 printf "%s\n" "#define HAVE_PAM_CHECK_USER_IN_PASSWD /**/" >>confdefs.h
16210
16211 fi
16212
16213 fi
16214
16215 if test "$enable_pam" = "yes"; then
16216 PAM_LIBS="${PAM_LIBS} -lpam"
16217 fi
16218
16219 if test "$enable_pam" = "yes"; then
16220 HAVE_PAM_TRUE=
16221 HAVE_PAM_FALSE='#'
16222 else
16223 HAVE_PAM_TRUE='#'
16224 HAVE_PAM_FALSE=
16225 fi
16226
16227
16228
16229 # Check whether --with-securedir was given.
16230 if test ${with_securedir+y}
16231 then :
16232 withval=$with_securedir; SECUREDIR=$withval
16233 else $as_nop
16234 SECUREDIR=$libdir/security
16235 fi
16236
16237
16238
16239
16240 # Check whether --with-sconfigdir was given.
16241 if test ${with_sconfigdir+y}
16242 then :
16243 withval=$with_sconfigdir; SCONFIGDIR=$enableval
16244 else $as_nop
16245 SCONFIGDIR=$sysconfdir/security
16246 fi
16247
16248
16249
16250 # Check whether --enable-python-bindings was given.
16251 if test ${enable_python_bindings+y}
16252 then :
16253 enableval=$enable_python_bindings; enable_python_bindings=$enableval
16254 else $as_nop
16255 enable_python_bindings=yes
16256 fi
16257
16258 if test x"$enable_python_bindings" = xyes; then
16259 BUILD_PYTHON_BINDINGS_TRUE=
16260 BUILD_PYTHON_BINDINGS_FALSE='#'
16261 else
16262 BUILD_PYTHON_BINDINGS_TRUE='#'
16263 BUILD_PYTHON_BINDINGS_FALSE=
16264 fi
16265
16266
16267
16268 # Check whether --with-python-binary was given.
16269 if test ${with_python_binary+y}
16270 then :
16271 withval=$with_python_binary; PYTHONBINARY=$withval
16272 else $as_nop
16273 PYTHONBINARY=python
16274 fi
16275
16276
16277
16278
16279 # Check whether --with-python-rev was given.
16280 if test ${with_python_rev+y}
16281 then :
16282 withval=$with_python_rev; PYTHONREV=$withval
16283 else $as_nop
16284
16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python version" >&5
16286 printf %s "checking python version... " >&6; }
16287 PYTHONREV=`$PYTHONBINARY -c "import sys;sys.stdout.write('%s.%s' % (sys.version_info[0], sys.version_info[1]))"`
16288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHONREV" >&5
16289 printf "%s\n" "$PYTHONREV" >&6; }
16290
16291 fi
16292
16293
16294
16295
16296 # Check whether --with-pythonsitedir was given.
16297 if test ${with_pythonsitedir+y}
16298 then :
16299 withval=$with_pythonsitedir; PYTHONSITEDIR=$withval
16300 else $as_nop
16301
16302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python site directory" >&5
16303 printf %s "checking python site directory... " >&6; }
16304 PYTHONSITEDIR=$libdir/python$PYTHONREV/site-packages
16305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHONSITEDIR" >&5
16306 printf "%s\n" "$PYTHONSITEDIR" >&6; }
16307
16308 fi
16309
16310
16311
16312
16313 # Check whether --with-randomdev was given.
16314 if test ${with_randomdev+y}
16315 then :
16316 withval=$with_randomdev; opt_randomdev=$withval
16317 fi
16318
16319 if test "$opt_randomdev" = yes -o -z "$opt_randomdev"; then
16320 opt_randomdev="/dev/urandom"
16321 fi
16322
16323 printf "%s\n" "#define CONF_PATH_RANDOMDEV \"$opt_randomdev\"" >>confdefs.h
16324
16325
16326 # Check whether --enable-cracklib-check was given.
16327 if test ${enable_cracklib_check+y}
16328 then :
16329 enableval=$enable_cracklib_check; enable_cracklib_check=$enableval
16330 fi
16331
16332
16333 if test "x$enable_cracklib_check" != "xno"
16334 then :
16335
16336 for ac_header in crack.h
16337 do :
16338 ac_fn_c_check_header_compile "$LINENO" "crack.h" "ac_cv_header_crack_h" "$ac_includes_default"
16339 if test "x$ac_cv_header_crack_h" = xyes
16340 then :
16341 printf "%s\n" "#define HAVE_CRACK_H 1" >>confdefs.h
16342
16343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FascistCheck in -lcrack" >&5
16344 printf %s "checking for FascistCheck in -lcrack... " >&6; }
16345 if test ${ac_cv_lib_crack_FascistCheck+y}
16346 then :
16347 printf %s "(cached) " >&6
16348 else $as_nop
16349 ac_check_lib_save_LIBS=$LIBS
16350 LIBS="-lcrack $LIBS"
16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h. */
16353
16354 /* Override any GCC internal prototype to avoid an error.
16355 Use char because int might match the return type of a GCC
16356 builtin and then its argument prototype would still apply. */
16357 char FascistCheck ();
16358 int
16359 main (void)
16360 {
16361 return FascistCheck ();
16362 ;
16363 return 0;
16364 }
16365 _ACEOF
16366 if ac_fn_c_try_link "$LINENO"
16367 then :
16368 ac_cv_lib_crack_FascistCheck=yes
16369 else $as_nop
16370 ac_cv_lib_crack_FascistCheck=no
16371 fi
16372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16373 conftest$ac_exeext conftest.$ac_ext
16374 LIBS=$ac_check_lib_save_LIBS
16375 fi
16376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_FascistCheck" >&5
16377 printf "%s\n" "$ac_cv_lib_crack_FascistCheck" >&6; }
16378 if test "x$ac_cv_lib_crack_FascistCheck" = xyes
16379 then :
16380 LIBCRACK="-lcrack" LIBS="$LIBS"
16381 else $as_nop
16382 LIBCRACK=""
16383 fi
16384
16385 if test "x$ac_cv_lib_crack_FascistCheck" = "xno" ; then
16386 unset ac_cv_lib_crack_FascistCheck
16387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FascistCheck in -lcrack" >&5
16388 printf %s "checking for FascistCheck in -lcrack... " >&6; }
16389 if test ${ac_cv_lib_crack_FascistCheck+y}
16390 then :
16391 printf %s "(cached) " >&6
16392 else $as_nop
16393 ac_check_lib_save_LIBS=$LIBS
16394 LIBS="-lcrack -lz $LIBS"
16395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h. */
16397
16398 /* Override any GCC internal prototype to avoid an error.
16399 Use char because int might match the return type of a GCC
16400 builtin and then its argument prototype would still apply. */
16401 char FascistCheck ();
16402 int
16403 main (void)
16404 {
16405 return FascistCheck ();
16406 ;
16407 return 0;
16408 }
16409 _ACEOF
16410 if ac_fn_c_try_link "$LINENO"
16411 then :
16412 ac_cv_lib_crack_FascistCheck=yes
16413 else $as_nop
16414 ac_cv_lib_crack_FascistCheck=no
16415 fi
16416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16417 conftest$ac_exeext conftest.$ac_ext
16418 LIBS=$ac_check_lib_save_LIBS
16419 fi
16420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_FascistCheck" >&5
16421 printf "%s\n" "$ac_cv_lib_crack_FascistCheck" >&6; }
16422 if test "x$ac_cv_lib_crack_FascistCheck" = xyes
16423 then :
16424 LIBCRACK="-lz -lcrack" LIBS="$LIBS -lz"
16425 else $as_nop
16426 LIBCRACK=""
16427 fi
16428
16429 fi
16430
16431 fi
16432
16433 done
16434 if test "x$LIBCRACK" = "x" ; then
16435 as_fn_error $? "No or unusable cracklib library" "$LINENO" 5
16436 fi
16437
16438
16439 fi
16440
16441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16442 printf %s "checking whether byte ordering is bigendian... " >&6; }
16443 if test ${ac_cv_c_bigendian+y}
16444 then :
16445 printf %s "(cached) " >&6
16446 else $as_nop
16447 ac_cv_c_bigendian=unknown
16448 # See if we're dealing with a universal compiler.
16449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h. */
16451 #ifndef __APPLE_CC__
16452 not a universal capable compiler
16453 #endif
16454 typedef int dummy;
16455
16456 _ACEOF
16457 if ac_fn_c_try_compile "$LINENO"
16458 then :
16459
16460 # Check for potential -arch flags. It is not universal unless
16461 # there are at least two -arch flags with different values.
16462 ac_arch=
16463 ac_prev=
16464 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16465 if test -n "$ac_prev"; then
16466 case $ac_word in
16467 i?86 | x86_64 | ppc | ppc64)
16468 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16469 ac_arch=$ac_word
16470 else
16471 ac_cv_c_bigendian=universal
16472 break
16473 fi
16474 ;;
16475 esac
16476 ac_prev=
16477 elif test "x$ac_word" = "x-arch"; then
16478 ac_prev=arch
16479 fi
16480 done
16481 fi
16482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16483 if test $ac_cv_c_bigendian = unknown; then
16484 # See if sys/param.h defines the BYTE_ORDER macro.
16485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486 /* end confdefs.h. */
16487 #include <sys/types.h>
16488 #include <sys/param.h>
16489
16490 int
16491 main (void)
16492 {
16493 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16494 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16495 && LITTLE_ENDIAN)
16496 bogus endian macros
16497 #endif
16498
16499 ;
16500 return 0;
16501 }
16502 _ACEOF
16503 if ac_fn_c_try_compile "$LINENO"
16504 then :
16505 # It does; now see whether it defined to BIG_ENDIAN or not.
16506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16508 #include <sys/types.h>
16509 #include <sys/param.h>
16510
16511 int
16512 main (void)
16513 {
16514 #if BYTE_ORDER != BIG_ENDIAN
16515 not big endian
16516 #endif
16517
16518 ;
16519 return 0;
16520 }
16521 _ACEOF
16522 if ac_fn_c_try_compile "$LINENO"
16523 then :
16524 ac_cv_c_bigendian=yes
16525 else $as_nop
16526 ac_cv_c_bigendian=no
16527 fi
16528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16529 fi
16530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16531 fi
16532 if test $ac_cv_c_bigendian = unknown; then
16533 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535 /* end confdefs.h. */
16536 #include <limits.h>
16537
16538 int
16539 main (void)
16540 {
16541 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16542 bogus endian macros
16543 #endif
16544
16545 ;
16546 return 0;
16547 }
16548 _ACEOF
16549 if ac_fn_c_try_compile "$LINENO"
16550 then :
16551 # It does; now see whether it defined to _BIG_ENDIAN or not.
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16554 #include <limits.h>
16555
16556 int
16557 main (void)
16558 {
16559 #ifndef _BIG_ENDIAN
16560 not big endian
16561 #endif
16562
16563 ;
16564 return 0;
16565 }
16566 _ACEOF
16567 if ac_fn_c_try_compile "$LINENO"
16568 then :
16569 ac_cv_c_bigendian=yes
16570 else $as_nop
16571 ac_cv_c_bigendian=no
16572 fi
16573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16574 fi
16575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16576 fi
16577 if test $ac_cv_c_bigendian = unknown; then
16578 # Compile a test program.
16579 if test "$cross_compiling" = yes
16580 then :
16581 # Try to guess by grepping values from an object file.
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h. */
16584 unsigned short int ascii_mm[] =
16585 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16586 unsigned short int ascii_ii[] =
16587 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16588 int use_ascii (int i) {
16589 return ascii_mm[i] + ascii_ii[i];
16590 }
16591 unsigned short int ebcdic_ii[] =
16592 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16593 unsigned short int ebcdic_mm[] =
16594 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16595 int use_ebcdic (int i) {
16596 return ebcdic_mm[i] + ebcdic_ii[i];
16597 }
16598 extern int foo;
16599
16600 int
16601 main (void)
16602 {
16603 return use_ascii (foo) == use_ebcdic (foo);
16604 ;
16605 return 0;
16606 }
16607 _ACEOF
16608 if ac_fn_c_try_compile "$LINENO"
16609 then :
16610 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16611 ac_cv_c_bigendian=yes
16612 fi
16613 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16614 if test "$ac_cv_c_bigendian" = unknown; then
16615 ac_cv_c_bigendian=no
16616 else
16617 # finding both strings is unlikely to happen, but who knows?
16618 ac_cv_c_bigendian=unknown
16619 fi
16620 fi
16621 fi
16622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16623 else $as_nop
16624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625 /* end confdefs.h. */
16626 $ac_includes_default
16627 int
16628 main (void)
16629 {
16630
16631 /* Are we little or big endian? From Harbison&Steele. */
16632 union
16633 {
16634 long int l;
16635 char c[sizeof (long int)];
16636 } u;
16637 u.l = 1;
16638 return u.c[sizeof (long int) - 1] == 1;
16639
16640 ;
16641 return 0;
16642 }
16643 _ACEOF
16644 if ac_fn_c_try_run "$LINENO"
16645 then :
16646 ac_cv_c_bigendian=no
16647 else $as_nop
16648 ac_cv_c_bigendian=yes
16649 fi
16650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16651 conftest.$ac_objext conftest.beam conftest.$ac_ext
16652 fi
16653
16654 fi
16655 fi
16656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16657 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
16658 case $ac_cv_c_bigendian in #(
16659 yes)
16660 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
16661 ;; #(
16662 no)
16663 ;; #(
16664 universal)
16665
16666 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16667
16668 ;; #(
16669 *)
16670 as_fn_error $? "unknown endianness
16671 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16672 esac
16673
16674
16675 ac_config_files="$ac_config_files Makefile libpwquality.spec src/Makefile src/pwquality.pc po/Makefile.in python/Makefile doc/Makefile doc/man/Makefile python/setup.py"
16676
16677 cat >confcache <<\_ACEOF
16678 # This file is a shell script that caches the results of configure
16679 # tests run on this system so they can be shared between configure
16680 # scripts and configure runs, see configure's option --config-cache.
16681 # It is not useful on other systems. If it contains results you don't
16682 # want to keep, you may remove or edit it.
16683 #
16684 # config.status only pays attention to the cache file if you give it
16685 # the --recheck option to rerun configure.
16686 #
16687 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16688 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16689 # following values.
16690
16691 _ACEOF
16692
16693 # The following way of writing the cache mishandles newlines in values,
16694 # but we know of no workaround that is simple, portable, and efficient.
16695 # So, we kill variables containing newlines.
16696 # Ultrix sh set writes to stderr and can't be redirected directly,
16697 # and sets the high bit in the cache file unless we assign to the vars.
16698 (
16699 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16700 eval ac_val=\$$ac_var
16701 case $ac_val in #(
16702 *${as_nl}*)
16703 case $ac_var in #(
16704 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16705 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16706 esac
16707 case $ac_var in #(
16708 _ | IFS | as_nl) ;; #(
16709 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16710 *) { eval $ac_var=; unset $ac_var;} ;;
16711 esac ;;
16712 esac
16713 done
16714
16715 (set) 2>&1 |
16716 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16717 *${as_nl}ac_space=\ *)
16718 # `set' does not quote correctly, so add quotes: double-quote
16719 # substitution turns \\\\ into \\, and sed turns \\ into \.
16720 sed -n \
16721 "s/'/'\\\\''/g;
16722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16723 ;; #(
16724 *)
16725 # `set' quotes correctly as required by POSIX, so do not add quotes.
16726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16727 ;;
16728 esac |
16729 sort
16730 ) |
16731 sed '
16732 /^ac_cv_env_/b end
16733 t clear
16734 :clear
16735 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16736 t end
16737 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16738 :end' >>confcache
16739 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16740 if test -w "$cache_file"; then
16741 if test "x$cache_file" != "x/dev/null"; then
16742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16743 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16744 if test ! -f "$cache_file" || test -h "$cache_file"; then
16745 cat confcache >"$cache_file"
16746 else
16747 case $cache_file in #(
16748 */* | ?:*)
16749 mv -f confcache "$cache_file"$$ &&
16750 mv -f "$cache_file"$$ "$cache_file" ;; #(
16751 *)
16752 mv -f confcache "$cache_file" ;;
16753 esac
16754 fi
16755 fi
16756 else
16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16758 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16759 fi
16760 fi
16761 rm -f confcache
16762
16763 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16764 # Let make expand exec_prefix.
16765 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16766
16767 DEFS=-DHAVE_CONFIG_H
16768
16769 ac_libobjs=
16770 ac_ltlibobjs=
16771 U=
16772 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16773 # 1. Remove the extension, and $U if already installed.
16774 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16775 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16777 # will be set to the directory where LIBOBJS objects are built.
16778 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16779 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16780 done
16781 LIBOBJS=$ac_libobjs
16782
16783 LTLIBOBJS=$ac_ltlibobjs
16784
16785
16786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16787 printf %s "checking that generated files are newer than configure... " >&6; }
16788 if test -n "$am_sleep_pid"; then
16789 # Hide warnings about reused PIDs.
16790 wait $am_sleep_pid 2>/dev/null
16791 fi
16792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16793 printf "%s\n" "done" >&6; }
16794 if test -n "$EXEEXT"; then
16795 am__EXEEXT_TRUE=
16796 am__EXEEXT_FALSE='#'
16797 else
16798 am__EXEEXT_TRUE='#'
16799 am__EXEEXT_FALSE=
16800 fi
16801
16802 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16803 as_fn_error $? "conditional \"AMDEP\" was never defined.
16804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16805 fi
16806 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16807 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16809 fi
16810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16811 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16813 fi
16814 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
16815 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16817 fi
16818 if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
16819 as_fn_error $? "conditional \"HAVE_PAM\" was never defined.
16820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16821 fi
16822 if test -z "${BUILD_PYTHON_BINDINGS_TRUE}" && test -z "${BUILD_PYTHON_BINDINGS_FALSE}"; then
16823 as_fn_error $? "conditional \"BUILD_PYTHON_BINDINGS\" was never defined.
16824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16825 fi
16826
16827
16828 : "${CONFIG_STATUS=./config.status}"
16829 ac_write_fail=0
16830 ac_clean_files_save=$ac_clean_files
16831 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16833 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16834 as_write_fail=0
16835 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16836 #! $SHELL
16837 # Generated by $as_me.
16838 # Run this file to recreate the current configuration.
16839 # Compiler output produced by configure, useful for debugging
16840 # configure, is in config.log if it exists.
16841
16842 debug=false
16843 ac_cs_recheck=false
16844 ac_cs_silent=false
16845
16846 SHELL=\${CONFIG_SHELL-$SHELL}
16847 export SHELL
16848 _ASEOF
16849 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16850 ## -------------------- ##
16851 ## M4sh Initialization. ##
16852 ## -------------------- ##
16853
16854 # Be more Bourne compatible
16855 DUALCASE=1; export DUALCASE # for MKS sh
16856 as_nop=:
16857 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16858 then :
16859 emulate sh
16860 NULLCMD=:
16861 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16862 # is contrary to our usage. Disable this feature.
16863 alias -g '${1+"$@"}'='"$@"'
16864 setopt NO_GLOB_SUBST
16865 else $as_nop
16866 case `(set -o) 2>/dev/null` in #(
16867 *posix*) :
16868 set -o posix ;; #(
16869 *) :
16870 ;;
16871 esac
16872 fi
16873
16874
16875
16876 # Reset variables that may have inherited troublesome values from
16877 # the environment.
16878
16879 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16880 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16881 # side effect of setting IFS to empty, thus disabling word splitting.)
16882 # Quoting is to prevent editors from complaining about space-tab.
16883 as_nl='
16884 '
16885 export as_nl
16886 IFS=" "" $as_nl"
16887
16888 PS1='$ '
16889 PS2='> '
16890 PS4='+ '
16891
16892 # Ensure predictable behavior from utilities with locale-dependent output.
16893 LC_ALL=C
16894 export LC_ALL
16895 LANGUAGE=C
16896 export LANGUAGE
16897
16898 # We cannot yet rely on "unset" to work, but we need these variables
16899 # to be unset--not just set to an empty or harmless value--now, to
16900 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16901 # also avoids known problems related to "unset" and subshell syntax
16902 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16903 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16904 do eval test \${$as_var+y} \
16905 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16906 done
16907
16908 # Ensure that fds 0, 1, and 2 are open.
16909 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16910 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16911 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16912
16913 # The user is always right.
16914 if ${PATH_SEPARATOR+false} :; then
16915 PATH_SEPARATOR=:
16916 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16917 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16918 PATH_SEPARATOR=';'
16919 }
16920 fi
16921
16922
16923 # Find who we are. Look in the path if we contain no directory separator.
16924 as_myself=
16925 case $0 in #((
16926 *[\\/]* ) as_myself=$0 ;;
16927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16928 for as_dir in $PATH
16929 do
16930 IFS=$as_save_IFS
16931 case $as_dir in #(((
16932 '') as_dir=./ ;;
16933 */) ;;
16934 *) as_dir=$as_dir/ ;;
16935 esac
16936 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16937 done
16938 IFS=$as_save_IFS
16939
16940 ;;
16941 esac
16942 # We did not find ourselves, most probably we were run as `sh COMMAND'
16943 # in which case we are not to be found in the path.
16944 if test "x$as_myself" = x; then
16945 as_myself=$0
16946 fi
16947 if test ! -f "$as_myself"; then
16948 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16949 exit 1
16950 fi
16951
16952
16953
16954 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16955 # ----------------------------------------
16956 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16957 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16958 # script with STATUS, using 1 if that was 0.
16959 as_fn_error ()
16960 {
16961 as_status=$1; test $as_status -eq 0 && as_status=1
16962 if test "$4"; then
16963 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16965 fi
16966 printf "%s\n" "$as_me: error: $2" >&2
16967 as_fn_exit $as_status
16968 } # as_fn_error
16969
16970
16971
16972 # as_fn_set_status STATUS
16973 # -----------------------
16974 # Set $? to STATUS, without forking.
16975 as_fn_set_status ()
16976 {
16977 return $1
16978 } # as_fn_set_status
16979
16980 # as_fn_exit STATUS
16981 # -----------------
16982 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16983 as_fn_exit ()
16984 {
16985 set +e
16986 as_fn_set_status $1
16987 exit $1
16988 } # as_fn_exit
16989
16990 # as_fn_unset VAR
16991 # ---------------
16992 # Portably unset VAR.
16993 as_fn_unset ()
16994 {
16995 { eval $1=; unset $1;}
16996 }
16997 as_unset=as_fn_unset
16998
16999 # as_fn_append VAR VALUE
17000 # ----------------------
17001 # Append the text in VALUE to the end of the definition contained in VAR. Take
17002 # advantage of any shell optimizations that allow amortized linear growth over
17003 # repeated appends, instead of the typical quadratic growth present in naive
17004 # implementations.
17005 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17006 then :
17007 eval 'as_fn_append ()
17008 {
17009 eval $1+=\$2
17010 }'
17011 else $as_nop
17012 as_fn_append ()
17013 {
17014 eval $1=\$$1\$2
17015 }
17016 fi # as_fn_append
17017
17018 # as_fn_arith ARG...
17019 # ------------------
17020 # Perform arithmetic evaluation on the ARGs, and store the result in the
17021 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17022 # must be portable across $(()) and expr.
17023 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17024 then :
17025 eval 'as_fn_arith ()
17026 {
17027 as_val=$(( $* ))
17028 }'
17029 else $as_nop
17030 as_fn_arith ()
17031 {
17032 as_val=`expr "$@" || test $? -eq 1`
17033 }
17034 fi # as_fn_arith
17035
17036
17037 if expr a : '\(a\)' >/dev/null 2>&1 &&
17038 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17039 as_expr=expr
17040 else
17041 as_expr=false
17042 fi
17043
17044 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17045 as_basename=basename
17046 else
17047 as_basename=false
17048 fi
17049
17050 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17051 as_dirname=dirname
17052 else
17053 as_dirname=false
17054 fi
17055
17056 as_me=`$as_basename -- "$0" ||
17057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17058 X"$0" : 'X\(//\)$' \| \
17059 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17060 printf "%s\n" X/"$0" |
17061 sed '/^.*\/\([^/][^/]*\)\/*$/{
17062 s//\1/
17063 q
17064 }
17065 /^X\/\(\/\/\)$/{
17066 s//\1/
17067 q
17068 }
17069 /^X\/\(\/\).*/{
17070 s//\1/
17071 q
17072 }
17073 s/.*/./; q'`
17074
17075 # Avoid depending upon Character Ranges.
17076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17079 as_cr_digits='0123456789'
17080 as_cr_alnum=$as_cr_Letters$as_cr_digits
17081
17082
17083 # Determine whether it's possible to make 'echo' print without a newline.
17084 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17085 # for compatibility with existing Makefiles.
17086 ECHO_C= ECHO_N= ECHO_T=
17087 case `echo -n x` in #(((((
17088 -n*)
17089 case `echo 'xy\c'` in
17090 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17091 xy) ECHO_C='\c';;
17092 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17093 ECHO_T=' ';;
17094 esac;;
17095 *)
17096 ECHO_N='-n';;
17097 esac
17098
17099 # For backward compatibility with old third-party macros, we provide
17100 # the shell variables $as_echo and $as_echo_n. New code should use
17101 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17102 as_echo='printf %s\n'
17103 as_echo_n='printf %s'
17104
17105 rm -f conf$$ conf$$.exe conf$$.file
17106 if test -d conf$$.dir; then
17107 rm -f conf$$.dir/conf$$.file
17108 else
17109 rm -f conf$$.dir
17110 mkdir conf$$.dir 2>/dev/null
17111 fi
17112 if (echo >conf$$.file) 2>/dev/null; then
17113 if ln -s conf$$.file conf$$ 2>/dev/null; then
17114 as_ln_s='ln -s'
17115 # ... but there are two gotchas:
17116 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17117 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17118 # In both cases, we have to default to `cp -pR'.
17119 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17120 as_ln_s='cp -pR'
17121 elif ln conf$$.file conf$$ 2>/dev/null; then
17122 as_ln_s=ln
17123 else
17124 as_ln_s='cp -pR'
17125 fi
17126 else
17127 as_ln_s='cp -pR'
17128 fi
17129 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17130 rmdir conf$$.dir 2>/dev/null
17131
17132
17133 # as_fn_mkdir_p
17134 # -------------
17135 # Create "$as_dir" as a directory, including parents if necessary.
17136 as_fn_mkdir_p ()
17137 {
17138
17139 case $as_dir in #(
17140 -*) as_dir=./$as_dir;;
17141 esac
17142 test -d "$as_dir" || eval $as_mkdir_p || {
17143 as_dirs=
17144 while :; do
17145 case $as_dir in #(
17146 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17147 *) as_qdir=$as_dir;;
17148 esac
17149 as_dirs="'$as_qdir' $as_dirs"
17150 as_dir=`$as_dirname -- "$as_dir" ||
17151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17152 X"$as_dir" : 'X\(//\)[^/]' \| \
17153 X"$as_dir" : 'X\(//\)$' \| \
17154 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17155 printf "%s\n" X"$as_dir" |
17156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17157 s//\1/
17158 q
17159 }
17160 /^X\(\/\/\)[^/].*/{
17161 s//\1/
17162 q
17163 }
17164 /^X\(\/\/\)$/{
17165 s//\1/
17166 q
17167 }
17168 /^X\(\/\).*/{
17169 s//\1/
17170 q
17171 }
17172 s/.*/./; q'`
17173 test -d "$as_dir" && break
17174 done
17175 test -z "$as_dirs" || eval "mkdir $as_dirs"
17176 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17177
17178
17179 } # as_fn_mkdir_p
17180 if mkdir -p . 2>/dev/null; then
17181 as_mkdir_p='mkdir -p "$as_dir"'
17182 else
17183 test -d ./-p && rmdir ./-p
17184 as_mkdir_p=false
17185 fi
17186
17187
17188 # as_fn_executable_p FILE
17189 # -----------------------
17190 # Test if FILE is an executable regular file.
17191 as_fn_executable_p ()
17192 {
17193 test -f "$1" && test -x "$1"
17194 } # as_fn_executable_p
17195 as_test_x='test -x'
17196 as_executable_p=as_fn_executable_p
17197
17198 # Sed expression to map a string onto a valid CPP name.
17199 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17200
17201 # Sed expression to map a string onto a valid variable name.
17202 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17203
17204
17205 exec 6>&1
17206 ## ----------------------------------- ##
17207 ## Main body of $CONFIG_STATUS script. ##
17208 ## ----------------------------------- ##
17209 _ASEOF
17210 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17211
17212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17213 # Save the log message, to keep $0 and so on meaningful, and to
17214 # report actual input values of CONFIG_FILES etc. instead of their
17215 # values after options handling.
17216 ac_log="
17217 This file was extended by libpwquality $as_me 1.4.5, which was
17218 generated by GNU Autoconf 2.71. Invocation command line was
17219
17220 CONFIG_FILES = $CONFIG_FILES
17221 CONFIG_HEADERS = $CONFIG_HEADERS
17222 CONFIG_LINKS = $CONFIG_LINKS
17223 CONFIG_COMMANDS = $CONFIG_COMMANDS
17224 $ $0 $@
17225
17226 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17227 "
17228
17229 _ACEOF
17230
17231 case $ac_config_files in *"
17232 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17233 esac
17234
17235 case $ac_config_headers in *"
17236 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17237 esac
17238
17239
17240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17241 # Files that config.status was made for.
17242 config_files="$ac_config_files"
17243 config_headers="$ac_config_headers"
17244 config_commands="$ac_config_commands"
17245
17246 _ACEOF
17247
17248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17249 ac_cs_usage="\
17250 \`$as_me' instantiates files and other configuration actions
17251 from templates according to the current configuration. Unless the files
17252 and actions are specified as TAGs, all are instantiated by default.
17253
17254 Usage: $0 [OPTION]... [TAG]...
17255
17256 -h, --help print this help, then exit
17257 -V, --version print version number and configuration settings, then exit
17258 --config print configuration, then exit
17259 -q, --quiet, --silent
17260 do not print progress messages
17261 -d, --debug don't remove temporary files
17262 --recheck update $as_me by reconfiguring in the same conditions
17263 --file=FILE[:TEMPLATE]
17264 instantiate the configuration file FILE
17265 --header=FILE[:TEMPLATE]
17266 instantiate the configuration header FILE
17267
17268 Configuration files:
17269 $config_files
17270
17271 Configuration headers:
17272 $config_headers
17273
17274 Configuration commands:
17275 $config_commands
17276
17277 Report bugs to the package provider."
17278
17279 _ACEOF
17280 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17281 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17283 ac_cs_config='$ac_cs_config_escaped'
17284 ac_cs_version="\\
17285 libpwquality config.status 1.4.5
17286 configured by $0, generated by GNU Autoconf 2.71,
17287 with options \\"\$ac_cs_config\\"
17288
17289 Copyright (C) 2021 Free Software Foundation, Inc.
17290 This config.status script is free software; the Free Software Foundation
17291 gives unlimited permission to copy, distribute and modify it."
17292
17293 ac_pwd='$ac_pwd'
17294 srcdir='$srcdir'
17295 INSTALL='$INSTALL'
17296 MKDIR_P='$MKDIR_P'
17297 AWK='$AWK'
17298 test -n "\$AWK" || AWK=awk
17299 _ACEOF
17300
17301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17302 # The default lists apply if the user does not specify any file.
17303 ac_need_defaults=:
17304 while test $# != 0
17305 do
17306 case $1 in
17307 --*=?*)
17308 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17309 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17310 ac_shift=:
17311 ;;
17312 --*=)
17313 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17314 ac_optarg=
17315 ac_shift=:
17316 ;;
17317 *)
17318 ac_option=$1
17319 ac_optarg=$2
17320 ac_shift=shift
17321 ;;
17322 esac
17323
17324 case $ac_option in
17325 # Handling of the options.
17326 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17327 ac_cs_recheck=: ;;
17328 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17329 printf "%s\n" "$ac_cs_version"; exit ;;
17330 --config | --confi | --conf | --con | --co | --c )
17331 printf "%s\n" "$ac_cs_config"; exit ;;
17332 --debug | --debu | --deb | --de | --d | -d )
17333 debug=: ;;
17334 --file | --fil | --fi | --f )
17335 $ac_shift
17336 case $ac_optarg in
17337 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17338 '') as_fn_error $? "missing file argument" ;;
17339 esac
17340 as_fn_append CONFIG_FILES " '$ac_optarg'"
17341 ac_need_defaults=false;;
17342 --header | --heade | --head | --hea )
17343 $ac_shift
17344 case $ac_optarg in
17345 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17346 esac
17347 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17348 ac_need_defaults=false;;
17349 --he | --h)
17350 # Conflict between --help and --header
17351 as_fn_error $? "ambiguous option: \`$1'
17352 Try \`$0 --help' for more information.";;
17353 --help | --hel | -h )
17354 printf "%s\n" "$ac_cs_usage"; exit ;;
17355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17356 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17357 ac_cs_silent=: ;;
17358
17359 # This is an error.
17360 -*) as_fn_error $? "unrecognized option: \`$1'
17361 Try \`$0 --help' for more information." ;;
17362
17363 *) as_fn_append ac_config_targets " $1"
17364 ac_need_defaults=false ;;
17365
17366 esac
17367 shift
17368 done
17369
17370 ac_configure_extra_args=
17371
17372 if $ac_cs_silent; then
17373 exec 6>/dev/null
17374 ac_configure_extra_args="$ac_configure_extra_args --silent"
17375 fi
17376
17377 _ACEOF
17378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17379 if \$ac_cs_recheck; then
17380 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17381 shift
17382 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17383 CONFIG_SHELL='$SHELL'
17384 export CONFIG_SHELL
17385 exec "\$@"
17386 fi
17387
17388 _ACEOF
17389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17390 exec 5>>config.log
17391 {
17392 echo
17393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17394 ## Running $as_me. ##
17395 _ASBOX
17396 printf "%s\n" "$ac_log"
17397 } >&5
17398
17399 _ACEOF
17400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17401 #
17402 # INIT-COMMANDS
17403 #
17404 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17405
17406
17407 # The HP-UX ksh and POSIX shell print the target directory to stdout
17408 # if CDPATH is set.
17409 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17410
17411 sed_quote_subst='$sed_quote_subst'
17412 double_quote_subst='$double_quote_subst'
17413 delay_variable_subst='$delay_variable_subst'
17414 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17415 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17416 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17417 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17418 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17419 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17420 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17421 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17422 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17423 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17424 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17425 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17426 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17427 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17428 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17429 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17430 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17431 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17432 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17433 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17434 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17435 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17436 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17437 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17438 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17439 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17440 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17441 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17442 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17443 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17444 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17445 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17446 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17447 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17448 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17449 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17450 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17451 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17452 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17453 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17454 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17455 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17456 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17457 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17458 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17459 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17460 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17461 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17462 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17463 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17464 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17465 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17466 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17467 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17468 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17469 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17470 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17471 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17472 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"`'
17473 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17474 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17475 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17476 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17477 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17478 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17479 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17480 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17481 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17482 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17483 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17484 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17485 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17486 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17487 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17488 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17489 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17490 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17491 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17492 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17493 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17494 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17495 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17496 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17497 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17498 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17499 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17500 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17501 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17502 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17503 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17504 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17505 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17506 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17507 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17508 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17509 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17510 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17511 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17512 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17513 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17514 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17515 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17516 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17517 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17518 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17519 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17520 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17521 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17522 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17523 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17524 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17525 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17526 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17527 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17528 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17529 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17530 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17531 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17532 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17533 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17534 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17535 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17536 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17537 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17538 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17539 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17540 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17541 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17542 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17543 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17544 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17545 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17546 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17547 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17548 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17549
17550 LTCC='$LTCC'
17551 LTCFLAGS='$LTCFLAGS'
17552 compiler='$compiler_DEFAULT'
17553
17554 # A function that is used when there is no print builtin or printf.
17555 func_fallback_echo ()
17556 {
17557 eval 'cat <<_LTECHO_EOF
17558 \$1
17559 _LTECHO_EOF'
17560 }
17561
17562 # Quote evaled strings.
17563 for var in SHELL \
17564 ECHO \
17565 PATH_SEPARATOR \
17566 SED \
17567 GREP \
17568 EGREP \
17569 FGREP \
17570 LD \
17571 NM \
17572 LN_S \
17573 lt_SP2NL \
17574 lt_NL2SP \
17575 reload_flag \
17576 OBJDUMP \
17577 deplibs_check_method \
17578 file_magic_cmd \
17579 file_magic_glob \
17580 want_nocaseglob \
17581 DLLTOOL \
17582 sharedlib_from_linklib_cmd \
17583 AR \
17584 AR_FLAGS \
17585 archiver_list_spec \
17586 STRIP \
17587 RANLIB \
17588 CC \
17589 CFLAGS \
17590 compiler \
17591 lt_cv_sys_global_symbol_pipe \
17592 lt_cv_sys_global_symbol_to_cdecl \
17593 lt_cv_sys_global_symbol_to_import \
17594 lt_cv_sys_global_symbol_to_c_name_address \
17595 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17596 lt_cv_nm_interface \
17597 nm_file_list_spec \
17598 lt_cv_truncate_bin \
17599 lt_prog_compiler_no_builtin_flag \
17600 lt_prog_compiler_pic \
17601 lt_prog_compiler_wl \
17602 lt_prog_compiler_static \
17603 lt_cv_prog_compiler_c_o \
17604 need_locks \
17605 MANIFEST_TOOL \
17606 DSYMUTIL \
17607 NMEDIT \
17608 LIPO \
17609 OTOOL \
17610 OTOOL64 \
17611 shrext_cmds \
17612 export_dynamic_flag_spec \
17613 whole_archive_flag_spec \
17614 compiler_needs_object \
17615 with_gnu_ld \
17616 allow_undefined_flag \
17617 no_undefined_flag \
17618 hardcode_libdir_flag_spec \
17619 hardcode_libdir_separator \
17620 exclude_expsyms \
17621 include_expsyms \
17622 file_list_spec \
17623 variables_saved_for_relink \
17624 libname_spec \
17625 library_names_spec \
17626 soname_spec \
17627 install_override_mode \
17628 finish_eval \
17629 old_striplib \
17630 striplib; do
17631 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17632 *[\\\\\\\`\\"\\\$]*)
17633 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17634 ;;
17635 *)
17636 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17637 ;;
17638 esac
17639 done
17640
17641 # Double-quote double-evaled strings.
17642 for var in reload_cmds \
17643 old_postinstall_cmds \
17644 old_postuninstall_cmds \
17645 old_archive_cmds \
17646 extract_expsyms_cmds \
17647 old_archive_from_new_cmds \
17648 old_archive_from_expsyms_cmds \
17649 archive_cmds \
17650 archive_expsym_cmds \
17651 module_cmds \
17652 module_expsym_cmds \
17653 export_symbols_cmds \
17654 prelink_cmds \
17655 postlink_cmds \
17656 postinstall_cmds \
17657 postuninstall_cmds \
17658 finish_cmds \
17659 sys_lib_search_path_spec \
17660 configure_time_dlsearch_path \
17661 configure_time_lt_sys_library_path; do
17662 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17663 *[\\\\\\\`\\"\\\$]*)
17664 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17665 ;;
17666 *)
17667 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17668 ;;
17669 esac
17670 done
17671
17672 ac_aux_dir='$ac_aux_dir'
17673
17674 # See if we are running on zsh, and set the options that allow our
17675 # commands through without removal of \ escapes INIT.
17676 if test -n "\${ZSH_VERSION+set}"; then
17677 setopt NO_GLOB_SUBST
17678 fi
17679
17680
17681 PACKAGE='$PACKAGE'
17682 VERSION='$VERSION'
17683 RM='$RM'
17684 ofile='$ofile'
17685
17686
17687
17688 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17689 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17690 # from automake < 1.5.
17691 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17692 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17693 LINGUAS="${LINGUAS-%UNSET%}"
17694
17695
17696 _ACEOF
17697
17698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17699
17700 # Handling of arguments.
17701 for ac_config_target in $ac_config_targets
17702 do
17703 case $ac_config_target in
17704 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17705 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17706 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17707 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17708 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17709 "libpwquality.spec") CONFIG_FILES="$CONFIG_FILES libpwquality.spec" ;;
17710 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17711 "src/pwquality.pc") CONFIG_FILES="$CONFIG_FILES src/pwquality.pc" ;;
17712 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17713 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
17714 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17715 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
17716 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
17717
17718 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17719 esac
17720 done
17721
17722
17723 # If the user did not use the arguments to specify the items to instantiate,
17724 # then the envvar interface is used. Set only those that are not.
17725 # We use the long form for the default assignment because of an extremely
17726 # bizarre bug on SunOS 4.1.3.
17727 if $ac_need_defaults; then
17728 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17729 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17730 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17731 fi
17732
17733 # Have a temporary directory for convenience. Make it in the build tree
17734 # simply because there is no reason against having it here, and in addition,
17735 # creating and moving files from /tmp can sometimes cause problems.
17736 # Hook for its removal unless debugging.
17737 # Note that there is a small window in which the directory will not be cleaned:
17738 # after its creation but before its name has been assigned to `$tmp'.
17739 $debug ||
17740 {
17741 tmp= ac_tmp=
17742 trap 'exit_status=$?
17743 : "${ac_tmp:=$tmp}"
17744 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17745 ' 0
17746 trap 'as_fn_exit 1' 1 2 13 15
17747 }
17748 # Create a (secure) tmp directory for tmp files.
17749
17750 {
17751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17752 test -d "$tmp"
17753 } ||
17754 {
17755 tmp=./conf$$-$RANDOM
17756 (umask 077 && mkdir "$tmp")
17757 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17758 ac_tmp=$tmp
17759
17760 # Set up the scripts for CONFIG_FILES section.
17761 # No need to generate them if there are no CONFIG_FILES.
17762 # This happens for instance with `./config.status config.h'.
17763 if test -n "$CONFIG_FILES"; then
17764
17765
17766 ac_cr=`echo X | tr X '\015'`
17767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17768 # But we know of no other shell where ac_cr would be empty at this
17769 # point, so we can use a bashism as a fallback.
17770 if test "x$ac_cr" = x; then
17771 eval ac_cr=\$\'\\r\'
17772 fi
17773 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17775 ac_cs_awk_cr='\\r'
17776 else
17777 ac_cs_awk_cr=$ac_cr
17778 fi
17779
17780 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17781 _ACEOF
17782
17783
17784 {
17785 echo "cat >conf$$subs.awk <<_ACEOF" &&
17786 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17787 echo "_ACEOF"
17788 } >conf$$subs.sh ||
17789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17791 ac_delim='%!_!# '
17792 for ac_last_try in false false false false false :; do
17793 . ./conf$$subs.sh ||
17794 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17795
17796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17797 if test $ac_delim_n = $ac_delim_num; then
17798 break
17799 elif $ac_last_try; then
17800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17801 else
17802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17803 fi
17804 done
17805 rm -f conf$$subs.sh
17806
17807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17808 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17809 _ACEOF
17810 sed -n '
17811 h
17812 s/^/S["/; s/!.*/"]=/
17813 p
17814 g
17815 s/^[^!]*!//
17816 :repl
17817 t repl
17818 s/'"$ac_delim"'$//
17819 t delim
17820 :nl
17821 h
17822 s/\(.\{148\}\)..*/\1/
17823 t more1
17824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17825 p
17826 n
17827 b repl
17828 :more1
17829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17830 p
17831 g
17832 s/.\{148\}//
17833 t nl
17834 :delim
17835 h
17836 s/\(.\{148\}\)..*/\1/
17837 t more2
17838 s/["\\]/\\&/g; s/^/"/; s/$/"/
17839 p
17840 b
17841 :more2
17842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17843 p
17844 g
17845 s/.\{148\}//
17846 t delim
17847 ' <conf$$subs.awk | sed '
17848 /^[^""]/{
17849 N
17850 s/\n//
17851 }
17852 ' >>$CONFIG_STATUS || ac_write_fail=1
17853 rm -f conf$$subs.awk
17854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17855 _ACAWK
17856 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17857 for (key in S) S_is_set[key] = 1
17858 FS = ""
17859
17860 }
17861 {
17862 line = $ 0
17863 nfields = split(line, field, "@")
17864 substed = 0
17865 len = length(field[1])
17866 for (i = 2; i < nfields; i++) {
17867 key = field[i]
17868 keylen = length(key)
17869 if (S_is_set[key]) {
17870 value = S[key]
17871 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17872 len += length(value) + length(field[++i])
17873 substed = 1
17874 } else
17875 len += 1 + keylen
17876 }
17877
17878 print line
17879 }
17880
17881 _ACAWK
17882 _ACEOF
17883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17884 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17885 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17886 else
17887 cat
17888 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17889 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17890 _ACEOF
17891
17892 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17893 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17894 # trailing colons and then remove the whole line if VPATH becomes empty
17895 # (actually we leave an empty line to preserve line numbers).
17896 if test "x$srcdir" = x.; then
17897 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17898 h
17899 s///
17900 s/^/:/
17901 s/[ ]*$/:/
17902 s/:\$(srcdir):/:/g
17903 s/:\${srcdir}:/:/g
17904 s/:@srcdir@:/:/g
17905 s/^:*//
17906 s/:*$//
17907 x
17908 s/\(=[ ]*\).*/\1/
17909 G
17910 s/\n//
17911 s/^[^=]*=[ ]*$//
17912 }'
17913 fi
17914
17915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17916 fi # test -n "$CONFIG_FILES"
17917
17918 # Set up the scripts for CONFIG_HEADERS section.
17919 # No need to generate them if there are no CONFIG_HEADERS.
17920 # This happens for instance with `./config.status Makefile'.
17921 if test -n "$CONFIG_HEADERS"; then
17922 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17923 BEGIN {
17924 _ACEOF
17925
17926 # Transform confdefs.h into an awk script `defines.awk', embedded as
17927 # here-document in config.status, that substitutes the proper values into
17928 # config.h.in to produce config.h.
17929
17930 # Create a delimiter string that does not exist in confdefs.h, to ease
17931 # handling of long lines.
17932 ac_delim='%!_!# '
17933 for ac_last_try in false false :; do
17934 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17935 if test -z "$ac_tt"; then
17936 break
17937 elif $ac_last_try; then
17938 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17939 else
17940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17941 fi
17942 done
17943
17944 # For the awk script, D is an array of macro values keyed by name,
17945 # likewise P contains macro parameters if any. Preserve backslash
17946 # newline sequences.
17947
17948 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17949 sed -n '
17950 s/.\{148\}/&'"$ac_delim"'/g
17951 t rset
17952 :rset
17953 s/^[ ]*#[ ]*define[ ][ ]*/ /
17954 t def
17955 d
17956 :def
17957 s/\\$//
17958 t bsnl
17959 s/["\\]/\\&/g
17960 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17961 D["\1"]=" \3"/p
17962 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17963 d
17964 :bsnl
17965 s/["\\]/\\&/g
17966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17967 D["\1"]=" \3\\\\\\n"\\/p
17968 t cont
17969 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17970 t cont
17971 d
17972 :cont
17973 n
17974 s/.\{148\}/&'"$ac_delim"'/g
17975 t clear
17976 :clear
17977 s/\\$//
17978 t bsnlc
17979 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17980 d
17981 :bsnlc
17982 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17983 b cont
17984 ' <confdefs.h | sed '
17985 s/'"$ac_delim"'/"\\\
17986 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17987
17988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17989 for (key in D) D_is_set[key] = 1
17990 FS = ""
17991 }
17992 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17993 line = \$ 0
17994 split(line, arg, " ")
17995 if (arg[1] == "#") {
17996 defundef = arg[2]
17997 mac1 = arg[3]
17998 } else {
17999 defundef = substr(arg[1], 2)
18000 mac1 = arg[2]
18001 }
18002 split(mac1, mac2, "(") #)
18003 macro = mac2[1]
18004 prefix = substr(line, 1, index(line, defundef) - 1)
18005 if (D_is_set[macro]) {
18006 # Preserve the white space surrounding the "#".
18007 print prefix "define", macro P[macro] D[macro]
18008 next
18009 } else {
18010 # Replace #undef with comments. This is necessary, for example,
18011 # in the case of _POSIX_SOURCE, which is predefined and required
18012 # on some systems where configure will not decide to define it.
18013 if (defundef == "undef") {
18014 print "/*", prefix defundef, macro, "*/"
18015 next
18016 }
18017 }
18018 }
18019 { print }
18020 _ACAWK
18021 _ACEOF
18022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18023 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18024 fi # test -n "$CONFIG_HEADERS"
18025
18026
18027 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18028 shift
18029 for ac_tag
18030 do
18031 case $ac_tag in
18032 :[FHLC]) ac_mode=$ac_tag; continue;;
18033 esac
18034 case $ac_mode$ac_tag in
18035 :[FHL]*:*);;
18036 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18037 :[FH]-) ac_tag=-:-;;
18038 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18039 esac
18040 ac_save_IFS=$IFS
18041 IFS=:
18042 set x $ac_tag
18043 IFS=$ac_save_IFS
18044 shift
18045 ac_file=$1
18046 shift
18047
18048 case $ac_mode in
18049 :L) ac_source=$1;;
18050 :[FH])
18051 ac_file_inputs=
18052 for ac_f
18053 do
18054 case $ac_f in
18055 -) ac_f="$ac_tmp/stdin";;
18056 *) # Look for the file first in the build tree, then in the source tree
18057 # (if the path is not absolute). The absolute path cannot be DOS-style,
18058 # because $ac_f cannot contain `:'.
18059 test -f "$ac_f" ||
18060 case $ac_f in
18061 [\\/$]*) false;;
18062 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18063 esac ||
18064 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18065 esac
18066 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18067 as_fn_append ac_file_inputs " '$ac_f'"
18068 done
18069
18070 # Let's still pretend it is `configure' which instantiates (i.e., don't
18071 # use $as_me), people would be surprised to read:
18072 # /* config.h. Generated by config.status. */
18073 configure_input='Generated from '`
18074 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18075 `' by configure.'
18076 if test x"$ac_file" != x-; then
18077 configure_input="$ac_file. $configure_input"
18078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18079 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18080 fi
18081 # Neutralize special characters interpreted by sed in replacement strings.
18082 case $configure_input in #(
18083 *\&* | *\|* | *\\* )
18084 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18085 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18086 *) ac_sed_conf_input=$configure_input;;
18087 esac
18088
18089 case $ac_tag in
18090 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18092 esac
18093 ;;
18094 esac
18095
18096 ac_dir=`$as_dirname -- "$ac_file" ||
18097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18098 X"$ac_file" : 'X\(//\)[^/]' \| \
18099 X"$ac_file" : 'X\(//\)$' \| \
18100 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18101 printf "%s\n" X"$ac_file" |
18102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18103 s//\1/
18104 q
18105 }
18106 /^X\(\/\/\)[^/].*/{
18107 s//\1/
18108 q
18109 }
18110 /^X\(\/\/\)$/{
18111 s//\1/
18112 q
18113 }
18114 /^X\(\/\).*/{
18115 s//\1/
18116 q
18117 }
18118 s/.*/./; q'`
18119 as_dir="$ac_dir"; as_fn_mkdir_p
18120 ac_builddir=.
18121
18122 case "$ac_dir" in
18123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18124 *)
18125 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18126 # A ".." for each directory in $ac_dir_suffix.
18127 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18128 case $ac_top_builddir_sub in
18129 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18130 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18131 esac ;;
18132 esac
18133 ac_abs_top_builddir=$ac_pwd
18134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18135 # for backward compatibility:
18136 ac_top_builddir=$ac_top_build_prefix
18137
18138 case $srcdir in
18139 .) # We are building in place.
18140 ac_srcdir=.
18141 ac_top_srcdir=$ac_top_builddir_sub
18142 ac_abs_top_srcdir=$ac_pwd ;;
18143 [\\/]* | ?:[\\/]* ) # Absolute name.
18144 ac_srcdir=$srcdir$ac_dir_suffix;
18145 ac_top_srcdir=$srcdir
18146 ac_abs_top_srcdir=$srcdir ;;
18147 *) # Relative name.
18148 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18149 ac_top_srcdir=$ac_top_build_prefix$srcdir
18150 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18151 esac
18152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18153
18154
18155 case $ac_mode in
18156 :F)
18157 #
18158 # CONFIG_FILE
18159 #
18160
18161 case $INSTALL in
18162 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18163 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18164 esac
18165 ac_MKDIR_P=$MKDIR_P
18166 case $MKDIR_P in
18167 [\\/$]* | ?:[\\/]* ) ;;
18168 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18169 esac
18170 _ACEOF
18171
18172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18173 # If the template does not know about datarootdir, expand it.
18174 # FIXME: This hack should be removed a few years after 2.60.
18175 ac_datarootdir_hack=; ac_datarootdir_seen=
18176 ac_sed_dataroot='
18177 /datarootdir/ {
18178 p
18179 q
18180 }
18181 /@datadir@/p
18182 /@docdir@/p
18183 /@infodir@/p
18184 /@localedir@/p
18185 /@mandir@/p'
18186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18187 *datarootdir*) ac_datarootdir_seen=yes;;
18188 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18190 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18191 _ACEOF
18192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18193 ac_datarootdir_hack='
18194 s&@datadir@&$datadir&g
18195 s&@docdir@&$docdir&g
18196 s&@infodir@&$infodir&g
18197 s&@localedir@&$localedir&g
18198 s&@mandir@&$mandir&g
18199 s&\\\${datarootdir}&$datarootdir&g' ;;
18200 esac
18201 _ACEOF
18202
18203 # Neutralize VPATH when `$srcdir' = `.'.
18204 # Shell code in configure.ac might set extrasub.
18205 # FIXME: do we really want to maintain this feature?
18206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18207 ac_sed_extra="$ac_vpsub
18208 $extrasub
18209 _ACEOF
18210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18211 :t
18212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18213 s|@configure_input@|$ac_sed_conf_input|;t t
18214 s&@top_builddir@&$ac_top_builddir_sub&;t t
18215 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18216 s&@srcdir@&$ac_srcdir&;t t
18217 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18218 s&@top_srcdir@&$ac_top_srcdir&;t t
18219 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18220 s&@builddir@&$ac_builddir&;t t
18221 s&@abs_builddir@&$ac_abs_builddir&;t t
18222 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18223 s&@INSTALL@&$ac_INSTALL&;t t
18224 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18225 $ac_datarootdir_hack
18226 "
18227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18228 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18229
18230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18231 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18233 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18235 which seems to be undefined. Please make sure it is defined" >&5
18236 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18237 which seems to be undefined. Please make sure it is defined" >&2;}
18238
18239 rm -f "$ac_tmp/stdin"
18240 case $ac_file in
18241 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18242 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18243 esac \
18244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18245 ;;
18246 :H)
18247 #
18248 # CONFIG_HEADER
18249 #
18250 if test x"$ac_file" != x-; then
18251 {
18252 printf "%s\n" "/* $configure_input */" >&1 \
18253 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18254 } >"$ac_tmp/config.h" \
18255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18256 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18258 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18259 else
18260 rm -f "$ac_file"
18261 mv "$ac_tmp/config.h" "$ac_file" \
18262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18263 fi
18264 else
18265 printf "%s\n" "/* $configure_input */" >&1 \
18266 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18267 || as_fn_error $? "could not create -" "$LINENO" 5
18268 fi
18269 # Compute "$ac_file"'s index in $config_headers.
18270 _am_arg="$ac_file"
18271 _am_stamp_count=1
18272 for _am_header in $config_headers :; do
18273 case $_am_header in
18274 $_am_arg | $_am_arg:* )
18275 break ;;
18276 * )
18277 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18278 esac
18279 done
18280 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18281 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18282 X"$_am_arg" : 'X\(//\)[^/]' \| \
18283 X"$_am_arg" : 'X\(//\)$' \| \
18284 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18285 printf "%s\n" X"$_am_arg" |
18286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18287 s//\1/
18288 q
18289 }
18290 /^X\(\/\/\)[^/].*/{
18291 s//\1/
18292 q
18293 }
18294 /^X\(\/\/\)$/{
18295 s//\1/
18296 q
18297 }
18298 /^X\(\/\).*/{
18299 s//\1/
18300 q
18301 }
18302 s/.*/./; q'`/stamp-h$_am_stamp_count
18303 ;;
18304
18305 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18306 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18307 ;;
18308 esac
18309
18310
18311 case $ac_file$ac_mode in
18312 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18313 # Older Autoconf quotes --file arguments for eval, but not when files
18314 # are listed without --file. Let's play safe and only enable the eval
18315 # if we detect the quoting.
18316 # TODO: see whether this extra hack can be removed once we start
18317 # requiring Autoconf 2.70 or later.
18318 case $CONFIG_FILES in #(
18319 *\'*) :
18320 eval set x "$CONFIG_FILES" ;; #(
18321 *) :
18322 set x $CONFIG_FILES ;; #(
18323 *) :
18324 ;;
18325 esac
18326 shift
18327 # Used to flag and report bootstrapping failures.
18328 am_rc=0
18329 for am_mf
18330 do
18331 # Strip MF so we end up with the name of the file.
18332 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18333 # Check whether this is an Automake generated Makefile which includes
18334 # dependency-tracking related rules and includes.
18335 # Grep'ing the whole file directly is not great: AIX grep has a line
18336 # limit of 2048, but all sed's we know have understand at least 4000.
18337 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18338 || continue
18339 am_dirpart=`$as_dirname -- "$am_mf" ||
18340 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18341 X"$am_mf" : 'X\(//\)[^/]' \| \
18342 X"$am_mf" : 'X\(//\)$' \| \
18343 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18344 printf "%s\n" X"$am_mf" |
18345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18346 s//\1/
18347 q
18348 }
18349 /^X\(\/\/\)[^/].*/{
18350 s//\1/
18351 q
18352 }
18353 /^X\(\/\/\)$/{
18354 s//\1/
18355 q
18356 }
18357 /^X\(\/\).*/{
18358 s//\1/
18359 q
18360 }
18361 s/.*/./; q'`
18362 am_filepart=`$as_basename -- "$am_mf" ||
18363 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18364 X"$am_mf" : 'X\(//\)$' \| \
18365 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18366 printf "%s\n" X/"$am_mf" |
18367 sed '/^.*\/\([^/][^/]*\)\/*$/{
18368 s//\1/
18369 q
18370 }
18371 /^X\/\(\/\/\)$/{
18372 s//\1/
18373 q
18374 }
18375 /^X\/\(\/\).*/{
18376 s//\1/
18377 q
18378 }
18379 s/.*/./; q'`
18380 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18381 && sed -e '/# am--include-marker/d' "$am_filepart" \
18382 | $MAKE -f - am--depfiles" >&5
18383 (cd "$am_dirpart" \
18384 && sed -e '/# am--include-marker/d' "$am_filepart" \
18385 | $MAKE -f - am--depfiles) >&5 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } || am_rc=$?
18389 done
18390 if test $am_rc -ne 0; then
18391 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18392 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18393 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18394 for automatic dependency tracking. If GNU make was not used, consider
18395 re-running the configure script with MAKE=\"gmake\" (or whatever is
18396 necessary). You can also try re-running configure with the
18397 '--disable-dependency-tracking' option to at least be able to build
18398 the package (albeit without support for automatic dependency tracking).
18399 See \`config.log' for more details" "$LINENO" 5; }
18400 fi
18401 { am_dirpart=; unset am_dirpart;}
18402 { am_filepart=; unset am_filepart;}
18403 { am_mf=; unset am_mf;}
18404 { am_rc=; unset am_rc;}
18405 rm -f conftest-deps.mk
18406 }
18407 ;;
18408 "libtool":C)
18409
18410 # See if we are running on zsh, and set the options that allow our
18411 # commands through without removal of \ escapes.
18412 if test -n "${ZSH_VERSION+set}"; then
18413 setopt NO_GLOB_SUBST
18414 fi
18415
18416 cfgfile=${ofile}T
18417 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18418 $RM "$cfgfile"
18419
18420 cat <<_LT_EOF >> "$cfgfile"
18421 #! $SHELL
18422 # Generated automatically by $as_me ($PACKAGE) $VERSION
18423 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18424 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18425
18426 # Provide generalized library-building support services.
18427 # Written by Gordon Matzigkeit, 1996
18428
18429 # Copyright (C) 2014 Free Software Foundation, Inc.
18430 # This is free software; see the source for copying conditions. There is NO
18431 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18432
18433 # GNU Libtool is free software; you can redistribute it and/or modify
18434 # it under the terms of the GNU General Public License as published by
18435 # the Free Software Foundation; either version 2 of of the License, or
18436 # (at your option) any later version.
18437 #
18438 # As a special exception to the GNU General Public License, if you
18439 # distribute this file as part of a program or library that is built
18440 # using GNU Libtool, you may include this file under the same
18441 # distribution terms that you use for the rest of that program.
18442 #
18443 # GNU Libtool is distributed in the hope that it will be useful, but
18444 # WITHOUT ANY WARRANTY; without even the implied warranty of
18445 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18446 # GNU General Public License for more details.
18447 #
18448 # You should have received a copy of the GNU General Public License
18449 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18450
18451
18452 # The names of the tagged configurations supported by this script.
18453 available_tags=''
18454
18455 # Configured defaults for sys_lib_dlsearch_path munging.
18456 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18457
18458 # ### BEGIN LIBTOOL CONFIG
18459
18460 # Which release of libtool.m4 was used?
18461 macro_version=$macro_version
18462 macro_revision=$macro_revision
18463
18464 # Whether or not to build shared libraries.
18465 build_libtool_libs=$enable_shared
18466
18467 # Whether or not to build static libraries.
18468 build_old_libs=$enable_static
18469
18470 # What type of objects to build.
18471 pic_mode=$pic_mode
18472
18473 # Whether or not to optimize for fast installation.
18474 fast_install=$enable_fast_install
18475
18476 # Shared archive member basename,for filename based shared library versioning on AIX.
18477 shared_archive_member_spec=$shared_archive_member_spec
18478
18479 # Shell to use when invoking shell scripts.
18480 SHELL=$lt_SHELL
18481
18482 # An echo program that protects backslashes.
18483 ECHO=$lt_ECHO
18484
18485 # The PATH separator for the build system.
18486 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18487
18488 # The host system.
18489 host_alias=$host_alias
18490 host=$host
18491 host_os=$host_os
18492
18493 # The build system.
18494 build_alias=$build_alias
18495 build=$build
18496 build_os=$build_os
18497
18498 # A sed program that does not truncate output.
18499 SED=$lt_SED
18500
18501 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18502 Xsed="\$SED -e 1s/^X//"
18503
18504 # A grep program that handles long lines.
18505 GREP=$lt_GREP
18506
18507 # An ERE matcher.
18508 EGREP=$lt_EGREP
18509
18510 # A literal string matcher.
18511 FGREP=$lt_FGREP
18512
18513 # A BSD- or MS-compatible name lister.
18514 NM=$lt_NM
18515
18516 # Whether we need soft or hard links.
18517 LN_S=$lt_LN_S
18518
18519 # What is the maximum length of a command?
18520 max_cmd_len=$max_cmd_len
18521
18522 # Object file suffix (normally "o").
18523 objext=$ac_objext
18524
18525 # Executable file suffix (normally "").
18526 exeext=$exeext
18527
18528 # whether the shell understands "unset".
18529 lt_unset=$lt_unset
18530
18531 # turn spaces into newlines.
18532 SP2NL=$lt_lt_SP2NL
18533
18534 # turn newlines into spaces.
18535 NL2SP=$lt_lt_NL2SP
18536
18537 # convert \$build file names to \$host format.
18538 to_host_file_cmd=$lt_cv_to_host_file_cmd
18539
18540 # convert \$build files to toolchain format.
18541 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18542
18543 # An object symbol dumper.
18544 OBJDUMP=$lt_OBJDUMP
18545
18546 # Method to check whether dependent libraries are shared objects.
18547 deplibs_check_method=$lt_deplibs_check_method
18548
18549 # Command to use when deplibs_check_method = "file_magic".
18550 file_magic_cmd=$lt_file_magic_cmd
18551
18552 # How to find potential files when deplibs_check_method = "file_magic".
18553 file_magic_glob=$lt_file_magic_glob
18554
18555 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18556 want_nocaseglob=$lt_want_nocaseglob
18557
18558 # DLL creation program.
18559 DLLTOOL=$lt_DLLTOOL
18560
18561 # Command to associate shared and link libraries.
18562 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18563
18564 # The archiver.
18565 AR=$lt_AR
18566
18567 # Flags to create an archive.
18568 AR_FLAGS=$lt_AR_FLAGS
18569
18570 # How to feed a file listing to the archiver.
18571 archiver_list_spec=$lt_archiver_list_spec
18572
18573 # A symbol stripping program.
18574 STRIP=$lt_STRIP
18575
18576 # Commands used to install an old-style archive.
18577 RANLIB=$lt_RANLIB
18578 old_postinstall_cmds=$lt_old_postinstall_cmds
18579 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18580
18581 # Whether to use a lock for old archive extraction.
18582 lock_old_archive_extraction=$lock_old_archive_extraction
18583
18584 # A C compiler.
18585 LTCC=$lt_CC
18586
18587 # LTCC compiler flags.
18588 LTCFLAGS=$lt_CFLAGS
18589
18590 # Take the output of nm and produce a listing of raw symbols and C names.
18591 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18592
18593 # Transform the output of nm in a proper C declaration.
18594 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18595
18596 # Transform the output of nm into a list of symbols to manually relocate.
18597 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18598
18599 # Transform the output of nm in a C name address pair.
18600 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18601
18602 # Transform the output of nm in a C name address pair when lib prefix is needed.
18603 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18604
18605 # The name lister interface.
18606 nm_interface=$lt_lt_cv_nm_interface
18607
18608 # Specify filename containing input files for \$NM.
18609 nm_file_list_spec=$lt_nm_file_list_spec
18610
18611 # The root where to search for dependent libraries,and where our libraries should be installed.
18612 lt_sysroot=$lt_sysroot
18613
18614 # Command to truncate a binary pipe.
18615 lt_truncate_bin=$lt_lt_cv_truncate_bin
18616
18617 # The name of the directory that contains temporary libtool files.
18618 objdir=$objdir
18619
18620 # Used to examine libraries when file_magic_cmd begins with "file".
18621 MAGIC_CMD=$MAGIC_CMD
18622
18623 # Must we lock files when doing compilation?
18624 need_locks=$lt_need_locks
18625
18626 # Manifest tool.
18627 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18628
18629 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18630 DSYMUTIL=$lt_DSYMUTIL
18631
18632 # Tool to change global to local symbols on Mac OS X.
18633 NMEDIT=$lt_NMEDIT
18634
18635 # Tool to manipulate fat objects and archives on Mac OS X.
18636 LIPO=$lt_LIPO
18637
18638 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18639 OTOOL=$lt_OTOOL
18640
18641 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18642 OTOOL64=$lt_OTOOL64
18643
18644 # Old archive suffix (normally "a").
18645 libext=$libext
18646
18647 # Shared library suffix (normally ".so").
18648 shrext_cmds=$lt_shrext_cmds
18649
18650 # The commands to extract the exported symbol list from a shared archive.
18651 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18652
18653 # Variables whose values should be saved in libtool wrapper scripts and
18654 # restored at link time.
18655 variables_saved_for_relink=$lt_variables_saved_for_relink
18656
18657 # Do we need the "lib" prefix for modules?
18658 need_lib_prefix=$need_lib_prefix
18659
18660 # Do we need a version for libraries?
18661 need_version=$need_version
18662
18663 # Library versioning type.
18664 version_type=$version_type
18665
18666 # Shared library runtime path variable.
18667 runpath_var=$runpath_var
18668
18669 # Shared library path variable.
18670 shlibpath_var=$shlibpath_var
18671
18672 # Is shlibpath searched before the hard-coded library search path?
18673 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18674
18675 # Format of library name prefix.
18676 libname_spec=$lt_libname_spec
18677
18678 # List of archive names. First name is the real one, the rest are links.
18679 # The last name is the one that the linker finds with -lNAME
18680 library_names_spec=$lt_library_names_spec
18681
18682 # The coded name of the library, if different from the real name.
18683 soname_spec=$lt_soname_spec
18684
18685 # Permission mode override for installation of shared libraries.
18686 install_override_mode=$lt_install_override_mode
18687
18688 # Command to use after installation of a shared archive.
18689 postinstall_cmds=$lt_postinstall_cmds
18690
18691 # Command to use after uninstallation of a shared archive.
18692 postuninstall_cmds=$lt_postuninstall_cmds
18693
18694 # Commands used to finish a libtool library installation in a directory.
18695 finish_cmds=$lt_finish_cmds
18696
18697 # As "finish_cmds", except a single script fragment to be evaled but
18698 # not shown.
18699 finish_eval=$lt_finish_eval
18700
18701 # Whether we should hardcode library paths into libraries.
18702 hardcode_into_libs=$hardcode_into_libs
18703
18704 # Compile-time system search path for libraries.
18705 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18706
18707 # Detected run-time system search path for libraries.
18708 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18709
18710 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18711 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18712
18713 # Whether dlopen is supported.
18714 dlopen_support=$enable_dlopen
18715
18716 # Whether dlopen of programs is supported.
18717 dlopen_self=$enable_dlopen_self
18718
18719 # Whether dlopen of statically linked programs is supported.
18720 dlopen_self_static=$enable_dlopen_self_static
18721
18722 # Commands to strip libraries.
18723 old_striplib=$lt_old_striplib
18724 striplib=$lt_striplib
18725
18726
18727 # The linker used to build libraries.
18728 LD=$lt_LD
18729
18730 # How to create reloadable object files.
18731 reload_flag=$lt_reload_flag
18732 reload_cmds=$lt_reload_cmds
18733
18734 # Commands used to build an old-style archive.
18735 old_archive_cmds=$lt_old_archive_cmds
18736
18737 # A language specific compiler.
18738 CC=$lt_compiler
18739
18740 # Is the compiler the GNU compiler?
18741 with_gcc=$GCC
18742
18743 # Compiler flag to turn off builtin functions.
18744 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18745
18746 # Additional compiler flags for building library objects.
18747 pic_flag=$lt_lt_prog_compiler_pic
18748
18749 # How to pass a linker flag through the compiler.
18750 wl=$lt_lt_prog_compiler_wl
18751
18752 # Compiler flag to prevent dynamic linking.
18753 link_static_flag=$lt_lt_prog_compiler_static
18754
18755 # Does compiler simultaneously support -c and -o options?
18756 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18757
18758 # Whether or not to add -lc for building shared libraries.
18759 build_libtool_need_lc=$archive_cmds_need_lc
18760
18761 # Whether or not to disallow shared libs when runtime libs are static.
18762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18763
18764 # Compiler flag to allow reflexive dlopens.
18765 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18766
18767 # Compiler flag to generate shared objects directly from archives.
18768 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18769
18770 # Whether the compiler copes with passing no objects directly.
18771 compiler_needs_object=$lt_compiler_needs_object
18772
18773 # Create an old-style archive from a shared archive.
18774 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18775
18776 # Create a temporary old-style archive to link instead of a shared archive.
18777 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18778
18779 # Commands used to build a shared archive.
18780 archive_cmds=$lt_archive_cmds
18781 archive_expsym_cmds=$lt_archive_expsym_cmds
18782
18783 # Commands used to build a loadable module if different from building
18784 # a shared archive.
18785 module_cmds=$lt_module_cmds
18786 module_expsym_cmds=$lt_module_expsym_cmds
18787
18788 # Whether we are building with GNU ld or not.
18789 with_gnu_ld=$lt_with_gnu_ld
18790
18791 # Flag that allows shared libraries with undefined symbols to be built.
18792 allow_undefined_flag=$lt_allow_undefined_flag
18793
18794 # Flag that enforces no undefined symbols.
18795 no_undefined_flag=$lt_no_undefined_flag
18796
18797 # Flag to hardcode \$libdir into a binary during linking.
18798 # This must work even if \$libdir does not exist
18799 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18800
18801 # Whether we need a single "-rpath" flag with a separated argument.
18802 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18803
18804 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18805 # DIR into the resulting binary.
18806 hardcode_direct=$hardcode_direct
18807
18808 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18809 # DIR into the resulting binary and the resulting library dependency is
18810 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18811 # library is relocated.
18812 hardcode_direct_absolute=$hardcode_direct_absolute
18813
18814 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18815 # into the resulting binary.
18816 hardcode_minus_L=$hardcode_minus_L
18817
18818 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18819 # into the resulting binary.
18820 hardcode_shlibpath_var=$hardcode_shlibpath_var
18821
18822 # Set to "yes" if building a shared library automatically hardcodes DIR
18823 # into the library and all subsequent libraries and executables linked
18824 # against it.
18825 hardcode_automatic=$hardcode_automatic
18826
18827 # Set to yes if linker adds runtime paths of dependent libraries
18828 # to runtime path list.
18829 inherit_rpath=$inherit_rpath
18830
18831 # Whether libtool must link a program against all its dependency libraries.
18832 link_all_deplibs=$link_all_deplibs
18833
18834 # Set to "yes" if exported symbols are required.
18835 always_export_symbols=$always_export_symbols
18836
18837 # The commands to list exported symbols.
18838 export_symbols_cmds=$lt_export_symbols_cmds
18839
18840 # Symbols that should not be listed in the preloaded symbols.
18841 exclude_expsyms=$lt_exclude_expsyms
18842
18843 # Symbols that must always be exported.
18844 include_expsyms=$lt_include_expsyms
18845
18846 # Commands necessary for linking programs (against libraries) with templates.
18847 prelink_cmds=$lt_prelink_cmds
18848
18849 # Commands necessary for finishing linking programs.
18850 postlink_cmds=$lt_postlink_cmds
18851
18852 # Specify filename containing input files.
18853 file_list_spec=$lt_file_list_spec
18854
18855 # How to hardcode a shared library path into an executable.
18856 hardcode_action=$hardcode_action
18857
18858 # ### END LIBTOOL CONFIG
18859
18860 _LT_EOF
18861
18862 cat <<'_LT_EOF' >> "$cfgfile"
18863
18864 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18865
18866 # func_munge_path_list VARIABLE PATH
18867 # -----------------------------------
18868 # VARIABLE is name of variable containing _space_ separated list of
18869 # directories to be munged by the contents of PATH, which is string
18870 # having a format:
18871 # "DIR[:DIR]:"
18872 # string "DIR[ DIR]" will be prepended to VARIABLE
18873 # ":DIR[:DIR]"
18874 # string "DIR[ DIR]" will be appended to VARIABLE
18875 # "DIRP[:DIRP]::[DIRA:]DIRA"
18876 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18877 # "DIRA[ DIRA]" will be appended to VARIABLE
18878 # "DIR[:DIR]"
18879 # VARIABLE will be replaced by "DIR[ DIR]"
18880 func_munge_path_list ()
18881 {
18882 case x$2 in
18883 x)
18884 ;;
18885 *:)
18886 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18887 ;;
18888 x:*)
18889 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18890 ;;
18891 *::*)
18892 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18893 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18894 ;;
18895 *)
18896 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18897 ;;
18898 esac
18899 }
18900
18901
18902 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18903 func_cc_basename ()
18904 {
18905 for cc_temp in $*""; do
18906 case $cc_temp in
18907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18909 \-*) ;;
18910 *) break;;
18911 esac
18912 done
18913 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18914 }
18915
18916
18917 # ### END FUNCTIONS SHARED WITH CONFIGURE
18918
18919 _LT_EOF
18920
18921 case $host_os in
18922 aix3*)
18923 cat <<\_LT_EOF >> "$cfgfile"
18924 # AIX sometimes has problems with the GCC collect2 program. For some
18925 # reason, if we set the COLLECT_NAMES environment variable, the problems
18926 # vanish in a puff of smoke.
18927 if test set != "${COLLECT_NAMES+set}"; then
18928 COLLECT_NAMES=
18929 export COLLECT_NAMES
18930 fi
18931 _LT_EOF
18932 ;;
18933 esac
18934
18935
18936
18937 ltmain=$ac_aux_dir/ltmain.sh
18938
18939
18940 # We use sed instead of cat because bash on DJGPP gets confused if
18941 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18942 # text mode, it properly converts lines to CR/LF. This bash problem
18943 # is reportedly fixed, but why not run on old versions too?
18944 sed '$q' "$ltmain" >> "$cfgfile" \
18945 || (rm -f "$cfgfile"; exit 1)
18946
18947 mv -f "$cfgfile" "$ofile" ||
18948 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18949 chmod +x "$ofile"
18950
18951 ;;
18952 "po-directories":C)
18953 for ac_file in $CONFIG_FILES; do
18954 # Support "outfile[:infile[:infile...]]"
18955 case "$ac_file" in
18956 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18957 esac
18958 # PO directories have a Makefile.in generated from Makefile.in.in.
18959 case "$ac_file" in */Makefile.in)
18960 # Adjust a relative srcdir.
18961 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18962 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18963 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18964 # In autoconf-2.13 it is called $ac_given_srcdir.
18965 # In autoconf-2.50 it is called $srcdir.
18966 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18967 case "$ac_given_srcdir" in
18968 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18969 /*) top_srcdir="$ac_given_srcdir" ;;
18970 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18971 esac
18972 # Treat a directory as a PO directory if and only if it has a
18973 # POTFILES.in file. This allows packages to have multiple PO
18974 # directories under different names or in different locations.
18975 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18976 rm -f "$ac_dir/POTFILES"
18977 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18978 gt_tab=`printf '\t'`
18979 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18980 POMAKEFILEDEPS="POTFILES.in"
18981 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18982 # on $ac_dir but don't depend on user-specified configuration
18983 # parameters.
18984 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18985 # The LINGUAS file contains the set of available languages.
18986 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18987 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18988 fi
18989 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18990 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18991 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18992 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18993 else
18994 # The set of available languages was given in configure.in.
18995 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18996 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18997 fi
18998 # Compute POFILES
18999 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19000 # Compute UPDATEPOFILES
19001 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19002 # Compute DUMMYPOFILES
19003 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19004 # Compute GMOFILES
19005 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19006 case "$ac_given_srcdir" in
19007 .) srcdirpre= ;;
19008 *) srcdirpre='$(srcdir)/' ;;
19009 esac
19010 POFILES=
19011 UPDATEPOFILES=
19012 DUMMYPOFILES=
19013 GMOFILES=
19014 for lang in $ALL_LINGUAS; do
19015 POFILES="$POFILES $srcdirpre$lang.po"
19016 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19017 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19018 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19019 done
19020 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19021 # environment variable.
19022 INST_LINGUAS=
19023 if test -n "$ALL_LINGUAS"; then
19024 for presentlang in $ALL_LINGUAS; do
19025 useit=no
19026 if test "%UNSET%" != "$LINGUAS"; then
19027 desiredlanguages="$LINGUAS"
19028 else
19029 desiredlanguages="$ALL_LINGUAS"
19030 fi
19031 for desiredlang in $desiredlanguages; do
19032 # Use the presentlang catalog if desiredlang is
19033 # a. equal to presentlang, or
19034 # b. a variant of presentlang (because in this case,
19035 # presentlang can be used as a fallback for messages
19036 # which are not translated in the desiredlang catalog).
19037 case "$desiredlang" in
19038 "$presentlang"*) useit=yes;;
19039 esac
19040 done
19041 if test $useit = yes; then
19042 INST_LINGUAS="$INST_LINGUAS $presentlang"
19043 fi
19044 done
19045 fi
19046 CATALOGS=
19047 if test -n "$INST_LINGUAS"; then
19048 for lang in $INST_LINGUAS; do
19049 CATALOGS="$CATALOGS $lang.gmo"
19050 done
19051 fi
19052 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19053 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19054 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19055 if test -f "$f"; then
19056 case "$f" in
19057 *.orig | *.bak | *~) ;;
19058 *) cat "$f" >> "$ac_dir/Makefile" ;;
19059 esac
19060 fi
19061 done
19062 fi
19063 ;;
19064 esac
19065 done ;;
19066
19067 esac
19068 done # for ac_tag
19069
19070
19071 as_fn_exit 0
19072 _ACEOF
19073 ac_clean_files=$ac_clean_files_save
19074
19075 test $ac_write_fail = 0 ||
19076 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19077
19078
19079 # configure is writing to config.log, and then calls config.status.
19080 # config.status does its own redirection, appending to config.log.
19081 # Unfortunately, on DOS this fails, as config.log is still kept open
19082 # by configure, so config.status won't be able to write to it; its
19083 # output is simply discarded. So we exec the FD to /dev/null,
19084 # effectively closing config.log, so it can be properly (re)opened and
19085 # appended to by config.status. When coming back to configure, we
19086 # need to make the FD available again.
19087 if test "$no_create" != yes; then
19088 ac_cs_success=:
19089 ac_config_status_args=
19090 test "$silent" = yes &&
19091 ac_config_status_args="$ac_config_status_args --quiet"
19092 exec 5>/dev/null
19093 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19094 exec 5>>config.log
19095 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19096 # would make configure fail if this is the last instruction.
19097 $ac_cs_success || as_fn_exit 1
19098 fi
19099 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19101 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19102 fi
19103
19104