Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for miredo 1.2.6.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 2004-2013 Remi Denis-Courmont
8 #
9 #
10 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178 esac
179 fi
180 "
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
186
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194 else
195 exitcode=1; echo positional parameters were not saved.
196 fi
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1
204
205 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
206 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
209 PATH=/empty FPATH=/empty; export PATH FPATH
210 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
211 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214 else
215 as_have_required=no
216 fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219 else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 as_found=false
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237 fi
238 fi
239 done;;
240 esac
241 as_found=false
242 done
243 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi; }
247 IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253 # neutralization value for shells without unset; and this also
254 # works around shells that cannot unset nonexistent variables.
255 # Preserve -v and -x to the replacement shell.
256 BASH_ENV=/dev/null
257 ENV=/dev/null
258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264 esac
265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266 # Admittedly, this is quite paranoid, since all the known shells bail
267 # out after a failed `exec'.
268 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269 exit 255
270 fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell [email protected] and
280 $0: [email protected] about your system,
281 $0: including any error possibly output before this
282 $0: message. Then install a modern shell, or manually run
283 $0: the script under such a shell if you do have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 $as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 $as_echo "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 $as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511 }
512
513 ECHO_C= ECHO_N= ECHO_T=
514 case `echo -n x` in #(((((
515 -n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522 *)
523 ECHO_N='-n';;
524 esac
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529 else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547 else
548 as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555 else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566 # Sed expression to map a string onto a valid variable name.
567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 test -n "$DJDIR" || exec 7<&0 </dev/null
573 exec 6>&1
574
575 # Name of the host.
576 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577 # so uname gets run too.
578 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580 #
581 # Initializations.
582 #
583 ac_default_prefix=/usr/local
584 ac_clean_files=
585 ac_config_libobj_dir=.
586 LIBOBJS=
587 cross_compiling=no
588 subdirs=
589 MFLAGS=
590 MAKEFLAGS=
591
592 # Identity of this package.
593 PACKAGE_NAME='miredo'
594 PACKAGE_TARNAME='miredo'
595 PACKAGE_VERSION='1.2.6'
596 PACKAGE_STRING='miredo 1.2.6'
597 PACKAGE_BUGREPORT='[email protected]'
598 PACKAGE_URL=''
599
600 ac_unique_file="configure.ac"
601 ac_config_libobj_dir=compat
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 gt_needs=
639 ac_subst_vars='am__EXEEXT_FALSE
640 am__EXEEXT_TRUE
641 LTLIBOBJS
642 CONF_SAMPLE_FALSE
643 CONF_SAMPLE_TRUE
644 examplesdir
645 TEREDO_CLIENT_FALSE
646 TEREDO_CLIENT_TRUE
647 LIBJUDY
648 LIBCAP
649 LIBOBJS
650 PTHREAD_LIBS
651 PTHREAD_LDFLAGS
652 PTHREAD_CFLAGS
653 hook_suffix
654 LIBRT
655 POSUB
656 LTLIBINTL
657 LIBINTL
658 INTLLIBS
659 LTLIBICONV
660 LIBICONV
661 INTL_MACOSX_LIBS
662 XGETTEXT_EXTRA_OPTIONS
663 MSGMERGE
664 XGETTEXT_015
665 XGETTEXT
666 GMSGFMT_015
667 MSGFMT_015
668 GMSGFMT
669 MSGFMT
670 GETTEXT_MACRO_VERSION
671 USE_NLS
672 BINRELOC_LIBS
673 BINRELOC_CFLAGS
674 AM_BACKSLASH
675 AM_DEFAULT_VERBOSITY
676 AM_DEFAULT_V
677 AM_V
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 OTOOL64
710 OTOOL
711 LIPO
712 NMEDIT
713 DSYMUTIL
714 MANIFEST_TOOL
715 AWK
716 RANLIB
717 STRIP
718 ac_ct_AR
719 AR
720 DLLTOOL
721 OBJDUMP
722 LN_S
723 NM
724 ac_ct_DUMPBIN
725 DUMPBIN
726 LD
727 FGREP
728 SED
729 LIBTOOL
730 EGREP
731 GREP
732 CPP
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 host_os
741 host_vendor
742 host_cpu
743 host
744 build_os
745 build_vendor
746 build_cpu
747 build
748 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_shared
790 enable_static
791 with_pic
792 enable_fast_install
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 enable_dependency_tracking
797 enable_silent_rules
798 enable_binreloc
799 enable_binreloc_threads
800 enable_nls
801 enable_rpath
802 with_libiconv_prefix
803 with_libintl_prefix
804 enable_assert
805 with_Judy
806 enable_coverage
807 enable_teredo_client
808 enable_examplesdir
809 enable_sample_conf
810 enable_miredo_user
811 '
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 CPP
821 PTHREAD_CFLAGS
822 PTHREAD_LDFLAGS
823 PTHREAD_LIBS'
824
825
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 ac_unrecognized_opts=
830 ac_unrecognized_sep=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
847
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
873
874 ac_prev=
875 ac_dashdash=
876 for ac_option
877 do
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
883 fi
884
885 case $ac_option in
886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *=) ac_optarg= ;;
888 *) ac_optarg=yes ;;
889 esac
890
891 # Accept the important Cygnus configure options, so we can diagnose typos.
892
893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
901
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
916
917 -datadir | --datadir | --datadi | --datad)
918 ac_prev=datadir ;;
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
921
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
929 -disable-* | --disable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=no ;;
944
945 -docdir | --docdir | --docdi | --doc | --do)
946 ac_prev=docdir ;;
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 docdir=$ac_optarg ;;
949
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 ac_prev=dvidir ;;
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 dvidir=$ac_optarg ;;
954
955 -enable-* | --enable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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=`$as_echo "$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--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=\$ac_optarg ;;
970
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
978 exec_prefix=$ac_optarg ;;
979
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
982 with_gas=yes ;;
983
984 -help | --help | --hel | --he | -h)
985 ac_init_help=long ;;
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
990
991 -host | --host | --hos | --ho)
992 ac_prev=host_alias ;;
993 -host=* | --host=* | --hos=* | --ho=*)
994 host_alias=$ac_optarg ;;
995
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 ac_prev=htmldir ;;
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 | --ht=*)
1000 htmldir=$ac_optarg ;;
1001
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1007 includedir=$ac_optarg ;;
1008
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 ac_prev=infodir ;;
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012 infodir=$ac_optarg ;;
1013
1014 -libdir | --libdir | --libdi | --libd)
1015 ac_prev=libdir ;;
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017 libdir=$ac_optarg ;;
1018
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1024 libexecdir=$ac_optarg ;;
1025
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1030
1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
1032 | --localstate | --localstat | --localsta | --localst | --locals)
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036 localstatedir=$ac_optarg ;;
1037
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 ac_prev=mandir ;;
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041 mandir=$ac_optarg ;;
1042
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1045 with_fp=no ;;
1046
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n)
1049 no_create=yes ;;
1050
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 no_recursion=yes ;;
1054
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062 oldincludedir=$ac_optarg ;;
1063
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 ac_prev=prefix ;;
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067 prefix=$ac_optarg ;;
1068
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074 program_prefix=$ac_optarg ;;
1075
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081 program_suffix=$ac_optarg ;;
1082
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1098 program_transform_name=$ac_optarg ;;
1099
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 ac_prev=pdfdir ;;
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1104
1105 -psdir | --psdir | --psdi | --psd | --ps)
1106 ac_prev=psdir ;;
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108 psdir=$ac_optarg ;;
1109
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1112 silent=yes ;;
1113
1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 ac_prev=sbindir ;;
1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 | --sbi=* | --sb=*)
1118 sbindir=$ac_optarg ;;
1119
1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1122 | --sharedst | --shareds | --shared | --share | --shar \
1123 | --sha | --sh)
1124 ac_prev=sharedstatedir ;;
1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 | --sha=* | --sh=*)
1129 sharedstatedir=$ac_optarg ;;
1130
1131 -site | --site | --sit)
1132 ac_prev=site ;;
1133 -site=* | --site=* | --sit=*)
1134 site=$ac_optarg ;;
1135
1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 ac_prev=srcdir ;;
1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1139 srcdir=$ac_optarg ;;
1140
1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1142 | --syscon | --sysco | --sysc | --sys | --sy)
1143 ac_prev=sysconfdir ;;
1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1146 sysconfdir=$ac_optarg ;;
1147
1148 -target | --target | --targe | --targ | --tar | --ta | --t)
1149 ac_prev=target_alias ;;
1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1151 target_alias=$ac_optarg ;;
1152
1153 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1154 verbose=yes ;;
1155
1156 -version | --version | --versio | --versi | --vers | -V)
1157 ac_init_version=: ;;
1158
1159 -with-* | --with-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=\$ac_optarg ;;
1174
1175 -without-* | --without-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=no ;;
1190
1191 --x)
1192 # Obsolete; use --with-x.
1193 with_x=yes ;;
1194
1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196 | --x-incl | --x-inc | --x-in | --x-i)
1197 ac_prev=x_includes ;;
1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200 x_includes=$ac_optarg ;;
1201
1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204 ac_prev=x_libraries ;;
1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207 x_libraries=$ac_optarg ;;
1208
1209 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1210 Try \`$0 --help' for more information"
1211 ;;
1212
1213 *=*)
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 case $ac_envvar in #(
1217 '' | [0-9]* | *[!_$as_cr_alnum]* )
1218 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1219 esac
1220 eval $ac_envvar=\$ac_optarg
1221 export $ac_envvar ;;
1222
1223 *)
1224 # FIXME: should be removed in autoconf 3.0.
1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1229 ;;
1230
1231 esac
1232 done
1233
1234 if test -n "$ac_prev"; then
1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236 as_fn_error $? "missing argument to $ac_option"
1237 fi
1238
1239 if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1241 no) ;;
1242 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 esac
1245 fi
1246
1247 # Check all directory arguments for consistency.
1248 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir
1252 do
1253 eval ac_val=\$$ac_var
1254 # Remove trailing slashes.
1255 case $ac_val in
1256 */ )
1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\$ac_val;;
1259 esac
1260 # Be sure to have absolute directory names.
1261 case $ac_val in
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 esac
1265 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1266 done
1267
1268 # There might be people who depend on the old broken behavior: `$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1271 build=$build_alias
1272 host=$host_alias
1273 target=$target_alias
1274
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x; then
1277 if test "x$build_alias" = x; then
1278 cross_compiling=maybe
1279 elif test "x$build_alias" != "x$host_alias"; then
1280 cross_compiling=yes
1281 fi
1282 fi
1283
1284 ac_tool_prefix=
1285 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286
1287 test "$silent" = yes && exec 6>/dev/null
1288
1289
1290 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di=`ls -di .` &&
1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 as_fn_error $? "working directory cannot be determined"
1294 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295 as_fn_error $? "pwd does not report name of working directory"
1296
1297
1298 # Find the source files, if location was not specified.
1299 if test -z "$srcdir"; then
1300 ac_srcdir_defaulted=yes
1301 # Try the directory containing this script, then the parent directory.
1302 ac_confdir=`$as_dirname -- "$as_myself" ||
1303 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1304 X"$as_myself" : 'X\(//\)[^/]' \| \
1305 X"$as_myself" : 'X\(//\)$' \| \
1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1307 $as_echo X"$as_myself" |
1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)[^/].*/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\).*/{
1321 s//\1/
1322 q
1323 }
1324 s/.*/./; q'`
1325 srcdir=$ac_confdir
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 srcdir=..
1328 fi
1329 else
1330 ac_srcdir_defaulted=no
1331 fi
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1334 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1335 fi
1336 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 ac_abs_confdir=`(
1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1339 pwd)`
1340 # When building in place, set srcdir=.
1341 if test "$ac_abs_confdir" = "$ac_pwd"; then
1342 srcdir=.
1343 fi
1344 # Remove unnecessary trailing slashes from srcdir.
1345 # Double slashes in file names in object file debugging info
1346 # mess up M-x gdb in Emacs.
1347 case $srcdir in
1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 esac
1350 for ac_var in $ac_precious_vars; do
1351 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_env_${ac_var}_value=\$${ac_var}
1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355 done
1356
1357 #
1358 # Report the --help message.
1359 #
1360 if test "$ac_init_help" = "long"; then
1361 # Omit some internal or obsolete options to make the list less imposing.
1362 # This message is too long to be a string in the A/UX 3.1 sh.
1363 cat <<_ACEOF
1364 \`configure' configures miredo 1.2.6 to adapt to many kinds of systems.
1365
1366 Usage: $0 [OPTION]... [VAR=VALUE]...
1367
1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369 VAR=VALUE. See below for descriptions of some of the useful variables.
1370
1371 Defaults for the options are specified in brackets.
1372
1373 Configuration:
1374 -h, --help display this help and exit
1375 --help=short display options specific to this package
1376 --help=recursive display the short help of all the included packages
1377 -V, --version display version information and exit
1378 -q, --quiet, --silent do not print \`checking ...' messages
1379 --cache-file=FILE cache test results in FILE [disabled]
1380 -C, --config-cache alias for \`--cache-file=config.cache'
1381 -n, --no-create do not create output files
1382 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383
1384 Installation directories:
1385 --prefix=PREFIX install architecture-independent files in PREFIX
1386 [$ac_default_prefix]
1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388 [PREFIX]
1389
1390 By default, \`make install' will install all the files in
1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393 for instance \`--prefix=\$HOME'.
1394
1395 For better control, use the options below.
1396
1397 Fine tuning of the installation directories:
1398 --bindir=DIR user executables [EPREFIX/bin]
1399 --sbindir=DIR system admin executables [EPREFIX/sbin]
1400 --libexecdir=DIR program executables [EPREFIX/libexec]
1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1404 --libdir=DIR object code libraries [EPREFIX/lib]
1405 --includedir=DIR C header files [PREFIX/include]
1406 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1409 --infodir=DIR info documentation [DATAROOTDIR/info]
1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1411 --mandir=DIR man documentation [DATAROOTDIR/man]
1412 --docdir=DIR documentation root [DATAROOTDIR/doc/miredo]
1413 --htmldir=DIR html documentation [DOCDIR]
1414 --dvidir=DIR dvi documentation [DOCDIR]
1415 --pdfdir=DIR pdf documentation [DOCDIR]
1416 --psdir=DIR ps documentation [DOCDIR]
1417 _ACEOF
1418
1419 cat <<\_ACEOF
1420
1421 Program names:
1422 --program-prefix=PREFIX prepend PREFIX to installed program names
1423 --program-suffix=SUFFIX append SUFFIX to installed program names
1424 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425
1426 System types:
1427 --build=BUILD configure for building on BUILD [guessed]
1428 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 _ACEOF
1430 fi
1431
1432 if test -n "$ac_init_help"; then
1433 case $ac_init_help in
1434 short | recursive ) echo "Configuration of miredo 1.2.6:";;
1435 esac
1436 cat <<\_ACEOF
1437
1438 Optional Features:
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-shared[=PKGS] build shared libraries [default=yes]
1443 --enable-static[=PKGS] build static libraries [default=yes]
1444 --enable-fast-install[=PKGS]
1445 optimize for fast installation [default=yes]
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1447 --disable-dependency-tracking speeds up one-time build
1448 --enable-dependency-tracking do not reject slow dependency extractors
1449 --enable-silent-rules less verbose build output (undo: `make V=1')
1450 --disable-silent-rules verbose build output (undo: `make V=0')
1451 --enable-binreloc compile with binary relocation support
1452 (default=enable when available)
1453 --enable-binreloc-threads compile binary relocation with threads support
1454 (default=yes)
1455 --disable-nls do not use Native Language Support
1456 --disable-rpath do not hardcode runtime library paths
1457 --disable-assert turn off assertions
1458 --enable-coverage build for test coverage (default disabled)
1459 --disable-teredo-client do not compile Teredo client (default enabled)
1460 --enable-examplesdir install sample config files (default
1461 ${docdir}/examples)
1462 --disable-sample-conf do not install sample config files (default enabled)
1463 --enable-miredo-user run as a specific user (default nobody)
1464
1465 Optional Packages:
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1469 both]
1470 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1471 --with-sysroot=DIR Search for dependent libraries within DIR
1472 (or the compiler's sysroot if not specified).
1473 --with-gnu-ld assume the C compiler uses GNU ld default=no
1474 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1475 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1476 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1477 --without-libintl-prefix don't search for libintl in includedir and libdir
1478 --with-Judy use Judy dynamic arrays (default auto)
1479
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CPP C preprocessor
1489 PTHREAD_CFLAGS
1490 C compiler flags for POSIX threads
1491 PTHREAD_LDFLAGS
1492 Linker flags for POSIX threads
1493 PTHREAD_LIBS
1494 Same as PTHREAD_LFLAGS
1495
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1498
1499 Report bugs to <[email protected]>.
1500 _ACEOF
1501 ac_status=$?
1502 fi
1503
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509 continue
1510 ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529 .) # We are building in place.
1530 ac_srcdir=.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1552 else
1553 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 fi || ac_status=$?
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1556 done
1557 fi
1558
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561 cat <<\_ACEOF
1562 miredo configure 1.2.6
1563 generated by GNU Autoconf 2.69
1564
1565 Copyright (C) 2012 Free Software Foundation, Inc.
1566 This configure script is free software; the Free Software Foundation
1567 gives unlimited permission to copy, distribute and modify it.
1568
1569 Copyright (C) 2004-2013 Remi Denis-Courmont
1570 _ACEOF
1571 exit
1572 fi
1573
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1577
1578 # ac_fn_c_try_compile LINENO
1579 # --------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_compile ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext
1585 if { { ac_try="$ac_compile"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610 fi
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_compile
1615
1616 # ac_fn_c_try_cpp LINENO
1617 # ----------------------
1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_cpp ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_cpp conftest.$ac_ext"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } > conftest.i && {
1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647 fi
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_cpp
1652
1653 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1656 # the include files in INCLUDES and setting the cache variable VAR
1657 # accordingly.
1658 ac_fn_c_check_header_mongrel ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if eval \${$3+:} false; then :
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1666 fi
1667 eval ac_res=\$$3
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1670 else
1671 # Is the header compilable?
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1673 $as_echo_n "checking $2 usability... " >&6; }
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1676 $4
1677 #include <$2>
1678 _ACEOF
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 ac_header_compiler=yes
1681 else
1682 ac_header_compiler=no
1683 fi
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1686 $as_echo "$ac_header_compiler" >&6; }
1687
1688 # Is the header present?
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1690 $as_echo_n "checking $2 presence... " >&6; }
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1693 #include <$2>
1694 _ACEOF
1695 if ac_fn_c_try_cpp "$LINENO"; then :
1696 ac_header_preproc=yes
1697 else
1698 ac_header_preproc=no
1699 fi
1700 rm -f conftest.err conftest.i conftest.$ac_ext
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1702 $as_echo "$ac_header_preproc" >&6; }
1703
1704 # So? What about this header?
1705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1706 yes:no: )
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1708 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1710 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1711 ;;
1712 no:yes:* )
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1714 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1716 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1718 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1720 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723 ( $as_echo "## --------------------------------------------------- ##
1724 ## Report this to [email protected] ##
1725 ## --------------------------------------------------- ##"
1726 ) | sed "s/^/$as_me: WARNING: /" >&2
1727 ;;
1728 esac
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1733 else
1734 eval "$3=\$ac_header_compiler"
1735 fi
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 fi
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741
1742 } # ac_fn_c_check_header_mongrel
1743
1744 # ac_fn_c_try_run LINENO
1745 # ----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747 # that executables *can* be run.
1748 ac_fn_c_try_run ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_link"
1752 case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762 { { case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_try") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; }; }; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: program exited with status $ac_status" >&5
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=$ac_status
1779 fi
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1783
1784 } # ac_fn_c_try_run
1785
1786 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787 # -------------------------------------------------------
1788 # Tests whether HEADER exists and can be compiled using the include files in
1789 # INCLUDES, setting the cache variable VAR accordingly.
1790 ac_fn_c_check_header_compile ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1797 else
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 $4
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 eval "$3=yes"
1805 else
1806 eval "$3=no"
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 fi
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
1815 } # ac_fn_c_check_header_compile
1816
1817 # ac_fn_c_try_link LINENO
1818 # -----------------------
1819 # Try to link conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_link ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext conftest$ac_exeext
1824 if { { ac_try="$ac_link"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1837 fi
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_c_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest$ac_exeext && {
1843 test "$cross_compiling" = yes ||
1844 test -x conftest$ac_exeext
1845 }; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=1
1852 fi
1853 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1854 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1855 # interfere with the next link command; also delete a directory that is
1856 # left behind by Apple's compiler. We do this before executing the actions.
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1860
1861 } # ac_fn_c_try_link
1862
1863 # ac_fn_c_check_func LINENO FUNC VAR
1864 # ----------------------------------
1865 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1866 ac_fn_c_check_func ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1878 #define $2 innocuous_$2
1879
1880 /* System header to define __stub macros and hopefully few prototypes,
1881 which can conflict with char $2 (); below.
1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1883 <limits.h> exists even on freestanding compilers. */
1884
1885 #ifdef __STDC__
1886 # include <limits.h>
1887 #else
1888 # include <assert.h>
1889 #endif
1890
1891 #undef $2
1892
1893 /* Override any GCC internal prototype to avoid an error.
1894 Use char because int might match the return type of a GCC
1895 builtin and then its argument prototype would still apply. */
1896 #ifdef __cplusplus
1897 extern "C"
1898 #endif
1899 char $2 ();
1900 /* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903 #if defined __stub_$2 || defined __stub___$2
1904 choke me
1905 #endif
1906
1907 int
1908 main ()
1909 {
1910 return $2 ();
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_link "$LINENO"; then :
1916 eval "$3=yes"
1917 else
1918 eval "$3=no"
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext \
1921 conftest$ac_exeext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_func
1929
1930 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1931 # -------------------------------------------
1932 # Tests whether TYPE exists after having included INCLUDES, setting cache
1933 # variable VAR accordingly.
1934 ac_fn_c_check_type ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 eval "$3=no"
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 $4
1946 int
1947 main ()
1948 {
1949 if (sizeof ($2))
1950 return 0;
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 $4
1959 int
1960 main ()
1961 {
1962 if (sizeof (($2)))
1963 return 0;
1964 ;
1965 return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969
1970 else
1971 eval "$3=yes"
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 fi
1977 eval ac_res=\$$3
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982 } # ac_fn_c_check_type
1983 cat >config.log <<_ACEOF
1984 This file contains any messages produced by compilers while
1985 running configure, to aid debugging if configure makes a mistake.
1986
1987 It was created by miredo $as_me 1.2.6, which was
1988 generated by GNU Autoconf 2.69. Invocation command line was
1989
1990 $ $0 $@
1991
1992 _ACEOF
1993 exec 5>>config.log
1994 {
1995 cat <<_ASUNAME
1996 ## --------- ##
1997 ## Platform. ##
1998 ## --------- ##
1999
2000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2005
2006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2008
2009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2012 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2016
2017 _ASUNAME
2018
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 $as_echo "PATH: $as_dir"
2025 done
2026 IFS=$as_save_IFS
2027
2028 } >&5
2029
2030 cat >&5 <<_ACEOF
2031
2032
2033 ## ----------- ##
2034 ## Core tests. ##
2035 ## ----------- ##
2036
2037 _ACEOF
2038
2039
2040 # Keep a trace of the command line.
2041 # Strip out --no-create and --no-recursion so they do not pile up.
2042 # Strip out --silent because we don't want to record it for future runs.
2043 # Also quote any args containing shell meta-characters.
2044 # Make two passes to allow for proper duplicate-argument suppression.
2045 ac_configure_args=
2046 ac_configure_args0=
2047 ac_configure_args1=
2048 ac_must_keep_next=false
2049 for ac_pass in 1 2
2050 do
2051 for ac_arg
2052 do
2053 case $ac_arg in
2054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2056 | -silent | --silent | --silen | --sile | --sil)
2057 continue ;;
2058 *\'*)
2059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060 esac
2061 case $ac_pass in
2062 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2063 2)
2064 as_fn_append ac_configure_args1 " '$ac_arg'"
2065 if test $ac_must_keep_next = true; then
2066 ac_must_keep_next=false # Got value, back to normal.
2067 else
2068 case $ac_arg in
2069 *=* | --config-cache | -C | -disable-* | --disable-* \
2070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2072 | -with-* | --with-* | -without-* | --without-* | --x)
2073 case "$ac_configure_args0 " in
2074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2075 esac
2076 ;;
2077 -* ) ac_must_keep_next=true ;;
2078 esac
2079 fi
2080 as_fn_append ac_configure_args " '$ac_arg'"
2081 ;;
2082 esac
2083 done
2084 done
2085 { ac_configure_args0=; unset ac_configure_args0;}
2086 { ac_configure_args1=; unset ac_configure_args1;}
2087
2088 # When interrupted or exit'd, cleanup temporary files, and complete
2089 # config.log. We remove comments because anyway the quotes in there
2090 # would cause problems or look ugly.
2091 # WARNING: Use '\'' to represent an apostrophe within the trap.
2092 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2093 trap 'exit_status=$?
2094 # Save into config.log some information that might help in debugging.
2095 {
2096 echo
2097
2098 $as_echo "## ---------------- ##
2099 ## Cache variables. ##
2100 ## ---------------- ##"
2101 echo
2102 # The following way of writing the cache mishandles newlines in values,
2103 (
2104 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2105 eval ac_val=\$$ac_var
2106 case $ac_val in #(
2107 *${as_nl}*)
2108 case $ac_var in #(
2109 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2110 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2111 esac
2112 case $ac_var in #(
2113 _ | IFS | as_nl) ;; #(
2114 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2115 *) { eval $ac_var=; unset $ac_var;} ;;
2116 esac ;;
2117 esac
2118 done
2119 (set) 2>&1 |
2120 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2121 *${as_nl}ac_space=\ *)
2122 sed -n \
2123 "s/'\''/'\''\\\\'\'''\''/g;
2124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2125 ;; #(
2126 *)
2127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2128 ;;
2129 esac |
2130 sort
2131 )
2132 echo
2133
2134 $as_echo "## ----------------- ##
2135 ## Output variables. ##
2136 ## ----------------- ##"
2137 echo
2138 for ac_var in $ac_subst_vars
2139 do
2140 eval ac_val=\$$ac_var
2141 case $ac_val in
2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143 esac
2144 $as_echo "$ac_var='\''$ac_val'\''"
2145 done | sort
2146 echo
2147
2148 if test -n "$ac_subst_files"; then
2149 $as_echo "## ------------------- ##
2150 ## File substitutions. ##
2151 ## ------------------- ##"
2152 echo
2153 for ac_var in $ac_subst_files
2154 do
2155 eval ac_val=\$$ac_var
2156 case $ac_val in
2157 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158 esac
2159 $as_echo "$ac_var='\''$ac_val'\''"
2160 done | sort
2161 echo
2162 fi
2163
2164 if test -s confdefs.h; then
2165 $as_echo "## ----------- ##
2166 ## confdefs.h. ##
2167 ## ----------- ##"
2168 echo
2169 cat confdefs.h
2170 echo
2171 fi
2172 test "$ac_signal" != 0 &&
2173 $as_echo "$as_me: caught signal $ac_signal"
2174 $as_echo "$as_me: exit $exit_status"
2175 } >&5
2176 rm -f core *.core core.conftest.* &&
2177 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2178 exit $exit_status
2179 ' 0
2180 for ac_signal in 1 2 13 15; do
2181 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2182 done
2183 ac_signal=0
2184
2185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2186 rm -f -r conftest* confdefs.h
2187
2188 $as_echo "/* confdefs.h */" > confdefs.h
2189
2190 # Predefined preprocessor variables.
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_NAME "$PACKAGE_NAME"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_STRING "$PACKAGE_STRING"
2206 _ACEOF
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_URL "$PACKAGE_URL"
2214 _ACEOF
2215
2216
2217 # Let the site file select an alternate cache file if it wants to.
2218 # Prefer an explicitly selected file to automatically selected ones.
2219 ac_site_file1=NONE
2220 ac_site_file2=NONE
2221 if test -n "$CONFIG_SITE"; then
2222 # We do not want a PATH search for config.site.
2223 case $CONFIG_SITE in #((
2224 -*) ac_site_file1=./$CONFIG_SITE;;
2225 */*) ac_site_file1=$CONFIG_SITE;;
2226 *) ac_site_file1=./$CONFIG_SITE;;
2227 esac
2228 elif test "x$prefix" != xNONE; then
2229 ac_site_file1=$prefix/share/config.site
2230 ac_site_file2=$prefix/etc/config.site
2231 else
2232 ac_site_file1=$ac_default_prefix/share/config.site
2233 ac_site_file2=$ac_default_prefix/etc/config.site
2234 fi
2235 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2236 do
2237 test "x$ac_site_file" = xNONE && continue
2238 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2240 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2241 sed 's/^/| /' "$ac_site_file" >&5
2242 . "$ac_site_file" \
2243 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245 as_fn_error $? "failed to load site script $ac_site_file
2246 See \`config.log' for more details" "$LINENO" 5; }
2247 fi
2248 done
2249
2250 if test -r "$cache_file"; then
2251 # Some versions of bash will fail to source /dev/null (special files
2252 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2253 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2255 $as_echo "$as_me: loading cache $cache_file" >&6;}
2256 case $cache_file in
2257 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2258 *) . "./$cache_file";;
2259 esac
2260 fi
2261 else
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2263 $as_echo "$as_me: creating cache $cache_file" >&6;}
2264 >$cache_file
2265 fi
2266
2267 gt_needs="$gt_needs "
2268 # Check that the precious variables saved in the cache have kept the same
2269 # value.
2270 ac_cache_corrupted=false
2271 for ac_var in $ac_precious_vars; do
2272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273 eval ac_new_set=\$ac_env_${ac_var}_set
2274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275 eval ac_new_val=\$ac_env_${ac_var}_value
2276 case $ac_old_set,$ac_new_set in
2277 set,)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2281 ,set)
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2283 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2285 ,);;
2286 *)
2287 if test "x$ac_old_val" != "x$ac_new_val"; then
2288 # differences in whitespace do not lead to failure.
2289 ac_old_val_w=`echo x $ac_old_val`
2290 ac_new_val_w=`echo x $ac_new_val`
2291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294 ac_cache_corrupted=:
2295 else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298 eval $ac_var=\$ac_old_val
2299 fi
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2301 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2304 fi;;
2305 esac
2306 # Pass precious variables to config.status.
2307 if test "$ac_new_set" = set; then
2308 case $ac_new_val in
2309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2310 *) ac_arg=$ac_var=$ac_new_val ;;
2311 esac
2312 case " $ac_configure_args " in
2313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2315 esac
2316 fi
2317 done
2318 if $ac_cache_corrupted; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2324 fi
2325 ## -------------------- ##
2326 ## Main body of script. ##
2327 ## -------------------- ##
2328
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336
2337 INVOCATION="$0 $ac_configure_args"
2338
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system..." >&5
2340 $as_echo "$as_me: checking system..." >&6;}
2341
2342 ac_aux_dir=
2343 for ac_dir in admin "$srcdir"/admin; do
2344 if test -f "$ac_dir/install-sh"; then
2345 ac_aux_dir=$ac_dir
2346 ac_install_sh="$ac_aux_dir/install-sh -c"
2347 break
2348 elif test -f "$ac_dir/install.sh"; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/install.sh -c"
2351 break
2352 elif test -f "$ac_dir/shtool"; then
2353 ac_aux_dir=$ac_dir
2354 ac_install_sh="$ac_aux_dir/shtool install -c"
2355 break
2356 fi
2357 done
2358 if test -z "$ac_aux_dir"; then
2359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in admin \"$srcdir\"/admin" "$LINENO" 5
2360 fi
2361
2362 # These three variables are undocumented and unsupported,
2363 # and are intended to be withdrawn in a future Autoconf release.
2364 # They can cause serious problems if a builder's source tree is in a directory
2365 # whose full name contains unusual characters.
2366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2369
2370
2371
2372
2373 ac_config_headers="$ac_config_headers config.h"
2374
2375
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_CONFIGURE_INVOCATION "$INVOCATION"
2379 _ACEOF
2380
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build hostname" >&5
2382 $as_echo_n "checking for build hostname... " >&6; }
2383 if ${rdc_cv_build_hostname+:} false; then :
2384 $as_echo_n "(cached) " >&6
2385 else
2386 rdc_cv_build_hostname=`hostname -f 2>/dev/null || uname -n 2>/dev/null || hostname 2>/dev/null || echo "unknown"`
2387
2388 fi
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rdc_cv_build_hostname" >&5
2390 $as_echo "$rdc_cv_build_hostname" >&6; }
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_BUILD_HOSTNAME "$rdc_cv_build_hostname"
2394 _ACEOF
2395
2396
2397 # Make sure we can run config.sub.
2398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2399 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2400
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2402 $as_echo_n "checking build system type... " >&6; }
2403 if ${ac_cv_build+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 ac_build_alias=$build_alias
2407 test "x$ac_build_alias" = x &&
2408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2409 test "x$ac_build_alias" = x &&
2410 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2413
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2416 $as_echo "$ac_cv_build" >&6; }
2417 case $ac_cv_build in
2418 *-*-*) ;;
2419 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2420 esac
2421 build=$ac_cv_build
2422 ac_save_IFS=$IFS; IFS='-'
2423 set x $ac_cv_build
2424 shift
2425 build_cpu=$1
2426 build_vendor=$2
2427 shift; shift
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2430 build_os=$*
2431 IFS=$ac_save_IFS
2432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2433
2434
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2436 $as_echo_n "checking host system type... " >&6; }
2437 if ${ac_cv_host+:} false; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 if test "x$host_alias" = x; then
2441 ac_cv_host=$ac_cv_build
2442 else
2443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2445 fi
2446
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2449 $as_echo "$ac_cv_host" >&6; }
2450 case $ac_cv_host in
2451 *-*-*) ;;
2452 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2453 esac
2454 host=$ac_cv_host
2455 ac_save_IFS=$IFS; IFS='-'
2456 set x $ac_cv_host
2457 shift
2458 host_cpu=$1
2459 host_vendor=$2
2460 shift; shift
2461 # Remember, the first character of IFS is used to create $*,
2462 # except with old shells:
2463 host_os=$*
2464 IFS=$ac_save_IFS
2465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2466
2467
2468
2469
2470 # Checks for programs.
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking required programs..." >&5
2472 $as_echo "$as_me: checking required programs..." >&6;}
2473
2474 ac_ext=c
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 if test -n "$ac_tool_prefix"; then
2480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_CC+:} false; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 if test -n "$CC"; then
2488 ac_cv_prog_CC="$CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 CC=$ac_cv_prog_CC
2508 if test -n "$CC"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2510 $as_echo "$CC" >&6; }
2511 else
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2514 fi
2515
2516
2517 fi
2518 if test -z "$ac_cv_prog_CC"; then
2519 ac_ct_CC=$CC
2520 # Extract the first word of "gcc", so it can be a program name with args.
2521 set dummy gcc; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2525 $as_echo_n "(cached) " >&6
2526 else
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_ac_ct_CC="gcc"
2538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2548 if test -n "$ac_ct_CC"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2550 $as_echo "$ac_ct_CC" >&6; }
2551 else
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556 if test "x$ac_ct_CC" = x; then
2557 CC=""
2558 else
2559 case $cross_compiling:$ac_tool_warned in
2560 yes:)
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2563 ac_tool_warned=yes ;;
2564 esac
2565 CC=$ac_ct_CC
2566 fi
2567 else
2568 CC="$ac_cv_prog_CC"
2569 fi
2570
2571 if test -z "$CC"; then
2572 if test -n "$ac_tool_prefix"; then
2573 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2574 set dummy ${ac_tool_prefix}cc; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_CC+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_CC="${ac_tool_prefix}cc"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2593 fi
2594 done
2595 done
2596 IFS=$as_save_IFS
2597
2598 fi
2599 fi
2600 CC=$ac_cv_prog_CC
2601 if test -n "$CC"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2603 $as_echo "$CC" >&6; }
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609
2610 fi
2611 fi
2612 if test -z "$CC"; then
2613 # Extract the first word of "cc", so it can be a program name with args.
2614 set dummy cc; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_CC+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2622 else
2623 ac_prog_rejected=no
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2632 ac_prog_rejected=yes
2633 continue
2634 fi
2635 ac_cv_prog_CC="cc"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 if test $ac_prog_rejected = yes; then
2644 # We found a bogon in the path, so make sure we never use it.
2645 set dummy $ac_cv_prog_CC
2646 shift
2647 if test $# != 0; then
2648 # We chose a different compiler from the bogus one.
2649 # However, it has the same basename, so the bogon will be chosen
2650 # first if we set CC to just the basename; use the full file name.
2651 shift
2652 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2653 fi
2654 fi
2655 fi
2656 fi
2657 CC=$ac_cv_prog_CC
2658 if test -n "$CC"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2660 $as_echo "$CC" >&6; }
2661 else
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2664 fi
2665
2666
2667 fi
2668 if test -z "$CC"; then
2669 if test -n "$ac_tool_prefix"; then
2670 for ac_prog in cl.exe
2671 do
2672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_CC+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2692 fi
2693 done
2694 done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 CC=$ac_cv_prog_CC
2700 if test -n "$CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2703 else
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2706 fi
2707
2708
2709 test -n "$CC" && break
2710 done
2711 fi
2712 if test -z "$CC"; then
2713 ac_ct_CC=$CC
2714 for ac_prog in cl.exe
2715 do
2716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy $ac_prog; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test -n "$ac_ct_CC"; then
2724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_ac_ct_CC="$ac_prog"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744 if test -n "$ac_ct_CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2746 $as_echo "$ac_ct_CC" >&6; }
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752
2753 test -n "$ac_ct_CC" && break
2754 done
2755
2756 if test "x$ac_ct_CC" = x; then
2757 CC=""
2758 else
2759 case $cross_compiling:$ac_tool_warned in
2760 yes:)
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763 ac_tool_warned=yes ;;
2764 esac
2765 CC=$ac_ct_CC
2766 fi
2767 fi
2768
2769 fi
2770
2771
2772 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774 as_fn_error $? "no acceptable C compiler found in \$PATH
2775 See \`config.log' for more details" "$LINENO" 5; }
2776
2777 # Provide some information about the compiler.
2778 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2779 set X $ac_compile
2780 ac_compiler=$2
2781 for ac_option in --version -v -V -qversion; do
2782 { { ac_try="$ac_compiler $ac_option >&5"
2783 case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2786 esac
2787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788 $as_echo "$ac_try_echo"; } >&5
2789 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2790 ac_status=$?
2791 if test -s conftest.err; then
2792 sed '10a\
2793 ... rest of stderr output deleted ...
2794 10q' conftest.err >conftest.er1
2795 cat conftest.er1 >&5
2796 fi
2797 rm -f conftest.er1 conftest.err
2798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2799 test $ac_status = 0; }
2800 done
2801
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2804
2805 int
2806 main ()
2807 {
2808
2809 ;
2810 return 0;
2811 }
2812 _ACEOF
2813 ac_clean_files_save=$ac_clean_files
2814 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2815 # Try to create an executable without -o first, disregard a.out.
2816 # It will help us diagnose broken compilers, and finding out an intuition
2817 # of exeext.
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2819 $as_echo_n "checking whether the C compiler works... " >&6; }
2820 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2821
2822 # The possible output files:
2823 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2824
2825 ac_rmfiles=
2826 for ac_file in $ac_files
2827 do
2828 case $ac_file in
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2830 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2831 esac
2832 done
2833 rm -f $ac_rmfiles
2834
2835 if { { ac_try="$ac_link_default"
2836 case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839 esac
2840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2841 $as_echo "$ac_try_echo"; } >&5
2842 (eval "$ac_link_default") 2>&5
2843 ac_status=$?
2844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2845 test $ac_status = 0; }; then :
2846 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2847 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2848 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2849 # so that the user can short-circuit this test for compilers unknown to
2850 # Autoconf.
2851 for ac_file in $ac_files ''
2852 do
2853 test -f "$ac_file" || continue
2854 case $ac_file in
2855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2856 ;;
2857 [ab].out )
2858 # We found the default executable, but exeext='' is most
2859 # certainly right.
2860 break;;
2861 *.* )
2862 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2863 then :; else
2864 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2865 fi
2866 # We set ac_cv_exeext here because the later test for it is not
2867 # safe: cross compilers may not add the suffix if given an `-o'
2868 # argument, so we may need to know it at that point already.
2869 # Even if this section looks crufty: it has the advantage of
2870 # actually working.
2871 break;;
2872 * )
2873 break;;
2874 esac
2875 done
2876 test "$ac_cv_exeext" = no && ac_cv_exeext=
2877
2878 else
2879 ac_file=''
2880 fi
2881 if test -z "$ac_file"; then :
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2886
2887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2889 as_fn_error 77 "C compiler cannot create executables
2890 See \`config.log' for more details" "$LINENO" 5; }
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2893 $as_echo "yes" >&6; }
2894 fi
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2896 $as_echo_n "checking for C compiler default output file name... " >&6; }
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2898 $as_echo "$ac_file" >&6; }
2899 ac_exeext=$ac_cv_exeext
2900
2901 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2902 ac_clean_files=$ac_clean_files_save
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2904 $as_echo_n "checking for suffix of executables... " >&6; }
2905 if { { ac_try="$ac_link"
2906 case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909 esac
2910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911 $as_echo "$ac_try_echo"; } >&5
2912 (eval "$ac_link") 2>&5
2913 ac_status=$?
2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915 test $ac_status = 0; }; then :
2916 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2917 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2918 # work properly (i.e., refer to `conftest.exe'), while it won't with
2919 # `rm'.
2920 for ac_file in conftest.exe conftest conftest.*; do
2921 test -f "$ac_file" || continue
2922 case $ac_file in
2923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2924 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2925 break;;
2926 * ) break;;
2927 esac
2928 done
2929 else
2930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2933 See \`config.log' for more details" "$LINENO" 5; }
2934 fi
2935 rm -f conftest conftest$ac_cv_exeext
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2937 $as_echo "$ac_cv_exeext" >&6; }
2938
2939 rm -f conftest.$ac_ext
2940 EXEEXT=$ac_cv_exeext
2941 ac_exeext=$EXEEXT
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h. */
2944 #include <stdio.h>
2945 int
2946 main ()
2947 {
2948 FILE *f = fopen ("conftest.out", "w");
2949 return ferror (f) || fclose (f) != 0;
2950
2951 ;
2952 return 0;
2953 }
2954 _ACEOF
2955 ac_clean_files="$ac_clean_files conftest.out"
2956 # Check that the compiler produces executables we can run. If not, either
2957 # the compiler is broken, or we cross compile.
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2959 $as_echo_n "checking whether we are cross compiling... " >&6; }
2960 if test "$cross_compiling" != yes; then
2961 { { ac_try="$ac_link"
2962 case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 $as_echo "$ac_try_echo"; } >&5
2968 (eval "$ac_link") 2>&5
2969 ac_status=$?
2970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971 test $ac_status = 0; }
2972 if { ac_try='./conftest$ac_cv_exeext'
2973 { { case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978 $as_echo "$ac_try_echo"; } >&5
2979 (eval "$ac_try") 2>&5
2980 ac_status=$?
2981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982 test $ac_status = 0; }; }; then
2983 cross_compiling=no
2984 else
2985 if test "$cross_compiling" = maybe; then
2986 cross_compiling=yes
2987 else
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error $? "cannot run C compiled programs.
2991 If you meant to cross compile, use \`--host'.
2992 See \`config.log' for more details" "$LINENO" 5; }
2993 fi
2994 fi
2995 fi
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2997 $as_echo "$cross_compiling" >&6; }
2998
2999 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3000 ac_clean_files=$ac_clean_files_save
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3002 $as_echo_n "checking for suffix of object files... " >&6; }
3003 if ${ac_cv_objext+:} false; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3008
3009 int
3010 main ()
3011 {
3012
3013 ;
3014 return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.o conftest.obj
3018 if { { ac_try="$ac_compile"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_compile") 2>&5
3026 ac_status=$?
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }; then :
3029 for ac_file in conftest.o conftest.obj conftest.*; do
3030 test -f "$ac_file" || continue;
3031 case $ac_file in
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3034 break;;
3035 esac
3036 done
3037 else
3038 $as_echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3040
3041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 as_fn_error $? "cannot compute suffix of object files: cannot compile
3044 See \`config.log' for more details" "$LINENO" 5; }
3045 fi
3046 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3047 fi
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3049 $as_echo "$ac_cv_objext" >&6; }
3050 OBJEXT=$ac_cv_objext
3051 ac_objext=$OBJEXT
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3053 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3054 if ${ac_cv_c_compiler_gnu+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3059
3060 int
3061 main ()
3062 {
3063 #ifndef __GNUC__
3064 choke me
3065 #endif
3066
3067 ;
3068 return 0;
3069 }
3070 _ACEOF
3071 if ac_fn_c_try_compile "$LINENO"; then :
3072 ac_compiler_gnu=yes
3073 else
3074 ac_compiler_gnu=no
3075 fi
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3078
3079 fi
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3081 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3082 if test $ac_compiler_gnu = yes; then
3083 GCC=yes
3084 else
3085 GCC=
3086 fi
3087 ac_test_CFLAGS=${CFLAGS+set}
3088 ac_save_CFLAGS=$CFLAGS
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3090 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3091 if ${ac_cv_prog_cc_g+:} false; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3096 ac_cv_prog_cc_g=no
3097 CFLAGS="-g"
3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3100
3101 int
3102 main ()
3103 {
3104
3105 ;
3106 return 0;
3107 }
3108 _ACEOF
3109 if ac_fn_c_try_compile "$LINENO"; then :
3110 ac_cv_prog_cc_g=yes
3111 else
3112 CFLAGS=""
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3115
3116 int
3117 main ()
3118 {
3119
3120 ;
3121 return 0;
3122 }
3123 _ACEOF
3124 if ac_fn_c_try_compile "$LINENO"; then :
3125
3126 else
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3128 CFLAGS="-g"
3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130 /* end confdefs.h. */
3131
3132 int
3133 main ()
3134 {
3135
3136 ;
3137 return 0;
3138 }
3139 _ACEOF
3140 if ac_fn_c_try_compile "$LINENO"; then :
3141 ac_cv_prog_cc_g=yes
3142 fi
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144 fi
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146 fi
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 ac_c_werror_flag=$ac_save_c_werror_flag
3149 fi
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3151 $as_echo "$ac_cv_prog_cc_g" >&6; }
3152 if test "$ac_test_CFLAGS" = set; then
3153 CFLAGS=$ac_save_CFLAGS
3154 elif test $ac_cv_prog_cc_g = yes; then
3155 if test "$GCC" = yes; then
3156 CFLAGS="-g -O2"
3157 else
3158 CFLAGS="-g"
3159 fi
3160 else
3161 if test "$GCC" = yes; then
3162 CFLAGS="-O2"
3163 else
3164 CFLAGS=
3165 fi
3166 fi
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3168 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3169 if ${ac_cv_prog_cc_c89+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 ac_cv_prog_cc_c89=no
3173 ac_save_CC=$CC
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3176 #include <stdarg.h>
3177 #include <stdio.h>
3178 struct stat;
3179 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3180 struct buf { int x; };
3181 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3182 static char *e (p, i)
3183 char **p;
3184 int i;
3185 {
3186 return p[i];
3187 }
3188 static char *f (char * (*g) (char **, int), char **p, ...)
3189 {
3190 char *s;
3191 va_list v;
3192 va_start (v,p);
3193 s = g (p, va_arg (v,int));
3194 va_end (v);
3195 return s;
3196 }
3197
3198 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3199 function prototypes and stuff, but not '\xHH' hex character constants.
3200 These don't provoke an error unfortunately, instead are silently treated
3201 as 'x'. The following induces an error, until -std is added to get
3202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3203 array size at least. It's necessary to write '\x00'==0 to get something
3204 that's true only with -std. */
3205 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3206
3207 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3208 inside strings and character constants. */
3209 #define FOO(x) 'x'
3210 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3211
3212 int test (int i, double x);
3213 struct s1 {int (*f) (int a);};
3214 struct s2 {int (*f) (double a);};
3215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3216 int argc;
3217 char **argv;
3218 int
3219 main ()
3220 {
3221 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3228 do
3229 CC="$ac_save_CC $ac_arg"
3230 if ac_fn_c_try_compile "$LINENO"; then :
3231 ac_cv_prog_cc_c89=$ac_arg
3232 fi
3233 rm -f core conftest.err conftest.$ac_objext
3234 test "x$ac_cv_prog_cc_c89" != "xno" && break
3235 done
3236 rm -f conftest.$ac_ext
3237 CC=$ac_save_CC
3238
3239 fi
3240 # AC_CACHE_VAL
3241 case "x$ac_cv_prog_cc_c89" in
3242 x)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3244 $as_echo "none needed" >&6; } ;;
3245 xno)
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3247 $as_echo "unsupported" >&6; } ;;
3248 *)
3249 CC="$CC $ac_cv_prog_cc_c89"
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3251 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3252 esac
3253 if test "x$ac_cv_prog_cc_c89" != xno; then :
3254
3255 fi
3256
3257 ac_ext=c
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3264 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3265 if ${ac_cv_prog_cc_c99+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 ac_cv_prog_cc_c99=no
3269 ac_save_CC=$CC
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272 #include <stdarg.h>
3273 #include <stdbool.h>
3274 #include <stdlib.h>
3275 #include <wchar.h>
3276 #include <stdio.h>
3277
3278 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3279 #define debug(...) fprintf (stderr, __VA_ARGS__)
3280 #define showlist(...) puts (#__VA_ARGS__)
3281 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3282 static void
3283 test_varargs_macros (void)
3284 {
3285 int x = 1234;
3286 int y = 5678;
3287 debug ("Flag");
3288 debug ("X = %d\n", x);
3289 showlist (The first, second, and third items.);
3290 report (x>y, "x is %d but y is %d", x, y);
3291 }
3292
3293 // Check long long types.
3294 #define BIG64 18446744073709551615ull
3295 #define BIG32 4294967295ul
3296 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3297 #if !BIG_OK
3298 your preprocessor is broken;
3299 #endif
3300 #if BIG_OK
3301 #else
3302 your preprocessor is broken;
3303 #endif
3304 static long long int bignum = -9223372036854775807LL;
3305 static unsigned long long int ubignum = BIG64;
3306
3307 struct incomplete_array
3308 {
3309 int datasize;
3310 double data[];
3311 };
3312
3313 struct named_init {
3314 int number;
3315 const wchar_t *name;
3316 double average;
3317 };
3318
3319 typedef const char *ccp;
3320
3321 static inline int
3322 test_restrict (ccp restrict text)
3323 {
3324 // See if C++-style comments work.
3325 // Iterate through items via the restricted pointer.
3326 // Also check for declarations in for loops.
3327 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3328 continue;
3329 return 0;
3330 }
3331
3332 // Check varargs and va_copy.
3333 static void
3334 test_varargs (const char *format, ...)
3335 {
3336 va_list args;
3337 va_start (args, format);
3338 va_list args_copy;
3339 va_copy (args_copy, args);
3340
3341 const char *str;
3342 int number;
3343 float fnumber;
3344
3345 while (*format)
3346 {
3347 switch (*format++)
3348 {
3349 case 's': // string
3350 str = va_arg (args_copy, const char *);
3351 break;
3352 case 'd': // int
3353 number = va_arg (args_copy, int);
3354 break;
3355 case 'f': // float
3356 fnumber = va_arg (args_copy, double);
3357 break;
3358 default:
3359 break;
3360 }
3361 }
3362 va_end (args_copy);
3363 va_end (args);
3364 }
3365
3366 int
3367 main ()
3368 {
3369
3370 // Check bool.
3371 _Bool success = false;
3372
3373 // Check restrict.
3374 if (test_restrict ("String literal") == 0)
3375 success = true;
3376 char *restrict newvar = "Another string";
3377
3378 // Check varargs.
3379 test_varargs ("s, d' f .", "string", 65, 34.234);
3380 test_varargs_macros ();
3381
3382 // Check flexible array members.
3383 struct incomplete_array *ia =
3384 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3385 ia->datasize = 10;
3386 for (int i = 0; i < ia->datasize; ++i)
3387 ia->data[i] = i * 1.234;
3388
3389 // Check named initializers.
3390 struct named_init ni = {
3391 .number = 34,
3392 .name = L"Test wide string",
3393 .average = 543.34343,
3394 };
3395
3396 ni.number = 58;
3397
3398 int dynamic_array[ni.number];
3399 dynamic_array[ni.number - 1] = 543;
3400
3401 // work around unused variable warnings
3402 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3403 || dynamic_array[ni.number - 1] != 543);
3404
3405 ;
3406 return 0;
3407 }
3408 _ACEOF
3409 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3410 do
3411 CC="$ac_save_CC $ac_arg"
3412 if ac_fn_c_try_compile "$LINENO"; then :
3413 ac_cv_prog_cc_c99=$ac_arg
3414 fi
3415 rm -f core conftest.err conftest.$ac_objext
3416 test "x$ac_cv_prog_cc_c99" != "xno" && break
3417 done
3418 rm -f conftest.$ac_ext
3419 CC=$ac_save_CC
3420
3421 fi
3422 # AC_CACHE_VAL
3423 case "x$ac_cv_prog_cc_c99" in
3424 x)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3426 $as_echo "none needed" >&6; } ;;
3427 xno)
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3429 $as_echo "unsupported" >&6; } ;;
3430 *)
3431 CC="$CC $ac_cv_prog_cc_c99"
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3433 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3434 esac
3435 if test "x$ac_cv_prog_cc_c99" != xno; then :
3436
3437 fi
3438
3439
3440
3441 ac_ext=c
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3447 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3448 # On Suns, sometimes $CPP names a directory.
3449 if test -n "$CPP" && test -d "$CPP"; then
3450 CPP=
3451 fi
3452 if test -z "$CPP"; then
3453 if ${ac_cv_prog_CPP+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 # Double quotes because CPP needs to be expanded
3457 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3458 do
3459 ac_preproc_ok=false
3460 for ac_c_preproc_warn_flag in '' yes
3461 do
3462 # Use a header file that comes with gcc, so configuring glibc
3463 # with a fresh cross-compiler works.
3464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3465 # <limits.h> exists even on freestanding compilers.
3466 # On the NeXT, cc -E runs the code through the compiler's parser,
3467 # not just through cpp. "Syntax error" is here to catch this case.
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470 #ifdef __STDC__
3471 # include <limits.h>
3472 #else
3473 # include <assert.h>
3474 #endif
3475 Syntax error
3476 _ACEOF
3477 if ac_fn_c_try_cpp "$LINENO"; then :
3478
3479 else
3480 # Broken: fails on valid input.
3481 continue
3482 fi
3483 rm -f conftest.err conftest.i conftest.$ac_ext
3484
3485 # OK, works on sane cases. Now check whether nonexistent headers
3486 # can be detected and how.
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489 #include <ac_nonexistent.h>
3490 _ACEOF
3491 if ac_fn_c_try_cpp "$LINENO"; then :
3492 # Broken: success on invalid input.
3493 continue
3494 else
3495 # Passes both tests.
3496 ac_preproc_ok=:
3497 break
3498 fi
3499 rm -f conftest.err conftest.i conftest.$ac_ext
3500
3501 done
3502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503 rm -f conftest.i conftest.err conftest.$ac_ext
3504 if $ac_preproc_ok; then :
3505 break
3506 fi
3507
3508 done
3509 ac_cv_prog_CPP=$CPP
3510
3511 fi
3512 CPP=$ac_cv_prog_CPP
3513 else
3514 ac_cv_prog_CPP=$CPP
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3517 $as_echo "$CPP" >&6; }
3518 ac_preproc_ok=false
3519 for ac_c_preproc_warn_flag in '' yes
3520 do
3521 # Use a header file that comes with gcc, so configuring glibc
3522 # with a fresh cross-compiler works.
3523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3524 # <limits.h> exists even on freestanding compilers.
3525 # On the NeXT, cc -E runs the code through the compiler's parser,
3526 # not just through cpp. "Syntax error" is here to catch this case.
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529 #ifdef __STDC__
3530 # include <limits.h>
3531 #else
3532 # include <assert.h>
3533 #endif
3534 Syntax error
3535 _ACEOF
3536 if ac_fn_c_try_cpp "$LINENO"; then :
3537
3538 else
3539 # Broken: fails on valid input.
3540 continue
3541 fi
3542 rm -f conftest.err conftest.i conftest.$ac_ext
3543
3544 # OK, works on sane cases. Now check whether nonexistent headers
3545 # can be detected and how.
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3548 #include <ac_nonexistent.h>
3549 _ACEOF
3550 if ac_fn_c_try_cpp "$LINENO"; then :
3551 # Broken: success on invalid input.
3552 continue
3553 else
3554 # Passes both tests.
3555 ac_preproc_ok=:
3556 break
3557 fi
3558 rm -f conftest.err conftest.i conftest.$ac_ext
3559
3560 done
3561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3562 rm -f conftest.i conftest.err conftest.$ac_ext
3563 if $ac_preproc_ok; then :
3564
3565 else
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3569 See \`config.log' for more details" "$LINENO" 5; }
3570 fi
3571
3572 ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3580 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3581 if ${ac_cv_path_GREP+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 if test -z "$GREP"; then
3585 ac_path_GREP_found=false
3586 # Loop through the user's path and test for each of PROGNAME-LIST
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3589 do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_prog in grep ggrep; do
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3595 as_fn_executable_p "$ac_path_GREP" || continue
3596 # Check for GNU ac_path_GREP and select it if it is found.
3597 # Check for GNU $ac_path_GREP
3598 case `"$ac_path_GREP" --version 2>&1` in
3599 *GNU*)
3600 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3601 *)
3602 ac_count=0
3603 $as_echo_n 0123456789 >"conftest.in"
3604 while :
3605 do
3606 cat "conftest.in" "conftest.in" >"conftest.tmp"
3607 mv "conftest.tmp" "conftest.in"
3608 cp "conftest.in" "conftest.nl"
3609 $as_echo 'GREP' >> "conftest.nl"
3610 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3612 as_fn_arith $ac_count + 1 && ac_count=$as_val
3613 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3614 # Best one so far, save it but keep looking for a better one
3615 ac_cv_path_GREP="$ac_path_GREP"
3616 ac_path_GREP_max=$ac_count
3617 fi
3618 # 10*(2^10) chars as input seems more than enough
3619 test $ac_count -gt 10 && break
3620 done
3621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3622 esac
3623
3624 $ac_path_GREP_found && break 3
3625 done
3626 done
3627 done
3628 IFS=$as_save_IFS
3629 if test -z "$ac_cv_path_GREP"; then
3630 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3631 fi
3632 else
3633 ac_cv_path_GREP=$GREP
3634 fi
3635
3636 fi
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3638 $as_echo "$ac_cv_path_GREP" >&6; }
3639 GREP="$ac_cv_path_GREP"
3640
3641
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3643 $as_echo_n "checking for egrep... " >&6; }
3644 if ${ac_cv_path_EGREP+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3648 then ac_cv_path_EGREP="$GREP -E"
3649 else
3650 if test -z "$EGREP"; then
3651 ac_path_EGREP_found=false
3652 # Loop through the user's path and test for each of PROGNAME-LIST
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3655 do
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_prog in egrep; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3661 as_fn_executable_p "$ac_path_EGREP" || continue
3662 # Check for GNU ac_path_EGREP and select it if it is found.
3663 # Check for GNU $ac_path_EGREP
3664 case `"$ac_path_EGREP" --version 2>&1` in
3665 *GNU*)
3666 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3667 *)
3668 ac_count=0
3669 $as_echo_n 0123456789 >"conftest.in"
3670 while :
3671 do
3672 cat "conftest.in" "conftest.in" >"conftest.tmp"
3673 mv "conftest.tmp" "conftest.in"
3674 cp "conftest.in" "conftest.nl"
3675 $as_echo 'EGREP' >> "conftest.nl"
3676 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3678 as_fn_arith $ac_count + 1 && ac_count=$as_val
3679 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3680 # Best one so far, save it but keep looking for a better one
3681 ac_cv_path_EGREP="$ac_path_EGREP"
3682 ac_path_EGREP_max=$ac_count
3683 fi
3684 # 10*(2^10) chars as input seems more than enough
3685 test $ac_count -gt 10 && break
3686 done
3687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3688 esac
3689
3690 $ac_path_EGREP_found && break 3
3691 done
3692 done
3693 done
3694 IFS=$as_save_IFS
3695 if test -z "$ac_cv_path_EGREP"; then
3696 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3697 fi
3698 else
3699 ac_cv_path_EGREP=$EGREP
3700 fi
3701
3702 fi
3703 fi
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3705 $as_echo "$ac_cv_path_EGREP" >&6; }
3706 EGREP="$ac_cv_path_EGREP"
3707
3708
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3710 $as_echo_n "checking for ANSI C header files... " >&6; }
3711 if ${ac_cv_header_stdc+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3716 #include <stdlib.h>
3717 #include <stdarg.h>
3718 #include <string.h>
3719 #include <float.h>
3720
3721 int
3722 main ()
3723 {
3724
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_cv_header_stdc=yes
3731 else
3732 ac_cv_header_stdc=no
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735
3736 if test $ac_cv_header_stdc = yes; then
3737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <string.h>
3741
3742 _ACEOF
3743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3744 $EGREP "memchr" >/dev/null 2>&1; then :
3745
3746 else
3747 ac_cv_header_stdc=no
3748 fi
3749 rm -f conftest*
3750
3751 fi
3752
3753 if test $ac_cv_header_stdc = yes; then
3754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <stdlib.h>
3758
3759 _ACEOF
3760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3761 $EGREP "free" >/dev/null 2>&1; then :
3762
3763 else
3764 ac_cv_header_stdc=no
3765 fi
3766 rm -f conftest*
3767
3768 fi
3769
3770 if test $ac_cv_header_stdc = yes; then
3771 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3772 if test "$cross_compiling" = yes; then :
3773 :
3774 else
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777 #include <ctype.h>
3778 #include <stdlib.h>
3779 #if ((' ' & 0x0FF) == 0x020)
3780 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3781 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3782 #else
3783 # define ISLOWER(c) \
3784 (('a' <= (c) && (c) <= 'i') \
3785 || ('j' <= (c) && (c) <= 'r') \
3786 || ('s' <= (c) && (c) <= 'z'))
3787 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3788 #endif
3789
3790 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3791 int
3792 main ()
3793 {
3794 int i;
3795 for (i = 0; i < 256; i++)
3796 if (XOR (islower (i), ISLOWER (i))
3797 || toupper (i) != TOUPPER (i))
3798 return 2;
3799 return 0;
3800 }
3801 _ACEOF
3802 if ac_fn_c_try_run "$LINENO"; then :
3803
3804 else
3805 ac_cv_header_stdc=no
3806 fi
3807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3808 conftest.$ac_objext conftest.beam conftest.$ac_ext
3809 fi
3810
3811 fi
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3814 $as_echo "$ac_cv_header_stdc" >&6; }
3815 if test $ac_cv_header_stdc = yes; then
3816
3817 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3818
3819 fi
3820
3821 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3822 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3823 inttypes.h stdint.h unistd.h
3824 do :
3825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3826 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3827 "
3828 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3829 cat >>confdefs.h <<_ACEOF
3830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3831 _ACEOF
3832
3833 fi
3834
3835 done
3836
3837
3838
3839 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3840 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3841 MINIX=yes
3842 else
3843 MINIX=
3844 fi
3845
3846
3847 if test "$MINIX" = yes; then
3848
3849 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3850
3851
3852 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3853
3854
3855 $as_echo "#define _MINIX 1" >>confdefs.h
3856
3857 fi
3858
3859
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3861 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3862 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867
3868 # define __EXTENSIONS__ 1
3869 $ac_includes_default
3870 int
3871 main ()
3872 {
3873
3874 ;
3875 return 0;
3876 }
3877 _ACEOF
3878 if ac_fn_c_try_compile "$LINENO"; then :
3879 ac_cv_safe_to_define___extensions__=yes
3880 else
3881 ac_cv_safe_to_define___extensions__=no
3882 fi
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3886 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3887 test $ac_cv_safe_to_define___extensions__ = yes &&
3888 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3889
3890 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3891
3892 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3893
3894 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3895
3896 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3897
3898
3899
3900 $as_echo "#define _APPLE_C_SOURCE 1" >>confdefs.h
3901
3902
3903
3904 case `pwd` in
3905 *\ * | *\ *)
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3907 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3908 esac
3909
3910
3911
3912 macro_version='2.4.2'
3913 macro_revision='1.3337'
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927 ltmain="$ac_aux_dir/ltmain.sh"
3928
3929 # Backslashify metacharacters that are still active within
3930 # double-quoted strings.
3931 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3932
3933 # Same as above, but do not quote variable references.
3934 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3935
3936 # Sed substitution to delay expansion of an escaped shell variable in a
3937 # double_quote_subst'ed string.
3938 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3939
3940 # Sed substitution to delay expansion of an escaped single quote.
3941 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3942
3943 # Sed substitution to avoid accidental globbing in evaled expressions
3944 no_glob_subst='s/\*/\\\*/g'
3945
3946 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3947 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3948 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3949
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3951 $as_echo_n "checking how to print strings... " >&6; }
3952 # Test print first, because it will be a builtin if present.
3953 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3954 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3955 ECHO='print -r --'
3956 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3957 ECHO='printf %s\n'
3958 else
3959 # Use this function as a fallback that always works.
3960 func_fallback_echo ()
3961 {
3962 eval 'cat <<_LTECHO_EOF
3963 $1
3964 _LTECHO_EOF'
3965 }
3966 ECHO='func_fallback_echo'
3967 fi
3968
3969 # func_echo_all arg...
3970 # Invoke $ECHO with all args, space-separated.
3971 func_echo_all ()
3972 {
3973 $ECHO ""
3974 }
3975
3976 case "$ECHO" in
3977 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3978 $as_echo "printf" >&6; } ;;
3979 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3980 $as_echo "print -r" >&6; } ;;
3981 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3982 $as_echo "cat" >&6; } ;;
3983 esac
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3999 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4000 if ${ac_cv_path_SED+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4004 for ac_i in 1 2 3 4 5 6 7; do
4005 ac_script="$ac_script$as_nl$ac_script"
4006 done
4007 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4008 { ac_script=; unset ac_script;}
4009 if test -z "$SED"; then
4010 ac_path_SED_found=false
4011 # Loop through the user's path and test for each of PROGNAME-LIST
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_prog in sed gsed; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4020 as_fn_executable_p "$ac_path_SED" || continue
4021 # Check for GNU ac_path_SED and select it if it is found.
4022 # Check for GNU $ac_path_SED
4023 case `"$ac_path_SED" --version 2>&1` in
4024 *GNU*)
4025 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4026 *)
4027 ac_count=0
4028 $as_echo_n 0123456789 >"conftest.in"
4029 while :
4030 do
4031 cat "conftest.in" "conftest.in" >"conftest.tmp"
4032 mv "conftest.tmp" "conftest.in"
4033 cp "conftest.in" "conftest.nl"
4034 $as_echo '' >> "conftest.nl"
4035 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037 as_fn_arith $ac_count + 1 && ac_count=$as_val
4038 if test $ac_count -gt ${ac_path_SED_max-0}; then
4039 # Best one so far, save it but keep looking for a better one
4040 ac_cv_path_SED="$ac_path_SED"
4041 ac_path_SED_max=$ac_count
4042 fi
4043 # 10*(2^10) chars as input seems more than enough
4044 test $ac_count -gt 10 && break
4045 done
4046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047 esac
4048
4049 $ac_path_SED_found && break 3
4050 done
4051 done
4052 done
4053 IFS=$as_save_IFS
4054 if test -z "$ac_cv_path_SED"; then
4055 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4056 fi
4057 else
4058 ac_cv_path_SED=$SED
4059 fi
4060
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4063 $as_echo "$ac_cv_path_SED" >&6; }
4064 SED="$ac_cv_path_SED"
4065 rm -f conftest.sed
4066
4067 test -z "$SED" && SED=sed
4068 Xsed="$SED -e 1s/^X//"
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4081 $as_echo_n "checking for fgrep... " >&6; }
4082 if ${ac_cv_path_FGREP+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4086 then ac_cv_path_FGREP="$GREP -F"
4087 else
4088 if test -z "$FGREP"; then
4089 ac_path_FGREP_found=false
4090 # Loop through the user's path and test for each of PROGNAME-LIST
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4093 do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
4096 for ac_prog in fgrep; do
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4099 as_fn_executable_p "$ac_path_FGREP" || continue
4100 # Check for GNU ac_path_FGREP and select it if it is found.
4101 # Check for GNU $ac_path_FGREP
4102 case `"$ac_path_FGREP" --version 2>&1` in
4103 *GNU*)
4104 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4105 *)
4106 ac_count=0
4107 $as_echo_n 0123456789 >"conftest.in"
4108 while :
4109 do
4110 cat "conftest.in" "conftest.in" >"conftest.tmp"
4111 mv "conftest.tmp" "conftest.in"
4112 cp "conftest.in" "conftest.nl"
4113 $as_echo 'FGREP' >> "conftest.nl"
4114 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4116 as_fn_arith $ac_count + 1 && ac_count=$as_val
4117 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4118 # Best one so far, save it but keep looking for a better one
4119 ac_cv_path_FGREP="$ac_path_FGREP"
4120 ac_path_FGREP_max=$ac_count
4121 fi
4122 # 10*(2^10) chars as input seems more than enough
4123 test $ac_count -gt 10 && break
4124 done
4125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4126 esac
4127
4128 $ac_path_FGREP_found && break 3
4129 done
4130 done
4131 done
4132 IFS=$as_save_IFS
4133 if test -z "$ac_cv_path_FGREP"; then
4134 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4135 fi
4136 else
4137 ac_cv_path_FGREP=$FGREP
4138 fi
4139
4140 fi
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4143 $as_echo "$ac_cv_path_FGREP" >&6; }
4144 FGREP="$ac_cv_path_FGREP"
4145
4146
4147 test -z "$GREP" && GREP=grep
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167 # Check whether --with-gnu-ld was given.
4168 if test "${with_gnu_ld+set}" = set; then :
4169 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4170 else
4171 with_gnu_ld=no
4172 fi
4173
4174 ac_prog=ld
4175 if test "$GCC" = yes; then
4176 # Check if gcc -print-prog-name=ld gives a path.
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4178 $as_echo_n "checking for ld used by $CC... " >&6; }
4179 case $host in
4180 *-*-mingw*)
4181 # gcc leaves a trailing carriage return which upsets mingw
4182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4183 *)
4184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4185 esac
4186 case $ac_prog in
4187 # Accept absolute paths.
4188 [\\/]* | ?:[\\/]*)
4189 re_direlt='/[^/][^/]*/\.\./'
4190 # Canonicalize the pathname of ld
4191 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4192 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4193 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4194 done
4195 test -z "$LD" && LD="$ac_prog"
4196 ;;
4197 "")
4198 # If it fails, then pretend we aren't using GCC.
4199 ac_prog=ld
4200 ;;
4201 *)
4202 # If it is relative, then search for the first ld in PATH.
4203 with_gnu_ld=unknown
4204 ;;
4205 esac
4206 elif test "$with_gnu_ld" = yes; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4208 $as_echo_n "checking for GNU ld... " >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4211 $as_echo_n "checking for non-GNU ld... " >&6; }
4212 fi
4213 if ${lt_cv_path_LD+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -z "$LD"; then
4217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4218 for ac_dir in $PATH; do
4219 IFS="$lt_save_ifs"
4220 test -z "$ac_dir" && ac_dir=.
4221 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4222 lt_cv_path_LD="$ac_dir/$ac_prog"
4223 # Check to see if the program is GNU ld. I'd rather use --version,
4224 # but apparently some variants of GNU ld only accept -v.
4225 # Break only if it was the GNU/non-GNU ld that we prefer.
4226 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4227 *GNU* | *'with BFD'*)
4228 test "$with_gnu_ld" != no && break
4229 ;;
4230 *)
4231 test "$with_gnu_ld" != yes && break
4232 ;;
4233 esac
4234 fi
4235 done
4236 IFS="$lt_save_ifs"
4237 else
4238 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4239 fi
4240 fi
4241
4242 LD="$lt_cv_path_LD"
4243 if test -n "$LD"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4245 $as_echo "$LD" >&6; }
4246 else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4252 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4253 if ${lt_cv_prog_gnu_ld+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4257 case `$LD -v 2>&1 </dev/null` in
4258 *GNU* | *'with BFD'*)
4259 lt_cv_prog_gnu_ld=yes
4260 ;;
4261 *)
4262 lt_cv_prog_gnu_ld=no
4263 ;;
4264 esac
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4267 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4268 with_gnu_ld=$lt_cv_prog_gnu_ld
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4279 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4280 if ${lt_cv_path_NM+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -n "$NM"; then
4284 # Let the user override the test.
4285 lt_cv_path_NM="$NM"
4286 else
4287 lt_nm_to_check="${ac_tool_prefix}nm"
4288 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4289 lt_nm_to_check="$lt_nm_to_check nm"
4290 fi
4291 for lt_tmp_nm in $lt_nm_to_check; do
4292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4293 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4294 IFS="$lt_save_ifs"
4295 test -z "$ac_dir" && ac_dir=.
4296 tmp_nm="$ac_dir/$lt_tmp_nm"
4297 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4298 # Check to see if the nm accepts a BSD-compat flag.
4299 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4300 # nm: unknown option "B" ignored
4301 # Tru64's nm complains that /dev/null is an invalid object file
4302 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4303 */dev/null* | *'Invalid file or object type'*)
4304 lt_cv_path_NM="$tmp_nm -B"
4305 break
4306 ;;
4307 *)
4308 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4309 */dev/null*)
4310 lt_cv_path_NM="$tmp_nm -p"
4311 break
4312 ;;
4313 *)
4314 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4315 continue # so that we can try to find one that supports BSD flags
4316 ;;
4317 esac
4318 ;;
4319 esac
4320 fi
4321 done
4322 IFS="$lt_save_ifs"
4323 done
4324 : ${lt_cv_path_NM=no}
4325 fi
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4328 $as_echo "$lt_cv_path_NM" >&6; }
4329 if test "$lt_cv_path_NM" != "no"; then
4330 NM="$lt_cv_path_NM"
4331 else
4332 # Didn't find any BSD compatible name lister, look for dumpbin.
4333 if test -n "$DUMPBIN"; then :
4334 # Let the user override the test.
4335 else
4336 if test -n "$ac_tool_prefix"; then
4337 for ac_prog in dumpbin "link -dump"
4338 do
4339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_prog_DUMPBIN+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if test -n "$DUMPBIN"; then
4347 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4359 fi
4360 done
4361 done
4362 IFS=$as_save_IFS
4363
4364 fi
4365 fi
4366 DUMPBIN=$ac_cv_prog_DUMPBIN
4367 if test -n "$DUMPBIN"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4369 $as_echo "$DUMPBIN" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4374
4375
4376 test -n "$DUMPBIN" && break
4377 done
4378 fi
4379 if test -z "$DUMPBIN"; then
4380 ac_ct_DUMPBIN=$DUMPBIN
4381 for ac_prog in dumpbin "link -dump"
4382 do
4383 # Extract the first word of "$ac_prog", so it can be a program name with args.
4384 set dummy $ac_prog; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 if test -n "$ac_ct_DUMPBIN"; then
4391 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4403 fi
4404 done
4405 done
4406 IFS=$as_save_IFS
4407
4408 fi
4409 fi
4410 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4411 if test -n "$ac_ct_DUMPBIN"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4413 $as_echo "$ac_ct_DUMPBIN" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4417 fi
4418
4419
4420 test -n "$ac_ct_DUMPBIN" && break
4421 done
4422
4423 if test "x$ac_ct_DUMPBIN" = x; then
4424 DUMPBIN=":"
4425 else
4426 case $cross_compiling:$ac_tool_warned in
4427 yes:)
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4430 ac_tool_warned=yes ;;
4431 esac
4432 DUMPBIN=$ac_ct_DUMPBIN
4433 fi
4434 fi
4435
4436 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4437 *COFF*)
4438 DUMPBIN="$DUMPBIN -symbols"
4439 ;;
4440 *)
4441 DUMPBIN=:
4442 ;;
4443 esac
4444 fi
4445
4446 if test "$DUMPBIN" != ":"; then
4447 NM="$DUMPBIN"
4448 fi
4449 fi
4450 test -z "$NM" && NM=nm
4451
4452
4453
4454
4455
4456
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4458 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4459 if ${lt_cv_nm_interface+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 lt_cv_nm_interface="BSD nm"
4463 echo "int some_variable = 0;" > conftest.$ac_ext
4464 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4465 (eval "$ac_compile" 2>conftest.err)
4466 cat conftest.err >&5
4467 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4468 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4469 cat conftest.err >&5
4470 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4471 cat conftest.out >&5
4472 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4473 lt_cv_nm_interface="MS dumpbin"
4474 fi
4475 rm -f conftest*
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4478 $as_echo "$lt_cv_nm_interface" >&6; }
4479
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4481 $as_echo_n "checking whether ln -s works... " >&6; }
4482 LN_S=$as_ln_s
4483 if test "$LN_S" = "ln -s"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4485 $as_echo "yes" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4488 $as_echo "no, using $LN_S" >&6; }
4489 fi
4490
4491 # find the maximum length of command line arguments
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4493 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4494 if ${lt_cv_sys_max_cmd_len+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 i=0
4498 teststring="ABCD"
4499
4500 case $build_os in
4501 msdosdjgpp*)
4502 # On DJGPP, this test can blow up pretty badly due to problems in libc
4503 # (any single argument exceeding 2000 bytes causes a buffer overrun
4504 # during glob expansion). Even if it were fixed, the result of this
4505 # check would be larger than it should be.
4506 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4507 ;;
4508
4509 gnu*)
4510 # Under GNU Hurd, this test is not required because there is
4511 # no limit to the length of command line arguments.
4512 # Libtool will interpret -1 as no limit whatsoever
4513 lt_cv_sys_max_cmd_len=-1;
4514 ;;
4515
4516 cygwin* | mingw* | cegcc*)
4517 # On Win9x/ME, this test blows up -- it succeeds, but takes
4518 # about 5 minutes as the teststring grows exponentially.
4519 # Worse, since 9x/ME are not pre-emptively multitasking,
4520 # you end up with a "frozen" computer, even though with patience
4521 # the test eventually succeeds (with a max line length of 256k).
4522 # Instead, let's just punt: use the minimum linelength reported by
4523 # all of the supported platforms: 8192 (on NT/2K/XP).
4524 lt_cv_sys_max_cmd_len=8192;
4525 ;;
4526
4527 mint*)
4528 # On MiNT this can take a long time and run out of memory.
4529 lt_cv_sys_max_cmd_len=8192;
4530 ;;
4531
4532 amigaos*)
4533 # On AmigaOS with pdksh, this test takes hours, literally.
4534 # So we just punt and use a minimum line length of 8192.
4535 lt_cv_sys_max_cmd_len=8192;
4536 ;;
4537
4538 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4539 # This has been around since 386BSD, at least. Likely further.
4540 if test -x /sbin/sysctl; then
4541 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4542 elif test -x /usr/sbin/sysctl; then
4543 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4544 else
4545 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4546 fi
4547 # And add a safety zone
4548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4550 ;;
4551
4552 interix*)
4553 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4554 lt_cv_sys_max_cmd_len=196608
4555 ;;
4556
4557 os2*)
4558 # The test takes a long time on OS/2.
4559 lt_cv_sys_max_cmd_len=8192
4560 ;;
4561
4562 osf*)
4563 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4564 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4565 # nice to cause kernel panics so lets avoid the loop below.
4566 # First set a reasonable default.
4567 lt_cv_sys_max_cmd_len=16384
4568 #
4569 if test -x /sbin/sysconfig; then
4570 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4571 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4572 esac
4573 fi
4574 ;;
4575 sco3.2v5*)
4576 lt_cv_sys_max_cmd_len=102400
4577 ;;
4578 sysv5* | sco5v6* | sysv4.2uw2*)
4579 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4580 if test -n "$kargmax"; then
4581 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4582 else
4583 lt_cv_sys_max_cmd_len=32768
4584 fi
4585 ;;
4586 *)
4587 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4588 if test -n "$lt_cv_sys_max_cmd_len" && \
4589 test undefined != "$lt_cv_sys_max_cmd_len"; then
4590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4592 else
4593 # Make teststring a little bigger before we do anything with it.
4594 # a 1K string should be a reasonable start.
4595 for i in 1 2 3 4 5 6 7 8 ; do
4596 teststring=$teststring$teststring
4597 done
4598 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4599 # If test is not a shell built-in, we'll probably end up computing a
4600 # maximum length that is only half of the actual maximum length, but
4601 # we can't tell.
4602 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4603 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4604 test $i != 17 # 1/2 MB should be enough
4605 do
4606 i=`expr $i + 1`
4607 teststring=$teststring$teststring
4608 done
4609 # Only check the string length outside the loop.
4610 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4611 teststring=
4612 # Add a significant safety factor because C++ compilers can tack on
4613 # massive amounts of additional arguments before passing them to the
4614 # linker. It appears as though 1/2 is a usable value.
4615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4616 fi
4617 ;;
4618 esac
4619
4620 fi
4621
4622 if test -n $lt_cv_sys_max_cmd_len ; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4624 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4625 else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4627 $as_echo "none" >&6; }
4628 fi
4629 max_cmd_len=$lt_cv_sys_max_cmd_len
4630
4631
4632
4633
4634
4635
4636 : ${CP="cp -f"}
4637 : ${MV="mv -f"}
4638 : ${RM="rm -f"}
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4641 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4642 # Try some XSI features
4643 xsi_shell=no
4644 ( _lt_dummy="a/b/c"
4645 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4646 = c,a/b,b/c, \
4647 && eval 'test $(( 1 + 1 )) -eq 2 \
4648 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4649 && xsi_shell=yes
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4651 $as_echo "$xsi_shell" >&6; }
4652
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4655 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4656 lt_shell_append=no
4657 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4658 >/dev/null 2>&1 \
4659 && lt_shell_append=yes
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4661 $as_echo "$lt_shell_append" >&6; }
4662
4663
4664 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4665 lt_unset=unset
4666 else
4667 lt_unset=false
4668 fi
4669
4670
4671
4672
4673
4674 # test EBCDIC or ASCII
4675 case `echo X|tr X '\101'` in
4676 A) # ASCII based system
4677 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4678 lt_SP2NL='tr \040 \012'
4679 lt_NL2SP='tr \015\012 \040\040'
4680 ;;
4681 *) # EBCDIC based system
4682 lt_SP2NL='tr \100 \n'
4683 lt_NL2SP='tr \r\n \100\100'
4684 ;;
4685 esac
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4696 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4697 if ${lt_cv_to_host_file_cmd+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 case $host in
4701 *-*-mingw* )
4702 case $build in
4703 *-*-mingw* ) # actually msys
4704 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4705 ;;
4706 *-*-cygwin* )
4707 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4708 ;;
4709 * ) # otherwise, assume *nix
4710 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4711 ;;
4712 esac
4713 ;;
4714 *-*-cygwin* )
4715 case $build in
4716 *-*-mingw* ) # actually msys
4717 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4718 ;;
4719 *-*-cygwin* )
4720 lt_cv_to_host_file_cmd=func_convert_file_noop
4721 ;;
4722 * ) # otherwise, assume *nix
4723 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4724 ;;
4725 esac
4726 ;;
4727 * ) # unhandled hosts (and "normal" native builds)
4728 lt_cv_to_host_file_cmd=func_convert_file_noop
4729 ;;
4730 esac
4731
4732 fi
4733
4734 to_host_file_cmd=$lt_cv_to_host_file_cmd
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4736 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4737
4738
4739
4740
4741
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4743 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4744 if ${lt_cv_to_tool_file_cmd+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 #assume ordinary cross tools, or native build.
4748 lt_cv_to_tool_file_cmd=func_convert_file_noop
4749 case $host in
4750 *-*-mingw* )
4751 case $build in
4752 *-*-mingw* ) # actually msys
4753 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4754 ;;
4755 esac
4756 ;;
4757 esac
4758
4759 fi
4760
4761 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4763 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4764
4765
4766
4767
4768
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4770 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4771 if ${lt_cv_ld_reload_flag+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 lt_cv_ld_reload_flag='-r'
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4777 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4778 reload_flag=$lt_cv_ld_reload_flag
4779 case $reload_flag in
4780 "" | " "*) ;;
4781 *) reload_flag=" $reload_flag" ;;
4782 esac
4783 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4784 case $host_os in
4785 cygwin* | mingw* | pw32* | cegcc*)
4786 if test "$GCC" != yes; then
4787 reload_cmds=false
4788 fi
4789 ;;
4790 darwin*)
4791 if test "$GCC" = yes; then
4792 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4793 else
4794 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4795 fi
4796 ;;
4797 esac
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807 if test -n "$ac_tool_prefix"; then
4808 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4809 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if ${ac_cv_prog_OBJDUMP+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 if test -n "$OBJDUMP"; then
4816 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829 done
4830 done
4831 IFS=$as_save_IFS
4832
4833 fi
4834 fi
4835 OBJDUMP=$ac_cv_prog_OBJDUMP
4836 if test -n "$OBJDUMP"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4838 $as_echo "$OBJDUMP" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 fi
4843
4844
4845 fi
4846 if test -z "$ac_cv_prog_OBJDUMP"; then
4847 ac_ct_OBJDUMP=$OBJDUMP
4848 # Extract the first word of "objdump", so it can be a program name with args.
4849 set dummy objdump; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -n "$ac_ct_OBJDUMP"; then
4856 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
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_OBJDUMP="objdump"
4866 $as_echo "$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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4876 if test -n "$ac_ct_OBJDUMP"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4878 $as_echo "$ac_ct_OBJDUMP" >&6; }
4879 else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4882 fi
4883
4884 if test "x$ac_ct_OBJDUMP" = x; then
4885 OBJDUMP="false"
4886 else
4887 case $cross_compiling:$ac_tool_warned in
4888 yes:)
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4891 ac_tool_warned=yes ;;
4892 esac
4893 OBJDUMP=$ac_ct_OBJDUMP
4894 fi
4895 else
4896 OBJDUMP="$ac_cv_prog_OBJDUMP"
4897 fi
4898
4899 test -z "$OBJDUMP" && OBJDUMP=objdump
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4910 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4911 if ${lt_cv_deplibs_check_method+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 lt_cv_file_magic_cmd='$MAGIC_CMD'
4915 lt_cv_file_magic_test_file=
4916 lt_cv_deplibs_check_method='unknown'
4917 # Need to set the preceding variable on all platforms that support
4918 # interlibrary dependencies.
4919 # 'none' -- dependencies not supported.
4920 # `unknown' -- same as none, but documents that we really don't know.
4921 # 'pass_all' -- all dependencies passed with no checks.
4922 # 'test_compile' -- check by making test program.
4923 # 'file_magic [[regex]]' -- check by looking for files in library path
4924 # which responds to the $file_magic_cmd with a given extended regex.
4925 # If you have `file' or equivalent on your system and you're not sure
4926 # whether `pass_all' will *always* work, you probably want this one.
4927
4928 case $host_os in
4929 aix[4-9]*)
4930 lt_cv_deplibs_check_method=pass_all
4931 ;;
4932
4933 beos*)
4934 lt_cv_deplibs_check_method=pass_all
4935 ;;
4936
4937 bsdi[45]*)
4938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4939 lt_cv_file_magic_cmd='/usr/bin/file -L'
4940 lt_cv_file_magic_test_file=/shlib/libc.so
4941 ;;
4942
4943 cygwin*)
4944 # func_win32_libid is a shell function defined in ltmain.sh
4945 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4946 lt_cv_file_magic_cmd='func_win32_libid'
4947 ;;
4948
4949 mingw* | pw32*)
4950 # Base MSYS/MinGW do not provide the 'file' command needed by
4951 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4952 # unless we find 'file', for example because we are cross-compiling.
4953 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4954 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4956 lt_cv_file_magic_cmd='func_win32_libid'
4957 else
4958 # Keep this pattern in sync with the one in func_win32_libid.
4959 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4960 lt_cv_file_magic_cmd='$OBJDUMP -f'
4961 fi
4962 ;;
4963
4964 cegcc*)
4965 # use the weaker test based on 'objdump'. See mingw*.
4966 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4967 lt_cv_file_magic_cmd='$OBJDUMP -f'
4968 ;;
4969
4970 darwin* | rhapsody*)
4971 lt_cv_deplibs_check_method=pass_all
4972 ;;
4973
4974 freebsd* | dragonfly*)
4975 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4976 case $host_cpu in
4977 i*86 )
4978 # Not sure whether the presence of OpenBSD here was a mistake.
4979 # Let's accept both of them until this is cleared up.
4980 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4981 lt_cv_file_magic_cmd=/usr/bin/file
4982 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4983 ;;
4984 esac
4985 else
4986 lt_cv_deplibs_check_method=pass_all
4987 fi
4988 ;;
4989
4990 haiku*)
4991 lt_cv_deplibs_check_method=pass_all
4992 ;;
4993
4994 hpux10.20* | hpux11*)
4995 lt_cv_file_magic_cmd=/usr/bin/file
4996 case $host_cpu in
4997 ia64*)
4998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4999 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5000 ;;
5001 hppa*64*)
5002 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]'
5003 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5004 ;;
5005 *)
5006 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5007 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5008 ;;
5009 esac
5010 ;;
5011
5012 interix[3-9]*)
5013 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5015 ;;
5016
5017 irix5* | irix6* | nonstopux*)
5018 case $LD in
5019 *-32|*"-32 ") libmagic=32-bit;;
5020 *-n32|*"-n32 ") libmagic=N32;;
5021 *-64|*"-64 ") libmagic=64-bit;;
5022 *) libmagic=never-match;;
5023 esac
5024 lt_cv_deplibs_check_method=pass_all
5025 ;;
5026
5027 # This must be glibc/ELF.
5028 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5029 lt_cv_deplibs_check_method=pass_all
5030 ;;
5031
5032 netbsd* | netbsdelf*-gnu)
5033 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5035 else
5036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5037 fi
5038 ;;
5039
5040 newos6*)
5041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5042 lt_cv_file_magic_cmd=/usr/bin/file
5043 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5044 ;;
5045
5046 *nto* | *qnx*)
5047 lt_cv_deplibs_check_method=pass_all
5048 ;;
5049
5050 openbsd*)
5051 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5053 else
5054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5055 fi
5056 ;;
5057
5058 osf3* | osf4* | osf5*)
5059 lt_cv_deplibs_check_method=pass_all
5060 ;;
5061
5062 rdos*)
5063 lt_cv_deplibs_check_method=pass_all
5064 ;;
5065
5066 solaris*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069
5070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5071 lt_cv_deplibs_check_method=pass_all
5072 ;;
5073
5074 sysv4 | sysv4.3*)
5075 case $host_vendor in
5076 motorola)
5077 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]'
5078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5079 ;;
5080 ncr)
5081 lt_cv_deplibs_check_method=pass_all
5082 ;;
5083 sequent)
5084 lt_cv_file_magic_cmd='/bin/file'
5085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5086 ;;
5087 sni)
5088 lt_cv_file_magic_cmd='/bin/file'
5089 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5090 lt_cv_file_magic_test_file=/lib/libc.so
5091 ;;
5092 siemens)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095 pc)
5096 lt_cv_deplibs_check_method=pass_all
5097 ;;
5098 esac
5099 ;;
5100
5101 tpf*)
5102 lt_cv_deplibs_check_method=pass_all
5103 ;;
5104 esac
5105
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5108 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5109
5110 file_magic_glob=
5111 want_nocaseglob=no
5112 if test "$build" = "$host"; then
5113 case $host_os in
5114 mingw* | pw32*)
5115 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5116 want_nocaseglob=yes
5117 else
5118 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5119 fi
5120 ;;
5121 esac
5122 fi
5123
5124 file_magic_cmd=$lt_cv_file_magic_cmd
5125 deplibs_check_method=$lt_cv_deplibs_check_method
5126 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149 if test -n "$ac_tool_prefix"; then
5150 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5151 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_prog_DLLTOOL+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -n "$DLLTOOL"; then
5158 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175 fi
5176 fi
5177 DLLTOOL=$ac_cv_prog_DLLTOOL
5178 if test -n "$DLLTOOL"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5180 $as_echo "$DLLTOOL" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186
5187 fi
5188 if test -z "$ac_cv_prog_DLLTOOL"; then
5189 ac_ct_DLLTOOL=$DLLTOOL
5190 # Extract the first word of "dlltool", so it can be a program name with args.
5191 set dummy dlltool; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -n "$ac_ct_DLLTOOL"; then
5198 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211 done
5212 done
5213 IFS=$as_save_IFS
5214
5215 fi
5216 fi
5217 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5218 if test -n "$ac_ct_DLLTOOL"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5220 $as_echo "$ac_ct_DLLTOOL" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5224 fi
5225
5226 if test "x$ac_ct_DLLTOOL" = x; then
5227 DLLTOOL="false"
5228 else
5229 case $cross_compiling:$ac_tool_warned in
5230 yes:)
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5233 ac_tool_warned=yes ;;
5234 esac
5235 DLLTOOL=$ac_ct_DLLTOOL
5236 fi
5237 else
5238 DLLTOOL="$ac_cv_prog_DLLTOOL"
5239 fi
5240
5241 test -z "$DLLTOOL" && DLLTOOL=dlltool
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5253 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5254 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 lt_cv_sharedlib_from_linklib_cmd='unknown'
5258
5259 case $host_os in
5260 cygwin* | mingw* | pw32* | cegcc*)
5261 # two different shell functions defined in ltmain.sh
5262 # decide which to use based on capabilities of $DLLTOOL
5263 case `$DLLTOOL --help 2>&1` in
5264 *--identify-strict*)
5265 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5266 ;;
5267 *)
5268 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5269 ;;
5270 esac
5271 ;;
5272 *)
5273 # fallback: assume linklib IS sharedlib
5274 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5275 ;;
5276 esac
5277
5278 fi
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5280 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5281 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5282 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5283
5284
5285
5286
5287
5288
5289
5290 if test -n "$ac_tool_prefix"; then
5291 for ac_prog in ar
5292 do
5293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_AR+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -n "$AR"; then
5301 ac_cv_prog_AR="$AR" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5305 do
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5313 fi
5314 done
5315 done
5316 IFS=$as_save_IFS
5317
5318 fi
5319 fi
5320 AR=$ac_cv_prog_AR
5321 if test -n "$AR"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5323 $as_echo "$AR" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5327 fi
5328
5329
5330 test -n "$AR" && break
5331 done
5332 fi
5333 if test -z "$AR"; then
5334 ac_ct_AR=$AR
5335 for ac_prog in ar
5336 do
5337 # Extract the first word of "$ac_prog", so it can be a program name with args.
5338 set dummy $ac_prog; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$ac_ct_AR"; then
5345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_prog_ac_ct_AR="$ac_prog"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358 done
5359 done
5360 IFS=$as_save_IFS
5361
5362 fi
5363 fi
5364 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5365 if test -n "$ac_ct_AR"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5367 $as_echo "$ac_ct_AR" >&6; }
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5371 fi
5372
5373
5374 test -n "$ac_ct_AR" && break
5375 done
5376
5377 if test "x$ac_ct_AR" = x; then
5378 AR="false"
5379 else
5380 case $cross_compiling:$ac_tool_warned in
5381 yes:)
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5384 ac_tool_warned=yes ;;
5385 esac
5386 AR=$ac_ct_AR
5387 fi
5388 fi
5389
5390 : ${AR=ar}
5391 : ${AR_FLAGS=cru}
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5404 $as_echo_n "checking for archiver @FILE support... " >&6; }
5405 if ${lt_cv_ar_at_file+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 lt_cv_ar_at_file=no
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411
5412 int
5413 main ()
5414 {
5415
5416 ;
5417 return 0;
5418 }
5419 _ACEOF
5420 if ac_fn_c_try_compile "$LINENO"; then :
5421 echo conftest.$ac_objext > conftest.lst
5422 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5424 (eval $lt_ar_try) 2>&5
5425 ac_status=$?
5426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5427 test $ac_status = 0; }
5428 if test "$ac_status" -eq 0; then
5429 # Ensure the archiver fails upon bogus file names.
5430 rm -f conftest.$ac_objext libconftest.a
5431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5432 (eval $lt_ar_try) 2>&5
5433 ac_status=$?
5434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5435 test $ac_status = 0; }
5436 if test "$ac_status" -ne 0; then
5437 lt_cv_ar_at_file=@
5438 fi
5439 fi
5440 rm -f conftest.* libconftest.a
5441
5442 fi
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444
5445 fi
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5447 $as_echo "$lt_cv_ar_at_file" >&6; }
5448
5449 if test "x$lt_cv_ar_at_file" = xno; then
5450 archiver_list_spec=
5451 else
5452 archiver_list_spec=$lt_cv_ar_at_file
5453 fi
5454
5455
5456
5457
5458
5459
5460
5461 if test -n "$ac_tool_prefix"; then
5462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5463 set dummy ${ac_tool_prefix}strip; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_prog_STRIP+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -n "$STRIP"; then
5470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483 done
5484 done
5485 IFS=$as_save_IFS
5486
5487 fi
5488 fi
5489 STRIP=$ac_cv_prog_STRIP
5490 if test -n "$STRIP"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5492 $as_echo "$STRIP" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5496 fi
5497
5498
5499 fi
5500 if test -z "$ac_cv_prog_STRIP"; then
5501 ac_ct_STRIP=$STRIP
5502 # Extract the first word of "strip", so it can be a program name with args.
5503 set dummy strip; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 if test -n "$ac_ct_STRIP"; then
5510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5514 do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_ac_ct_STRIP="strip"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5522 fi
5523 done
5524 done
5525 IFS=$as_save_IFS
5526
5527 fi
5528 fi
5529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5530 if test -n "$ac_ct_STRIP"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5532 $as_echo "$ac_ct_STRIP" >&6; }
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5536 fi
5537
5538 if test "x$ac_ct_STRIP" = x; then
5539 STRIP=":"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5546 esac
5547 STRIP=$ac_ct_STRIP
5548 fi
5549 else
5550 STRIP="$ac_cv_prog_STRIP"
5551 fi
5552
5553 test -z "$STRIP" && STRIP=:
5554
5555
5556
5557
5558
5559
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_prog_RANLIB+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test -n "$RANLIB"; then
5569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5581 fi
5582 done
5583 done
5584 IFS=$as_save_IFS
5585
5586 fi
5587 fi
5588 RANLIB=$ac_cv_prog_RANLIB
5589 if test -n "$RANLIB"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5591 $as_echo "$RANLIB" >&6; }
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596
5597
5598 fi
5599 if test -z "$ac_cv_prog_RANLIB"; then
5600 ac_ct_RANLIB=$RANLIB
5601 # Extract the first word of "ranlib", so it can be a program name with args.
5602 set dummy ranlib; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$ac_ct_RANLIB"; then
5609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618 ac_cv_prog_ac_ct_RANLIB="ranlib"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622 done
5623 done
5624 IFS=$as_save_IFS
5625
5626 fi
5627 fi
5628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5629 if test -n "$ac_ct_RANLIB"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5631 $as_echo "$ac_ct_RANLIB" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5635 fi
5636
5637 if test "x$ac_ct_RANLIB" = x; then
5638 RANLIB=":"
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641 yes:)
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned=yes ;;
5645 esac
5646 RANLIB=$ac_ct_RANLIB
5647 fi
5648 else
5649 RANLIB="$ac_cv_prog_RANLIB"
5650 fi
5651
5652 test -z "$RANLIB" && RANLIB=:
5653
5654
5655
5656
5657
5658
5659 # Determine commands to create old-style static archives.
5660 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5661 old_postinstall_cmds='chmod 644 $oldlib'
5662 old_postuninstall_cmds=
5663
5664 if test -n "$RANLIB"; then
5665 case $host_os in
5666 openbsd*)
5667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5668 ;;
5669 *)
5670 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5671 ;;
5672 esac
5673 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5674 fi
5675
5676 case $host_os in
5677 darwin*)
5678 lock_old_archive_extraction=yes ;;
5679 *)
5680 lock_old_archive_extraction=no ;;
5681 esac
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703 for ac_prog in gawk mawk nawk awk
5704 do
5705 # Extract the first word of "$ac_prog", so it can be a program name with args.
5706 set dummy $ac_prog; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if ${ac_cv_prog_AWK+:} false; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 if test -n "$AWK"; then
5713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722 ac_cv_prog_AWK="$ac_prog"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5725 fi
5726 done
5727 done
5728 IFS=$as_save_IFS
5729
5730 fi
5731 fi
5732 AWK=$ac_cv_prog_AWK
5733 if test -n "$AWK"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5735 $as_echo "$AWK" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 fi
5740
5741
5742 test -n "$AWK" && break
5743 done
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763 # If no C compiler was specified, use CC.
5764 LTCC=${LTCC-"$CC"}
5765
5766 # If no C compiler flags were specified, use CFLAGS.
5767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5768
5769 # Allow CC to be a program name with arguments.
5770 compiler=$CC
5771
5772
5773 # Check for command to grab the raw symbol name followed by C symbol from nm.
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5775 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5776 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779
5780 # These are sane defaults that work on at least a few old systems.
5781 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5782
5783 # Character class describing NM global symbol codes.
5784 symcode='[BCDEGRST]'
5785
5786 # Regexp to match symbols that can be accessed directly from C.
5787 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5788
5789 # Define system-specific variables.
5790 case $host_os in
5791 aix*)
5792 symcode='[BCDT]'
5793 ;;
5794 cygwin* | mingw* | pw32* | cegcc*)
5795 symcode='[ABCDGISTW]'
5796 ;;
5797 hpux*)
5798 if test "$host_cpu" = ia64; then
5799 symcode='[ABCDEGRST]'
5800 fi
5801 ;;
5802 irix* | nonstopux*)
5803 symcode='[BCDEGRST]'
5804 ;;
5805 osf*)
5806 symcode='[BCDEGQRST]'
5807 ;;
5808 solaris*)
5809 symcode='[BDRT]'
5810 ;;
5811 sco3.2v5*)
5812 symcode='[DT]'
5813 ;;
5814 sysv4.2uw2*)
5815 symcode='[DT]'
5816 ;;
5817 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5818 symcode='[ABDT]'
5819 ;;
5820 sysv4)
5821 symcode='[DFNSTU]'
5822 ;;
5823 esac
5824
5825 # If we're using GNU nm, then use its standard symbol codes.
5826 case `$NM -V 2>&1` in
5827 *GNU* | *'with BFD'*)
5828 symcode='[ABCDGIRSTW]' ;;
5829 esac
5830
5831 # Transform an extracted symbol line into a proper C declaration.
5832 # Some systems (esp. on ia64) link data and code symbols differently,
5833 # so use this general approach.
5834 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5835
5836 # Transform an extracted symbol line into symbol name and symbol address
5837 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5838 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5839
5840 # Handle CRLF in mingw tool chain
5841 opt_cr=
5842 case $build_os in
5843 mingw*)
5844 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5845 ;;
5846 esac
5847
5848 # Try without a prefix underscore, then with it.
5849 for ac_symprfx in "" "_"; do
5850
5851 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5852 symxfrm="\\1 $ac_symprfx\\2 \\2"
5853
5854 # Write the raw and C identifiers.
5855 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5856 # Fake it for dumpbin and say T for any non-static function
5857 # and D for any global variable.
5858 # Also find C++ and __fastcall symbols from MSVC++,
5859 # which start with @ or ?.
5860 lt_cv_sys_global_symbol_pipe="$AWK '"\
5861 " {last_section=section; section=\$ 3};"\
5862 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5863 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5864 " \$ 0!~/External *\|/{next};"\
5865 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5866 " {if(hide[section]) next};"\
5867 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5868 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5869 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5870 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5871 " ' prfx=^$ac_symprfx"
5872 else
5873 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5874 fi
5875 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5876
5877 # Check to see that the pipe works correctly.
5878 pipe_works=no
5879
5880 rm -f conftest*
5881 cat > conftest.$ac_ext <<_LT_EOF
5882 #ifdef __cplusplus
5883 extern "C" {
5884 #endif
5885 char nm_test_var;
5886 void nm_test_func(void);
5887 void nm_test_func(void){}
5888 #ifdef __cplusplus
5889 }
5890 #endif
5891 int main(){nm_test_var='a';nm_test_func();return(0);}
5892 _LT_EOF
5893
5894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5895 (eval $ac_compile) 2>&5
5896 ac_status=$?
5897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898 test $ac_status = 0; }; then
5899 # Now try to grab the symbols.
5900 nlist=conftest.nm
5901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5902 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5903 ac_status=$?
5904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5905 test $ac_status = 0; } && test -s "$nlist"; then
5906 # Try sorting and uniquifying the output.
5907 if sort "$nlist" | uniq > "$nlist"T; then
5908 mv -f "$nlist"T "$nlist"
5909 else
5910 rm -f "$nlist"T
5911 fi
5912
5913 # Make sure that we snagged all the symbols we need.
5914 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5915 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5916 cat <<_LT_EOF > conftest.$ac_ext
5917 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5918 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5919 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5920 relocations are performed -- see ld's documentation on pseudo-relocs. */
5921 # define LT_DLSYM_CONST
5922 #elif defined(__osf__)
5923 /* This system does not cope well with relocations in const data. */
5924 # define LT_DLSYM_CONST
5925 #else
5926 # define LT_DLSYM_CONST const
5927 #endif
5928
5929 #ifdef __cplusplus
5930 extern "C" {
5931 #endif
5932
5933 _LT_EOF
5934 # Now generate the symbol file.
5935 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5936
5937 cat <<_LT_EOF >> conftest.$ac_ext
5938
5939 /* The mapping between symbol names and symbols. */
5940 LT_DLSYM_CONST struct {
5941 const char *name;
5942 void *address;
5943 }
5944 lt__PROGRAM__LTX_preloaded_symbols[] =
5945 {
5946 { "@PROGRAM@", (void *) 0 },
5947 _LT_EOF
5948 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5949 cat <<\_LT_EOF >> conftest.$ac_ext
5950 {0, (void *) 0}
5951 };
5952
5953 /* This works around a problem in FreeBSD linker */
5954 #ifdef FREEBSD_WORKAROUND
5955 static const void *lt_preloaded_setup() {
5956 return lt__PROGRAM__LTX_preloaded_symbols;
5957 }
5958 #endif
5959
5960 #ifdef __cplusplus
5961 }
5962 #endif
5963 _LT_EOF
5964 # Now try linking the two files.
5965 mv conftest.$ac_objext conftstm.$ac_objext
5966 lt_globsym_save_LIBS=$LIBS
5967 lt_globsym_save_CFLAGS=$CFLAGS
5968 LIBS="conftstm.$ac_objext"
5969 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5971 (eval $ac_link) 2>&5
5972 ac_status=$?
5973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5974 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5975 pipe_works=yes
5976 fi
5977 LIBS=$lt_globsym_save_LIBS
5978 CFLAGS=$lt_globsym_save_CFLAGS
5979 else
5980 echo "cannot find nm_test_func in $nlist" >&5
5981 fi
5982 else
5983 echo "cannot find nm_test_var in $nlist" >&5
5984 fi
5985 else
5986 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5987 fi
5988 else
5989 echo "$progname: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5991 fi
5992 rm -rf conftest* conftst*
5993
5994 # Do not use the global_symbol_pipe unless it works.
5995 if test "$pipe_works" = yes; then
5996 break
5997 else
5998 lt_cv_sys_global_symbol_pipe=
5999 fi
6000 done
6001
6002 fi
6003
6004 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6005 lt_cv_sys_global_symbol_to_cdecl=
6006 fi
6007 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6009 $as_echo "failed" >&6; }
6010 else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6012 $as_echo "ok" >&6; }
6013 fi
6014
6015 # Response file support.
6016 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6017 nm_file_list_spec='@'
6018 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6019 nm_file_list_spec='@'
6020 fi
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6049 $as_echo_n "checking for sysroot... " >&6; }
6050
6051 # Check whether --with-sysroot was given.
6052 if test "${with_sysroot+set}" = set; then :
6053 withval=$with_sysroot;
6054 else
6055 with_sysroot=no
6056 fi
6057
6058
6059 lt_sysroot=
6060 case ${with_sysroot} in #(
6061 yes)
6062 if test "$GCC" = yes; then
6063 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6064 fi
6065 ;; #(
6066 /*)
6067 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6068 ;; #(
6069 no|'')
6070 ;; #(
6071 *)
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6073 $as_echo "${with_sysroot}" >&6; }
6074 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6075 ;;
6076 esac
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6079 $as_echo "${lt_sysroot:-no}" >&6; }
6080
6081
6082
6083
6084
6085 # Check whether --enable-libtool-lock was given.
6086 if test "${enable_libtool_lock+set}" = set; then :
6087 enableval=$enable_libtool_lock;
6088 fi
6089
6090 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6091
6092 # Some flags need to be propagated to the compiler or linker for good
6093 # libtool support.
6094 case $host in
6095 ia64-*-hpux*)
6096 # Find out which ABI we are using.
6097 echo 'int i;' > conftest.$ac_ext
6098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6099 (eval $ac_compile) 2>&5
6100 ac_status=$?
6101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102 test $ac_status = 0; }; then
6103 case `/usr/bin/file conftest.$ac_objext` in
6104 *ELF-32*)
6105 HPUX_IA64_MODE="32"
6106 ;;
6107 *ELF-64*)
6108 HPUX_IA64_MODE="64"
6109 ;;
6110 esac
6111 fi
6112 rm -rf conftest*
6113 ;;
6114 *-*-irix6*)
6115 # Find out which ABI we are using.
6116 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6118 (eval $ac_compile) 2>&5
6119 ac_status=$?
6120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6121 test $ac_status = 0; }; then
6122 if test "$lt_cv_prog_gnu_ld" = yes; then
6123 case `/usr/bin/file conftest.$ac_objext` in
6124 *32-bit*)
6125 LD="${LD-ld} -melf32bsmip"
6126 ;;
6127 *N32*)
6128 LD="${LD-ld} -melf32bmipn32"
6129 ;;
6130 *64-bit*)
6131 LD="${LD-ld} -melf64bmip"
6132 ;;
6133 esac
6134 else
6135 case `/usr/bin/file conftest.$ac_objext` in
6136 *32-bit*)
6137 LD="${LD-ld} -32"
6138 ;;
6139 *N32*)
6140 LD="${LD-ld} -n32"
6141 ;;
6142 *64-bit*)
6143 LD="${LD-ld} -64"
6144 ;;
6145 esac
6146 fi
6147 fi
6148 rm -rf conftest*
6149 ;;
6150
6151 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6152 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6153 # Find out which ABI we are using.
6154 echo 'int i;' > conftest.$ac_ext
6155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6156 (eval $ac_compile) 2>&5
6157 ac_status=$?
6158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6159 test $ac_status = 0; }; then
6160 case `/usr/bin/file conftest.o` in
6161 *32-bit*)
6162 case $host in
6163 x86_64-*kfreebsd*-gnu)
6164 LD="${LD-ld} -m elf_i386_fbsd"
6165 ;;
6166 x86_64-*linux*)
6167 case `/usr/bin/file conftest.o` in
6168 *x86-64*)
6169 LD="${LD-ld} -m elf32_x86_64"
6170 ;;
6171 *)
6172 LD="${LD-ld} -m elf_i386"
6173 ;;
6174 esac
6175 ;;
6176 ppc64-*linux*|powerpc64-*linux*)
6177 LD="${LD-ld} -m elf32ppclinux"
6178 ;;
6179 s390x-*linux*)
6180 LD="${LD-ld} -m elf_s390"
6181 ;;
6182 sparc64-*linux*)
6183 LD="${LD-ld} -m elf32_sparc"
6184 ;;
6185 esac
6186 ;;
6187 *64-bit*)
6188 case $host in
6189 x86_64-*kfreebsd*-gnu)
6190 LD="${LD-ld} -m elf_x86_64_fbsd"
6191 ;;
6192 x86_64-*linux*)
6193 LD="${LD-ld} -m elf_x86_64"
6194 ;;
6195 ppc*-*linux*|powerpc*-*linux*)
6196 LD="${LD-ld} -m elf64ppc"
6197 ;;
6198 s390*-*linux*|s390*-*tpf*)
6199 LD="${LD-ld} -m elf64_s390"
6200 ;;
6201 sparc*-*linux*)
6202 LD="${LD-ld} -m elf64_sparc"
6203 ;;
6204 esac
6205 ;;
6206 esac
6207 fi
6208 rm -rf conftest*
6209 ;;
6210
6211 *-*-sco3.2v5*)
6212 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6213 SAVE_CFLAGS="$CFLAGS"
6214 CFLAGS="$CFLAGS -belf"
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6216 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6217 if ${lt_cv_cc_needs_belf+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 ac_ext=c
6221 ac_cpp='$CPP $CPPFLAGS'
6222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6225
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228
6229 int
6230 main ()
6231 {
6232
6233 ;
6234 return 0;
6235 }
6236 _ACEOF
6237 if ac_fn_c_try_link "$LINENO"; then :
6238 lt_cv_cc_needs_belf=yes
6239 else
6240 lt_cv_cc_needs_belf=no
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext \
6243 conftest$ac_exeext conftest.$ac_ext
6244 ac_ext=c
6245 ac_cpp='$CPP $CPPFLAGS'
6246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6249
6250 fi
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6252 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6253 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6254 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6255 CFLAGS="$SAVE_CFLAGS"
6256 fi
6257 ;;
6258 *-*solaris*)
6259 # Find out which ABI we are using.
6260 echo 'int i;' > conftest.$ac_ext
6261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6262 (eval $ac_compile) 2>&5
6263 ac_status=$?
6264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265 test $ac_status = 0; }; then
6266 case `/usr/bin/file conftest.o` in
6267 *64-bit*)
6268 case $lt_cv_prog_gnu_ld in
6269 yes*)
6270 case $host in
6271 i?86-*-solaris*)
6272 LD="${LD-ld} -m elf_x86_64"
6273 ;;
6274 sparc*-*-solaris*)
6275 LD="${LD-ld} -m elf64_sparc"
6276 ;;
6277 esac
6278 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6279 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6280 LD="${LD-ld}_sol2"
6281 fi
6282 ;;
6283 *)
6284 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6285 LD="${LD-ld} -64"
6286 fi
6287 ;;
6288 esac
6289 ;;
6290 esac
6291 fi
6292 rm -rf conftest*
6293 ;;
6294 esac
6295
6296 need_locks="$enable_libtool_lock"
6297
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}mt; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 if test -n "$MANIFEST_TOOL"; then
6307 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320 done
6321 done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6327 if test -n "$MANIFEST_TOOL"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6329 $as_echo "$MANIFEST_TOOL" >&6; }
6330 else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335
6336 fi
6337 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6338 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6339 # Extract the first word of "mt", so it can be a program name with args.
6340 set dummy mt; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 if test -n "$ac_ct_MANIFEST_TOOL"; then
6347 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360 done
6361 done
6362 IFS=$as_save_IFS
6363
6364 fi
6365 fi
6366 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6367 if test -n "$ac_ct_MANIFEST_TOOL"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6369 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6370 else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6373 fi
6374
6375 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6376 MANIFEST_TOOL=":"
6377 else
6378 case $cross_compiling:$ac_tool_warned in
6379 yes:)
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6383 esac
6384 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6385 fi
6386 else
6387 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6388 fi
6389
6390 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6392 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6393 if ${lt_cv_path_mainfest_tool+:} false; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 lt_cv_path_mainfest_tool=no
6397 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6398 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6399 cat conftest.err >&5
6400 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6401 lt_cv_path_mainfest_tool=yes
6402 fi
6403 rm -f conftest*
6404 fi
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6406 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6407 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6408 MANIFEST_TOOL=:
6409 fi
6410
6411
6412
6413
6414
6415
6416 case $host_os in
6417 rhapsody* | darwin*)
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$DSYMUTIL"; then
6427 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440 done
6441 done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6447 if test -n "$DSYMUTIL"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6449 $as_echo "$DSYMUTIL" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455
6456 fi
6457 if test -z "$ac_cv_prog_DSYMUTIL"; then
6458 ac_ct_DSYMUTIL=$DSYMUTIL
6459 # Extract the first word of "dsymutil", so it can be a program name with args.
6460 set dummy dsymutil; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 if test -n "$ac_ct_DSYMUTIL"; then
6467 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
6479 fi
6480 done
6481 done
6482 IFS=$as_save_IFS
6483
6484 fi
6485 fi
6486 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6487 if test -n "$ac_ct_DSYMUTIL"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6489 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494
6495 if test "x$ac_ct_DSYMUTIL" = x; then
6496 DSYMUTIL=":"
6497 else
6498 case $cross_compiling:$ac_tool_warned in
6499 yes:)
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502 ac_tool_warned=yes ;;
6503 esac
6504 DSYMUTIL=$ac_ct_DSYMUTIL
6505 fi
6506 else
6507 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6508 fi
6509
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_NMEDIT+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 if test -n "$NMEDIT"; then
6519 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
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_NMEDIT="${ac_tool_prefix}nmedit"
6529 $as_echo "$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 NMEDIT=$ac_cv_prog_NMEDIT
6539 if test -n "$NMEDIT"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6541 $as_echo "$NMEDIT" >&6; }
6542 else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546
6547
6548 fi
6549 if test -z "$ac_cv_prog_NMEDIT"; then
6550 ac_ct_NMEDIT=$NMEDIT
6551 # Extract the first word of "nmedit", so it can be a program name with args.
6552 set dummy nmedit; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 if test -n "$ac_ct_NMEDIT"; then
6559 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6571 fi
6572 done
6573 done
6574 IFS=$as_save_IFS
6575
6576 fi
6577 fi
6578 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6579 if test -n "$ac_ct_NMEDIT"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6581 $as_echo "$ac_ct_NMEDIT" >&6; }
6582 else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6585 fi
6586
6587 if test "x$ac_ct_NMEDIT" = x; then
6588 NMEDIT=":"
6589 else
6590 case $cross_compiling:$ac_tool_warned in
6591 yes:)
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594 ac_tool_warned=yes ;;
6595 esac
6596 NMEDIT=$ac_ct_NMEDIT
6597 fi
6598 else
6599 NMEDIT="$ac_cv_prog_NMEDIT"
6600 fi
6601
6602 if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_LIPO+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$LIPO"; then
6611 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 LIPO=$ac_cv_prog_LIPO
6631 if test -n "$LIPO"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6633 $as_echo "$LIPO" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639
6640 fi
6641 if test -z "$ac_cv_prog_LIPO"; then
6642 ac_ct_LIPO=$LIPO
6643 # Extract the first word of "lipo", so it can be a program name with args.
6644 set dummy lipo; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 if test -n "$ac_ct_LIPO"; then
6651 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_ac_ct_LIPO="lipo"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6663 fi
6664 done
6665 done
6666 IFS=$as_save_IFS
6667
6668 fi
6669 fi
6670 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6671 if test -n "$ac_ct_LIPO"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6673 $as_echo "$ac_ct_LIPO" >&6; }
6674 else
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6677 fi
6678
6679 if test "x$ac_ct_LIPO" = x; then
6680 LIPO=":"
6681 else
6682 case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688 LIPO=$ac_ct_LIPO
6689 fi
6690 else
6691 LIPO="$ac_cv_prog_LIPO"
6692 fi
6693
6694 if test -n "$ac_tool_prefix"; then
6695 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6696 set dummy ${ac_tool_prefix}otool; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_OTOOL+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 if test -n "$OTOOL"; then
6703 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716 done
6717 done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 OTOOL=$ac_cv_prog_OTOOL
6723 if test -n "$OTOOL"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6725 $as_echo "$OTOOL" >&6; }
6726 else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6729 fi
6730
6731
6732 fi
6733 if test -z "$ac_cv_prog_OTOOL"; then
6734 ac_ct_OTOOL=$OTOOL
6735 # Extract the first word of "otool", so it can be a program name with args.
6736 set dummy otool; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 if test -n "$ac_ct_OTOOL"; then
6743 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_ac_ct_OTOOL="otool"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6763 if test -n "$ac_ct_OTOOL"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6765 $as_echo "$ac_ct_OTOOL" >&6; }
6766 else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6769 fi
6770
6771 if test "x$ac_ct_OTOOL" = x; then
6772 OTOOL=":"
6773 else
6774 case $cross_compiling:$ac_tool_warned in
6775 yes:)
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6778 ac_tool_warned=yes ;;
6779 esac
6780 OTOOL=$ac_ct_OTOOL
6781 fi
6782 else
6783 OTOOL="$ac_cv_prog_OTOOL"
6784 fi
6785
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if ${ac_cv_prog_OTOOL64+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 if test -n "$OTOOL64"; then
6795 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 OTOOL64=$ac_cv_prog_OTOOL64
6815 if test -n "$OTOOL64"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6817 $as_echo "$OTOOL64" >&6; }
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6821 fi
6822
6823
6824 fi
6825 if test -z "$ac_cv_prog_OTOOL64"; then
6826 ac_ct_OTOOL64=$OTOOL64
6827 # Extract the first word of "otool64", so it can be a program name with args.
6828 set dummy otool64; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 if test -n "$ac_ct_OTOOL64"; then
6835 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844 ac_cv_prog_ac_ct_OTOOL64="otool64"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6855 if test -n "$ac_ct_OTOOL64"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6857 $as_echo "$ac_ct_OTOOL64" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863 if test "x$ac_ct_OTOOL64" = x; then
6864 OTOOL64=":"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872 OTOOL64=$ac_ct_OTOOL64
6873 fi
6874 else
6875 OTOOL64="$ac_cv_prog_OTOOL64"
6876 fi
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6905 $as_echo_n "checking for -single_module linker flag... " >&6; }
6906 if ${lt_cv_apple_cc_single_mod+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 lt_cv_apple_cc_single_mod=no
6910 if test -z "${LT_MULTI_MODULE}"; then
6911 # By default we will add the -single_module flag. You can override
6912 # by either setting the environment variable LT_MULTI_MODULE
6913 # non-empty at configure time, or by adding -multi_module to the
6914 # link flags.
6915 rm -rf libconftest.dylib*
6916 echo "int foo(void){return 1;}" > conftest.c
6917 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6918 -dynamiclib -Wl,-single_module conftest.c" >&5
6919 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6920 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6921 _lt_result=$?
6922 # If there is a non-empty error log, and "single_module"
6923 # appears in it, assume the flag caused a linker warning
6924 if test -s conftest.err && $GREP single_module conftest.err; then
6925 cat conftest.err >&5
6926 # Otherwise, if the output was created with a 0 exit code from
6927 # the compiler, it worked.
6928 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6929 lt_cv_apple_cc_single_mod=yes
6930 else
6931 cat conftest.err >&5
6932 fi
6933 rm -rf libconftest.dylib*
6934 rm -f conftest.*
6935 fi
6936 fi
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6938 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6939
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6941 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6942 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 lt_cv_ld_exported_symbols_list=no
6946 save_LDFLAGS=$LDFLAGS
6947 echo "_main" > conftest.sym
6948 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951
6952 int
6953 main ()
6954 {
6955
6956 ;
6957 return 0;
6958 }
6959 _ACEOF
6960 if ac_fn_c_try_link "$LINENO"; then :
6961 lt_cv_ld_exported_symbols_list=yes
6962 else
6963 lt_cv_ld_exported_symbols_list=no
6964 fi
6965 rm -f core conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6967 LDFLAGS="$save_LDFLAGS"
6968
6969 fi
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6971 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6972
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6974 $as_echo_n "checking for -force_load linker flag... " >&6; }
6975 if ${lt_cv_ld_force_load+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 lt_cv_ld_force_load=no
6979 cat > conftest.c << _LT_EOF
6980 int forced_loaded() { return 2;}
6981 _LT_EOF
6982 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6983 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6984 echo "$AR cru libconftest.a conftest.o" >&5
6985 $AR cru libconftest.a conftest.o 2>&5
6986 echo "$RANLIB libconftest.a" >&5
6987 $RANLIB libconftest.a 2>&5
6988 cat > conftest.c << _LT_EOF
6989 int main() { return 0;}
6990 _LT_EOF
6991 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6992 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6993 _lt_result=$?
6994 if test -s conftest.err && $GREP force_load conftest.err; then
6995 cat conftest.err >&5
6996 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6997 lt_cv_ld_force_load=yes
6998 else
6999 cat conftest.err >&5
7000 fi
7001 rm -f conftest.err libconftest.a conftest conftest.c
7002 rm -rf conftest.dSYM
7003
7004 fi
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7006 $as_echo "$lt_cv_ld_force_load" >&6; }
7007 case $host_os in
7008 rhapsody* | darwin1.[012])
7009 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7010 darwin1.*)
7011 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7012 darwin*) # darwin 5.x on
7013 # if running on 10.5 or later, the deployment target defaults
7014 # to the OS version, if on x86, and 10.4, the deployment
7015 # target defaults to 10.4. Don't you love it?
7016 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7017 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7018 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7019 10.[012]*)
7020 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7021 10.*)
7022 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7023 esac
7024 ;;
7025 esac
7026 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7027 _lt_dar_single_mod='$single_module'
7028 fi
7029 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7030 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7031 else
7032 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7033 fi
7034 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7035 _lt_dsymutil='~$DSYMUTIL $lib || :'
7036 else
7037 _lt_dsymutil=
7038 fi
7039 ;;
7040 esac
7041
7042 for ac_header in dlfcn.h
7043 do :
7044 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7045 "
7046 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7047 cat >>confdefs.h <<_ACEOF
7048 #define HAVE_DLFCN_H 1
7049 _ACEOF
7050
7051 fi
7052
7053 done
7054
7055
7056
7057
7058
7059 # Set options
7060
7061
7062
7063 enable_dlopen=no
7064
7065
7066 enable_win32_dll=no
7067
7068
7069 # Check whether --enable-shared was given.
7070 if test "${enable_shared+set}" = set; then :
7071 enableval=$enable_shared; p=${PACKAGE-default}
7072 case $enableval in
7073 yes) enable_shared=yes ;;
7074 no) enable_shared=no ;;
7075 *)
7076 enable_shared=no
7077 # Look at the argument we got. We use all the common list separators.
7078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7079 for pkg in $enableval; do
7080 IFS="$lt_save_ifs"
7081 if test "X$pkg" = "X$p"; then
7082 enable_shared=yes
7083 fi
7084 done
7085 IFS="$lt_save_ifs"
7086 ;;
7087 esac
7088 else
7089 enable_shared=yes
7090 fi
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100 # Check whether --enable-static was given.
7101 if test "${enable_static+set}" = set; then :
7102 enableval=$enable_static; p=${PACKAGE-default}
7103 case $enableval in
7104 yes) enable_static=yes ;;
7105 no) enable_static=no ;;
7106 *)
7107 enable_static=no
7108 # Look at the argument we got. We use all the common list separators.
7109 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7110 for pkg in $enableval; do
7111 IFS="$lt_save_ifs"
7112 if test "X$pkg" = "X$p"; then
7113 enable_static=yes
7114 fi
7115 done
7116 IFS="$lt_save_ifs"
7117 ;;
7118 esac
7119 else
7120 enable_static=yes
7121 fi
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132 # Check whether --with-pic was given.
7133 if test "${with_pic+set}" = set; then :
7134 withval=$with_pic; lt_p=${PACKAGE-default}
7135 case $withval in
7136 yes|no) pic_mode=$withval ;;
7137 *)
7138 pic_mode=default
7139 # Look at the argument we got. We use all the common list separators.
7140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7141 for lt_pkg in $withval; do
7142 IFS="$lt_save_ifs"
7143 if test "X$lt_pkg" = "X$lt_p"; then
7144 pic_mode=yes
7145 fi
7146 done
7147 IFS="$lt_save_ifs"
7148 ;;
7149 esac
7150 else
7151 pic_mode=default
7152 fi
7153
7154
7155 test -z "$pic_mode" && pic_mode=default
7156
7157
7158
7159
7160
7161
7162
7163 # Check whether --enable-fast-install was given.
7164 if test "${enable_fast_install+set}" = set; then :
7165 enableval=$enable_fast_install; p=${PACKAGE-default}
7166 case $enableval in
7167 yes) enable_fast_install=yes ;;
7168 no) enable_fast_install=no ;;
7169 *)
7170 enable_fast_install=no
7171 # Look at the argument we got. We use all the common list separators.
7172 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7173 for pkg in $enableval; do
7174 IFS="$lt_save_ifs"
7175 if test "X$pkg" = "X$p"; then
7176 enable_fast_install=yes
7177 fi
7178 done
7179 IFS="$lt_save_ifs"
7180 ;;
7181 esac
7182 else
7183 enable_fast_install=yes
7184 fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 # This can be used to rebuild libtool when needed
7197 LIBTOOL_DEPS="$ltmain"
7198
7199 # Always use our own libtool.
7200 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231 test -z "$LN_S" && LN_S="ln -s"
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246 if test -n "${ZSH_VERSION+set}" ; then
7247 setopt NO_GLOB_SUBST
7248 fi
7249
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7251 $as_echo_n "checking for objdir... " >&6; }
7252 if ${lt_cv_objdir+:} false; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255 rm -f .libs 2>/dev/null
7256 mkdir .libs 2>/dev/null
7257 if test -d .libs; then
7258 lt_cv_objdir=.libs
7259 else
7260 # MS-DOS does not allow filenames that begin with a dot.
7261 lt_cv_objdir=_libs
7262 fi
7263 rmdir .libs 2>/dev/null
7264 fi
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7266 $as_echo "$lt_cv_objdir" >&6; }
7267 objdir=$lt_cv_objdir
7268
7269
7270
7271
7272
7273 cat >>confdefs.h <<_ACEOF
7274 #define LT_OBJDIR "$lt_cv_objdir/"
7275 _ACEOF
7276
7277
7278
7279
7280 case $host_os in
7281 aix3*)
7282 # AIX sometimes has problems with the GCC collect2 program. For some
7283 # reason, if we set the COLLECT_NAMES environment variable, the problems
7284 # vanish in a puff of smoke.
7285 if test "X${COLLECT_NAMES+set}" != Xset; then
7286 COLLECT_NAMES=
7287 export COLLECT_NAMES
7288 fi
7289 ;;
7290 esac
7291
7292 # Global variables:
7293 ofile=libtool
7294 can_build_shared=yes
7295
7296 # All known linkers require a `.a' archive for static linking (except MSVC,
7297 # which needs '.lib').
7298 libext=a
7299
7300 with_gnu_ld="$lt_cv_prog_gnu_ld"
7301
7302 old_CC="$CC"
7303 old_CFLAGS="$CFLAGS"
7304
7305 # Set sane defaults for various variables
7306 test -z "$CC" && CC=cc
7307 test -z "$LTCC" && LTCC=$CC
7308 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7309 test -z "$LD" && LD=ld
7310 test -z "$ac_objext" && ac_objext=o
7311
7312 for cc_temp in $compiler""; do
7313 case $cc_temp in
7314 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7315 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7316 \-*) ;;
7317 *) break;;
7318 esac
7319 done
7320 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7321
7322
7323 # Only perform the check for file, if the check method requires it
7324 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7325 case $deplibs_check_method in
7326 file_magic*)
7327 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7329 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7330 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 case $MAGIC_CMD in
7334 [\\/*] | ?:[\\/]*)
7335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7336 ;;
7337 *)
7338 lt_save_MAGIC_CMD="$MAGIC_CMD"
7339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7340 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7341 for ac_dir in $ac_dummy; do
7342 IFS="$lt_save_ifs"
7343 test -z "$ac_dir" && ac_dir=.
7344 if test -f $ac_dir/${ac_tool_prefix}file; then
7345 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7346 if test -n "$file_magic_test_file"; then
7347 case $deplibs_check_method in
7348 "file_magic "*)
7349 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7351 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7352 $EGREP "$file_magic_regex" > /dev/null; then
7353 :
7354 else
7355 cat <<_LT_EOF 1>&2
7356
7357 *** Warning: the command libtool uses to detect shared libraries,
7358 *** $file_magic_cmd, produces output that libtool cannot recognize.
7359 *** The result is that libtool may fail to recognize shared libraries
7360 *** as such. This will affect the creation of libtool libraries that
7361 *** depend on shared libraries, but programs linked with such libtool
7362 *** libraries will work regardless of this problem. Nevertheless, you
7363 *** may want to report the problem to your system manager and/or to
7364 *** [email protected]
7365
7366 _LT_EOF
7367 fi ;;
7368 esac
7369 fi
7370 break
7371 fi
7372 done
7373 IFS="$lt_save_ifs"
7374 MAGIC_CMD="$lt_save_MAGIC_CMD"
7375 ;;
7376 esac
7377 fi
7378
7379 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7380 if test -n "$MAGIC_CMD"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7382 $as_echo "$MAGIC_CMD" >&6; }
7383 else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387
7388
7389
7390
7391
7392 if test -z "$lt_cv_path_MAGIC_CMD"; then
7393 if test -n "$ac_tool_prefix"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7395 $as_echo_n "checking for file... " >&6; }
7396 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 case $MAGIC_CMD in
7400 [\\/*] | ?:[\\/]*)
7401 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7402 ;;
7403 *)
7404 lt_save_MAGIC_CMD="$MAGIC_CMD"
7405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7406 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7407 for ac_dir in $ac_dummy; do
7408 IFS="$lt_save_ifs"
7409 test -z "$ac_dir" && ac_dir=.
7410 if test -f $ac_dir/file; then
7411 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7412 if test -n "$file_magic_test_file"; then
7413 case $deplibs_check_method in
7414 "file_magic "*)
7415 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7417 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7418 $EGREP "$file_magic_regex" > /dev/null; then
7419 :
7420 else
7421 cat <<_LT_EOF 1>&2
7422
7423 *** Warning: the command libtool uses to detect shared libraries,
7424 *** $file_magic_cmd, produces output that libtool cannot recognize.
7425 *** The result is that libtool may fail to recognize shared libraries
7426 *** as such. This will affect the creation of libtool libraries that
7427 *** depend on shared libraries, but programs linked with such libtool
7428 *** libraries will work regardless of this problem. Nevertheless, you
7429 *** may want to report the problem to your system manager and/or to
7430 *** [email protected]
7431
7432 _LT_EOF
7433 fi ;;
7434 esac
7435 fi
7436 break
7437 fi
7438 done
7439 IFS="$lt_save_ifs"
7440 MAGIC_CMD="$lt_save_MAGIC_CMD"
7441 ;;
7442 esac
7443 fi
7444
7445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7446 if test -n "$MAGIC_CMD"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7448 $as_echo "$MAGIC_CMD" >&6; }
7449 else
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7452 fi
7453
7454
7455 else
7456 MAGIC_CMD=:
7457 fi
7458 fi
7459
7460 fi
7461 ;;
7462 esac
7463
7464 # Use C for the default configuration in the libtool script
7465
7466 lt_save_CC="$CC"
7467 ac_ext=c
7468 ac_cpp='$CPP $CPPFLAGS'
7469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7472
7473
7474 # Source file extension for C test sources.
7475 ac_ext=c
7476
7477 # Object file extension for compiled C test sources.
7478 objext=o
7479 objext=$objext
7480
7481 # Code to be used in simple compile tests
7482 lt_simple_compile_test_code="int some_variable = 0;"
7483
7484 # Code to be used in simple link tests
7485 lt_simple_link_test_code='int main(){return(0);}'
7486
7487
7488
7489
7490
7491
7492
7493 # If no C compiler was specified, use CC.
7494 LTCC=${LTCC-"$CC"}
7495
7496 # If no C compiler flags were specified, use CFLAGS.
7497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7498
7499 # Allow CC to be a program name with arguments.
7500 compiler=$CC
7501
7502 # Save the default compiler, since it gets overwritten when the other
7503 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7504 compiler_DEFAULT=$CC
7505
7506 # save warnings/boilerplate of simple test code
7507 ac_outfile=conftest.$ac_objext
7508 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7509 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7510 _lt_compiler_boilerplate=`cat conftest.err`
7511 $RM conftest*
7512
7513 ac_outfile=conftest.$ac_objext
7514 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7515 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7516 _lt_linker_boilerplate=`cat conftest.err`
7517 $RM -r conftest*
7518
7519
7520 ## CAVEAT EMPTOR:
7521 ## There is no encapsulation within the following macros, do not change
7522 ## the running order or otherwise move them around unless you know exactly
7523 ## what you are doing...
7524 if test -n "$compiler"; then
7525
7526 lt_prog_compiler_no_builtin_flag=
7527
7528 if test "$GCC" = yes; then
7529 case $cc_basename in
7530 nvcc*)
7531 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7532 *)
7533 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7534 esac
7535
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7537 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7538 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 lt_cv_prog_compiler_rtti_exceptions=no
7542 ac_outfile=conftest.$ac_objext
7543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7544 lt_compiler_flag="-fno-rtti -fno-exceptions"
7545 # Insert the option either (1) after the last *FLAGS variable, or
7546 # (2) before a word containing "conftest.", or (3) at the end.
7547 # Note that $ac_compile itself does not contain backslashes and begins
7548 # with a dollar sign (not a hyphen), so the echo should work correctly.
7549 # The option is referenced via a variable to avoid confusing sed.
7550 lt_compile=`echo "$ac_compile" | $SED \
7551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7553 -e 's:$: $lt_compiler_flag:'`
7554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7555 (eval "$lt_compile" 2>conftest.err)
7556 ac_status=$?
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 if (exit $ac_status) && test -s "$ac_outfile"; then
7560 # The compiler can only warn and ignore the option if not recognized
7561 # So say no if there are warnings other than the usual output.
7562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7564 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7565 lt_cv_prog_compiler_rtti_exceptions=yes
7566 fi
7567 fi
7568 $RM conftest*
7569
7570 fi
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7572 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7573
7574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7575 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7576 else
7577 :
7578 fi
7579
7580 fi
7581
7582
7583
7584
7585
7586
7587 lt_prog_compiler_wl=
7588 lt_prog_compiler_pic=
7589 lt_prog_compiler_static=
7590
7591
7592 if test "$GCC" = yes; then
7593 lt_prog_compiler_wl='-Wl,'
7594 lt_prog_compiler_static='-static'
7595
7596 case $host_os in
7597 aix*)
7598 # All AIX code is PIC.
7599 if test "$host_cpu" = ia64; then
7600 # AIX 5 now supports IA64 processor
7601 lt_prog_compiler_static='-Bstatic'
7602 fi
7603 ;;
7604
7605 amigaos*)
7606 case $host_cpu in
7607 powerpc)
7608 # see comment about AmigaOS4 .so support
7609 lt_prog_compiler_pic='-fPIC'
7610 ;;
7611 m68k)
7612 # FIXME: we need at least 68020 code to build shared libraries, but
7613 # adding the `-m68020' flag to GCC prevents building anything better,
7614 # like `-m68040'.
7615 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7616 ;;
7617 esac
7618 ;;
7619
7620 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7621 # PIC is the default for these OSes.
7622 ;;
7623
7624 mingw* | cygwin* | pw32* | os2* | cegcc*)
7625 # This hack is so that the source file can tell whether it is being
7626 # built for inclusion in a dll (and should export symbols for example).
7627 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7628 # (--disable-auto-import) libraries
7629 lt_prog_compiler_pic='-DDLL_EXPORT'
7630 ;;
7631
7632 darwin* | rhapsody*)
7633 # PIC is the default on this platform
7634 # Common symbols not allowed in MH_DYLIB files
7635 lt_prog_compiler_pic='-fno-common'
7636 ;;
7637
7638 haiku*)
7639 # PIC is the default for Haiku.
7640 # The "-static" flag exists, but is broken.
7641 lt_prog_compiler_static=
7642 ;;
7643
7644 hpux*)
7645 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7646 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7647 # sets the default TLS model and affects inlining.
7648 case $host_cpu in
7649 hppa*64*)
7650 # +Z the default
7651 ;;
7652 *)
7653 lt_prog_compiler_pic='-fPIC'
7654 ;;
7655 esac
7656 ;;
7657
7658 interix[3-9]*)
7659 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7660 # Instead, we relocate shared libraries at runtime.
7661 ;;
7662
7663 msdosdjgpp*)
7664 # Just because we use GCC doesn't mean we suddenly get shared libraries
7665 # on systems that don't support them.
7666 lt_prog_compiler_can_build_shared=no
7667 enable_shared=no
7668 ;;
7669
7670 *nto* | *qnx*)
7671 # QNX uses GNU C++, but need to define -shared option too, otherwise
7672 # it will coredump.
7673 lt_prog_compiler_pic='-fPIC -shared'
7674 ;;
7675
7676 sysv4*MP*)
7677 if test -d /usr/nec; then
7678 lt_prog_compiler_pic=-Kconform_pic
7679 fi
7680 ;;
7681
7682 *)
7683 lt_prog_compiler_pic='-fPIC'
7684 ;;
7685 esac
7686
7687 case $cc_basename in
7688 nvcc*) # Cuda Compiler Driver 2.2
7689 lt_prog_compiler_wl='-Xlinker '
7690 if test -n "$lt_prog_compiler_pic"; then
7691 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7692 fi
7693 ;;
7694 esac
7695 else
7696 # PORTME Check for flag to pass linker flags through the system compiler.
7697 case $host_os in
7698 aix*)
7699 lt_prog_compiler_wl='-Wl,'
7700 if test "$host_cpu" = ia64; then
7701 # AIX 5 now supports IA64 processor
7702 lt_prog_compiler_static='-Bstatic'
7703 else
7704 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7705 fi
7706 ;;
7707
7708 mingw* | cygwin* | pw32* | os2* | cegcc*)
7709 # This hack is so that the source file can tell whether it is being
7710 # built for inclusion in a dll (and should export symbols for example).
7711 lt_prog_compiler_pic='-DDLL_EXPORT'
7712 ;;
7713
7714 hpux9* | hpux10* | hpux11*)
7715 lt_prog_compiler_wl='-Wl,'
7716 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7717 # not for PA HP-UX.
7718 case $host_cpu in
7719 hppa*64*|ia64*)
7720 # +Z the default
7721 ;;
7722 *)
7723 lt_prog_compiler_pic='+Z'
7724 ;;
7725 esac
7726 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7727 lt_prog_compiler_static='${wl}-a ${wl}archive'
7728 ;;
7729
7730 irix5* | irix6* | nonstopux*)
7731 lt_prog_compiler_wl='-Wl,'
7732 # PIC (with -KPIC) is the default.
7733 lt_prog_compiler_static='-non_shared'
7734 ;;
7735
7736 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7737 case $cc_basename in
7738 # old Intel for x86_64 which still supported -KPIC.
7739 ecc*)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-static'
7743 ;;
7744 # icc used to be incompatible with GCC.
7745 # ICC 10 doesn't accept -KPIC any more.
7746 icc* | ifort*)
7747 lt_prog_compiler_wl='-Wl,'
7748 lt_prog_compiler_pic='-fPIC'
7749 lt_prog_compiler_static='-static'
7750 ;;
7751 # Lahey Fortran 8.1.
7752 lf95*)
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_pic='--shared'
7755 lt_prog_compiler_static='--static'
7756 ;;
7757 nagfor*)
7758 # NAG Fortran compiler
7759 lt_prog_compiler_wl='-Wl,-Wl,,'
7760 lt_prog_compiler_pic='-PIC'
7761 lt_prog_compiler_static='-Bstatic'
7762 ;;
7763 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7764 # Portland Group compilers (*not* the Pentium gcc compiler,
7765 # which looks to be a dead project)
7766 lt_prog_compiler_wl='-Wl,'
7767 lt_prog_compiler_pic='-fpic'
7768 lt_prog_compiler_static='-Bstatic'
7769 ;;
7770 ccc*)
7771 lt_prog_compiler_wl='-Wl,'
7772 # All Alpha code is PIC.
7773 lt_prog_compiler_static='-non_shared'
7774 ;;
7775 xl* | bgxl* | bgf* | mpixl*)
7776 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7777 lt_prog_compiler_wl='-Wl,'
7778 lt_prog_compiler_pic='-qpic'
7779 lt_prog_compiler_static='-qstaticlink'
7780 ;;
7781 *)
7782 case `$CC -V 2>&1 | sed 5q` in
7783 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7784 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7785 lt_prog_compiler_pic='-KPIC'
7786 lt_prog_compiler_static='-Bstatic'
7787 lt_prog_compiler_wl=''
7788 ;;
7789 *Sun\ F* | *Sun*Fortran*)
7790 lt_prog_compiler_pic='-KPIC'
7791 lt_prog_compiler_static='-Bstatic'
7792 lt_prog_compiler_wl='-Qoption ld '
7793 ;;
7794 *Sun\ C*)
7795 # Sun C 5.9
7796 lt_prog_compiler_pic='-KPIC'
7797 lt_prog_compiler_static='-Bstatic'
7798 lt_prog_compiler_wl='-Wl,'
7799 ;;
7800 *Intel*\ [CF]*Compiler*)
7801 lt_prog_compiler_wl='-Wl,'
7802 lt_prog_compiler_pic='-fPIC'
7803 lt_prog_compiler_static='-static'
7804 ;;
7805 *Portland\ Group*)
7806 lt_prog_compiler_wl='-Wl,'
7807 lt_prog_compiler_pic='-fpic'
7808 lt_prog_compiler_static='-Bstatic'
7809 ;;
7810 esac
7811 ;;
7812 esac
7813 ;;
7814
7815 newsos6)
7816 lt_prog_compiler_pic='-KPIC'
7817 lt_prog_compiler_static='-Bstatic'
7818 ;;
7819
7820 *nto* | *qnx*)
7821 # QNX uses GNU C++, but need to define -shared option too, otherwise
7822 # it will coredump.
7823 lt_prog_compiler_pic='-fPIC -shared'
7824 ;;
7825
7826 osf3* | osf4* | osf5*)
7827 lt_prog_compiler_wl='-Wl,'
7828 # All OSF/1 code is PIC.
7829 lt_prog_compiler_static='-non_shared'
7830 ;;
7831
7832 rdos*)
7833 lt_prog_compiler_static='-non_shared'
7834 ;;
7835
7836 solaris*)
7837 lt_prog_compiler_pic='-KPIC'
7838 lt_prog_compiler_static='-Bstatic'
7839 case $cc_basename in
7840 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7841 lt_prog_compiler_wl='-Qoption ld ';;
7842 *)
7843 lt_prog_compiler_wl='-Wl,';;
7844 esac
7845 ;;
7846
7847 sunos4*)
7848 lt_prog_compiler_wl='-Qoption ld '
7849 lt_prog_compiler_pic='-PIC'
7850 lt_prog_compiler_static='-Bstatic'
7851 ;;
7852
7853 sysv4 | sysv4.2uw2* | sysv4.3*)
7854 lt_prog_compiler_wl='-Wl,'
7855 lt_prog_compiler_pic='-KPIC'
7856 lt_prog_compiler_static='-Bstatic'
7857 ;;
7858
7859 sysv4*MP*)
7860 if test -d /usr/nec ;then
7861 lt_prog_compiler_pic='-Kconform_pic'
7862 lt_prog_compiler_static='-Bstatic'
7863 fi
7864 ;;
7865
7866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_pic='-KPIC'
7869 lt_prog_compiler_static='-Bstatic'
7870 ;;
7871
7872 unicos*)
7873 lt_prog_compiler_wl='-Wl,'
7874 lt_prog_compiler_can_build_shared=no
7875 ;;
7876
7877 uts4*)
7878 lt_prog_compiler_pic='-pic'
7879 lt_prog_compiler_static='-Bstatic'
7880 ;;
7881
7882 *)
7883 lt_prog_compiler_can_build_shared=no
7884 ;;
7885 esac
7886 fi
7887
7888 case $host_os in
7889 # For platforms which do not support PIC, -DPIC is meaningless:
7890 *djgpp*)
7891 lt_prog_compiler_pic=
7892 ;;
7893 *)
7894 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7895 ;;
7896 esac
7897
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7899 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7900 if ${lt_cv_prog_compiler_pic+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7904 fi
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7906 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7907 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7908
7909 #
7910 # Check to make sure the PIC flag actually works.
7911 #
7912 if test -n "$lt_prog_compiler_pic"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7914 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7915 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 lt_cv_prog_compiler_pic_works=no
7919 ac_outfile=conftest.$ac_objext
7920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7921 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7922 # Insert the option either (1) after the last *FLAGS variable, or
7923 # (2) before a word containing "conftest.", or (3) at the end.
7924 # Note that $ac_compile itself does not contain backslashes and begins
7925 # with a dollar sign (not a hyphen), so the echo should work correctly.
7926 # The option is referenced via a variable to avoid confusing sed.
7927 lt_compile=`echo "$ac_compile" | $SED \
7928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7930 -e 's:$: $lt_compiler_flag:'`
7931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7932 (eval "$lt_compile" 2>conftest.err)
7933 ac_status=$?
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 if (exit $ac_status) && test -s "$ac_outfile"; then
7937 # The compiler can only warn and ignore the option if not recognized
7938 # So say no if there are warnings other than the usual output.
7939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7941 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7942 lt_cv_prog_compiler_pic_works=yes
7943 fi
7944 fi
7945 $RM conftest*
7946
7947 fi
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7949 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7950
7951 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7952 case $lt_prog_compiler_pic in
7953 "" | " "*) ;;
7954 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7955 esac
7956 else
7957 lt_prog_compiler_pic=
7958 lt_prog_compiler_can_build_shared=no
7959 fi
7960
7961 fi
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973 #
7974 # Check to make sure the static flag actually works.
7975 #
7976 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7978 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7979 if ${lt_cv_prog_compiler_static_works+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 lt_cv_prog_compiler_static_works=no
7983 save_LDFLAGS="$LDFLAGS"
7984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7987 # The linker can only warn and ignore the option if not recognized
7988 # So say no if there are warnings
7989 if test -s conftest.err; then
7990 # Append any errors to the config.log.
7991 cat conftest.err 1>&5
7992 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7994 if diff conftest.exp conftest.er2 >/dev/null; then
7995 lt_cv_prog_compiler_static_works=yes
7996 fi
7997 else
7998 lt_cv_prog_compiler_static_works=yes
7999 fi
8000 fi
8001 $RM -r conftest*
8002 LDFLAGS="$save_LDFLAGS"
8003
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8006 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8007
8008 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8009 :
8010 else
8011 lt_prog_compiler_static=
8012 fi
8013
8014
8015
8016
8017
8018
8019
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8022 if ${lt_cv_prog_compiler_c_o+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 lt_cv_prog_compiler_c_o=no
8026 $RM -r conftest 2>/dev/null
8027 mkdir conftest
8028 cd conftest
8029 mkdir out
8030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8031
8032 lt_compiler_flag="-o out/conftest2.$ac_objext"
8033 # Insert the option either (1) after the last *FLAGS variable, or
8034 # (2) before a word containing "conftest.", or (3) at the end.
8035 # Note that $ac_compile itself does not contain backslashes and begins
8036 # with a dollar sign (not a hyphen), so the echo should work correctly.
8037 lt_compile=`echo "$ac_compile" | $SED \
8038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8040 -e 's:$: $lt_compiler_flag:'`
8041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8042 (eval "$lt_compile" 2>out/conftest.err)
8043 ac_status=$?
8044 cat out/conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8047 then
8048 # The compiler can only warn and ignore the option if not recognized
8049 # So say no if there are warnings
8050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8053 lt_cv_prog_compiler_c_o=yes
8054 fi
8055 fi
8056 chmod u+w . 2>&5
8057 $RM conftest*
8058 # SGI C++ compiler will create directory out/ii_files/ for
8059 # template instantiation
8060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8061 $RM out/* && rmdir out
8062 cd ..
8063 $RM -r conftest
8064 $RM conftest*
8065
8066 fi
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8069
8070
8071
8072
8073
8074
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8076 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8077 if ${lt_cv_prog_compiler_c_o+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 lt_cv_prog_compiler_c_o=no
8081 $RM -r conftest 2>/dev/null
8082 mkdir conftest
8083 cd conftest
8084 mkdir out
8085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8086
8087 lt_compiler_flag="-o out/conftest2.$ac_objext"
8088 # Insert the option either (1) after the last *FLAGS variable, or
8089 # (2) before a word containing "conftest.", or (3) at the end.
8090 # Note that $ac_compile itself does not contain backslashes and begins
8091 # with a dollar sign (not a hyphen), so the echo should work correctly.
8092 lt_compile=`echo "$ac_compile" | $SED \
8093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8095 -e 's:$: $lt_compiler_flag:'`
8096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8097 (eval "$lt_compile" 2>out/conftest.err)
8098 ac_status=$?
8099 cat out/conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8102 then
8103 # The compiler can only warn and ignore the option if not recognized
8104 # So say no if there are warnings
8105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8108 lt_cv_prog_compiler_c_o=yes
8109 fi
8110 fi
8111 chmod u+w . 2>&5
8112 $RM conftest*
8113 # SGI C++ compiler will create directory out/ii_files/ for
8114 # template instantiation
8115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8116 $RM out/* && rmdir out
8117 cd ..
8118 $RM -r conftest
8119 $RM conftest*
8120
8121 fi
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8123 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8124
8125
8126
8127
8128 hard_links="nottested"
8129 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8130 # do not overwrite the value of need_locks provided by the user
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8132 $as_echo_n "checking if we can lock with hard links... " >&6; }
8133 hard_links=yes
8134 $RM conftest*
8135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8136 touch conftest.a
8137 ln conftest.a conftest.b 2>&5 || hard_links=no
8138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8140 $as_echo "$hard_links" >&6; }
8141 if test "$hard_links" = no; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8143 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8144 need_locks=warn
8145 fi
8146 else
8147 need_locks=no
8148 fi
8149
8150
8151
8152
8153
8154
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8156 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8157
8158 runpath_var=
8159 allow_undefined_flag=
8160 always_export_symbols=no
8161 archive_cmds=
8162 archive_expsym_cmds=
8163 compiler_needs_object=no
8164 enable_shared_with_static_runtimes=no
8165 export_dynamic_flag_spec=
8166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8167 hardcode_automatic=no
8168 hardcode_direct=no
8169 hardcode_direct_absolute=no
8170 hardcode_libdir_flag_spec=
8171 hardcode_libdir_separator=
8172 hardcode_minus_L=no
8173 hardcode_shlibpath_var=unsupported
8174 inherit_rpath=no
8175 link_all_deplibs=unknown
8176 module_cmds=
8177 module_expsym_cmds=
8178 old_archive_from_new_cmds=
8179 old_archive_from_expsyms_cmds=
8180 thread_safe_flag_spec=
8181 whole_archive_flag_spec=
8182 # include_expsyms should be a list of space-separated symbols to be *always*
8183 # included in the symbol list
8184 include_expsyms=
8185 # exclude_expsyms can be an extended regexp of symbols to exclude
8186 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8187 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8188 # as well as any symbol that contains `d'.
8189 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8191 # platforms (ab)use it in PIC code, but their linkers get confused if
8192 # the symbol is explicitly referenced. Since portable code cannot
8193 # rely on this symbol name, it's probably fine to never include it in
8194 # preloaded symbol tables.
8195 # Exclude shared library initialization/finalization symbols.
8196 extract_expsyms_cmds=
8197
8198 case $host_os in
8199 cygwin* | mingw* | pw32* | cegcc*)
8200 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8201 # When not using gcc, we currently assume that we are using
8202 # Microsoft Visual C++.
8203 if test "$GCC" != yes; then
8204 with_gnu_ld=no
8205 fi
8206 ;;
8207 interix*)
8208 # we just hope/assume this is gcc and not c89 (= MSVC++)
8209 with_gnu_ld=yes
8210 ;;
8211 openbsd*)
8212 with_gnu_ld=no
8213 ;;
8214 linux* | k*bsd*-gnu | gnu*)
8215 link_all_deplibs=no
8216 ;;
8217 esac
8218
8219 ld_shlibs=yes
8220
8221 # On some targets, GNU ld is compatible enough with the native linker
8222 # that we're better off using the native interface for both.
8223 lt_use_gnu_ld_interface=no
8224 if test "$with_gnu_ld" = yes; then
8225 case $host_os in
8226 aix*)
8227 # The AIX port of GNU ld has always aspired to compatibility
8228 # with the native linker. However, as the warning in the GNU ld
8229 # block says, versions before 2.19.5* couldn't really create working
8230 # shared libraries, regardless of the interface used.
8231 case `$LD -v 2>&1` in
8232 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8233 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8234 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8235 *)
8236 lt_use_gnu_ld_interface=yes
8237 ;;
8238 esac
8239 ;;
8240 *)
8241 lt_use_gnu_ld_interface=yes
8242 ;;
8243 esac
8244 fi
8245
8246 if test "$lt_use_gnu_ld_interface" = yes; then
8247 # If archive_cmds runs LD, not CC, wlarc should be empty
8248 wlarc='${wl}'
8249
8250 # Set some defaults for GNU ld with shared library support. These
8251 # are reset later if shared libraries are not supported. Putting them
8252 # here allows them to be overridden if necessary.
8253 runpath_var=LD_RUN_PATH
8254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8255 export_dynamic_flag_spec='${wl}--export-dynamic'
8256 # ancient GNU ld didn't support --whole-archive et. al.
8257 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8258 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8259 else
8260 whole_archive_flag_spec=
8261 fi
8262 supports_anon_versioning=no
8263 case `$LD -v 2>&1` in
8264 *GNU\ gold*) supports_anon_versioning=yes ;;
8265 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8266 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8267 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8268 *\ 2.11.*) ;; # other 2.11 versions
8269 *) supports_anon_versioning=yes ;;
8270 esac
8271
8272 # See if GNU ld supports shared libraries.
8273 case $host_os in
8274 aix[3-9]*)
8275 # On AIX/PPC, the GNU linker is very broken
8276 if test "$host_cpu" != ia64; then
8277 ld_shlibs=no
8278 cat <<_LT_EOF 1>&2
8279
8280 *** Warning: the GNU linker, at least up to release 2.19, is reported
8281 *** to be unable to reliably create shared libraries on AIX.
8282 *** Therefore, libtool is disabling shared libraries support. If you
8283 *** really care for shared libraries, you may want to install binutils
8284 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8285 *** You will then need to restart the configuration process.
8286
8287 _LT_EOF
8288 fi
8289 ;;
8290
8291 amigaos*)
8292 case $host_cpu in
8293 powerpc)
8294 # see comment about AmigaOS4 .so support
8295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296 archive_expsym_cmds=''
8297 ;;
8298 m68k)
8299 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)'
8300 hardcode_libdir_flag_spec='-L$libdir'
8301 hardcode_minus_L=yes
8302 ;;
8303 esac
8304 ;;
8305
8306 beos*)
8307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8308 allow_undefined_flag=unsupported
8309 # Joseph Beckenbach <[email protected]> says some releases of gcc
8310 # support --undefined. This deserves some investigation. FIXME
8311 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312 else
8313 ld_shlibs=no
8314 fi
8315 ;;
8316
8317 cygwin* | mingw* | pw32* | cegcc*)
8318 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8319 # as there is no search path for DLLs.
8320 hardcode_libdir_flag_spec='-L$libdir'
8321 export_dynamic_flag_spec='${wl}--export-all-symbols'
8322 allow_undefined_flag=unsupported
8323 always_export_symbols=no
8324 enable_shared_with_static_runtimes=yes
8325 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'
8326 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8327
8328 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8330 # If the export-symbols file already is a .def file (1st line
8331 # is EXPORTS), use it as is; otherwise, prepend...
8332 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8333 cp $export_symbols $output_objdir/$soname.def;
8334 else
8335 echo EXPORTS > $output_objdir/$soname.def;
8336 cat $export_symbols >> $output_objdir/$soname.def;
8337 fi~
8338 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8339 else
8340 ld_shlibs=no
8341 fi
8342 ;;
8343
8344 haiku*)
8345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8346 link_all_deplibs=yes
8347 ;;
8348
8349 interix[3-9]*)
8350 hardcode_direct=no
8351 hardcode_shlibpath_var=no
8352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8353 export_dynamic_flag_spec='${wl}-E'
8354 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8355 # Instead, shared libraries are loaded at an image base (0x10000000 by
8356 # default) and relocated if they conflict, which is a slow very memory
8357 # consuming and fragmenting process. To avoid this, we pick a random,
8358 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8359 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8360 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8361 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'
8362 ;;
8363
8364 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8365 tmp_diet=no
8366 if test "$host_os" = linux-dietlibc; then
8367 case $cc_basename in
8368 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8369 esac
8370 fi
8371 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8372 && test "$tmp_diet" = no
8373 then
8374 tmp_addflag=' $pic_flag'
8375 tmp_sharedflag='-shared'
8376 case $cc_basename,$host_cpu in
8377 pgcc*) # Portland Group C compiler
8378 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'
8379 tmp_addflag=' $pic_flag'
8380 ;;
8381 pgf77* | pgf90* | pgf95* | pgfortran*)
8382 # Portland Group f77 and f90 compilers
8383 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'
8384 tmp_addflag=' $pic_flag -Mnomain' ;;
8385 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8386 tmp_addflag=' -i_dynamic' ;;
8387 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8388 tmp_addflag=' -i_dynamic -nofor_main' ;;
8389 ifc* | ifort*) # Intel Fortran compiler
8390 tmp_addflag=' -nofor_main' ;;
8391 lf95*) # Lahey Fortran 8.1
8392 whole_archive_flag_spec=
8393 tmp_sharedflag='--shared' ;;
8394 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8395 tmp_sharedflag='-qmkshrobj'
8396 tmp_addflag= ;;
8397 nvcc*) # Cuda Compiler Driver 2.2
8398 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'
8399 compiler_needs_object=yes
8400 ;;
8401 esac
8402 case `$CC -V 2>&1 | sed 5q` in
8403 *Sun\ C*) # Sun C 5.9
8404 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'
8405 compiler_needs_object=yes
8406 tmp_sharedflag='-G' ;;
8407 *Sun\ F*) # Sun Fortran 8.3
8408 tmp_sharedflag='-G' ;;
8409 esac
8410 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8411
8412 if test "x$supports_anon_versioning" = xyes; then
8413 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8414 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8415 echo "local: *; };" >> $output_objdir/$libname.ver~
8416 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8417 fi
8418
8419 case $cc_basename in
8420 xlf* | bgf* | bgxlf* | mpixlf*)
8421 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8422 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8424 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8425 if test "x$supports_anon_versioning" = xyes; then
8426 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8427 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8428 echo "local: *; };" >> $output_objdir/$libname.ver~
8429 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8430 fi
8431 ;;
8432 esac
8433 else
8434 ld_shlibs=no
8435 fi
8436 ;;
8437
8438 netbsd* | netbsdelf*-gnu)
8439 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8440 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8441 wlarc=
8442 else
8443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8444 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8445 fi
8446 ;;
8447
8448 solaris*)
8449 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8450 ld_shlibs=no
8451 cat <<_LT_EOF 1>&2
8452
8453 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8454 *** create shared libraries on Solaris systems. Therefore, libtool
8455 *** is disabling shared libraries support. We urge you to upgrade GNU
8456 *** binutils to release 2.9.1 or newer. Another option is to modify
8457 *** your PATH or compiler configuration so that the native linker is
8458 *** used, and then restart.
8459
8460 _LT_EOF
8461 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8462 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8463 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8464 else
8465 ld_shlibs=no
8466 fi
8467 ;;
8468
8469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8470 case `$LD -v 2>&1` in
8471 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8472 ld_shlibs=no
8473 cat <<_LT_EOF 1>&2
8474
8475 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8476 *** reliably create shared libraries on SCO systems. Therefore, libtool
8477 *** is disabling shared libraries support. We urge you to upgrade GNU
8478 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8479 *** your PATH or compiler configuration so that the native linker is
8480 *** used, and then restart.
8481
8482 _LT_EOF
8483 ;;
8484 *)
8485 # For security reasons, it is highly recommended that you always
8486 # use absolute paths for naming shared libraries, and exclude the
8487 # DT_RUNPATH tag from executables and libraries. But doing so
8488 # requires that you compile everything twice, which is a pain.
8489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8492 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8493 else
8494 ld_shlibs=no
8495 fi
8496 ;;
8497 esac
8498 ;;
8499
8500 sunos4*)
8501 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8502 wlarc=
8503 hardcode_direct=yes
8504 hardcode_shlibpath_var=no
8505 ;;
8506
8507 *)
8508 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8509 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8510 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8511 else
8512 ld_shlibs=no
8513 fi
8514 ;;
8515 esac
8516
8517 if test "$ld_shlibs" = no; then
8518 runpath_var=
8519 hardcode_libdir_flag_spec=
8520 export_dynamic_flag_spec=
8521 whole_archive_flag_spec=
8522 fi
8523 else
8524 # PORTME fill in a description of your system's linker (not GNU ld)
8525 case $host_os in
8526 aix3*)
8527 allow_undefined_flag=unsupported
8528 always_export_symbols=yes
8529 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'
8530 # Note: this linker hardcodes the directories in LIBPATH if there
8531 # are no directories specified by -L.
8532 hardcode_minus_L=yes
8533 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8534 # Neither direct hardcoding nor static linking is supported with a
8535 # broken collect2.
8536 hardcode_direct=unsupported
8537 fi
8538 ;;
8539
8540 aix[4-9]*)
8541 if test "$host_cpu" = ia64; then
8542 # On IA64, the linker does run time linking by default, so we don't
8543 # have to do anything special.
8544 aix_use_runtimelinking=no
8545 exp_sym_flag='-Bexport'
8546 no_entry_flag=""
8547 else
8548 # If we're using GNU nm, then we don't want the "-C" option.
8549 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8550 # Also, AIX nm treats weak defined symbols like other global
8551 # defined symbols, whereas GNU nm marks them as "W".
8552 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8553 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8554 else
8555 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8556 fi
8557 aix_use_runtimelinking=no
8558
8559 # Test if we are trying to use run time linking or normal
8560 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8561 # need to do runtime linking.
8562 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8563 for ld_flag in $LDFLAGS; do
8564 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8565 aix_use_runtimelinking=yes
8566 break
8567 fi
8568 done
8569 ;;
8570 esac
8571
8572 exp_sym_flag='-bexport'
8573 no_entry_flag='-bnoentry'
8574 fi
8575
8576 # When large executables or shared objects are built, AIX ld can
8577 # have problems creating the table of contents. If linking a library
8578 # or program results in "error TOC overflow" add -mminimal-toc to
8579 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8580 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8581
8582 archive_cmds=''
8583 hardcode_direct=yes
8584 hardcode_direct_absolute=yes
8585 hardcode_libdir_separator=':'
8586 link_all_deplibs=yes
8587 file_list_spec='${wl}-f,'
8588
8589 if test "$GCC" = yes; then
8590 case $host_os in aix4.[012]|aix4.[012].*)
8591 # We only want to do this on AIX 4.2 and lower, the check
8592 # below for broken collect2 doesn't work under 4.3+
8593 collect2name=`${CC} -print-prog-name=collect2`
8594 if test -f "$collect2name" &&
8595 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8596 then
8597 # We have reworked collect2
8598 :
8599 else
8600 # We have old collect2
8601 hardcode_direct=unsupported
8602 # It fails to find uninstalled libraries when the uninstalled
8603 # path is not listed in the libpath. Setting hardcode_minus_L
8604 # to unsupported forces relinking
8605 hardcode_minus_L=yes
8606 hardcode_libdir_flag_spec='-L$libdir'
8607 hardcode_libdir_separator=
8608 fi
8609 ;;
8610 esac
8611 shared_flag='-shared'
8612 if test "$aix_use_runtimelinking" = yes; then
8613 shared_flag="$shared_flag "'${wl}-G'
8614 fi
8615 link_all_deplibs=no
8616 else
8617 # not using gcc
8618 if test "$host_cpu" = ia64; then
8619 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8620 # chokes on -Wl,-G. The following line is correct:
8621 shared_flag='-G'
8622 else
8623 if test "$aix_use_runtimelinking" = yes; then
8624 shared_flag='${wl}-G'
8625 else
8626 shared_flag='${wl}-bM:SRE'
8627 fi
8628 fi
8629 fi
8630
8631 export_dynamic_flag_spec='${wl}-bexpall'
8632 # It seems that -bexpall does not export symbols beginning with
8633 # underscore (_), so it is better to generate a list of symbols to export.
8634 always_export_symbols=yes
8635 if test "$aix_use_runtimelinking" = yes; then
8636 # Warning - without using the other runtime loading flags (-brtl),
8637 # -berok will link without error, but may produce a broken library.
8638 allow_undefined_flag='-berok'
8639 # Determine the default libpath from the value encoded in an
8640 # empty executable.
8641 if test "${lt_cv_aix_libpath+set}" = set; then
8642 aix_libpath=$lt_cv_aix_libpath
8643 else
8644 if ${lt_cv_aix_libpath_+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8649
8650 int
8651 main ()
8652 {
8653
8654 ;
8655 return 0;
8656 }
8657 _ACEOF
8658 if ac_fn_c_try_link "$LINENO"; then :
8659
8660 lt_aix_libpath_sed='
8661 /Import File Strings/,/^$/ {
8662 /^0/ {
8663 s/^0 *\([^ ]*\) *$/\1/
8664 p
8665 }
8666 }'
8667 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8668 # Check for a 64-bit object if we didn't find anything.
8669 if test -z "$lt_cv_aix_libpath_"; then
8670 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8671 fi
8672 fi
8673 rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 if test -z "$lt_cv_aix_libpath_"; then
8676 lt_cv_aix_libpath_="/usr/lib:/lib"
8677 fi
8678
8679 fi
8680
8681 aix_libpath=$lt_cv_aix_libpath_
8682 fi
8683
8684 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8685 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8686 else
8687 if test "$host_cpu" = ia64; then
8688 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8689 allow_undefined_flag="-z nodefs"
8690 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"
8691 else
8692 # Determine the default libpath from the value encoded in an
8693 # empty executable.
8694 if test "${lt_cv_aix_libpath+set}" = set; then
8695 aix_libpath=$lt_cv_aix_libpath
8696 else
8697 if ${lt_cv_aix_libpath_+:} false; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702
8703 int
8704 main ()
8705 {
8706
8707 ;
8708 return 0;
8709 }
8710 _ACEOF
8711 if ac_fn_c_try_link "$LINENO"; then :
8712
8713 lt_aix_libpath_sed='
8714 /Import File Strings/,/^$/ {
8715 /^0/ {
8716 s/^0 *\([^ ]*\) *$/\1/
8717 p
8718 }
8719 }'
8720 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8721 # Check for a 64-bit object if we didn't find anything.
8722 if test -z "$lt_cv_aix_libpath_"; then
8723 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8724 fi
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 if test -z "$lt_cv_aix_libpath_"; then
8729 lt_cv_aix_libpath_="/usr/lib:/lib"
8730 fi
8731
8732 fi
8733
8734 aix_libpath=$lt_cv_aix_libpath_
8735 fi
8736
8737 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8738 # Warning - without using the other run time loading flags,
8739 # -berok will link without error, but may produce a broken library.
8740 no_undefined_flag=' ${wl}-bernotok'
8741 allow_undefined_flag=' ${wl}-berok'
8742 if test "$with_gnu_ld" = yes; then
8743 # We only use this code for GNU lds that support --whole-archive.
8744 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8745 else
8746 # Exported symbols can be pulled into shared objects from archives
8747 whole_archive_flag_spec='$convenience'
8748 fi
8749 archive_cmds_need_lc=yes
8750 # This is similar to how AIX traditionally builds its shared libraries.
8751 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8752 fi
8753 fi
8754 ;;
8755
8756 amigaos*)
8757 case $host_cpu in
8758 powerpc)
8759 # see comment about AmigaOS4 .so support
8760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761 archive_expsym_cmds=''
8762 ;;
8763 m68k)
8764 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)'
8765 hardcode_libdir_flag_spec='-L$libdir'
8766 hardcode_minus_L=yes
8767 ;;
8768 esac
8769 ;;
8770
8771 bsdi[45]*)
8772 export_dynamic_flag_spec=-rdynamic
8773 ;;
8774
8775 cygwin* | mingw* | pw32* | cegcc*)
8776 # When not using gcc, we currently assume that we are using
8777 # Microsoft Visual C++.
8778 # hardcode_libdir_flag_spec is actually meaningless, as there is
8779 # no search path for DLLs.
8780 case $cc_basename in
8781 cl*)
8782 # Native MSVC
8783 hardcode_libdir_flag_spec=' '
8784 allow_undefined_flag=unsupported
8785 always_export_symbols=yes
8786 file_list_spec='@'
8787 # Tell ltmain to make .lib files, not .a files.
8788 libext=lib
8789 # Tell ltmain to make .dll files, not .so files.
8790 shrext_cmds=".dll"
8791 # FIXME: Setting linknames here is a bad hack.
8792 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8793 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8794 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8795 else
8796 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8797 fi~
8798 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8799 linknames='
8800 # The linker will not automatically build a static lib if we build a DLL.
8801 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8802 enable_shared_with_static_runtimes=yes
8803 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8804 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8805 # Don't use ranlib
8806 old_postinstall_cmds='chmod 644 $oldlib'
8807 postlink_cmds='lt_outputfile="@OUTPUT@"~
8808 lt_tool_outputfile="@TOOL_OUTPUT@"~
8809 case $lt_outputfile in
8810 *.exe|*.EXE) ;;
8811 *)
8812 lt_outputfile="$lt_outputfile.exe"
8813 lt_tool_outputfile="$lt_tool_outputfile.exe"
8814 ;;
8815 esac~
8816 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8817 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8818 $RM "$lt_outputfile.manifest";
8819 fi'
8820 ;;
8821 *)
8822 # Assume MSVC wrapper
8823 hardcode_libdir_flag_spec=' '
8824 allow_undefined_flag=unsupported
8825 # Tell ltmain to make .lib files, not .a files.
8826 libext=lib
8827 # Tell ltmain to make .dll files, not .so files.
8828 shrext_cmds=".dll"
8829 # FIXME: Setting linknames here is a bad hack.
8830 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8831 # The linker will automatically build a .lib file if we build a DLL.
8832 old_archive_from_new_cmds='true'
8833 # FIXME: Should let the user specify the lib program.
8834 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8835 enable_shared_with_static_runtimes=yes
8836 ;;
8837 esac
8838 ;;
8839
8840 darwin* | rhapsody*)
8841
8842
8843 archive_cmds_need_lc=no
8844 hardcode_direct=no
8845 hardcode_automatic=yes
8846 hardcode_shlibpath_var=unsupported
8847 if test "$lt_cv_ld_force_load" = "yes"; then
8848 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\"`'
8849
8850 else
8851 whole_archive_flag_spec=''
8852 fi
8853 link_all_deplibs=yes
8854 allow_undefined_flag="$_lt_dar_allow_undefined"
8855 case $cc_basename in
8856 ifort*) _lt_dar_can_shared=yes ;;
8857 *) _lt_dar_can_shared=$GCC ;;
8858 esac
8859 if test "$_lt_dar_can_shared" = "yes"; then
8860 output_verbose_link_cmd=func_echo_all
8861 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8862 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8863 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}"
8864 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}"
8865
8866 else
8867 ld_shlibs=no
8868 fi
8869
8870 ;;
8871
8872 dgux*)
8873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874 hardcode_libdir_flag_spec='-L$libdir'
8875 hardcode_shlibpath_var=no
8876 ;;
8877
8878 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8879 # support. Future versions do this automatically, but an explicit c++rt0.o
8880 # does not break anything, and helps significantly (at the cost of a little
8881 # extra space).
8882 freebsd2.2*)
8883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8884 hardcode_libdir_flag_spec='-R$libdir'
8885 hardcode_direct=yes
8886 hardcode_shlibpath_var=no
8887 ;;
8888
8889 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8890 freebsd2.*)
8891 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8892 hardcode_direct=yes
8893 hardcode_minus_L=yes
8894 hardcode_shlibpath_var=no
8895 ;;
8896
8897 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8898 freebsd* | dragonfly*)
8899 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8900 hardcode_libdir_flag_spec='-R$libdir'
8901 hardcode_direct=yes
8902 hardcode_shlibpath_var=no
8903 ;;
8904
8905 hpux9*)
8906 if test "$GCC" = yes; then
8907 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8908 else
8909 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8910 fi
8911 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8912 hardcode_libdir_separator=:
8913 hardcode_direct=yes
8914
8915 # hardcode_minus_L: Not really in the search PATH,
8916 # but as the default location of the library.
8917 hardcode_minus_L=yes
8918 export_dynamic_flag_spec='${wl}-E'
8919 ;;
8920
8921 hpux10*)
8922 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8923 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8924 else
8925 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8926 fi
8927 if test "$with_gnu_ld" = no; then
8928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8929 hardcode_libdir_separator=:
8930 hardcode_direct=yes
8931 hardcode_direct_absolute=yes
8932 export_dynamic_flag_spec='${wl}-E'
8933 # hardcode_minus_L: Not really in the search PATH,
8934 # but as the default location of the library.
8935 hardcode_minus_L=yes
8936 fi
8937 ;;
8938
8939 hpux11*)
8940 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8941 case $host_cpu in
8942 hppa*64*)
8943 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8944 ;;
8945 ia64*)
8946 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8947 ;;
8948 *)
8949 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8950 ;;
8951 esac
8952 else
8953 case $host_cpu in
8954 hppa*64*)
8955 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 ;;
8957 ia64*)
8958 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8959 ;;
8960 *)
8961
8962 # Older versions of the 11.00 compiler do not understand -b yet
8963 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8965 $as_echo_n "checking if $CC understands -b... " >&6; }
8966 if ${lt_cv_prog_compiler__b+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 lt_cv_prog_compiler__b=no
8970 save_LDFLAGS="$LDFLAGS"
8971 LDFLAGS="$LDFLAGS -b"
8972 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8974 # The linker can only warn and ignore the option if not recognized
8975 # So say no if there are warnings
8976 if test -s conftest.err; then
8977 # Append any errors to the config.log.
8978 cat conftest.err 1>&5
8979 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8981 if diff conftest.exp conftest.er2 >/dev/null; then
8982 lt_cv_prog_compiler__b=yes
8983 fi
8984 else
8985 lt_cv_prog_compiler__b=yes
8986 fi
8987 fi
8988 $RM -r conftest*
8989 LDFLAGS="$save_LDFLAGS"
8990
8991 fi
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8993 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8994
8995 if test x"$lt_cv_prog_compiler__b" = xyes; then
8996 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8997 else
8998 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8999 fi
9000
9001 ;;
9002 esac
9003 fi
9004 if test "$with_gnu_ld" = no; then
9005 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9006 hardcode_libdir_separator=:
9007
9008 case $host_cpu in
9009 hppa*64*|ia64*)
9010 hardcode_direct=no
9011 hardcode_shlibpath_var=no
9012 ;;
9013 *)
9014 hardcode_direct=yes
9015 hardcode_direct_absolute=yes
9016 export_dynamic_flag_spec='${wl}-E'
9017
9018 # hardcode_minus_L: Not really in the search PATH,
9019 # but as the default location of the library.
9020 hardcode_minus_L=yes
9021 ;;
9022 esac
9023 fi
9024 ;;
9025
9026 irix5* | irix6* | nonstopux*)
9027 if test "$GCC" = yes; then
9028 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'
9029 # Try to use the -exported_symbol ld option, if it does not
9030 # work, assume that -exports_file does not work either and
9031 # implicitly export all symbols.
9032 # This should be the same for all languages, so no per-tag cache variable.
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9034 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9035 if ${lt_cv_irix_exported_symbol+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 save_LDFLAGS="$LDFLAGS"
9039 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 int foo (void) { return 0; }
9043 _ACEOF
9044 if ac_fn_c_try_link "$LINENO"; then :
9045 lt_cv_irix_exported_symbol=yes
9046 else
9047 lt_cv_irix_exported_symbol=no
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051 LDFLAGS="$save_LDFLAGS"
9052 fi
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9054 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9055 if test "$lt_cv_irix_exported_symbol" = yes; then
9056 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'
9057 fi
9058 else
9059 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'
9060 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'
9061 fi
9062 archive_cmds_need_lc='no'
9063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9064 hardcode_libdir_separator=:
9065 inherit_rpath=yes
9066 link_all_deplibs=yes
9067 ;;
9068
9069 netbsd* | netbsdelf*-gnu)
9070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9072 else
9073 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9074 fi
9075 hardcode_libdir_flag_spec='-R$libdir'
9076 hardcode_direct=yes
9077 hardcode_shlibpath_var=no
9078 ;;
9079
9080 newsos6)
9081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9082 hardcode_direct=yes
9083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9084 hardcode_libdir_separator=:
9085 hardcode_shlibpath_var=no
9086 ;;
9087
9088 *nto* | *qnx*)
9089 ;;
9090
9091 openbsd*)
9092 if test -f /usr/libexec/ld.so; then
9093 hardcode_direct=yes
9094 hardcode_shlibpath_var=no
9095 hardcode_direct_absolute=yes
9096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9098 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9099 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9100 export_dynamic_flag_spec='${wl}-E'
9101 else
9102 case $host_os in
9103 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9105 hardcode_libdir_flag_spec='-R$libdir'
9106 ;;
9107 *)
9108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9110 ;;
9111 esac
9112 fi
9113 else
9114 ld_shlibs=no
9115 fi
9116 ;;
9117
9118 os2*)
9119 hardcode_libdir_flag_spec='-L$libdir'
9120 hardcode_minus_L=yes
9121 allow_undefined_flag=unsupported
9122 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9123 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9124 ;;
9125
9126 osf3*)
9127 if test "$GCC" = yes; then
9128 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9129 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'
9130 else
9131 allow_undefined_flag=' -expect_unresolved \*'
9132 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'
9133 fi
9134 archive_cmds_need_lc='no'
9135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9136 hardcode_libdir_separator=:
9137 ;;
9138
9139 osf4* | osf5*) # as osf3* with the addition of -msym flag
9140 if test "$GCC" = yes; then
9141 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9142 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'
9143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9144 else
9145 allow_undefined_flag=' -expect_unresolved \*'
9146 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'
9147 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~
9148 $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'
9149
9150 # Both c and cxx compiler support -rpath directly
9151 hardcode_libdir_flag_spec='-rpath $libdir'
9152 fi
9153 archive_cmds_need_lc='no'
9154 hardcode_libdir_separator=:
9155 ;;
9156
9157 solaris*)
9158 no_undefined_flag=' -z defs'
9159 if test "$GCC" = yes; then
9160 wlarc='${wl}'
9161 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9163 $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'
9164 else
9165 case `$CC -V 2>&1` in
9166 *"Compilers 5.0"*)
9167 wlarc=''
9168 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9170 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9171 ;;
9172 *)
9173 wlarc='${wl}'
9174 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9175 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9176 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9177 ;;
9178 esac
9179 fi
9180 hardcode_libdir_flag_spec='-R$libdir'
9181 hardcode_shlibpath_var=no
9182 case $host_os in
9183 solaris2.[0-5] | solaris2.[0-5].*) ;;
9184 *)
9185 # The compiler driver will combine and reorder linker options,
9186 # but understands `-z linker_flag'. GCC discards it without `$wl',
9187 # but is careful enough not to reorder.
9188 # Supported since Solaris 2.6 (maybe 2.5.1?)
9189 if test "$GCC" = yes; then
9190 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9191 else
9192 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9193 fi
9194 ;;
9195 esac
9196 link_all_deplibs=yes
9197 ;;
9198
9199 sunos4*)
9200 if test "x$host_vendor" = xsequent; then
9201 # Use $CC to link under sequent, because it throws in some extra .o
9202 # files that make .init and .fini sections work.
9203 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9204 else
9205 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9206 fi
9207 hardcode_libdir_flag_spec='-L$libdir'
9208 hardcode_direct=yes
9209 hardcode_minus_L=yes
9210 hardcode_shlibpath_var=no
9211 ;;
9212
9213 sysv4)
9214 case $host_vendor in
9215 sni)
9216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9217 hardcode_direct=yes # is this really true???
9218 ;;
9219 siemens)
9220 ## LD is ld it makes a PLAMLIB
9221 ## CC just makes a GrossModule.
9222 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9223 reload_cmds='$CC -r -o $output$reload_objs'
9224 hardcode_direct=no
9225 ;;
9226 motorola)
9227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9228 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9229 ;;
9230 esac
9231 runpath_var='LD_RUN_PATH'
9232 hardcode_shlibpath_var=no
9233 ;;
9234
9235 sysv4.3*)
9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_shlibpath_var=no
9238 export_dynamic_flag_spec='-Bexport'
9239 ;;
9240
9241 sysv4*MP*)
9242 if test -d /usr/nec; then
9243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244 hardcode_shlibpath_var=no
9245 runpath_var=LD_RUN_PATH
9246 hardcode_runpath_var=yes
9247 ld_shlibs=yes
9248 fi
9249 ;;
9250
9251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9252 no_undefined_flag='${wl}-z,text'
9253 archive_cmds_need_lc=no
9254 hardcode_shlibpath_var=no
9255 runpath_var='LD_RUN_PATH'
9256
9257 if test "$GCC" = yes; then
9258 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9259 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9260 else
9261 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9262 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9263 fi
9264 ;;
9265
9266 sysv5* | sco3.2v5* | sco5v6*)
9267 # Note: We can NOT use -z defs as we might desire, because we do not
9268 # link with -lc, and that would cause any symbols used from libc to
9269 # always be unresolved, which means just about no library would
9270 # ever link correctly. If we're not using GNU ld we use -z text
9271 # though, which does catch some bad symbols but isn't as heavy-handed
9272 # as -z defs.
9273 no_undefined_flag='${wl}-z,text'
9274 allow_undefined_flag='${wl}-z,nodefs'
9275 archive_cmds_need_lc=no
9276 hardcode_shlibpath_var=no
9277 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9278 hardcode_libdir_separator=':'
9279 link_all_deplibs=yes
9280 export_dynamic_flag_spec='${wl}-Bexport'
9281 runpath_var='LD_RUN_PATH'
9282
9283 if test "$GCC" = yes; then
9284 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9285 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9286 else
9287 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9288 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9289 fi
9290 ;;
9291
9292 uts4*)
9293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_shlibpath_var=no
9296 ;;
9297
9298 *)
9299 ld_shlibs=no
9300 ;;
9301 esac
9302
9303 if test x$host_vendor = xsni; then
9304 case $host in
9305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9306 export_dynamic_flag_spec='${wl}-Blargedynsym'
9307 ;;
9308 esac
9309 fi
9310 fi
9311
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9313 $as_echo "$ld_shlibs" >&6; }
9314 test "$ld_shlibs" = no && can_build_shared=no
9315
9316 with_gnu_ld=$with_gnu_ld
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332 #
9333 # Do we need to explicitly link libc?
9334 #
9335 case "x$archive_cmds_need_lc" in
9336 x|xyes)
9337 # Assume -lc should be added
9338 archive_cmds_need_lc=yes
9339
9340 if test "$enable_shared" = yes && test "$GCC" = yes; then
9341 case $archive_cmds in
9342 *'~'*)
9343 # FIXME: we may have to deal with multi-command sequences.
9344 ;;
9345 '$CC '*)
9346 # Test whether the compiler implicitly links with -lc since on some
9347 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9348 # to ld, don't add -lc before -lgcc.
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9350 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9351 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 $RM conftest*
9355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9356
9357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9358 (eval $ac_compile) 2>&5
9359 ac_status=$?
9360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9361 test $ac_status = 0; } 2>conftest.err; then
9362 soname=conftest
9363 lib=conftest
9364 libobjs=conftest.$ac_objext
9365 deplibs=
9366 wl=$lt_prog_compiler_wl
9367 pic_flag=$lt_prog_compiler_pic
9368 compiler_flags=-v
9369 linker_flags=-v
9370 verstring=
9371 output_objdir=.
9372 libname=conftest
9373 lt_save_allow_undefined_flag=$allow_undefined_flag
9374 allow_undefined_flag=
9375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9376 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9377 ac_status=$?
9378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9379 test $ac_status = 0; }
9380 then
9381 lt_cv_archive_cmds_need_lc=no
9382 else
9383 lt_cv_archive_cmds_need_lc=yes
9384 fi
9385 allow_undefined_flag=$lt_save_allow_undefined_flag
9386 else
9387 cat conftest.err 1>&5
9388 fi
9389 $RM conftest*
9390
9391 fi
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9393 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9394 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9395 ;;
9396 esac
9397 fi
9398 ;;
9399 esac
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9553 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9554
9555 if test "$GCC" = yes; then
9556 case $host_os in
9557 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9558 *) lt_awk_arg="/^libraries:/" ;;
9559 esac
9560 case $host_os in
9561 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9562 *) lt_sed_strip_eq="s,=/,/,g" ;;
9563 esac
9564 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9565 case $lt_search_path_spec in
9566 *\;*)
9567 # if the path contains ";" then we assume it to be the separator
9568 # otherwise default to the standard path separator (i.e. ":") - it is
9569 # assumed that no part of a normal pathname contains ";" but that should
9570 # okay in the real world where ";" in dirpaths is itself problematic.
9571 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9572 ;;
9573 *)
9574 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9575 ;;
9576 esac
9577 # Ok, now we have the path, separated by spaces, we can step through it
9578 # and add multilib dir if necessary.
9579 lt_tmp_lt_search_path_spec=
9580 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9581 for lt_sys_path in $lt_search_path_spec; do
9582 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9583 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9584 else
9585 test -d "$lt_sys_path" && \
9586 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9587 fi
9588 done
9589 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9590 BEGIN {RS=" "; FS="/|\n";} {
9591 lt_foo="";
9592 lt_count=0;
9593 for (lt_i = NF; lt_i > 0; lt_i--) {
9594 if ($lt_i != "" && $lt_i != ".") {
9595 if ($lt_i == "..") {
9596 lt_count++;
9597 } else {
9598 if (lt_count == 0) {
9599 lt_foo="/" $lt_i lt_foo;
9600 } else {
9601 lt_count--;
9602 }
9603 }
9604 }
9605 }
9606 if (lt_foo != "") { lt_freq[lt_foo]++; }
9607 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9608 }'`
9609 # AWK program above erroneously prepends '/' to C:/dos/paths
9610 # for these hosts.
9611 case $host_os in
9612 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9613 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9614 esac
9615 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9616 else
9617 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9618 fi
9619 library_names_spec=
9620 libname_spec='lib$name'
9621 soname_spec=
9622 shrext_cmds=".so"
9623 postinstall_cmds=
9624 postuninstall_cmds=
9625 finish_cmds=
9626 finish_eval=
9627 shlibpath_var=
9628 shlibpath_overrides_runpath=unknown
9629 version_type=none
9630 dynamic_linker="$host_os ld.so"
9631 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9632 need_lib_prefix=unknown
9633 hardcode_into_libs=no
9634
9635 # when you set need_version to no, make sure it does not cause -set_version
9636 # flags to be left without arguments
9637 need_version=unknown
9638
9639 case $host_os in
9640 aix3*)
9641 version_type=linux # correct to gnu/linux during the next big refactor
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9643 shlibpath_var=LIBPATH
9644
9645 # AIX 3 has no versioning support, so we append a major version to the name.
9646 soname_spec='${libname}${release}${shared_ext}$major'
9647 ;;
9648
9649 aix[4-9]*)
9650 version_type=linux # correct to gnu/linux during the next big refactor
9651 need_lib_prefix=no
9652 need_version=no
9653 hardcode_into_libs=yes
9654 if test "$host_cpu" = ia64; then
9655 # AIX 5 supports IA64
9656 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9657 shlibpath_var=LD_LIBRARY_PATH
9658 else
9659 # With GCC up to 2.95.x, collect2 would create an import file
9660 # for dependence libraries. The import file would start with
9661 # the line `#! .'. This would cause the generated library to
9662 # depend on `.', always an invalid library. This was fixed in
9663 # development snapshots of GCC prior to 3.0.
9664 case $host_os in
9665 aix4 | aix4.[01] | aix4.[01].*)
9666 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9667 echo ' yes '
9668 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9669 :
9670 else
9671 can_build_shared=no
9672 fi
9673 ;;
9674 esac
9675 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9676 # soname into executable. Probably we can add versioning support to
9677 # collect2, so additional links can be useful in future.
9678 if test "$aix_use_runtimelinking" = yes; then
9679 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9680 # instead of lib<name>.a to let people know that these are not
9681 # typical AIX shared libraries.
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 else
9684 # We preserve .a as extension for shared libraries through AIX4.2
9685 # and later when we are not doing run time linking.
9686 library_names_spec='${libname}${release}.a $libname.a'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 fi
9689 shlibpath_var=LIBPATH
9690 fi
9691 ;;
9692
9693 amigaos*)
9694 case $host_cpu in
9695 powerpc)
9696 # Since July 2007 AmigaOS4 officially supports .so libraries.
9697 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699 ;;
9700 m68k)
9701 library_names_spec='$libname.ixlibrary $libname.a'
9702 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9703 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
9704 ;;
9705 esac
9706 ;;
9707
9708 beos*)
9709 library_names_spec='${libname}${shared_ext}'
9710 dynamic_linker="$host_os ld.so"
9711 shlibpath_var=LIBRARY_PATH
9712 ;;
9713
9714 bsdi[45]*)
9715 version_type=linux # correct to gnu/linux during the next big refactor
9716 need_version=no
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9720 shlibpath_var=LD_LIBRARY_PATH
9721 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9722 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9723 # the default ld.so.conf also contains /usr/contrib/lib and
9724 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9725 # libtool to hard-code these into programs
9726 ;;
9727
9728 cygwin* | mingw* | pw32* | cegcc*)
9729 version_type=windows
9730 shrext_cmds=".dll"
9731 need_version=no
9732 need_lib_prefix=no
9733
9734 case $GCC,$cc_basename in
9735 yes,*)
9736 # gcc
9737 library_names_spec='$libname.dll.a'
9738 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9739 postinstall_cmds='base_file=`basename \${file}`~
9740 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9741 dldir=$destdir/`dirname \$dlpath`~
9742 test -d \$dldir || mkdir -p \$dldir~
9743 $install_prog $dir/$dlname \$dldir/$dlname~
9744 chmod a+x \$dldir/$dlname~
9745 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9746 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9747 fi'
9748 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9749 dlpath=$dir/\$dldll~
9750 $RM \$dlpath'
9751 shlibpath_overrides_runpath=yes
9752
9753 case $host_os in
9754 cygwin*)
9755 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9756 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9757
9758 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9759 ;;
9760 mingw* | cegcc*)
9761 # MinGW DLLs use traditional 'lib' prefix
9762 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9763 ;;
9764 pw32*)
9765 # pw32 DLLs use 'pw' prefix rather than 'lib'
9766 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9767 ;;
9768 esac
9769 dynamic_linker='Win32 ld.exe'
9770 ;;
9771
9772 *,cl*)
9773 # Native MSVC
9774 libname_spec='$name'
9775 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9776 library_names_spec='${libname}.dll.lib'
9777
9778 case $build_os in
9779 mingw*)
9780 sys_lib_search_path_spec=
9781 lt_save_ifs=$IFS
9782 IFS=';'
9783 for lt_path in $LIB
9784 do
9785 IFS=$lt_save_ifs
9786 # Let DOS variable expansion print the short 8.3 style file name.
9787 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9788 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9789 done
9790 IFS=$lt_save_ifs
9791 # Convert to MSYS style.
9792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9793 ;;
9794 cygwin*)
9795 # Convert to unix form, then to dos form, then back to unix form
9796 # but this time dos style (no spaces!) so that the unix form looks
9797 # like /cygdrive/c/PROGRA~1:/cygdr...
9798 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9799 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9800 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9801 ;;
9802 *)
9803 sys_lib_search_path_spec="$LIB"
9804 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9805 # It is most probably a Windows format PATH.
9806 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9807 else
9808 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9809 fi
9810 # FIXME: find the short name or the path components, as spaces are
9811 # common. (e.g. "Program Files" -> "PROGRA~1")
9812 ;;
9813 esac
9814
9815 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9816 postinstall_cmds='base_file=`basename \${file}`~
9817 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9818 dldir=$destdir/`dirname \$dlpath`~
9819 test -d \$dldir || mkdir -p \$dldir~
9820 $install_prog $dir/$dlname \$dldir/$dlname'
9821 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9822 dlpath=$dir/\$dldll~
9823 $RM \$dlpath'
9824 shlibpath_overrides_runpath=yes
9825 dynamic_linker='Win32 link.exe'
9826 ;;
9827
9828 *)
9829 # Assume MSVC wrapper
9830 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9831 dynamic_linker='Win32 ld.exe'
9832 ;;
9833 esac
9834 # FIXME: first we should search . and the directory the executable is in
9835 shlibpath_var=PATH
9836 ;;
9837
9838 darwin* | rhapsody*)
9839 dynamic_linker="$host_os dyld"
9840 version_type=darwin
9841 need_lib_prefix=no
9842 need_version=no
9843 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9844 soname_spec='${libname}${release}${major}$shared_ext'
9845 shlibpath_overrides_runpath=yes
9846 shlibpath_var=DYLD_LIBRARY_PATH
9847 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9848
9849 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9851 ;;
9852
9853 dgux*)
9854 version_type=linux # correct to gnu/linux during the next big refactor
9855 need_lib_prefix=no
9856 need_version=no
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9858 soname_spec='${libname}${release}${shared_ext}$major'
9859 shlibpath_var=LD_LIBRARY_PATH
9860 ;;
9861
9862 freebsd* | dragonfly*)
9863 # DragonFly does not have aout. When/if they implement a new
9864 # versioning mechanism, adjust this.
9865 if test -x /usr/bin/objformat; then
9866 objformat=`/usr/bin/objformat`
9867 else
9868 case $host_os in
9869 freebsd[23].*) objformat=aout ;;
9870 *) objformat=elf ;;
9871 esac
9872 fi
9873 version_type=freebsd-$objformat
9874 case $version_type in
9875 freebsd-elf*)
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9877 need_version=no
9878 need_lib_prefix=no
9879 ;;
9880 freebsd-*)
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9882 need_version=yes
9883 ;;
9884 esac
9885 shlibpath_var=LD_LIBRARY_PATH
9886 case $host_os in
9887 freebsd2.*)
9888 shlibpath_overrides_runpath=yes
9889 ;;
9890 freebsd3.[01]* | freebsdelf3.[01]*)
9891 shlibpath_overrides_runpath=yes
9892 hardcode_into_libs=yes
9893 ;;
9894 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9895 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9896 shlibpath_overrides_runpath=no
9897 hardcode_into_libs=yes
9898 ;;
9899 *) # from 4.6 on, and DragonFly
9900 shlibpath_overrides_runpath=yes
9901 hardcode_into_libs=yes
9902 ;;
9903 esac
9904 ;;
9905
9906 haiku*)
9907 version_type=linux # correct to gnu/linux during the next big refactor
9908 need_lib_prefix=no
9909 need_version=no
9910 dynamic_linker="$host_os runtime_loader"
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 shlibpath_var=LIBRARY_PATH
9914 shlibpath_overrides_runpath=yes
9915 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9916 hardcode_into_libs=yes
9917 ;;
9918
9919 hpux9* | hpux10* | hpux11*)
9920 # Give a soname corresponding to the major version so that dld.sl refuses to
9921 # link against other versions.
9922 version_type=sunos
9923 need_lib_prefix=no
9924 need_version=no
9925 case $host_cpu in
9926 ia64*)
9927 shrext_cmds='.so'
9928 hardcode_into_libs=yes
9929 dynamic_linker="$host_os dld.so"
9930 shlibpath_var=LD_LIBRARY_PATH
9931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933 soname_spec='${libname}${release}${shared_ext}$major'
9934 if test "X$HPUX_IA64_MODE" = X32; then
9935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9936 else
9937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9938 fi
9939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9940 ;;
9941 hppa*64*)
9942 shrext_cmds='.sl'
9943 hardcode_into_libs=yes
9944 dynamic_linker="$host_os dld.sl"
9945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 soname_spec='${libname}${release}${shared_ext}$major'
9949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9951 ;;
9952 *)
9953 shrext_cmds='.sl'
9954 dynamic_linker="$host_os dld.sl"
9955 shlibpath_var=SHLIB_PATH
9956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 ;;
9960 esac
9961 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9962 postinstall_cmds='chmod 555 $lib'
9963 # or fails outright, so override atomically:
9964 install_override_mode=555
9965 ;;
9966
9967 interix[3-9]*)
9968 version_type=linux # correct to gnu/linux during the next big refactor
9969 need_lib_prefix=no
9970 need_version=no
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9972 soname_spec='${libname}${release}${shared_ext}$major'
9973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9974 shlibpath_var=LD_LIBRARY_PATH
9975 shlibpath_overrides_runpath=no
9976 hardcode_into_libs=yes
9977 ;;
9978
9979 irix5* | irix6* | nonstopux*)
9980 case $host_os in
9981 nonstopux*) version_type=nonstopux ;;
9982 *)
9983 if test "$lt_cv_prog_gnu_ld" = yes; then
9984 version_type=linux # correct to gnu/linux during the next big refactor
9985 else
9986 version_type=irix
9987 fi ;;
9988 esac
9989 need_lib_prefix=no
9990 need_version=no
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9993 case $host_os in
9994 irix5* | nonstopux*)
9995 libsuff= shlibsuff=
9996 ;;
9997 *)
9998 case $LD in # libtool.m4 will add one of these switches to LD
9999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10000 libsuff= shlibsuff= libmagic=32-bit;;
10001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10002 libsuff=32 shlibsuff=N32 libmagic=N32;;
10003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10005 *) libsuff= shlibsuff= libmagic=never-match;;
10006 esac
10007 ;;
10008 esac
10009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10010 shlibpath_overrides_runpath=no
10011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10013 hardcode_into_libs=yes
10014 ;;
10015
10016 # No shared lib support for Linux oldld, aout, or coff.
10017 linux*oldld* | linux*aout* | linux*coff*)
10018 dynamic_linker=no
10019 ;;
10020
10021 # This must be glibc/ELF.
10022 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10023 version_type=linux # correct to gnu/linux during the next big refactor
10024 need_lib_prefix=no
10025 need_version=no
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 shlibpath_overrides_runpath=no
10031
10032 # Some binutils ld are patched to set DT_RUNPATH
10033 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10034 $as_echo_n "(cached) " >&6
10035 else
10036 lt_cv_shlibpath_overrides_runpath=no
10037 save_LDFLAGS=$LDFLAGS
10038 save_libdir=$libdir
10039 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10040 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10043
10044 int
10045 main ()
10046 {
10047
10048 ;
10049 return 0;
10050 }
10051 _ACEOF
10052 if ac_fn_c_try_link "$LINENO"; then :
10053 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10054 lt_cv_shlibpath_overrides_runpath=yes
10055 fi
10056 fi
10057 rm -f core conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 LDFLAGS=$save_LDFLAGS
10060 libdir=$save_libdir
10061
10062 fi
10063
10064 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10065
10066 # This implies no fast_install, which is unacceptable.
10067 # Some rework will be needed to allow for fast_install
10068 # before this can be enabled.
10069 hardcode_into_libs=yes
10070
10071 # Append ld.so.conf contents to the search path
10072 if test -f /etc/ld.so.conf; then
10073 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' ' '`
10074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10075 fi
10076
10077 # We used to test for /lib/ld.so.1 and disable shared libraries on
10078 # powerpc, because MkLinux only supported shared libraries with the
10079 # GNU dynamic linker. Since this was broken with cross compilers,
10080 # most powerpc-linux boxes support dynamic linking these days and
10081 # people can always --disable-shared, the test was removed, and we
10082 # assume the GNU/Linux dynamic linker is in use.
10083 dynamic_linker='GNU/Linux ld.so'
10084 ;;
10085
10086 netbsdelf*-gnu)
10087 version_type=linux
10088 need_lib_prefix=no
10089 need_version=no
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 shlibpath_overrides_runpath=no
10094 hardcode_into_libs=yes
10095 dynamic_linker='NetBSD ld.elf_so'
10096 ;;
10097
10098 netbsd*)
10099 version_type=sunos
10100 need_lib_prefix=no
10101 need_version=no
10102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10105 dynamic_linker='NetBSD (a.out) ld.so'
10106 else
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 dynamic_linker='NetBSD ld.elf_so'
10110 fi
10111 shlibpath_var=LD_LIBRARY_PATH
10112 shlibpath_overrides_runpath=yes
10113 hardcode_into_libs=yes
10114 ;;
10115
10116 newsos6)
10117 version_type=linux # correct to gnu/linux during the next big refactor
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath=yes
10121 ;;
10122
10123 *nto* | *qnx*)
10124 version_type=qnx
10125 need_lib_prefix=no
10126 need_version=no
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 shlibpath_overrides_runpath=no
10131 hardcode_into_libs=yes
10132 dynamic_linker='ldqnx.so'
10133 ;;
10134
10135 openbsd*)
10136 version_type=sunos
10137 sys_lib_dlsearch_path_spec="/usr/lib"
10138 need_lib_prefix=no
10139 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10140 case $host_os in
10141 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10142 *) need_version=no ;;
10143 esac
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10148 case $host_os in
10149 openbsd2.[89] | openbsd2.[89].*)
10150 shlibpath_overrides_runpath=no
10151 ;;
10152 *)
10153 shlibpath_overrides_runpath=yes
10154 ;;
10155 esac
10156 else
10157 shlibpath_overrides_runpath=yes
10158 fi
10159 ;;
10160
10161 os2*)
10162 libname_spec='$name'
10163 shrext_cmds=".dll"
10164 need_lib_prefix=no
10165 library_names_spec='$libname${shared_ext} $libname.a'
10166 dynamic_linker='OS/2 ld.exe'
10167 shlibpath_var=LIBPATH
10168 ;;
10169
10170 osf3* | osf4* | osf5*)
10171 version_type=osf
10172 need_lib_prefix=no
10173 need_version=no
10174 soname_spec='${libname}${release}${shared_ext}$major'
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10178 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10179 ;;
10180
10181 rdos*)
10182 dynamic_linker=no
10183 ;;
10184
10185 solaris*)
10186 version_type=linux # correct to gnu/linux during the next big refactor
10187 need_lib_prefix=no
10188 need_version=no
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 shlibpath_var=LD_LIBRARY_PATH
10192 shlibpath_overrides_runpath=yes
10193 hardcode_into_libs=yes
10194 # ldd complains unless libraries are executable
10195 postinstall_cmds='chmod +x $lib'
10196 ;;
10197
10198 sunos4*)
10199 version_type=sunos
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10201 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 shlibpath_overrides_runpath=yes
10204 if test "$with_gnu_ld" = yes; then
10205 need_lib_prefix=no
10206 fi
10207 need_version=yes
10208 ;;
10209
10210 sysv4 | sysv4.3*)
10211 version_type=linux # correct to gnu/linux during the next big refactor
10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213 soname_spec='${libname}${release}${shared_ext}$major'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 case $host_vendor in
10216 sni)
10217 shlibpath_overrides_runpath=no
10218 need_lib_prefix=no
10219 runpath_var=LD_RUN_PATH
10220 ;;
10221 siemens)
10222 need_lib_prefix=no
10223 ;;
10224 motorola)
10225 need_lib_prefix=no
10226 need_version=no
10227 shlibpath_overrides_runpath=no
10228 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10229 ;;
10230 esac
10231 ;;
10232
10233 sysv4*MP*)
10234 if test -d /usr/nec ;then
10235 version_type=linux # correct to gnu/linux during the next big refactor
10236 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10237 soname_spec='$libname${shared_ext}.$major'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 fi
10240 ;;
10241
10242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10243 version_type=freebsd-elf
10244 need_lib_prefix=no
10245 need_version=no
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=yes
10250 hardcode_into_libs=yes
10251 if test "$with_gnu_ld" = yes; then
10252 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10253 else
10254 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10255 case $host_os in
10256 sco3.2v5*)
10257 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10258 ;;
10259 esac
10260 fi
10261 sys_lib_dlsearch_path_spec='/usr/lib'
10262 ;;
10263
10264 tpf*)
10265 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10266 version_type=linux # correct to gnu/linux during the next big refactor
10267 need_lib_prefix=no
10268 need_version=no
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270 shlibpath_var=LD_LIBRARY_PATH
10271 shlibpath_overrides_runpath=no
10272 hardcode_into_libs=yes
10273 ;;
10274
10275 uts4*)
10276 version_type=linux # correct to gnu/linux during the next big refactor
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 ;;
10281
10282 *)
10283 dynamic_linker=no
10284 ;;
10285 esac
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10287 $as_echo "$dynamic_linker" >&6; }
10288 test "$dynamic_linker" = no && can_build_shared=no
10289
10290 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10291 if test "$GCC" = yes; then
10292 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10293 fi
10294
10295 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10296 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10297 fi
10298 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10299 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10300 fi
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10394 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10395 hardcode_action=
10396 if test -n "$hardcode_libdir_flag_spec" ||
10397 test -n "$runpath_var" ||
10398 test "X$hardcode_automatic" = "Xyes" ; then
10399
10400 # We can hardcode non-existent directories.
10401 if test "$hardcode_direct" != no &&
10402 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10403 # have to relink, otherwise we might link with an installed library
10404 # when we should be linking with a yet-to-be-installed one
10405 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10406 test "$hardcode_minus_L" != no; then
10407 # Linking always hardcodes the temporary library directory.
10408 hardcode_action=relink
10409 else
10410 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10411 hardcode_action=immediate
10412 fi
10413 else
10414 # We cannot hardcode anything, or else we can only hardcode existing
10415 # directories.
10416 hardcode_action=unsupported
10417 fi
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10419 $as_echo "$hardcode_action" >&6; }
10420
10421 if test "$hardcode_action" = relink ||
10422 test "$inherit_rpath" = yes; then
10423 # Fast installation is not supported
10424 enable_fast_install=no
10425 elif test "$shlibpath_overrides_runpath" = yes ||
10426 test "$enable_shared" = no; then
10427 # Fast installation is not necessary
10428 enable_fast_install=needless
10429 fi
10430
10431
10432
10433
10434
10435
10436 if test "x$enable_dlopen" != xyes; then
10437 enable_dlopen=unknown
10438 enable_dlopen_self=unknown
10439 enable_dlopen_self_static=unknown
10440 else
10441 lt_cv_dlopen=no
10442 lt_cv_dlopen_libs=
10443
10444 case $host_os in
10445 beos*)
10446 lt_cv_dlopen="load_add_on"
10447 lt_cv_dlopen_libs=
10448 lt_cv_dlopen_self=yes
10449 ;;
10450
10451 mingw* | pw32* | cegcc*)
10452 lt_cv_dlopen="LoadLibrary"
10453 lt_cv_dlopen_libs=
10454 ;;
10455
10456 cygwin*)
10457 lt_cv_dlopen="dlopen"
10458 lt_cv_dlopen_libs=
10459 ;;
10460
10461 darwin*)
10462 # if libdl is installed we need to link against it
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10464 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10465 if ${ac_cv_lib_dl_dlopen+:} false; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 ac_check_lib_save_LIBS=$LIBS
10469 LIBS="-ldl $LIBS"
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10472
10473 /* Override any GCC internal prototype to avoid an error.
10474 Use char because int might match the return type of a GCC
10475 builtin and then its argument prototype would still apply. */
10476 #ifdef __cplusplus
10477 extern "C"
10478 #endif
10479 char dlopen ();
10480 int
10481 main ()
10482 {
10483 return dlopen ();
10484 ;
10485 return 0;
10486 }
10487 _ACEOF
10488 if ac_fn_c_try_link "$LINENO"; then :
10489 ac_cv_lib_dl_dlopen=yes
10490 else
10491 ac_cv_lib_dl_dlopen=no
10492 fi
10493 rm -f core conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10496 fi
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10498 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10499 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10500 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10501 else
10502
10503 lt_cv_dlopen="dyld"
10504 lt_cv_dlopen_libs=
10505 lt_cv_dlopen_self=yes
10506
10507 fi
10508
10509 ;;
10510
10511 *)
10512 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10513 if test "x$ac_cv_func_shl_load" = xyes; then :
10514 lt_cv_dlopen="shl_load"
10515 else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10517 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10518 if ${ac_cv_lib_dld_shl_load+:} false; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 ac_check_lib_save_LIBS=$LIBS
10522 LIBS="-ldld $LIBS"
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525
10526 /* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
10528 builtin and then its argument prototype would still apply. */
10529 #ifdef __cplusplus
10530 extern "C"
10531 #endif
10532 char shl_load ();
10533 int
10534 main ()
10535 {
10536 return shl_load ();
10537 ;
10538 return 0;
10539 }
10540 _ACEOF
10541 if ac_fn_c_try_link "$LINENO"; then :
10542 ac_cv_lib_dld_shl_load=yes
10543 else
10544 ac_cv_lib_dld_shl_load=no
10545 fi
10546 rm -f core conftest.err conftest.$ac_objext \
10547 conftest$ac_exeext conftest.$ac_ext
10548 LIBS=$ac_check_lib_save_LIBS
10549 fi
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10551 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10552 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10553 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10554 else
10555 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10556 if test "x$ac_cv_func_dlopen" = xyes; then :
10557 lt_cv_dlopen="dlopen"
10558 else
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10560 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10561 if ${ac_cv_lib_dl_dlopen+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 ac_check_lib_save_LIBS=$LIBS
10565 LIBS="-ldl $LIBS"
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10568
10569 /* Override any GCC internal prototype to avoid an error.
10570 Use char because int might match the return type of a GCC
10571 builtin and then its argument prototype would still apply. */
10572 #ifdef __cplusplus
10573 extern "C"
10574 #endif
10575 char dlopen ();
10576 int
10577 main ()
10578 {
10579 return dlopen ();
10580 ;
10581 return 0;
10582 }
10583 _ACEOF
10584 if ac_fn_c_try_link "$LINENO"; then :
10585 ac_cv_lib_dl_dlopen=yes
10586 else
10587 ac_cv_lib_dl_dlopen=no
10588 fi
10589 rm -f core conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10591 LIBS=$ac_check_lib_save_LIBS
10592 fi
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10594 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10595 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10597 else
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10599 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10600 if ${ac_cv_lib_svld_dlopen+:} false; then :
10601 $as_echo_n "(cached) " >&6
10602 else
10603 ac_check_lib_save_LIBS=$LIBS
10604 LIBS="-lsvld $LIBS"
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10607
10608 /* Override any GCC internal prototype to avoid an error.
10609 Use char because int might match the return type of a GCC
10610 builtin and then its argument prototype would still apply. */
10611 #ifdef __cplusplus
10612 extern "C"
10613 #endif
10614 char dlopen ();
10615 int
10616 main ()
10617 {
10618 return dlopen ();
10619 ;
10620 return 0;
10621 }
10622 _ACEOF
10623 if ac_fn_c_try_link "$LINENO"; then :
10624 ac_cv_lib_svld_dlopen=yes
10625 else
10626 ac_cv_lib_svld_dlopen=no
10627 fi
10628 rm -f core conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10630 LIBS=$ac_check_lib_save_LIBS
10631 fi
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10633 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10634 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10636 else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10638 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10639 if ${ac_cv_lib_dld_dld_link+:} false; then :
10640 $as_echo_n "(cached) " >&6
10641 else
10642 ac_check_lib_save_LIBS=$LIBS
10643 LIBS="-ldld $LIBS"
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646
10647 /* Override any GCC internal prototype to avoid an error.
10648 Use char because int might match the return type of a GCC
10649 builtin and then its argument prototype would still apply. */
10650 #ifdef __cplusplus
10651 extern "C"
10652 #endif
10653 char dld_link ();
10654 int
10655 main ()
10656 {
10657 return dld_link ();
10658 ;
10659 return 0;
10660 }
10661 _ACEOF
10662 if ac_fn_c_try_link "$LINENO"; then :
10663 ac_cv_lib_dld_dld_link=yes
10664 else
10665 ac_cv_lib_dld_dld_link=no
10666 fi
10667 rm -f core conftest.err conftest.$ac_objext \
10668 conftest$ac_exeext conftest.$ac_ext
10669 LIBS=$ac_check_lib_save_LIBS
10670 fi
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10672 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10673 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10674 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10675 fi
10676
10677
10678 fi
10679
10680
10681 fi
10682
10683
10684 fi
10685
10686
10687 fi
10688
10689
10690 fi
10691
10692 ;;
10693 esac
10694
10695 if test "x$lt_cv_dlopen" != xno; then
10696 enable_dlopen=yes
10697 else
10698 enable_dlopen=no
10699 fi
10700
10701 case $lt_cv_dlopen in
10702 dlopen)
10703 save_CPPFLAGS="$CPPFLAGS"
10704 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10705
10706 save_LDFLAGS="$LDFLAGS"
10707 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10708
10709 save_LIBS="$LIBS"
10710 LIBS="$lt_cv_dlopen_libs $LIBS"
10711
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10713 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10714 if ${lt_cv_dlopen_self+:} false; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 if test "$cross_compiling" = yes; then :
10718 lt_cv_dlopen_self=cross
10719 else
10720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10721 lt_status=$lt_dlunknown
10722 cat > conftest.$ac_ext <<_LT_EOF
10723 #line $LINENO "configure"
10724 #include "confdefs.h"
10725
10726 #if HAVE_DLFCN_H
10727 #include <dlfcn.h>
10728 #endif
10729
10730 #include <stdio.h>
10731
10732 #ifdef RTLD_GLOBAL
10733 # define LT_DLGLOBAL RTLD_GLOBAL
10734 #else
10735 # ifdef DL_GLOBAL
10736 # define LT_DLGLOBAL DL_GLOBAL
10737 # else
10738 # define LT_DLGLOBAL 0
10739 # endif
10740 #endif
10741
10742 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10743 find out it does not work in some platform. */
10744 #ifndef LT_DLLAZY_OR_NOW
10745 # ifdef RTLD_LAZY
10746 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10747 # else
10748 # ifdef DL_LAZY
10749 # define LT_DLLAZY_OR_NOW DL_LAZY
10750 # else
10751 # ifdef RTLD_NOW
10752 # define LT_DLLAZY_OR_NOW RTLD_NOW
10753 # else
10754 # ifdef DL_NOW
10755 # define LT_DLLAZY_OR_NOW DL_NOW
10756 # else
10757 # define LT_DLLAZY_OR_NOW 0
10758 # endif
10759 # endif
10760 # endif
10761 # endif
10762 #endif
10763
10764 /* When -fvisbility=hidden is used, assume the code has been annotated
10765 correspondingly for the symbols needed. */
10766 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10767 int fnord () __attribute__((visibility("default")));
10768 #endif
10769
10770 int fnord () { return 42; }
10771 int main ()
10772 {
10773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10774 int status = $lt_dlunknown;
10775
10776 if (self)
10777 {
10778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10779 else
10780 {
10781 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10782 else puts (dlerror ());
10783 }
10784 /* dlclose (self); */
10785 }
10786 else
10787 puts (dlerror ());
10788
10789 return status;
10790 }
10791 _LT_EOF
10792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10793 (eval $ac_link) 2>&5
10794 ac_status=$?
10795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10796 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10797 (./conftest; exit; ) >&5 2>/dev/null
10798 lt_status=$?
10799 case x$lt_status in
10800 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10801 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10802 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10803 esac
10804 else :
10805 # compilation failed
10806 lt_cv_dlopen_self=no
10807 fi
10808 fi
10809 rm -fr conftest*
10810
10811
10812 fi
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10814 $as_echo "$lt_cv_dlopen_self" >&6; }
10815
10816 if test "x$lt_cv_dlopen_self" = xyes; then
10817 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10819 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10820 if ${lt_cv_dlopen_self_static+:} false; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 if test "$cross_compiling" = yes; then :
10824 lt_cv_dlopen_self_static=cross
10825 else
10826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10827 lt_status=$lt_dlunknown
10828 cat > conftest.$ac_ext <<_LT_EOF
10829 #line $LINENO "configure"
10830 #include "confdefs.h"
10831
10832 #if HAVE_DLFCN_H
10833 #include <dlfcn.h>
10834 #endif
10835
10836 #include <stdio.h>
10837
10838 #ifdef RTLD_GLOBAL
10839 # define LT_DLGLOBAL RTLD_GLOBAL
10840 #else
10841 # ifdef DL_GLOBAL
10842 # define LT_DLGLOBAL DL_GLOBAL
10843 # else
10844 # define LT_DLGLOBAL 0
10845 # endif
10846 #endif
10847
10848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10849 find out it does not work in some platform. */
10850 #ifndef LT_DLLAZY_OR_NOW
10851 # ifdef RTLD_LAZY
10852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10853 # else
10854 # ifdef DL_LAZY
10855 # define LT_DLLAZY_OR_NOW DL_LAZY
10856 # else
10857 # ifdef RTLD_NOW
10858 # define LT_DLLAZY_OR_NOW RTLD_NOW
10859 # else
10860 # ifdef DL_NOW
10861 # define LT_DLLAZY_OR_NOW DL_NOW
10862 # else
10863 # define LT_DLLAZY_OR_NOW 0
10864 # endif
10865 # endif
10866 # endif
10867 # endif
10868 #endif
10869
10870 /* When -fvisbility=hidden is used, assume the code has been annotated
10871 correspondingly for the symbols needed. */
10872 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10873 int fnord () __attribute__((visibility("default")));
10874 #endif
10875
10876 int fnord () { return 42; }
10877 int main ()
10878 {
10879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10880 int status = $lt_dlunknown;
10881
10882 if (self)
10883 {
10884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10885 else
10886 {
10887 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10888 else puts (dlerror ());
10889 }
10890 /* dlclose (self); */
10891 }
10892 else
10893 puts (dlerror ());
10894
10895 return status;
10896 }
10897 _LT_EOF
10898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10899 (eval $ac_link) 2>&5
10900 ac_status=$?
10901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10902 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10903 (./conftest; exit; ) >&5 2>/dev/null
10904 lt_status=$?
10905 case x$lt_status in
10906 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10907 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10908 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10909 esac
10910 else :
10911 # compilation failed
10912 lt_cv_dlopen_self_static=no
10913 fi
10914 fi
10915 rm -fr conftest*
10916
10917
10918 fi
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10920 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10921 fi
10922
10923 CPPFLAGS="$save_CPPFLAGS"
10924 LDFLAGS="$save_LDFLAGS"
10925 LIBS="$save_LIBS"
10926 ;;
10927 esac
10928
10929 case $lt_cv_dlopen_self in
10930 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10931 *) enable_dlopen_self=unknown ;;
10932 esac
10933
10934 case $lt_cv_dlopen_self_static in
10935 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10936 *) enable_dlopen_self_static=unknown ;;
10937 esac
10938 fi
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956 striplib=
10957 old_striplib=
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10959 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10960 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10961 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10962 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10964 $as_echo "yes" >&6; }
10965 else
10966 # FIXME - insert some real tests, host_os isn't really good enough
10967 case $host_os in
10968 darwin*)
10969 if test -n "$STRIP" ; then
10970 striplib="$STRIP -x"
10971 old_striplib="$STRIP -S"
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10973 $as_echo "yes" >&6; }
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10977 fi
10978 ;;
10979 *)
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10982 ;;
10983 esac
10984 fi
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997 # Report which library types will actually be built
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10999 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11001 $as_echo "$can_build_shared" >&6; }
11002
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11004 $as_echo_n "checking whether to build shared libraries... " >&6; }
11005 test "$can_build_shared" = "no" && enable_shared=no
11006
11007 # On AIX, shared libraries and static libraries use the same namespace, and
11008 # are all built from PIC.
11009 case $host_os in
11010 aix3*)
11011 test "$enable_shared" = yes && enable_static=no
11012 if test -n "$RANLIB"; then
11013 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11014 postinstall_cmds='$RANLIB $lib'
11015 fi
11016 ;;
11017
11018 aix[4-9]*)
11019 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11020 test "$enable_shared" = yes && enable_static=no
11021 fi
11022 ;;
11023 esac
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11025 $as_echo "$enable_shared" >&6; }
11026
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11028 $as_echo_n "checking whether to build static libraries... " >&6; }
11029 # Make sure either enable_shared or enable_static is yes.
11030 test "$enable_shared" = yes || enable_static=yes
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11032 $as_echo "$enable_static" >&6; }
11033
11034
11035
11036
11037 fi
11038 ac_ext=c
11039 ac_cpp='$CPP $CPPFLAGS'
11040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11043
11044 CC="$lt_save_CC"
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060 ac_config_commands="$ac_config_commands libtool"
11061
11062
11063
11064
11065 # Only expand once:
11066
11067
11068 am__api_version='1.11'
11069
11070 # Find a good install program. We prefer a C program (faster),
11071 # so one script is as good as another. But avoid the broken or
11072 # incompatible versions:
11073 # SysV /etc/install, /usr/sbin/install
11074 # SunOS /usr/etc/install
11075 # IRIX /sbin/install
11076 # AIX /bin/install
11077 # AmigaOS /C/install, which installs bootblocks on floppy discs
11078 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11079 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11080 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11081 # OS/2's system install, which has a completely different semantic
11082 # ./install, which can be erroneously created by make from ./install.sh.
11083 # Reject install programs that cannot install multiple files.
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11085 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11086 if test -z "$INSTALL"; then
11087 if ${ac_cv_path_install+:} false; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091 for as_dir in $PATH
11092 do
11093 IFS=$as_save_IFS
11094 test -z "$as_dir" && as_dir=.
11095 # Account for people who put trailing slashes in PATH elements.
11096 case $as_dir/ in #((
11097 ./ | .// | /[cC]/* | \
11098 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11099 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11100 /usr/ucb/* ) ;;
11101 *)
11102 # OSF1 and SCO ODT 3.0 have their own names for install.
11103 # Don't use installbsd from OSF since it installs stuff as root
11104 # by default.
11105 for ac_prog in ginstall scoinst install; do
11106 for ac_exec_ext in '' $ac_executable_extensions; do
11107 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11108 if test $ac_prog = install &&
11109 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11110 # AIX install. It has an incompatible calling convention.
11111 :
11112 elif test $ac_prog = install &&
11113 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11114 # program-specific install script used by HP pwplus--don't use.
11115 :
11116 else
11117 rm -rf conftest.one conftest.two conftest.dir
11118 echo one > conftest.one
11119 echo two > conftest.two
11120 mkdir conftest.dir
11121 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11122 test -s conftest.one && test -s conftest.two &&
11123 test -s conftest.dir/conftest.one &&
11124 test -s conftest.dir/conftest.two
11125 then
11126 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11127 break 3
11128 fi
11129 fi
11130 fi
11131 done
11132 done
11133 ;;
11134 esac
11135
11136 done
11137 IFS=$as_save_IFS
11138
11139 rm -rf conftest.one conftest.two conftest.dir
11140
11141 fi
11142 if test "${ac_cv_path_install+set}" = set; then
11143 INSTALL=$ac_cv_path_install
11144 else
11145 # As a last resort, use the slow shell script. Don't cache a
11146 # value for INSTALL within a source directory, because that will
11147 # break other packages using the cache if that directory is
11148 # removed, or if the value is a relative name.
11149 INSTALL=$ac_install_sh
11150 fi
11151 fi
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11153 $as_echo "$INSTALL" >&6; }
11154
11155 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11156 # It thinks the first close brace ends the variable substitution.
11157 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11158
11159 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11160
11161 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11162
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11164 $as_echo_n "checking whether build environment is sane... " >&6; }
11165 # Just in case
11166 sleep 1
11167 echo timestamp > conftest.file
11168 # Reject unsafe characters in $srcdir or the absolute working directory
11169 # name. Accept space and tab only in the latter.
11170 am_lf='
11171 '
11172 case `pwd` in
11173 *[\\\"\#\$\&\'\`$am_lf]*)
11174 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11175 esac
11176 case $srcdir in
11177 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
11178 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
11179 esac
11180
11181 # Do `set' in a subshell so we don't clobber the current shell's
11182 # arguments. Must try -L first in case configure is actually a
11183 # symlink; some systems play weird games with the mod time of symlinks
11184 # (eg FreeBSD returns the mod time of the symlink's containing
11185 # directory).
11186 if (
11187 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11188 if test "$*" = "X"; then
11189 # -L didn't work.
11190 set X `ls -t "$srcdir/configure" conftest.file`
11191 fi
11192 rm -f conftest.file
11193 if test "$*" != "X $srcdir/configure conftest.file" \
11194 && test "$*" != "X conftest.file $srcdir/configure"; then
11195
11196 # If neither matched, then we have a broken ls. This can happen
11197 # if, for instance, CONFIG_SHELL is bash and it inherits a
11198 # broken ls alias from the environment. This has actually
11199 # happened. Such a system could not be considered "sane".
11200 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
11201 alias in your environment" "$LINENO" 5
11202 fi
11203
11204 test "$2" = conftest.file
11205 )
11206 then
11207 # Ok.
11208 :
11209 else
11210 as_fn_error $? "newly created file is older than distributed files!
11211 Check your system clock" "$LINENO" 5
11212 fi
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11214 $as_echo "yes" >&6; }
11215 test "$program_prefix" != NONE &&
11216 program_transform_name="s&^&$program_prefix&;$program_transform_name"
11217 # Use a double $ so make ignores it.
11218 test "$program_suffix" != NONE &&
11219 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11220 # Double any \ or $.
11221 # By default was `s,x,x', remove it if useless.
11222 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11223 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11224
11225 # expand $ac_aux_dir to an absolute path
11226 am_aux_dir=`cd $ac_aux_dir && pwd`
11227
11228 if test x"${MISSING+set}" != xset; then
11229 case $am_aux_dir in
11230 *\ * | *\ *)
11231 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11232 *)
11233 MISSING="\${SHELL} $am_aux_dir/missing" ;;
11234 esac
11235 fi
11236 # Use eval to expand $SHELL
11237 if eval "$MISSING --run true"; then
11238 am_missing_run="$MISSING --run "
11239 else
11240 am_missing_run=
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
11242 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11243 fi
11244
11245 if test x"${install_sh}" != xset; then
11246 case $am_aux_dir in
11247 *\ * | *\ *)
11248 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11249 *)
11250 install_sh="\${SHELL} $am_aux_dir/install-sh"
11251 esac
11252 fi
11253
11254 # Installed binaries are usually stripped using `strip' when the user
11255 # run `make install-strip'. However `strip' might not be the right
11256 # tool to use in cross-compilation environments, therefore Automake
11257 # will honor the `STRIP' environment variable to overrule this program.
11258 if test "$cross_compiling" != no; then
11259 if test -n "$ac_tool_prefix"; then
11260 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11261 set dummy ${ac_tool_prefix}strip; ac_word=$2
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if ${ac_cv_prog_STRIP+:} false; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11267 if test -n "$STRIP"; then
11268 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11269 else
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11272 do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11277 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 break 2
11280 fi
11281 done
11282 done
11283 IFS=$as_save_IFS
11284
11285 fi
11286 fi
11287 STRIP=$ac_cv_prog_STRIP
11288 if test -n "$STRIP"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11290 $as_echo "$STRIP" >&6; }
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11294 fi
11295
11296
11297 fi
11298 if test -z "$ac_cv_prog_STRIP"; then
11299 ac_ct_STRIP=$STRIP
11300 # Extract the first word of "strip", so it can be a program name with args.
11301 set dummy strip; ac_word=$2
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303 $as_echo_n "checking for $ac_word... " >&6; }
11304 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11305 $as_echo_n "(cached) " >&6
11306 else
11307 if test -n "$ac_ct_STRIP"; then
11308 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11309 else
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11312 do
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11317 ac_cv_prog_ac_ct_STRIP="strip"
11318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 break 2
11320 fi
11321 done
11322 done
11323 IFS=$as_save_IFS
11324
11325 fi
11326 fi
11327 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11328 if test -n "$ac_ct_STRIP"; then
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11330 $as_echo "$ac_ct_STRIP" >&6; }
11331 else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11334 fi
11335
11336 if test "x$ac_ct_STRIP" = x; then
11337 STRIP=":"
11338 else
11339 case $cross_compiling:$ac_tool_warned in
11340 yes:)
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11343 ac_tool_warned=yes ;;
11344 esac
11345 STRIP=$ac_ct_STRIP
11346 fi
11347 else
11348 STRIP="$ac_cv_prog_STRIP"
11349 fi
11350
11351 fi
11352 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11353
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11355 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11356 if test -z "$MKDIR_P"; then
11357 if ${ac_cv_path_mkdir+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11362 do
11363 IFS=$as_save_IFS
11364 test -z "$as_dir" && as_dir=.
11365 for ac_prog in mkdir gmkdir; do
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11368 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11369 'mkdir (GNU coreutils) '* | \
11370 'mkdir (coreutils) '* | \
11371 'mkdir (fileutils) '4.1*)
11372 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11373 break 3;;
11374 esac
11375 done
11376 done
11377 done
11378 IFS=$as_save_IFS
11379
11380 fi
11381
11382 test -d ./--version && rmdir ./--version
11383 if test "${ac_cv_path_mkdir+set}" = set; then
11384 MKDIR_P="$ac_cv_path_mkdir -p"
11385 else
11386 # As a last resort, use the slow shell script. Don't cache a
11387 # value for MKDIR_P within a source directory, because that will
11388 # break other packages using the cache if that directory is
11389 # removed, or if the value is a relative name.
11390 MKDIR_P="$ac_install_sh -d"
11391 fi
11392 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11394 $as_echo "$MKDIR_P" >&6; }
11395
11396 mkdir_p="$MKDIR_P"
11397 case $mkdir_p in
11398 [\\/$]* | ?:[\\/]*) ;;
11399 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11400 esac
11401
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11403 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11404 set x ${MAKE-make}
11405 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11406 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11407 $as_echo_n "(cached) " >&6
11408 else
11409 cat >conftest.make <<\_ACEOF
11410 SHELL = /bin/sh
11411 all:
11412 @echo '@@@%%%=$(MAKE)=@@@%%%'
11413 _ACEOF
11414 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11415 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11416 *@@@%%%=?*=@@@%%%*)
11417 eval ac_cv_prog_make_${ac_make}_set=yes;;
11418 *)
11419 eval ac_cv_prog_make_${ac_make}_set=no;;
11420 esac
11421 rm -f conftest.make
11422 fi
11423 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11425 $as_echo "yes" >&6; }
11426 SET_MAKE=
11427 else
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 $as_echo "no" >&6; }
11430 SET_MAKE="MAKE=${MAKE-make}"
11431 fi
11432
11433 rm -rf .tst 2>/dev/null
11434 mkdir .tst 2>/dev/null
11435 if test -d .tst; then
11436 am__leading_dot=.
11437 else
11438 am__leading_dot=_
11439 fi
11440 rmdir .tst 2>/dev/null
11441
11442 DEPDIR="${am__leading_dot}deps"
11443
11444 ac_config_commands="$ac_config_commands depfiles"
11445
11446
11447 am_make=${MAKE-make}
11448 cat > confinc << 'END'
11449 am__doit:
11450 @echo this is the am__doit target
11451 .PHONY: am__doit
11452 END
11453 # If we don't find an include directive, just comment out the code.
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11455 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11456 am__include="#"
11457 am__quote=
11458 _am_result=none
11459 # First try GNU make style include.
11460 echo "include confinc" > confmf
11461 # Ignore all kinds of additional output from `make'.
11462 case `$am_make -s -f confmf 2> /dev/null` in #(
11463 *the\ am__doit\ target*)
11464 am__include=include
11465 am__quote=
11466 _am_result=GNU
11467 ;;
11468 esac
11469 # Now try BSD make style include.
11470 if test "$am__include" = "#"; then
11471 echo '.include "confinc"' > confmf
11472 case `$am_make -s -f confmf 2> /dev/null` in #(
11473 *the\ am__doit\ target*)
11474 am__include=.include
11475 am__quote="\""
11476 _am_result=BSD
11477 ;;
11478 esac
11479 fi
11480
11481
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11483 $as_echo "$_am_result" >&6; }
11484 rm -f confinc confmf
11485
11486 # Check whether --enable-dependency-tracking was given.
11487 if test "${enable_dependency_tracking+set}" = set; then :
11488 enableval=$enable_dependency_tracking;
11489 fi
11490
11491 if test "x$enable_dependency_tracking" != xno; then
11492 am_depcomp="$ac_aux_dir/depcomp"
11493 AMDEPBACKSLASH='\'
11494 am__nodep='_no'
11495 fi
11496 if test "x$enable_dependency_tracking" != xno; then
11497 AMDEP_TRUE=
11498 AMDEP_FALSE='#'
11499 else
11500 AMDEP_TRUE='#'
11501 AMDEP_FALSE=
11502 fi
11503
11504
11505 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11506 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11507 # is not polluted with repeated "-I."
11508 am__isrc=' -I$(srcdir)'
11509 # test to see if srcdir already configured
11510 if test -f $srcdir/config.status; then
11511 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11512 fi
11513 fi
11514
11515 # test whether we have cygpath
11516 if test -z "$CYGPATH_W"; then
11517 if (cygpath --version) >/dev/null 2>/dev/null; then
11518 CYGPATH_W='cygpath -w'
11519 else
11520 CYGPATH_W=echo
11521 fi
11522 fi
11523
11524
11525 # Define the identity of the package.
11526 PACKAGE='miredo'
11527 VERSION='1.2.6'
11528
11529
11530 cat >>confdefs.h <<_ACEOF
11531 #define PACKAGE "$PACKAGE"
11532 _ACEOF
11533
11534
11535 cat >>confdefs.h <<_ACEOF
11536 #define VERSION "$VERSION"
11537 _ACEOF
11538
11539 # Some tools Automake needs.
11540
11541 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11542
11543
11544 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11545
11546
11547 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11548
11549
11550 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11551
11552
11553 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11554
11555 # We need awk for the "check" target. The system "awk" is bad on
11556 # some platforms.
11557 # Always define AMTAR for backward compatibility. Yes, it's still used
11558 # in the wild :-( We should find a proper way to deprecate it ...
11559 AMTAR='$${TAR-tar}'
11560
11561 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11562
11563
11564
11565
11566 depcc="$CC" am_compiler_list=
11567
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11569 $as_echo_n "checking dependency style of $depcc... " >&6; }
11570 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11574 # We make a subdir and do the tests there. Otherwise we can end up
11575 # making bogus files that we don't know about and never remove. For
11576 # instance it was reported that on HP-UX the gcc test will end up
11577 # making a dummy file named `D' -- because `-MD' means `put the output
11578 # in D'.
11579 rm -rf conftest.dir
11580 mkdir conftest.dir
11581 # Copy depcomp to subdir because otherwise we won't find it if we're
11582 # using a relative directory.
11583 cp "$am_depcomp" conftest.dir
11584 cd conftest.dir
11585 # We will build objects and dependencies in a subdirectory because
11586 # it helps to detect inapplicable dependency modes. For instance
11587 # both Tru64's cc and ICC support -MD to output dependencies as a
11588 # side effect of compilation, but ICC will put the dependencies in
11589 # the current directory while Tru64 will put them in the object
11590 # directory.
11591 mkdir sub
11592
11593 am_cv_CC_dependencies_compiler_type=none
11594 if test "$am_compiler_list" = ""; then
11595 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11596 fi
11597 am__universal=false
11598 case " $depcc " in #(
11599 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11600 esac
11601
11602 for depmode in $am_compiler_list; do
11603 # Setup a source with many dependencies, because some compilers
11604 # like to wrap large dependency lists on column 80 (with \), and
11605 # we should not choose a depcomp mode which is confused by this.
11606 #
11607 # We need to recreate these files for each test, as the compiler may
11608 # overwrite some of them when testing with obscure command lines.
11609 # This happens at least with the AIX C compiler.
11610 : > sub/conftest.c
11611 for i in 1 2 3 4 5 6; do
11612 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11613 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11614 # Solaris 8's {/usr,}/bin/sh.
11615 touch sub/conftst$i.h
11616 done
11617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11618
11619 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11620 # mode. It turns out that the SunPro C++ compiler does not properly
11621 # handle `-M -o', and we need to detect this. Also, some Intel
11622 # versions had trouble with output in subdirs
11623 am__obj=sub/conftest.${OBJEXT-o}
11624 am__minus_obj="-o $am__obj"
11625 case $depmode in
11626 gcc)
11627 # This depmode causes a compiler race in universal mode.
11628 test "$am__universal" = false || continue
11629 ;;
11630 nosideeffect)
11631 # after this tag, mechanisms are not by side-effect, so they'll
11632 # only be used when explicitly requested
11633 if test "x$enable_dependency_tracking" = xyes; then
11634 continue
11635 else
11636 break
11637 fi
11638 ;;
11639 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11640 # This compiler won't grok `-c -o', but also, the minuso test has
11641 # not run yet. These depmodes are late enough in the game, and
11642 # so weak that their functioning should not be impacted.
11643 am__obj=conftest.${OBJEXT-o}
11644 am__minus_obj=
11645 ;;
11646 none) break ;;
11647 esac
11648 if depmode=$depmode \
11649 source=sub/conftest.c object=$am__obj \
11650 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11651 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11652 >/dev/null 2>conftest.err &&
11653 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11654 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11655 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11656 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11657 # icc doesn't choke on unknown options, it will just issue warnings
11658 # or remarks (even with -Werror). So we grep stderr for any message
11659 # that says an option was ignored or not supported.
11660 # When given -MP, icc 7.0 and 7.1 complain thusly:
11661 # icc: Command line warning: ignoring option '-M'; no argument required
11662 # The diagnosis changed in icc 8.0:
11663 # icc: Command line remark: option '-MP' not supported
11664 if (grep 'ignoring option' conftest.err ||
11665 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11666 am_cv_CC_dependencies_compiler_type=$depmode
11667 break
11668 fi
11669 fi
11670 done
11671
11672 cd ..
11673 rm -rf conftest.dir
11674 else
11675 am_cv_CC_dependencies_compiler_type=none
11676 fi
11677
11678 fi
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11680 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11681 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11682
11683 if
11684 test "x$enable_dependency_tracking" != xno \
11685 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11686 am__fastdepCC_TRUE=
11687 am__fastdepCC_FALSE='#'
11688 else
11689 am__fastdepCC_TRUE='#'
11690 am__fastdepCC_FALSE=
11691 fi
11692
11693
11694
11695 # Check whether --enable-silent-rules was given.
11696 if test "${enable_silent_rules+set}" = set; then :
11697 enableval=$enable_silent_rules;
11698 fi
11699
11700 case $enable_silent_rules in
11701 yes) AM_DEFAULT_VERBOSITY=0;;
11702 no) AM_DEFAULT_VERBOSITY=1;;
11703 *) AM_DEFAULT_VERBOSITY=0;;
11704 esac
11705 am_make=${MAKE-make}
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11707 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11708 if ${am_cv_make_support_nested_variables+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 if $as_echo 'TRUE=$(BAR$(V))
11712 BAR0=false
11713 BAR1=true
11714 V=1
11715 am__doit:
11716 @$(TRUE)
11717 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11718 am_cv_make_support_nested_variables=yes
11719 else
11720 am_cv_make_support_nested_variables=no
11721 fi
11722 fi
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11724 $as_echo "$am_cv_make_support_nested_variables" >&6; }
11725 if test $am_cv_make_support_nested_variables = yes; then
11726 AM_V='$(V)'
11727 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11728 else
11729 AM_V=$AM_DEFAULT_VERBOSITY
11730 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11731 fi
11732 AM_BACKSLASH='\'
11733
11734
11735
11736 # Checks for libraries.
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking required libraries..." >&5
11738 $as_echo "$as_me: checking required libraries..." >&6;}
11739
11740 # Check whether --enable-binreloc was given.
11741 if test "${enable_binreloc+set}" = set; then :
11742 enableval=$enable_binreloc; enable_binreloc=$enableval
11743 else
11744 enable_binreloc=auto
11745 fi
11746
11747
11748 # Check whether --enable-binreloc-threads was given.
11749 if test "${enable_binreloc_threads+set}" = set; then :
11750 enableval=$enable_binreloc_threads; enable_binreloc_threads=$enableval
11751 else
11752 enable_binreloc_threads=yes
11753 fi
11754
11755
11756 BINRELOC_CFLAGS=
11757 BINRELOC_LIBS=
11758 if test "x$enable_binreloc" = "xauto"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
11760 $as_echo_n "checking for /proc/self/maps... " >&6; }
11761 if ${ac_cv_file__proc_self_maps+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763 else
11764 test "$cross_compiling" = yes &&
11765 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11766 if test -r "/proc/self/maps"; then
11767 ac_cv_file__proc_self_maps=yes
11768 else
11769 ac_cv_file__proc_self_maps=no
11770 fi
11771 fi
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
11773 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
11774 if test "x$ac_cv_file__proc_self_maps" = xyes; then :
11775
11776 fi
11777
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether everything is installed to the same prefix" >&5
11779 $as_echo_n "checking whether everything is installed to the same prefix... " >&6; }
11780 if ${br_cv_valid_prefixes+:} false; then :
11781 $as_echo_n "(cached) " >&6
11782 else
11783
11784 if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \
11785 "$datadir" = '${prefix}/share' -a "$libdir" = '${exec_prefix}/lib' -a \
11786 "$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc'
11787 then
11788 br_cv_valid_prefixes=yes
11789 else
11790 br_cv_valid_prefixes=no
11791 fi
11792
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $br_cv_valid_prefixes" >&5
11795 $as_echo "$br_cv_valid_prefixes" >&6; }
11796 fi
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binary relocation support should be enabled" >&5
11798 $as_echo_n "checking whether binary relocation support should be enabled... " >&6; }
11799 if ${br_cv_binreloc+:} false; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 if test "x$enable_binreloc" = "xyes"; then
11803 br_cv_binreloc=yes
11804 elif test "x$enable_binreloc" = "xauto"; then
11805 if test "x$br_cv_valid_prefixes" = "xyes" -a \
11806 "x$ac_cv_file__proc_self_maps" = "xyes"; then
11807 br_cv_binreloc=yes
11808 else
11809 br_cv_binreloc=no
11810 fi
11811 else
11812 br_cv_binreloc=no
11813 fi
11814 fi
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $br_cv_binreloc" >&5
11816 $as_echo "$br_cv_binreloc" >&6; }
11817
11818 if test "x$br_cv_binreloc" = "xyes"; then
11819 BINRELOC_CFLAGS="-DENABLE_BINRELOC"
11820
11821 $as_echo "#define ENABLE_BINRELOC /**/" >>confdefs.h
11822
11823 if test "x$enable_binreloc_threads" = "xyes"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_getspecific in -lpthread" >&5
11825 $as_echo_n "checking for pthread_getspecific in -lpthread... " >&6; }
11826 if ${ac_cv_lib_pthread_pthread_getspecific+:} false; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 ac_check_lib_save_LIBS=$LIBS
11830 LIBS="-lpthread $LIBS"
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833
11834 /* Override any GCC internal prototype to avoid an error.
11835 Use char because int might match the return type of a GCC
11836 builtin and then its argument prototype would still apply. */
11837 #ifdef __cplusplus
11838 extern "C"
11839 #endif
11840 char pthread_getspecific ();
11841 int
11842 main ()
11843 {
11844 return pthread_getspecific ();
11845 ;
11846 return 0;
11847 }
11848 _ACEOF
11849 if ac_fn_c_try_link "$LINENO"; then :
11850 ac_cv_lib_pthread_pthread_getspecific=yes
11851 else
11852 ac_cv_lib_pthread_pthread_getspecific=no
11853 fi
11854 rm -f core conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856 LIBS=$ac_check_lib_save_LIBS
11857 fi
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_getspecific" >&5
11859 $as_echo "$ac_cv_lib_pthread_pthread_getspecific" >&6; }
11860 if test "x$ac_cv_lib_pthread_pthread_getspecific" = xyes; then :
11861 cat >>confdefs.h <<_ACEOF
11862 #define HAVE_LIBPTHREAD 1
11863 _ACEOF
11864
11865 LIBS="-lpthread $LIBS"
11866
11867 fi
11868
11869 fi
11870
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binary relocation should use threads" >&5
11872 $as_echo_n "checking whether binary relocation should use threads... " >&6; }
11873 if ${br_cv_binreloc_threads+:} false; then :
11874 $as_echo_n "(cached) " >&6
11875 else
11876 if test "x$enable_binreloc_threads" = "xyes"; then
11877 if test "x$ac_cv_lib_pthread_pthread_getspecific" = "xyes"; then
11878 br_cv_binreloc_threads=yes
11879 else
11880 br_cv_binreloc_threads=no
11881 fi
11882 else
11883 br_cv_binreloc_threads=no
11884 fi
11885 fi
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $br_cv_binreloc_threads" >&5
11887 $as_echo "$br_cv_binreloc_threads" >&6; }
11888
11889 if test "x$br_cv_binreloc_threads" = "xyes"; then
11890 BINRELOC_LIBS="-lpthread"
11891
11892 $as_echo "#define BR_PTHREAD 1" >>confdefs.h
11893
11894 else
11895 BINRELOC_CFLAGS="$BINRELOC_CFLAGS -DBR_PTHREADS=0"
11896
11897 $as_echo "#define BR_PTHREAD 0" >>confdefs.h
11898
11899 fi
11900 fi
11901
11902
11903
11904
11905
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11907 $as_echo_n "checking whether NLS is requested... " >&6; }
11908 # Check whether --enable-nls was given.
11909 if test "${enable_nls+set}" = set; then :
11910 enableval=$enable_nls; USE_NLS=$enableval
11911 else
11912 USE_NLS=yes
11913 fi
11914
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11916 $as_echo "$USE_NLS" >&6; }
11917
11918
11919
11920
11921 GETTEXT_MACRO_VERSION=0.18
11922
11923
11924
11925
11926 # Prepare PATH_SEPARATOR.
11927 # The user is always right.
11928 if test "${PATH_SEPARATOR+set}" != set; then
11929 echo "#! /bin/sh" >conf$$.sh
11930 echo "exit 0" >>conf$$.sh
11931 chmod +x conf$$.sh
11932 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11933 PATH_SEPARATOR=';'
11934 else
11935 PATH_SEPARATOR=:
11936 fi
11937 rm -f conf$$.sh
11938 fi
11939
11940 # Find out how to test for executable files. Don't use a zero-byte file,
11941 # as systems may use methods other than mode bits to determine executability.
11942 cat >conf$$.file <<_ASEOF
11943 #! /bin/sh
11944 exit 0
11945 _ASEOF
11946 chmod +x conf$$.file
11947 if test -x conf$$.file >/dev/null 2>&1; then
11948 ac_executable_p="test -x"
11949 else
11950 ac_executable_p="test -f"
11951 fi
11952 rm -f conf$$.file
11953
11954 # Extract the first word of "msgfmt", so it can be a program name with args.
11955 set dummy msgfmt; ac_word=$2
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11957 $as_echo_n "checking for $ac_word... " >&6; }
11958 if ${ac_cv_path_MSGFMT+:} false; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961 case "$MSGFMT" in
11962 [\\/]* | ?:[\\/]*)
11963 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11964 ;;
11965 *)
11966 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11967 for ac_dir in $PATH; do
11968 IFS="$ac_save_IFS"
11969 test -z "$ac_dir" && ac_dir=.
11970 for ac_exec_ext in '' $ac_executable_extensions; do
11971 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11972 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11973 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11974 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11975 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11976 break 2
11977 fi
11978 fi
11979 done
11980 done
11981 IFS="$ac_save_IFS"
11982 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11983 ;;
11984 esac
11985 fi
11986 MSGFMT="$ac_cv_path_MSGFMT"
11987 if test "$MSGFMT" != ":"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11989 $as_echo "$MSGFMT" >&6; }
11990 else
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11993 fi
11994
11995 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11996 set dummy gmsgfmt; ac_word=$2
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998 $as_echo_n "checking for $ac_word... " >&6; }
11999 if ${ac_cv_path_GMSGFMT+:} false; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 case $GMSGFMT in
12003 [\\/]* | ?:[\\/]*)
12004 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12005 ;;
12006 *)
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12009 do
12010 IFS=$as_save_IFS
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 break 2
12017 fi
12018 done
12019 done
12020 IFS=$as_save_IFS
12021
12022 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12023 ;;
12024 esac
12025 fi
12026 GMSGFMT=$ac_cv_path_GMSGFMT
12027 if test -n "$GMSGFMT"; then
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12029 $as_echo "$GMSGFMT" >&6; }
12030 else
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12033 fi
12034
12035
12036
12037 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12038 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12039 *) MSGFMT_015=$MSGFMT ;;
12040 esac
12041
12042 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12043 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12044 *) GMSGFMT_015=$GMSGFMT ;;
12045 esac
12046
12047
12048
12049 # Prepare PATH_SEPARATOR.
12050 # The user is always right.
12051 if test "${PATH_SEPARATOR+set}" != set; then
12052 echo "#! /bin/sh" >conf$$.sh
12053 echo "exit 0" >>conf$$.sh
12054 chmod +x conf$$.sh
12055 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12056 PATH_SEPARATOR=';'
12057 else
12058 PATH_SEPARATOR=:
12059 fi
12060 rm -f conf$$.sh
12061 fi
12062
12063 # Find out how to test for executable files. Don't use a zero-byte file,
12064 # as systems may use methods other than mode bits to determine executability.
12065 cat >conf$$.file <<_ASEOF
12066 #! /bin/sh
12067 exit 0
12068 _ASEOF
12069 chmod +x conf$$.file
12070 if test -x conf$$.file >/dev/null 2>&1; then
12071 ac_executable_p="test -x"
12072 else
12073 ac_executable_p="test -f"
12074 fi
12075 rm -f conf$$.file
12076
12077 # Extract the first word of "xgettext", so it can be a program name with args.
12078 set dummy xgettext; ac_word=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if ${ac_cv_path_XGETTEXT+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 case "$XGETTEXT" in
12085 [\\/]* | ?:[\\/]*)
12086 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12087 ;;
12088 *)
12089 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12090 for ac_dir in $PATH; do
12091 IFS="$ac_save_IFS"
12092 test -z "$ac_dir" && ac_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12095 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12096 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12097 (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
12098 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12099 break 2
12100 fi
12101 fi
12102 done
12103 done
12104 IFS="$ac_save_IFS"
12105 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12106 ;;
12107 esac
12108 fi
12109 XGETTEXT="$ac_cv_path_XGETTEXT"
12110 if test "$XGETTEXT" != ":"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12112 $as_echo "$XGETTEXT" >&6; }
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12116 fi
12117
12118 rm -f messages.po
12119
12120 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12121 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12122 *) XGETTEXT_015=$XGETTEXT ;;
12123 esac
12124
12125
12126
12127 # Prepare PATH_SEPARATOR.
12128 # The user is always right.
12129 if test "${PATH_SEPARATOR+set}" != set; then
12130 echo "#! /bin/sh" >conf$$.sh
12131 echo "exit 0" >>conf$$.sh
12132 chmod +x conf$$.sh
12133 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12134 PATH_SEPARATOR=';'
12135 else
12136 PATH_SEPARATOR=:
12137 fi
12138 rm -f conf$$.sh
12139 fi
12140
12141 # Find out how to test for executable files. Don't use a zero-byte file,
12142 # as systems may use methods other than mode bits to determine executability.
12143 cat >conf$$.file <<_ASEOF
12144 #! /bin/sh
12145 exit 0
12146 _ASEOF
12147 chmod +x conf$$.file
12148 if test -x conf$$.file >/dev/null 2>&1; then
12149 ac_executable_p="test -x"
12150 else
12151 ac_executable_p="test -f"
12152 fi
12153 rm -f conf$$.file
12154
12155 # Extract the first word of "msgmerge", so it can be a program name with args.
12156 set dummy msgmerge; ac_word=$2
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12158 $as_echo_n "checking for $ac_word... " >&6; }
12159 if ${ac_cv_path_MSGMERGE+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 case "$MSGMERGE" in
12163 [\\/]* | ?:[\\/]*)
12164 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12165 ;;
12166 *)
12167 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12168 for ac_dir in $PATH; do
12169 IFS="$ac_save_IFS"
12170 test -z "$ac_dir" && ac_dir=.
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12173 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12174 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12175 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12176 break 2
12177 fi
12178 fi
12179 done
12180 done
12181 IFS="$ac_save_IFS"
12182 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12183 ;;
12184 esac
12185 fi
12186 MSGMERGE="$ac_cv_path_MSGMERGE"
12187 if test "$MSGMERGE" != ":"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12189 $as_echo "$MSGMERGE" >&6; }
12190 else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; }
12193 fi
12194
12195
12196 test -n "$localedir" || localedir='${datadir}/locale'
12197
12198
12199 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12200
12201
12202 ac_config_commands="$ac_config_commands po-directories"
12203
12204
12205
12206 if test "X$prefix" = "XNONE"; then
12207 acl_final_prefix="$ac_default_prefix"
12208 else
12209 acl_final_prefix="$prefix"
12210 fi
12211 if test "X$exec_prefix" = "XNONE"; then
12212 acl_final_exec_prefix='${prefix}'
12213 else
12214 acl_final_exec_prefix="$exec_prefix"
12215 fi
12216 acl_save_prefix="$prefix"
12217 prefix="$acl_final_prefix"
12218 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12219 prefix="$acl_save_prefix"
12220
12221
12222 # Check whether --with-gnu-ld was given.
12223 if test "${with_gnu_ld+set}" = set; then :
12224 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12225 else
12226 with_gnu_ld=no
12227 fi
12228
12229 # Prepare PATH_SEPARATOR.
12230 # The user is always right.
12231 if test "${PATH_SEPARATOR+set}" != set; then
12232 echo "#! /bin/sh" >conf$$.sh
12233 echo "exit 0" >>conf$$.sh
12234 chmod +x conf$$.sh
12235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12236 PATH_SEPARATOR=';'
12237 else
12238 PATH_SEPARATOR=:
12239 fi
12240 rm -f conf$$.sh
12241 fi
12242 ac_prog=ld
12243 if test "$GCC" = yes; then
12244 # Check if gcc -print-prog-name=ld gives a path.
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12246 $as_echo_n "checking for ld used by GCC... " >&6; }
12247 case $host in
12248 *-*-mingw*)
12249 # gcc leaves a trailing carriage return which upsets mingw
12250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12251 *)
12252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12253 esac
12254 case $ac_prog in
12255 # Accept absolute paths.
12256 [\\/]* | [A-Za-z]:[\\/]*)
12257 re_direlt='/[^/][^/]*/\.\./'
12258 # Canonicalize the path of ld
12259 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12260 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12261 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12262 done
12263 test -z "$LD" && LD="$ac_prog"
12264 ;;
12265 "")
12266 # If it fails, then pretend we aren't using GCC.
12267 ac_prog=ld
12268 ;;
12269 *)
12270 # If it is relative, then search for the first ld in PATH.
12271 with_gnu_ld=unknown
12272 ;;
12273 esac
12274 elif test "$with_gnu_ld" = yes; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12276 $as_echo_n "checking for GNU ld... " >&6; }
12277 else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12279 $as_echo_n "checking for non-GNU ld... " >&6; }
12280 fi
12281 if ${acl_cv_path_LD+:} false; then :
12282 $as_echo_n "(cached) " >&6
12283 else
12284 if test -z "$LD"; then
12285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12286 for ac_dir in $PATH; do
12287 test -z "$ac_dir" && ac_dir=.
12288 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12289 acl_cv_path_LD="$ac_dir/$ac_prog"
12290 # Check to see if the program is GNU ld. I'd rather use --version,
12291 # but apparently some GNU ld's only accept -v.
12292 # Break only if it was the GNU/non-GNU ld that we prefer.
12293 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12294 *GNU* | *'with BFD'*)
12295 test "$with_gnu_ld" != no && break ;;
12296 *)
12297 test "$with_gnu_ld" != yes && break ;;
12298 esac
12299 fi
12300 done
12301 IFS="$ac_save_ifs"
12302 else
12303 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12304 fi
12305 fi
12306
12307 LD="$acl_cv_path_LD"
12308 if test -n "$LD"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12310 $as_echo "$LD" >&6; }
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12314 fi
12315 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12317 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12318 if ${acl_cv_prog_gnu_ld+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12322 case `$LD -v 2>&1 </dev/null` in
12323 *GNU* | *'with BFD'*)
12324 acl_cv_prog_gnu_ld=yes ;;
12325 *)
12326 acl_cv_prog_gnu_ld=no ;;
12327 esac
12328 fi
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12330 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12331 with_gnu_ld=$acl_cv_prog_gnu_ld
12332
12333
12334
12335
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12337 $as_echo_n "checking for shared library run path origin... " >&6; }
12338 if ${acl_cv_rpath+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341
12342 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12343 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12344 . ./conftest.sh
12345 rm -f ./conftest.sh
12346 acl_cv_rpath=done
12347
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12350 $as_echo "$acl_cv_rpath" >&6; }
12351 wl="$acl_cv_wl"
12352 acl_libext="$acl_cv_libext"
12353 acl_shlibext="$acl_cv_shlibext"
12354 acl_libname_spec="$acl_cv_libname_spec"
12355 acl_library_names_spec="$acl_cv_library_names_spec"
12356 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12357 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12358 acl_hardcode_direct="$acl_cv_hardcode_direct"
12359 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12360 # Check whether --enable-rpath was given.
12361 if test "${enable_rpath+set}" = set; then :
12362 enableval=$enable_rpath; :
12363 else
12364 enable_rpath=yes
12365 fi
12366
12367
12368
12369
12370 acl_libdirstem=lib
12371 acl_libdirstem2=
12372 case "$host_os" in
12373 solaris*)
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12375 $as_echo_n "checking for 64-bit host... " >&6; }
12376 if ${gl_cv_solaris_64bit+:} false; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12381
12382 #ifdef _LP64
12383 sixtyfour bits
12384 #endif
12385
12386 _ACEOF
12387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12388 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12389 gl_cv_solaris_64bit=yes
12390 else
12391 gl_cv_solaris_64bit=no
12392 fi
12393 rm -f conftest*
12394
12395
12396 fi
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12398 $as_echo "$gl_cv_solaris_64bit" >&6; }
12399 if test $gl_cv_solaris_64bit = yes; then
12400 acl_libdirstem=lib/64
12401 case "$host_cpu" in
12402 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12403 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12404 esac
12405 fi
12406 ;;
12407 *)
12408 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12409 if test -n "$searchpath"; then
12410 acl_save_IFS="${IFS= }"; IFS=":"
12411 for searchdir in $searchpath; do
12412 if test -d "$searchdir"; then
12413 case "$searchdir" in
12414 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12415 */../ | */.. )
12416 # Better ignore directories of this form. They are misleading.
12417 ;;
12418 *) searchdir=`cd "$searchdir" && pwd`
12419 case "$searchdir" in
12420 */lib64 ) acl_libdirstem=lib64 ;;
12421 esac ;;
12422 esac
12423 fi
12424 done
12425 IFS="$acl_save_IFS"
12426 fi
12427 ;;
12428 esac
12429 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442 use_additional=yes
12443
12444 acl_save_prefix="$prefix"
12445 prefix="$acl_final_prefix"
12446 acl_save_exec_prefix="$exec_prefix"
12447 exec_prefix="$acl_final_exec_prefix"
12448
12449 eval additional_includedir=\"$includedir\"
12450 eval additional_libdir=\"$libdir\"
12451
12452 exec_prefix="$acl_save_exec_prefix"
12453 prefix="$acl_save_prefix"
12454
12455
12456 # Check whether --with-libiconv-prefix was given.
12457 if test "${with_libiconv_prefix+set}" = set; then :
12458 withval=$with_libiconv_prefix;
12459 if test "X$withval" = "Xno"; then
12460 use_additional=no
12461 else
12462 if test "X$withval" = "X"; then
12463
12464 acl_save_prefix="$prefix"
12465 prefix="$acl_final_prefix"
12466 acl_save_exec_prefix="$exec_prefix"
12467 exec_prefix="$acl_final_exec_prefix"
12468
12469 eval additional_includedir=\"$includedir\"
12470 eval additional_libdir=\"$libdir\"
12471
12472 exec_prefix="$acl_save_exec_prefix"
12473 prefix="$acl_save_prefix"
12474
12475 else
12476 additional_includedir="$withval/include"
12477 additional_libdir="$withval/$acl_libdirstem"
12478 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12479 && ! test -d "$withval/$acl_libdirstem"; then
12480 additional_libdir="$withval/$acl_libdirstem2"
12481 fi
12482 fi
12483 fi
12484
12485 fi
12486
12487 LIBICONV=
12488 LTLIBICONV=
12489 INCICONV=
12490 LIBICONV_PREFIX=
12491 HAVE_LIBICONV=
12492 rpathdirs=
12493 ltrpathdirs=
12494 names_already_handled=
12495 names_next_round='iconv '
12496 while test -n "$names_next_round"; do
12497 names_this_round="$names_next_round"
12498 names_next_round=
12499 for name in $names_this_round; do
12500 already_handled=
12501 for n in $names_already_handled; do
12502 if test "$n" = "$name"; then
12503 already_handled=yes
12504 break
12505 fi
12506 done
12507 if test -z "$already_handled"; then
12508 names_already_handled="$names_already_handled $name"
12509 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12510 eval value=\"\$HAVE_LIB$uppername\"
12511 if test -n "$value"; then
12512 if test "$value" = yes; then
12513 eval value=\"\$LIB$uppername\"
12514 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12515 eval value=\"\$LTLIB$uppername\"
12516 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12517 else
12518 :
12519 fi
12520 else
12521 found_dir=
12522 found_la=
12523 found_so=
12524 found_a=
12525 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12526 if test -n "$acl_shlibext"; then
12527 shrext=".$acl_shlibext" # typically: shrext=.so
12528 else
12529 shrext=
12530 fi
12531 if test $use_additional = yes; then
12532 dir="$additional_libdir"
12533 if test -n "$acl_shlibext"; then
12534 if test -f "$dir/$libname$shrext"; then
12535 found_dir="$dir"
12536 found_so="$dir/$libname$shrext"
12537 else
12538 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12539 ver=`(cd "$dir" && \
12540 for f in "$libname$shrext".*; do echo "$f"; done \
12541 | sed -e "s,^$libname$shrext\\\\.,," \
12542 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12543 | sed 1q ) 2>/dev/null`
12544 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12545 found_dir="$dir"
12546 found_so="$dir/$libname$shrext.$ver"
12547 fi
12548 else
12549 eval library_names=\"$acl_library_names_spec\"
12550 for f in $library_names; do
12551 if test -f "$dir/$f"; then
12552 found_dir="$dir"
12553 found_so="$dir/$f"
12554 break
12555 fi
12556 done
12557 fi
12558 fi
12559 fi
12560 if test "X$found_dir" = "X"; then
12561 if test -f "$dir/$libname.$acl_libext"; then
12562 found_dir="$dir"
12563 found_a="$dir/$libname.$acl_libext"
12564 fi
12565 fi
12566 if test "X$found_dir" != "X"; then
12567 if test -f "$dir/$libname.la"; then
12568 found_la="$dir/$libname.la"
12569 fi
12570 fi
12571 fi
12572 if test "X$found_dir" = "X"; then
12573 for x in $LDFLAGS $LTLIBICONV; do
12574
12575 acl_save_prefix="$prefix"
12576 prefix="$acl_final_prefix"
12577 acl_save_exec_prefix="$exec_prefix"
12578 exec_prefix="$acl_final_exec_prefix"
12579 eval x=\"$x\"
12580 exec_prefix="$acl_save_exec_prefix"
12581 prefix="$acl_save_prefix"
12582
12583 case "$x" in
12584 -L*)
12585 dir=`echo "X$x" | sed -e 's/^X-L//'`
12586 if test -n "$acl_shlibext"; then
12587 if test -f "$dir/$libname$shrext"; then
12588 found_dir="$dir"
12589 found_so="$dir/$libname$shrext"
12590 else
12591 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12592 ver=`(cd "$dir" && \
12593 for f in "$libname$shrext".*; do echo "$f"; done \
12594 | sed -e "s,^$libname$shrext\\\\.,," \
12595 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12596 | sed 1q ) 2>/dev/null`
12597 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12598 found_dir="$dir"
12599 found_so="$dir/$libname$shrext.$ver"
12600 fi
12601 else
12602 eval library_names=\"$acl_library_names_spec\"
12603 for f in $library_names; do
12604 if test -f "$dir/$f"; then
12605 found_dir="$dir"
12606 found_so="$dir/$f"
12607 break
12608 fi
12609 done
12610 fi
12611 fi
12612 fi
12613 if test "X$found_dir" = "X"; then
12614 if test -f "$dir/$libname.$acl_libext"; then
12615 found_dir="$dir"
12616 found_a="$dir/$libname.$acl_libext"
12617 fi
12618 fi
12619 if test "X$found_dir" != "X"; then
12620 if test -f "$dir/$libname.la"; then
12621 found_la="$dir/$libname.la"
12622 fi
12623 fi
12624 ;;
12625 esac
12626 if test "X$found_dir" != "X"; then
12627 break
12628 fi
12629 done
12630 fi
12631 if test "X$found_dir" != "X"; then
12632 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12633 if test "X$found_so" != "X"; then
12634 if test "$enable_rpath" = no \
12635 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12636 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12637 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12638 else
12639 haveit=
12640 for x in $ltrpathdirs; do
12641 if test "X$x" = "X$found_dir"; then
12642 haveit=yes
12643 break
12644 fi
12645 done
12646 if test -z "$haveit"; then
12647 ltrpathdirs="$ltrpathdirs $found_dir"
12648 fi
12649 if test "$acl_hardcode_direct" = yes; then
12650 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12651 else
12652 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12653 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12654 haveit=
12655 for x in $rpathdirs; do
12656 if test "X$x" = "X$found_dir"; then
12657 haveit=yes
12658 break
12659 fi
12660 done
12661 if test -z "$haveit"; then
12662 rpathdirs="$rpathdirs $found_dir"
12663 fi
12664 else
12665 haveit=
12666 for x in $LDFLAGS $LIBICONV; do
12667
12668 acl_save_prefix="$prefix"
12669 prefix="$acl_final_prefix"
12670 acl_save_exec_prefix="$exec_prefix"
12671 exec_prefix="$acl_final_exec_prefix"
12672 eval x=\"$x\"
12673 exec_prefix="$acl_save_exec_prefix"
12674 prefix="$acl_save_prefix"
12675
12676 if test "X$x" = "X-L$found_dir"; then
12677 haveit=yes
12678 break
12679 fi
12680 done
12681 if test -z "$haveit"; then
12682 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12683 fi
12684 if test "$acl_hardcode_minus_L" != no; then
12685 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12686 else
12687 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12688 fi
12689 fi
12690 fi
12691 fi
12692 else
12693 if test "X$found_a" != "X"; then
12694 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12695 else
12696 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12697 fi
12698 fi
12699 additional_includedir=
12700 case "$found_dir" in
12701 */$acl_libdirstem | */$acl_libdirstem/)
12702 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12703 if test "$name" = 'iconv'; then
12704 LIBICONV_PREFIX="$basedir"
12705 fi
12706 additional_includedir="$basedir/include"
12707 ;;
12708 */$acl_libdirstem2 | */$acl_libdirstem2/)
12709 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12710 if test "$name" = 'iconv'; then
12711 LIBICONV_PREFIX="$basedir"
12712 fi
12713 additional_includedir="$basedir/include"
12714 ;;
12715 esac
12716 if test "X$additional_includedir" != "X"; then
12717 if test "X$additional_includedir" != "X/usr/include"; then
12718 haveit=
12719 if test "X$additional_includedir" = "X/usr/local/include"; then
12720 if test -n "$GCC"; then
12721 case $host_os in
12722 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12723 esac
12724 fi
12725 fi
12726 if test -z "$haveit"; then
12727 for x in $CPPFLAGS $INCICONV; do
12728
12729 acl_save_prefix="$prefix"
12730 prefix="$acl_final_prefix"
12731 acl_save_exec_prefix="$exec_prefix"
12732 exec_prefix="$acl_final_exec_prefix"
12733 eval x=\"$x\"
12734 exec_prefix="$acl_save_exec_prefix"
12735 prefix="$acl_save_prefix"
12736
12737 if test "X$x" = "X-I$additional_includedir"; then
12738 haveit=yes
12739 break
12740 fi
12741 done
12742 if test -z "$haveit"; then
12743 if test -d "$additional_includedir"; then
12744 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12745 fi
12746 fi
12747 fi
12748 fi
12749 fi
12750 if test -n "$found_la"; then
12751 save_libdir="$libdir"
12752 case "$found_la" in
12753 */* | *\\*) . "$found_la" ;;
12754 *) . "./$found_la" ;;
12755 esac
12756 libdir="$save_libdir"
12757 for dep in $dependency_libs; do
12758 case "$dep" in
12759 -L*)
12760 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12761 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12762 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12763 haveit=
12764 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12765 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12766 if test -n "$GCC"; then
12767 case $host_os in
12768 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12769 esac
12770 fi
12771 fi
12772 if test -z "$haveit"; then
12773 haveit=
12774 for x in $LDFLAGS $LIBICONV; do
12775
12776 acl_save_prefix="$prefix"
12777 prefix="$acl_final_prefix"
12778 acl_save_exec_prefix="$exec_prefix"
12779 exec_prefix="$acl_final_exec_prefix"
12780 eval x=\"$x\"
12781 exec_prefix="$acl_save_exec_prefix"
12782 prefix="$acl_save_prefix"
12783
12784 if test "X$x" = "X-L$additional_libdir"; then
12785 haveit=yes
12786 break
12787 fi
12788 done
12789 if test -z "$haveit"; then
12790 if test -d "$additional_libdir"; then
12791 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12792 fi
12793 fi
12794 haveit=
12795 for x in $LDFLAGS $LTLIBICONV; do
12796
12797 acl_save_prefix="$prefix"
12798 prefix="$acl_final_prefix"
12799 acl_save_exec_prefix="$exec_prefix"
12800 exec_prefix="$acl_final_exec_prefix"
12801 eval x=\"$x\"
12802 exec_prefix="$acl_save_exec_prefix"
12803 prefix="$acl_save_prefix"
12804
12805 if test "X$x" = "X-L$additional_libdir"; then
12806 haveit=yes
12807 break
12808 fi
12809 done
12810 if test -z "$haveit"; then
12811 if test -d "$additional_libdir"; then
12812 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12813 fi
12814 fi
12815 fi
12816 fi
12817 ;;
12818 -R*)
12819 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12820 if test "$enable_rpath" != no; then
12821 haveit=
12822 for x in $rpathdirs; do
12823 if test "X$x" = "X$dir"; then
12824 haveit=yes
12825 break
12826 fi
12827 done
12828 if test -z "$haveit"; then
12829 rpathdirs="$rpathdirs $dir"
12830 fi
12831 haveit=
12832 for x in $ltrpathdirs; do
12833 if test "X$x" = "X$dir"; then
12834 haveit=yes
12835 break
12836 fi
12837 done
12838 if test -z "$haveit"; then
12839 ltrpathdirs="$ltrpathdirs $dir"
12840 fi
12841 fi
12842 ;;
12843 -l*)
12844 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12845 ;;
12846 *.la)
12847 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12848 ;;
12849 *)
12850 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12851 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12852 ;;
12853 esac
12854 done
12855 fi
12856 else
12857 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12858 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12859 fi
12860 fi
12861 fi
12862 done
12863 done
12864 if test "X$rpathdirs" != "X"; then
12865 if test -n "$acl_hardcode_libdir_separator"; then
12866 alldirs=
12867 for found_dir in $rpathdirs; do
12868 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12869 done
12870 acl_save_libdir="$libdir"
12871 libdir="$alldirs"
12872 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12873 libdir="$acl_save_libdir"
12874 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12875 else
12876 for found_dir in $rpathdirs; do
12877 acl_save_libdir="$libdir"
12878 libdir="$found_dir"
12879 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12880 libdir="$acl_save_libdir"
12881 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12882 done
12883 fi
12884 fi
12885 if test "X$ltrpathdirs" != "X"; then
12886 for found_dir in $ltrpathdirs; do
12887 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12888 done
12889 fi
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12922 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12923 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12924 $as_echo_n "(cached) " >&6
12925 else
12926 gt_save_LIBS="$LIBS"
12927 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12930 #include <CoreFoundation/CFPreferences.h>
12931 int
12932 main ()
12933 {
12934 CFPreferencesCopyAppValue(NULL, NULL)
12935 ;
12936 return 0;
12937 }
12938 _ACEOF
12939 if ac_fn_c_try_link "$LINENO"; then :
12940 gt_cv_func_CFPreferencesCopyAppValue=yes
12941 else
12942 gt_cv_func_CFPreferencesCopyAppValue=no
12943 fi
12944 rm -f core conftest.err conftest.$ac_objext \
12945 conftest$ac_exeext conftest.$ac_ext
12946 LIBS="$gt_save_LIBS"
12947 fi
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12949 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12950 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12951
12952 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12953
12954 fi
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12956 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12957 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 gt_save_LIBS="$LIBS"
12961 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964 #include <CoreFoundation/CFLocale.h>
12965 int
12966 main ()
12967 {
12968 CFLocaleCopyCurrent();
12969 ;
12970 return 0;
12971 }
12972 _ACEOF
12973 if ac_fn_c_try_link "$LINENO"; then :
12974 gt_cv_func_CFLocaleCopyCurrent=yes
12975 else
12976 gt_cv_func_CFLocaleCopyCurrent=no
12977 fi
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 LIBS="$gt_save_LIBS"
12981 fi
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12983 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12984 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12985
12986 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12987
12988 fi
12989 INTL_MACOSX_LIBS=
12990 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12991 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12992 fi
12993
12994
12995
12996
12997
12998
12999 LIBINTL=
13000 LTLIBINTL=
13001 POSUB=
13002
13003 case " $gt_needs " in
13004 *" need-formatstring-macros "*) gt_api_version=3 ;;
13005 *" need-ngettext "*) gt_api_version=2 ;;
13006 *) gt_api_version=1 ;;
13007 esac
13008 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13009 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13010
13011 if test "$USE_NLS" = "yes"; then
13012 gt_use_preinstalled_gnugettext=no
13013
13014
13015 if test $gt_api_version -ge 3; then
13016 gt_revision_test_code='
13017 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13018 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13019 #endif
13020 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13021 '
13022 else
13023 gt_revision_test_code=
13024 fi
13025 if test $gt_api_version -ge 2; then
13026 gt_expression_test_code=' + * ngettext ("", "", 0)'
13027 else
13028 gt_expression_test_code=
13029 fi
13030
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13032 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13033 if eval \${$gt_func_gnugettext_libc+:} false; then :
13034 $as_echo_n "(cached) " >&6
13035 else
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13038 #include <libintl.h>
13039 $gt_revision_test_code
13040 extern int _nl_msg_cat_cntr;
13041 extern int *_nl_domain_bindings;
13042 int
13043 main ()
13044 {
13045 bindtextdomain ("", "");
13046 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13047 ;
13048 return 0;
13049 }
13050 _ACEOF
13051 if ac_fn_c_try_link "$LINENO"; then :
13052 eval "$gt_func_gnugettext_libc=yes"
13053 else
13054 eval "$gt_func_gnugettext_libc=no"
13055 fi
13056 rm -f core conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13058 fi
13059 eval ac_res=\$$gt_func_gnugettext_libc
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13061 $as_echo "$ac_res" >&6; }
13062
13063 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13064
13065
13066
13067
13068
13069 am_save_CPPFLAGS="$CPPFLAGS"
13070
13071 for element in $INCICONV; do
13072 haveit=
13073 for x in $CPPFLAGS; do
13074
13075 acl_save_prefix="$prefix"
13076 prefix="$acl_final_prefix"
13077 acl_save_exec_prefix="$exec_prefix"
13078 exec_prefix="$acl_final_exec_prefix"
13079 eval x=\"$x\"
13080 exec_prefix="$acl_save_exec_prefix"
13081 prefix="$acl_save_prefix"
13082
13083 if test "X$x" = "X$element"; then
13084 haveit=yes
13085 break
13086 fi
13087 done
13088 if test -z "$haveit"; then
13089 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13090 fi
13091 done
13092
13093
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13095 $as_echo_n "checking for iconv... " >&6; }
13096 if ${am_cv_func_iconv+:} false; then :
13097 $as_echo_n "(cached) " >&6
13098 else
13099
13100 am_cv_func_iconv="no, consider installing GNU libiconv"
13101 am_cv_lib_iconv=no
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13104 #include <stdlib.h>
13105 #include <iconv.h>
13106 int
13107 main ()
13108 {
13109 iconv_t cd = iconv_open("","");
13110 iconv(cd,NULL,NULL,NULL,NULL);
13111 iconv_close(cd);
13112 ;
13113 return 0;
13114 }
13115 _ACEOF
13116 if ac_fn_c_try_link "$LINENO"; then :
13117 am_cv_func_iconv=yes
13118 fi
13119 rm -f core conftest.err conftest.$ac_objext \
13120 conftest$ac_exeext conftest.$ac_ext
13121 if test "$am_cv_func_iconv" != yes; then
13122 am_save_LIBS="$LIBS"
13123 LIBS="$LIBS $LIBICONV"
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13126 #include <stdlib.h>
13127 #include <iconv.h>
13128 int
13129 main ()
13130 {
13131 iconv_t cd = iconv_open("","");
13132 iconv(cd,NULL,NULL,NULL,NULL);
13133 iconv_close(cd);
13134 ;
13135 return 0;
13136 }
13137 _ACEOF
13138 if ac_fn_c_try_link "$LINENO"; then :
13139 am_cv_lib_iconv=yes
13140 am_cv_func_iconv=yes
13141 fi
13142 rm -f core conftest.err conftest.$ac_objext \
13143 conftest$ac_exeext conftest.$ac_ext
13144 LIBS="$am_save_LIBS"
13145 fi
13146
13147 fi
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13149 $as_echo "$am_cv_func_iconv" >&6; }
13150 if test "$am_cv_func_iconv" = yes; then
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13152 $as_echo_n "checking for working iconv... " >&6; }
13153 if ${am_cv_func_iconv_works+:} false; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156
13157 am_save_LIBS="$LIBS"
13158 if test $am_cv_lib_iconv = yes; then
13159 LIBS="$LIBS $LIBICONV"
13160 fi
13161 if test "$cross_compiling" = yes; then :
13162 case "$host_os" in
13163 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13164 *) am_cv_func_iconv_works="guessing yes" ;;
13165 esac
13166 else
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13169
13170 #include <iconv.h>
13171 #include <string.h>
13172 int main ()
13173 {
13174 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13175 returns. */
13176 {
13177 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13178 if (cd_utf8_to_88591 != (iconv_t)(-1))
13179 {
13180 static const char input[] = "\342\202\254"; /* EURO SIGN */
13181 char buf[10];
13182 const char *inptr = input;
13183 size_t inbytesleft = strlen (input);
13184 char *outptr = buf;
13185 size_t outbytesleft = sizeof (buf);
13186 size_t res = iconv (cd_utf8_to_88591,
13187 (char **) &inptr, &inbytesleft,
13188 &outptr, &outbytesleft);
13189 if (res == 0)
13190 return 1;
13191 }
13192 }
13193 /* Test against Solaris 10 bug: Failures are not distinguishable from
13194 successful returns. */
13195 {
13196 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13197 if (cd_ascii_to_88591 != (iconv_t)(-1))
13198 {
13199 static const char input[] = "\263";
13200 char buf[10];
13201 const char *inptr = input;
13202 size_t inbytesleft = strlen (input);
13203 char *outptr = buf;
13204 size_t outbytesleft = sizeof (buf);
13205 size_t res = iconv (cd_ascii_to_88591,
13206 (char **) &inptr, &inbytesleft,
13207 &outptr, &outbytesleft);
13208 if (res == 0)
13209 return 1;
13210 }
13211 }
13212 #if 0 /* This bug could be worked around by the caller. */
13213 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13214 {
13215 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13216 if (cd_88591_to_utf8 != (iconv_t)(-1))
13217 {
13218 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13219 char buf[50];
13220 const char *inptr = input;
13221 size_t inbytesleft = strlen (input);
13222 char *outptr = buf;
13223 size_t outbytesleft = sizeof (buf);
13224 size_t res = iconv (cd_88591_to_utf8,
13225 (char **) &inptr, &inbytesleft,
13226 &outptr, &outbytesleft);
13227 if ((int)res > 0)
13228 return 1;
13229 }
13230 }
13231 #endif
13232 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13233 provided. */
13234 if (/* Try standardized names. */
13235 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13236 /* Try IRIX, OSF/1 names. */
13237 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13238 /* Try AIX names. */
13239 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13240 /* Try HP-UX names. */
13241 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13242 return 1;
13243 return 0;
13244 }
13245 _ACEOF
13246 if ac_fn_c_try_run "$LINENO"; then :
13247 am_cv_func_iconv_works=yes
13248 else
13249 am_cv_func_iconv_works=no
13250 fi
13251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13252 conftest.$ac_objext conftest.beam conftest.$ac_ext
13253 fi
13254
13255 LIBS="$am_save_LIBS"
13256
13257 fi
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13259 $as_echo "$am_cv_func_iconv_works" >&6; }
13260 case "$am_cv_func_iconv_works" in
13261 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13262 *) am_func_iconv=yes ;;
13263 esac
13264 else
13265 am_func_iconv=no am_cv_lib_iconv=no
13266 fi
13267 if test "$am_func_iconv" = yes; then
13268
13269 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13270
13271 fi
13272 if test "$am_cv_lib_iconv" = yes; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13274 $as_echo_n "checking how to link with libiconv... " >&6; }
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13276 $as_echo "$LIBICONV" >&6; }
13277 else
13278 CPPFLAGS="$am_save_CPPFLAGS"
13279 LIBICONV=
13280 LTLIBICONV=
13281 fi
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293 use_additional=yes
13294
13295 acl_save_prefix="$prefix"
13296 prefix="$acl_final_prefix"
13297 acl_save_exec_prefix="$exec_prefix"
13298 exec_prefix="$acl_final_exec_prefix"
13299
13300 eval additional_includedir=\"$includedir\"
13301 eval additional_libdir=\"$libdir\"
13302
13303 exec_prefix="$acl_save_exec_prefix"
13304 prefix="$acl_save_prefix"
13305
13306
13307 # Check whether --with-libintl-prefix was given.
13308 if test "${with_libintl_prefix+set}" = set; then :
13309 withval=$with_libintl_prefix;
13310 if test "X$withval" = "Xno"; then
13311 use_additional=no
13312 else
13313 if test "X$withval" = "X"; then
13314
13315 acl_save_prefix="$prefix"
13316 prefix="$acl_final_prefix"
13317 acl_save_exec_prefix="$exec_prefix"
13318 exec_prefix="$acl_final_exec_prefix"
13319
13320 eval additional_includedir=\"$includedir\"
13321 eval additional_libdir=\"$libdir\"
13322
13323 exec_prefix="$acl_save_exec_prefix"
13324 prefix="$acl_save_prefix"
13325
13326 else
13327 additional_includedir="$withval/include"
13328 additional_libdir="$withval/$acl_libdirstem"
13329 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13330 && ! test -d "$withval/$acl_libdirstem"; then
13331 additional_libdir="$withval/$acl_libdirstem2"
13332 fi
13333 fi
13334 fi
13335
13336 fi
13337
13338 LIBINTL=
13339 LTLIBINTL=
13340 INCINTL=
13341 LIBINTL_PREFIX=
13342 HAVE_LIBINTL=
13343 rpathdirs=
13344 ltrpathdirs=
13345 names_already_handled=
13346 names_next_round='intl '
13347 while test -n "$names_next_round"; do
13348 names_this_round="$names_next_round"
13349 names_next_round=
13350 for name in $names_this_round; do
13351 already_handled=
13352 for n in $names_already_handled; do
13353 if test "$n" = "$name"; then
13354 already_handled=yes
13355 break
13356 fi
13357 done
13358 if test -z "$already_handled"; then
13359 names_already_handled="$names_already_handled $name"
13360 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13361 eval value=\"\$HAVE_LIB$uppername\"
13362 if test -n "$value"; then
13363 if test "$value" = yes; then
13364 eval value=\"\$LIB$uppername\"
13365 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13366 eval value=\"\$LTLIB$uppername\"
13367 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13368 else
13369 :
13370 fi
13371 else
13372 found_dir=
13373 found_la=
13374 found_so=
13375 found_a=
13376 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13377 if test -n "$acl_shlibext"; then
13378 shrext=".$acl_shlibext" # typically: shrext=.so
13379 else
13380 shrext=
13381 fi
13382 if test $use_additional = yes; then
13383 dir="$additional_libdir"
13384 if test -n "$acl_shlibext"; then
13385 if test -f "$dir/$libname$shrext"; then
13386 found_dir="$dir"
13387 found_so="$dir/$libname$shrext"
13388 else
13389 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13390 ver=`(cd "$dir" && \
13391 for f in "$libname$shrext".*; do echo "$f"; done \
13392 | sed -e "s,^$libname$shrext\\\\.,," \
13393 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13394 | sed 1q ) 2>/dev/null`
13395 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13396 found_dir="$dir"
13397 found_so="$dir/$libname$shrext.$ver"
13398 fi
13399 else
13400 eval library_names=\"$acl_library_names_spec\"
13401 for f in $library_names; do
13402 if test -f "$dir/$f"; then
13403 found_dir="$dir"
13404 found_so="$dir/$f"
13405 break
13406 fi
13407 done
13408 fi
13409 fi
13410 fi
13411 if test "X$found_dir" = "X"; then
13412 if test -f "$dir/$libname.$acl_libext"; then
13413 found_dir="$dir"
13414 found_a="$dir/$libname.$acl_libext"
13415 fi
13416 fi
13417 if test "X$found_dir" != "X"; then
13418 if test -f "$dir/$libname.la"; then
13419 found_la="$dir/$libname.la"
13420 fi
13421 fi
13422 fi
13423 if test "X$found_dir" = "X"; then
13424 for x in $LDFLAGS $LTLIBINTL; do
13425
13426 acl_save_prefix="$prefix"
13427 prefix="$acl_final_prefix"
13428 acl_save_exec_prefix="$exec_prefix"
13429 exec_prefix="$acl_final_exec_prefix"
13430 eval x=\"$x\"
13431 exec_prefix="$acl_save_exec_prefix"
13432 prefix="$acl_save_prefix"
13433
13434 case "$x" in
13435 -L*)
13436 dir=`echo "X$x" | sed -e 's/^X-L//'`
13437 if test -n "$acl_shlibext"; then
13438 if test -f "$dir/$libname$shrext"; then
13439 found_dir="$dir"
13440 found_so="$dir/$libname$shrext"
13441 else
13442 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13443 ver=`(cd "$dir" && \
13444 for f in "$libname$shrext".*; do echo "$f"; done \
13445 | sed -e "s,^$libname$shrext\\\\.,," \
13446 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13447 | sed 1q ) 2>/dev/null`
13448 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13449 found_dir="$dir"
13450 found_so="$dir/$libname$shrext.$ver"
13451 fi
13452 else
13453 eval library_names=\"$acl_library_names_spec\"
13454 for f in $library_names; do
13455 if test -f "$dir/$f"; then
13456 found_dir="$dir"
13457 found_so="$dir/$f"
13458 break
13459 fi
13460 done
13461 fi
13462 fi
13463 fi
13464 if test "X$found_dir" = "X"; then
13465 if test -f "$dir/$libname.$acl_libext"; then
13466 found_dir="$dir"
13467 found_a="$dir/$libname.$acl_libext"
13468 fi
13469 fi
13470 if test "X$found_dir" != "X"; then
13471 if test -f "$dir/$libname.la"; then
13472 found_la="$dir/$libname.la"
13473 fi
13474 fi
13475 ;;
13476 esac
13477 if test "X$found_dir" != "X"; then
13478 break
13479 fi
13480 done
13481 fi
13482 if test "X$found_dir" != "X"; then
13483 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13484 if test "X$found_so" != "X"; then
13485 if test "$enable_rpath" = no \
13486 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13487 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13488 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13489 else
13490 haveit=
13491 for x in $ltrpathdirs; do
13492 if test "X$x" = "X$found_dir"; then
13493 haveit=yes
13494 break
13495 fi
13496 done
13497 if test -z "$haveit"; then
13498 ltrpathdirs="$ltrpathdirs $found_dir"
13499 fi
13500 if test "$acl_hardcode_direct" = yes; then
13501 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13502 else
13503 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13504 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13505 haveit=
13506 for x in $rpathdirs; do
13507 if test "X$x" = "X$found_dir"; then
13508 haveit=yes
13509 break
13510 fi
13511 done
13512 if test -z "$haveit"; then
13513 rpathdirs="$rpathdirs $found_dir"
13514 fi
13515 else
13516 haveit=
13517 for x in $LDFLAGS $LIBINTL; do
13518
13519 acl_save_prefix="$prefix"
13520 prefix="$acl_final_prefix"
13521 acl_save_exec_prefix="$exec_prefix"
13522 exec_prefix="$acl_final_exec_prefix"
13523 eval x=\"$x\"
13524 exec_prefix="$acl_save_exec_prefix"
13525 prefix="$acl_save_prefix"
13526
13527 if test "X$x" = "X-L$found_dir"; then
13528 haveit=yes
13529 break
13530 fi
13531 done
13532 if test -z "$haveit"; then
13533 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13534 fi
13535 if test "$acl_hardcode_minus_L" != no; then
13536 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13537 else
13538 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13539 fi
13540 fi
13541 fi
13542 fi
13543 else
13544 if test "X$found_a" != "X"; then
13545 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13546 else
13547 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13548 fi
13549 fi
13550 additional_includedir=
13551 case "$found_dir" in
13552 */$acl_libdirstem | */$acl_libdirstem/)
13553 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13554 if test "$name" = 'intl'; then
13555 LIBINTL_PREFIX="$basedir"
13556 fi
13557 additional_includedir="$basedir/include"
13558 ;;
13559 */$acl_libdirstem2 | */$acl_libdirstem2/)
13560 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13561 if test "$name" = 'intl'; then
13562 LIBINTL_PREFIX="$basedir"
13563 fi
13564 additional_includedir="$basedir/include"
13565 ;;
13566 esac
13567 if test "X$additional_includedir" != "X"; then
13568 if test "X$additional_includedir" != "X/usr/include"; then
13569 haveit=
13570 if test "X$additional_includedir" = "X/usr/local/include"; then
13571 if test -n "$GCC"; then
13572 case $host_os in
13573 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13574 esac
13575 fi
13576 fi
13577 if test -z "$haveit"; then
13578 for x in $CPPFLAGS $INCINTL; do
13579
13580 acl_save_prefix="$prefix"
13581 prefix="$acl_final_prefix"
13582 acl_save_exec_prefix="$exec_prefix"
13583 exec_prefix="$acl_final_exec_prefix"
13584 eval x=\"$x\"
13585 exec_prefix="$acl_save_exec_prefix"
13586 prefix="$acl_save_prefix"
13587
13588 if test "X$x" = "X-I$additional_includedir"; then
13589 haveit=yes
13590 break
13591 fi
13592 done
13593 if test -z "$haveit"; then
13594 if test -d "$additional_includedir"; then
13595 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13596 fi
13597 fi
13598 fi
13599 fi
13600 fi
13601 if test -n "$found_la"; then
13602 save_libdir="$libdir"
13603 case "$found_la" in
13604 */* | *\\*) . "$found_la" ;;
13605 *) . "./$found_la" ;;
13606 esac
13607 libdir="$save_libdir"
13608 for dep in $dependency_libs; do
13609 case "$dep" in
13610 -L*)
13611 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13612 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13613 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13614 haveit=
13615 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13616 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13617 if test -n "$GCC"; then
13618 case $host_os in
13619 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13620 esac
13621 fi
13622 fi
13623 if test -z "$haveit"; then
13624 haveit=
13625 for x in $LDFLAGS $LIBINTL; do
13626
13627 acl_save_prefix="$prefix"
13628 prefix="$acl_final_prefix"
13629 acl_save_exec_prefix="$exec_prefix"
13630 exec_prefix="$acl_final_exec_prefix"
13631 eval x=\"$x\"
13632 exec_prefix="$acl_save_exec_prefix"
13633 prefix="$acl_save_prefix"
13634
13635 if test "X$x" = "X-L$additional_libdir"; then
13636 haveit=yes
13637 break
13638 fi
13639 done
13640 if test -z "$haveit"; then
13641 if test -d "$additional_libdir"; then
13642 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13643 fi
13644 fi
13645 haveit=
13646 for x in $LDFLAGS $LTLIBINTL; do
13647
13648 acl_save_prefix="$prefix"
13649 prefix="$acl_final_prefix"
13650 acl_save_exec_prefix="$exec_prefix"
13651 exec_prefix="$acl_final_exec_prefix"
13652 eval x=\"$x\"
13653 exec_prefix="$acl_save_exec_prefix"
13654 prefix="$acl_save_prefix"
13655
13656 if test "X$x" = "X-L$additional_libdir"; then
13657 haveit=yes
13658 break
13659 fi
13660 done
13661 if test -z "$haveit"; then
13662 if test -d "$additional_libdir"; then
13663 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13664 fi
13665 fi
13666 fi
13667 fi
13668 ;;
13669 -R*)
13670 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13671 if test "$enable_rpath" != no; then
13672 haveit=
13673 for x in $rpathdirs; do
13674 if test "X$x" = "X$dir"; then
13675 haveit=yes
13676 break
13677 fi
13678 done
13679 if test -z "$haveit"; then
13680 rpathdirs="$rpathdirs $dir"
13681 fi
13682 haveit=
13683 for x in $ltrpathdirs; do
13684 if test "X$x" = "X$dir"; then
13685 haveit=yes
13686 break
13687 fi
13688 done
13689 if test -z "$haveit"; then
13690 ltrpathdirs="$ltrpathdirs $dir"
13691 fi
13692 fi
13693 ;;
13694 -l*)
13695 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13696 ;;
13697 *.la)
13698 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13699 ;;
13700 *)
13701 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13702 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13703 ;;
13704 esac
13705 done
13706 fi
13707 else
13708 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13709 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13710 fi
13711 fi
13712 fi
13713 done
13714 done
13715 if test "X$rpathdirs" != "X"; then
13716 if test -n "$acl_hardcode_libdir_separator"; then
13717 alldirs=
13718 for found_dir in $rpathdirs; do
13719 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13720 done
13721 acl_save_libdir="$libdir"
13722 libdir="$alldirs"
13723 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13724 libdir="$acl_save_libdir"
13725 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13726 else
13727 for found_dir in $rpathdirs; do
13728 acl_save_libdir="$libdir"
13729 libdir="$found_dir"
13730 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13731 libdir="$acl_save_libdir"
13732 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13733 done
13734 fi
13735 fi
13736 if test "X$ltrpathdirs" != "X"; then
13737 for found_dir in $ltrpathdirs; do
13738 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13739 done
13740 fi
13741
13742
13743
13744
13745
13746
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13748 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13749 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 gt_save_CPPFLAGS="$CPPFLAGS"
13753 CPPFLAGS="$CPPFLAGS $INCINTL"
13754 gt_save_LIBS="$LIBS"
13755 LIBS="$LIBS $LIBINTL"
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13758 #include <libintl.h>
13759 $gt_revision_test_code
13760 extern int _nl_msg_cat_cntr;
13761 extern
13762 #ifdef __cplusplus
13763 "C"
13764 #endif
13765 const char *_nl_expand_alias (const char *);
13766 int
13767 main ()
13768 {
13769 bindtextdomain ("", "");
13770 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13771 ;
13772 return 0;
13773 }
13774 _ACEOF
13775 if ac_fn_c_try_link "$LINENO"; then :
13776 eval "$gt_func_gnugettext_libintl=yes"
13777 else
13778 eval "$gt_func_gnugettext_libintl=no"
13779 fi
13780 rm -f core conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
13782 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13783 LIBS="$LIBS $LIBICONV"
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 #include <libintl.h>
13787 $gt_revision_test_code
13788 extern int _nl_msg_cat_cntr;
13789 extern
13790 #ifdef __cplusplus
13791 "C"
13792 #endif
13793 const char *_nl_expand_alias (const char *);
13794 int
13795 main ()
13796 {
13797 bindtextdomain ("", "");
13798 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13799 ;
13800 return 0;
13801 }
13802 _ACEOF
13803 if ac_fn_c_try_link "$LINENO"; then :
13804 LIBINTL="$LIBINTL $LIBICONV"
13805 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13806 eval "$gt_func_gnugettext_libintl=yes"
13807
13808 fi
13809 rm -f core conftest.err conftest.$ac_objext \
13810 conftest$ac_exeext conftest.$ac_ext
13811 fi
13812 CPPFLAGS="$gt_save_CPPFLAGS"
13813 LIBS="$gt_save_LIBS"
13814 fi
13815 eval ac_res=\$$gt_func_gnugettext_libintl
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13817 $as_echo "$ac_res" >&6; }
13818 fi
13819
13820 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13821 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13822 && test "$PACKAGE" != gettext-runtime \
13823 && test "$PACKAGE" != gettext-tools; }; then
13824 gt_use_preinstalled_gnugettext=yes
13825 else
13826 LIBINTL=
13827 LTLIBINTL=
13828 INCINTL=
13829 fi
13830
13831
13832
13833 if test -n "$INTL_MACOSX_LIBS"; then
13834 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13835 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13836 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13837 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13838 fi
13839 fi
13840
13841 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13842 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13843
13844 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13845
13846 else
13847 USE_NLS=no
13848 fi
13849 fi
13850
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13852 $as_echo_n "checking whether to use NLS... " >&6; }
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13854 $as_echo "$USE_NLS" >&6; }
13855 if test "$USE_NLS" = "yes"; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13857 $as_echo_n "checking where the gettext function comes from... " >&6; }
13858 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13859 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13860 gt_source="external libintl"
13861 else
13862 gt_source="libc"
13863 fi
13864 else
13865 gt_source="included intl directory"
13866 fi
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13868 $as_echo "$gt_source" >&6; }
13869 fi
13870
13871 if test "$USE_NLS" = "yes"; then
13872
13873 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13874 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13876 $as_echo_n "checking how to link with libintl... " >&6; }
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13878 $as_echo "$LIBINTL" >&6; }
13879
13880 for element in $INCINTL; do
13881 haveit=
13882 for x in $CPPFLAGS; do
13883
13884 acl_save_prefix="$prefix"
13885 prefix="$acl_final_prefix"
13886 acl_save_exec_prefix="$exec_prefix"
13887 exec_prefix="$acl_final_exec_prefix"
13888 eval x=\"$x\"
13889 exec_prefix="$acl_save_exec_prefix"
13890 prefix="$acl_save_prefix"
13891
13892 if test "X$x" = "X$element"; then
13893 haveit=yes
13894 break
13895 fi
13896 done
13897 if test -z "$haveit"; then
13898 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13899 fi
13900 done
13901
13902 fi
13903
13904
13905 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13906
13907
13908 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13909
13910 fi
13911
13912 POSUB=po
13913 fi
13914
13915
13916
13917 INTLLIBS="$LIBINTL"
13918
13919
13920
13921
13922
13923
13924
13925 LIBRT=""
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13927 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13928 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 ac_check_lib_save_LIBS=$LIBS
13932 LIBS="-lrt $LIBS"
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13935
13936 /* Override any GCC internal prototype to avoid an error.
13937 Use char because int might match the return type of a GCC
13938 builtin and then its argument prototype would still apply. */
13939 #ifdef __cplusplus
13940 extern "C"
13941 #endif
13942 char clock_gettime ();
13943 int
13944 main ()
13945 {
13946 return clock_gettime ();
13947 ;
13948 return 0;
13949 }
13950 _ACEOF
13951 if ac_fn_c_try_link "$LINENO"; then :
13952 ac_cv_lib_rt_clock_gettime=yes
13953 else
13954 ac_cv_lib_rt_clock_gettime=no
13955 fi
13956 rm -f core conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13958 LIBS=$ac_check_lib_save_LIBS
13959 fi
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13961 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13962 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13963 LIBRT="-lrt"
13964 fi
13965
13966
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13969 $as_echo_n "checking for library containing socket... " >&6; }
13970 if ${ac_cv_search_socket+:} false; then :
13971 $as_echo_n "(cached) " >&6
13972 else
13973 ac_func_search_save_LIBS=$LIBS
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13976
13977 /* Override any GCC internal prototype to avoid an error.
13978 Use char because int might match the return type of a GCC
13979 builtin and then its argument prototype would still apply. */
13980 #ifdef __cplusplus
13981 extern "C"
13982 #endif
13983 char socket ();
13984 int
13985 main ()
13986 {
13987 return socket ();
13988 ;
13989 return 0;
13990 }
13991 _ACEOF
13992 for ac_lib in '' socket; do
13993 if test -z "$ac_lib"; then
13994 ac_res="none required"
13995 else
13996 ac_res=-l$ac_lib
13997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13998 fi
13999 if ac_fn_c_try_link "$LINENO"; then :
14000 ac_cv_search_socket=$ac_res
14001 fi
14002 rm -f core conftest.err conftest.$ac_objext \
14003 conftest$ac_exeext
14004 if ${ac_cv_search_socket+:} false; then :
14005 break
14006 fi
14007 done
14008 if ${ac_cv_search_socket+:} false; then :
14009
14010 else
14011 ac_cv_search_socket=no
14012 fi
14013 rm conftest.$ac_ext
14014 LIBS=$ac_func_search_save_LIBS
14015 fi
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14017 $as_echo "$ac_cv_search_socket" >&6; }
14018 ac_res=$ac_cv_search_socket
14019 if test "$ac_res" != no; then :
14020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14021 rdc_cv_func_socket=yes
14022 else
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lws2_32" >&5
14024 $as_echo_n "checking for socket in -lws2_32... " >&6; }
14025 if ${rdc_cv_func_socket_ws2_32+:} false; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 rdc_func_socket_save_LIBS=$LIBS
14029 LIBS="-lws2_32 $LIBS"
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14032
14033 #if HAVE_WINSOCK2_H
14034 # include <winsock2.h>
14035 #endif
14036 int
14037 main ()
14038 {
14039 socket(0, 0, 0);
14040 ;
14041 return 0;
14042 }
14043 _ACEOF
14044 if ac_fn_c_try_link "$LINENO"; then :
14045 rdc_cv_func_socket_ws2_32=yes
14046 else
14047 rdc_cv_func_socket_ws2_32=no
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14051 LIBS=$rdv_func_socket_save_LIBS
14052 fi
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rdc_cv_func_socket_ws2_32" >&5
14054 $as_echo "$rdc_cv_func_socket_ws2_32" >&6; }
14055 if test "$rdc_cv_func_socket_ws2_32" = yes; then :
14056 rdc_cv_func_socket=yes; LIBS="-lws2_32 $LIBS"
14057 fi
14058
14059 fi
14060
14061 if test "$rdc_cv_func_socket" = yes; then :
14062
14063 fi
14064
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
14066 $as_echo_n "checking for library containing inet_ntop... " >&6; }
14067 if ${ac_cv_search_inet_ntop+:} false; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 ac_func_search_save_LIBS=$LIBS
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14073
14074 /* Override any GCC internal prototype to avoid an error.
14075 Use char because int might match the return type of a GCC
14076 builtin and then its argument prototype would still apply. */
14077 #ifdef __cplusplus
14078 extern "C"
14079 #endif
14080 char inet_ntop ();
14081 int
14082 main ()
14083 {
14084 return inet_ntop ();
14085 ;
14086 return 0;
14087 }
14088 _ACEOF
14089 for ac_lib in '' nsl; do
14090 if test -z "$ac_lib"; then
14091 ac_res="none required"
14092 else
14093 ac_res=-l$ac_lib
14094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14095 fi
14096 if ac_fn_c_try_link "$LINENO"; then :
14097 ac_cv_search_inet_ntop=$ac_res
14098 fi
14099 rm -f core conftest.err conftest.$ac_objext \
14100 conftest$ac_exeext
14101 if ${ac_cv_search_inet_ntop+:} false; then :
14102 break
14103 fi
14104 done
14105 if ${ac_cv_search_inet_ntop+:} false; then :
14106
14107 else
14108 ac_cv_search_inet_ntop=no
14109 fi
14110 rm conftest.$ac_ext
14111 LIBS=$ac_func_search_save_LIBS
14112 fi
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
14114 $as_echo "$ac_cv_search_inet_ntop" >&6; }
14115 ac_res=$ac_cv_search_inet_ntop
14116 if test "$ac_res" != no; then :
14117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14118
14119 fi
14120
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init in -lresolv" >&5
14122 $as_echo_n "checking for res_init in -lresolv... " >&6; }
14123 if ${ac_cv_lib_resolv_res_init+:} false; then :
14124 $as_echo_n "(cached) " >&6
14125 else
14126 ac_check_lib_save_LIBS=$LIBS
14127 LIBS="-lresolv $LIBS"
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14130
14131 /* Override any GCC internal prototype to avoid an error.
14132 Use char because int might match the return type of a GCC
14133 builtin and then its argument prototype would still apply. */
14134 #ifdef __cplusplus
14135 extern "C"
14136 #endif
14137 char res_init ();
14138 int
14139 main ()
14140 {
14141 return res_init ();
14142 ;
14143 return 0;
14144 }
14145 _ACEOF
14146 if ac_fn_c_try_link "$LINENO"; then :
14147 ac_cv_lib_resolv_res_init=yes
14148 else
14149 ac_cv_lib_resolv_res_init=no
14150 fi
14151 rm -f core conftest.err conftest.$ac_objext \
14152 conftest$ac_exeext conftest.$ac_ext
14153 LIBS=$ac_check_lib_save_LIBS
14154 fi
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_init" >&5
14156 $as_echo "$ac_cv_lib_resolv_res_init" >&6; }
14157 if test "x$ac_cv_lib_resolv_res_init" = xyes; then :
14158 cat >>confdefs.h <<_ACEOF
14159 #define HAVE_LIBRESOLV 1
14160 _ACEOF
14161
14162 LIBS="-lresolv $LIBS"
14163
14164 fi
14165
14166
14167 # Oooh, evil platform-rather-than-feature tests
14168 case "${host_os}" in
14169 darwin*)
14170
14171 $as_echo "#define HAVE_SYSTEMCONFIGURATION_FRAMEWORK 1" >>confdefs.h
14172
14173 CFLAGS="${CFLAGS} -framework SystemConfiguration"
14174
14175 $as_echo "#define HAVE_COREFOUNDATION_FRAMEWORK 1" >>confdefs.h
14176
14177 CFLAGS="${CFLAGS} -framework CoreFoundation"
14178 ;;
14179 esac
14180
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which hook scripts to use" >&5
14182 $as_echo_n "checking which hook scripts to use... " >&6; }
14183 case "${host_os}" in
14184 *linux*)
14185 hook_suffix=iproute
14186 ;;
14187 *)
14188 hook_suffix=bsd
14189 ;;
14190 esac
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hook_suffix}" >&5
14192 $as_echo "${hook_suffix}" >&6; }
14193
14194
14195
14196 # POSIX threads
14197
14198 if test "${PTHREAD_CFLAGS}"; then :
14199
14200 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
14201
14202 fi
14203
14204
14205 if test "${PTHREAD_LDFAGS}${PTHREAD_LIBS}"; then :
14206
14207 # Neat! the packaging system tells us how to use pthread
14208 LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} ${LIBS}"
14209
14210 else
14211
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14213 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14214 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14215 $as_echo_n "(cached) " >&6
14216 else
14217 ac_check_lib_save_LIBS=$LIBS
14218 LIBS="-lpthread $LIBS"
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14221
14222 /* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */
14225 #ifdef __cplusplus
14226 extern "C"
14227 #endif
14228 char pthread_create ();
14229 int
14230 main ()
14231 {
14232 return pthread_create ();
14233 ;
14234 return 0;
14235 }
14236 _ACEOF
14237 if ac_fn_c_try_link "$LINENO"; then :
14238 ac_cv_lib_pthread_pthread_create=yes
14239 else
14240 ac_cv_lib_pthread_pthread_create=no
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext conftest.$ac_ext
14244 LIBS=$ac_check_lib_save_LIBS
14245 fi
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14247 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14248 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14249 cat >>confdefs.h <<_ACEOF
14250 #define HAVE_LIBPTHREAD 1
14251 _ACEOF
14252
14253 LIBS="-lpthread $LIBS"
14254
14255 fi
14256
14257
14258 fi
14259
14260
14261 cat >>confdefs.h <<_ACEOF
14262 #define PACKAGE_BUILD "$build"
14263 _ACEOF
14264
14265
14266 cat >>confdefs.h <<_ACEOF
14267 #define PACKAGE_HOST "$host"
14268 _ACEOF
14269
14270
14271
14272 # Checks for header files.
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking header files..." >&5
14274 $as_echo "$as_me: checking header files..." >&6;}
14275
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
14277 $as_echo_n "checking whether to enable assertions... " >&6; }
14278 # Check whether --enable-assert was given.
14279 if test "${enable_assert+set}" = set; then :
14280 enableval=$enable_assert; ac_enable_assert=$enableval
14281 if test "x$enableval" = xno; then :
14282
14283 $as_echo "#define NDEBUG 1" >>confdefs.h
14284
14285 elif test "x$enableval" != xyes; then :
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
14287 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
14288 ac_enable_assert=yes
14289 fi
14290 else
14291 ac_enable_assert=yes
14292 fi
14293
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
14295 $as_echo "$ac_enable_assert" >&6; }
14296
14297 for ac_header in libintl.h net/if_tun.h net/tun/if_tun.h
14298 do :
14299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14300 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14301 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14302 cat >>confdefs.h <<_ACEOF
14303 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14304 _ACEOF
14305
14306 fi
14307
14308 done
14309
14310 for ac_header in net/if_var.h
14311 do :
14312 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "#include <sys/types.h>
14313 #include <sys/socket.h>
14314 #include <net/if.h>
14315
14316 "
14317 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
14318 cat >>confdefs.h <<_ACEOF
14319 #define HAVE_NET_IF_VAR_H 1
14320 _ACEOF
14321
14322 fi
14323
14324 done
14325
14326
14327
14328 # Checks for typedefs, structures, and compiler characteristics.
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target characteristics..." >&5
14330 $as_echo "$as_me: checking target characteristics..." >&6;}
14331 for a in all extra undef pointer-arith bad-function-cast cast-align write-strings aggregate-return strict-prototypes old-style-definition missing-prototypes missing-noreturn packed nested-externs redundant-decls volatile-register-var; do
14332
14333 CFLAGS_save="${CFLAGS}"
14334 as_ac_var=`echo "ac_cv_prog_cc_flags_-W$a" | $as_tr_sh`
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -W$a" >&5
14336 $as_echo_n "checking if $CC accepts -W$a... " >&6; }
14337 if eval \${$as_ac_var+:} false; then :
14338 $as_echo_n "(cached) " >&6
14339 else
14340
14341 CFLAGS="${CFLAGS} -W$a"
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344
14345 int
14346 main ()
14347 {
14348
14349 ;
14350 return 0;
14351 }
14352 _ACEOF
14353 if ac_fn_c_try_compile "$LINENO"; then :
14354
14355 eval "$as_ac_var=yes"
14356
14357 else
14358
14359 eval "$as_ac_var=no"
14360
14361 fi
14362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14363
14364 fi
14365 eval ac_res=\$$as_ac_var
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14367 $as_echo "$ac_res" >&6; }
14368
14369 ac_res=`eval echo '${'$as_ac_var'}'`
14370 if test "${ac_res}" != "no"; then :
14371
14372 CFLAGS="${CFLAGS_save} -W$a"
14373 CXXFLAGS="${CXXFLAGS} -W$a"
14374 OBJCFLAGS="${OBJCFLAGS} -W$a"
14375
14376
14377 else
14378
14379 CFLAGS="${CFLAGS_save}"
14380
14381
14382 fi
14383
14384 done
14385
14386 #shadow fails because of ntohl()
14387 #cast-qual fails because of const/iovec, libcap, Judy
14388 # padded unreachable-code missing-format-attribute inline
14389
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14391 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14392 if ${ac_cv_c_bigendian+:} false; then :
14393 $as_echo_n "(cached) " >&6
14394 else
14395 ac_cv_c_bigendian=unknown
14396 # See if we're dealing with a universal compiler.
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14399 #ifndef __APPLE_CC__
14400 not a universal capable compiler
14401 #endif
14402 typedef int dummy;
14403
14404 _ACEOF
14405 if ac_fn_c_try_compile "$LINENO"; then :
14406
14407 # Check for potential -arch flags. It is not universal unless
14408 # there are at least two -arch flags with different values.
14409 ac_arch=
14410 ac_prev=
14411 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14412 if test -n "$ac_prev"; then
14413 case $ac_word in
14414 i?86 | x86_64 | ppc | ppc64)
14415 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14416 ac_arch=$ac_word
14417 else
14418 ac_cv_c_bigendian=universal
14419 break
14420 fi
14421 ;;
14422 esac
14423 ac_prev=
14424 elif test "x$ac_word" = "x-arch"; then
14425 ac_prev=arch
14426 fi
14427 done
14428 fi
14429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430 if test $ac_cv_c_bigendian = unknown; then
14431 # See if sys/param.h defines the BYTE_ORDER macro.
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14434 #include <sys/types.h>
14435 #include <sys/param.h>
14436
14437 int
14438 main ()
14439 {
14440 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14441 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14442 && LITTLE_ENDIAN)
14443 bogus endian macros
14444 #endif
14445
14446 ;
14447 return 0;
14448 }
14449 _ACEOF
14450 if ac_fn_c_try_compile "$LINENO"; then :
14451 # It does; now see whether it defined to BIG_ENDIAN or not.
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14454 #include <sys/types.h>
14455 #include <sys/param.h>
14456
14457 int
14458 main ()
14459 {
14460 #if BYTE_ORDER != BIG_ENDIAN
14461 not big endian
14462 #endif
14463
14464 ;
14465 return 0;
14466 }
14467 _ACEOF
14468 if ac_fn_c_try_compile "$LINENO"; then :
14469 ac_cv_c_bigendian=yes
14470 else
14471 ac_cv_c_bigendian=no
14472 fi
14473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14474 fi
14475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14476 fi
14477 if test $ac_cv_c_bigendian = unknown; then
14478 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481 #include <limits.h>
14482
14483 int
14484 main ()
14485 {
14486 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14487 bogus endian macros
14488 #endif
14489
14490 ;
14491 return 0;
14492 }
14493 _ACEOF
14494 if ac_fn_c_try_compile "$LINENO"; then :
14495 # It does; now see whether it defined to _BIG_ENDIAN or not.
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 #include <limits.h>
14499
14500 int
14501 main ()
14502 {
14503 #ifndef _BIG_ENDIAN
14504 not big endian
14505 #endif
14506
14507 ;
14508 return 0;
14509 }
14510 _ACEOF
14511 if ac_fn_c_try_compile "$LINENO"; then :
14512 ac_cv_c_bigendian=yes
14513 else
14514 ac_cv_c_bigendian=no
14515 fi
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517 fi
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519 fi
14520 if test $ac_cv_c_bigendian = unknown; then
14521 # Compile a test program.
14522 if test "$cross_compiling" = yes; then :
14523 # Try to guess by grepping values from an object file.
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526 short int ascii_mm[] =
14527 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14528 short int ascii_ii[] =
14529 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14530 int use_ascii (int i) {
14531 return ascii_mm[i] + ascii_ii[i];
14532 }
14533 short int ebcdic_ii[] =
14534 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14535 short int ebcdic_mm[] =
14536 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14537 int use_ebcdic (int i) {
14538 return ebcdic_mm[i] + ebcdic_ii[i];
14539 }
14540 extern int foo;
14541
14542 int
14543 main ()
14544 {
14545 return use_ascii (foo) == use_ebcdic (foo);
14546 ;
14547 return 0;
14548 }
14549 _ACEOF
14550 if ac_fn_c_try_compile "$LINENO"; then :
14551 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14552 ac_cv_c_bigendian=yes
14553 fi
14554 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14555 if test "$ac_cv_c_bigendian" = unknown; then
14556 ac_cv_c_bigendian=no
14557 else
14558 # finding both strings is unlikely to happen, but who knows?
14559 ac_cv_c_bigendian=unknown
14560 fi
14561 fi
14562 fi
14563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14564 else
14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h. */
14567 $ac_includes_default
14568 int
14569 main ()
14570 {
14571
14572 /* Are we little or big endian? From Harbison&Steele. */
14573 union
14574 {
14575 long int l;
14576 char c[sizeof (long int)];
14577 } u;
14578 u.l = 1;
14579 return u.c[sizeof (long int) - 1] == 1;
14580
14581 ;
14582 return 0;
14583 }
14584 _ACEOF
14585 if ac_fn_c_try_run "$LINENO"; then :
14586 ac_cv_c_bigendian=no
14587 else
14588 ac_cv_c_bigendian=yes
14589 fi
14590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14591 conftest.$ac_objext conftest.beam conftest.$ac_ext
14592 fi
14593
14594 fi
14595 fi
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14597 $as_echo "$ac_cv_c_bigendian" >&6; }
14598 case $ac_cv_c_bigendian in #(
14599 yes)
14600 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14601 ;; #(
14602 no)
14603 ;; #(
14604 universal)
14605
14606 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14607
14608 ;; #(
14609 *)
14610 as_fn_error $? "unknown endianness
14611 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14612 esac
14613
14614
14615
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr has a sa_len member" >&5
14617 $as_echo_n "checking if struct sockaddr has a sa_len member... " >&6; }
14618 if ${rdc_cv_struct_sockaddr_len+:} false; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14623
14624 #if HAVE_SYS_TYPES_H
14625 # include <sys/types.h>
14626 #endif
14627 #include <sys/socket.h>
14628 int
14629 main ()
14630 {
14631 struct sockaddr addr; addr.sa_len = 0;
14632 ;
14633 return 0;
14634 }
14635 _ACEOF
14636 if ac_fn_c_try_compile "$LINENO"; then :
14637 rdc_cv_struct_sockaddr_len=yes
14638 else
14639 rdc_cv_struct_sockaddr_len=no
14640 fi
14641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14642 fi
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rdc_cv_struct_sockaddr_len" >&5
14644 $as_echo "$rdc_cv_struct_sockaddr_len" >&6; }
14645 if test $rdc_cv_struct_sockaddr_len = yes; then :
14646 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
14647
14648 fi
14649
14650 ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" "#include <time.h>
14651
14652 "
14653 if test "x$ac_cv_type_clockid_t" = xyes; then :
14654
14655 else
14656
14657
14658 $as_echo "#define clockid_t int" >>confdefs.h
14659
14660 fi
14661
14662
14663
14664 # Checks for library functions.
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library functions..." >&5
14666 $as_echo "$as_me: checking library functions..." >&6;}
14667
14668 for ac_header in getopt.h
14669 do :
14670 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14671 if test "x$ac_cv_header_getopt_h" = xyes; then :
14672 cat >>confdefs.h <<_ACEOF
14673 #define HAVE_GETOPT_H 1
14674 _ACEOF
14675
14676 fi
14677
14678 done
14679
14680
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
14682 $as_echo_n "checking for library containing getopt_long... " >&6; }
14683 if ${ac_cv_search_getopt_long+:} false; then :
14684 $as_echo_n "(cached) " >&6
14685 else
14686 ac_func_search_save_LIBS=$LIBS
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h. */
14689
14690 /* Override any GCC internal prototype to avoid an error.
14691 Use char because int might match the return type of a GCC
14692 builtin and then its argument prototype would still apply. */
14693 #ifdef __cplusplus
14694 extern "C"
14695 #endif
14696 char getopt_long ();
14697 int
14698 main ()
14699 {
14700 return getopt_long ();
14701 ;
14702 return 0;
14703 }
14704 _ACEOF
14705 for ac_lib in '' gnugetopt; do
14706 if test -z "$ac_lib"; then
14707 ac_res="none required"
14708 else
14709 ac_res=-l$ac_lib
14710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14711 fi
14712 if ac_fn_c_try_link "$LINENO"; then :
14713 ac_cv_search_getopt_long=$ac_res
14714 fi
14715 rm -f core conftest.err conftest.$ac_objext \
14716 conftest$ac_exeext
14717 if ${ac_cv_search_getopt_long+:} false; then :
14718 break
14719 fi
14720 done
14721 if ${ac_cv_search_getopt_long+:} false; then :
14722
14723 else
14724 ac_cv_search_getopt_long=no
14725 fi
14726 rm conftest.$ac_ext
14727 LIBS=$ac_func_search_save_LIBS
14728 fi
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
14730 $as_echo "$ac_cv_search_getopt_long" >&6; }
14731 ac_res=$ac_cv_search_getopt_long
14732 if test "$ac_res" != no; then :
14733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14734 have_getopt_long=yes
14735 else
14736 have_getopt_long=no
14737 fi
14738
14739 if test $have_getopt_long = yes; then
14740 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
14741
14742
14743 else
14744
14745 false
14746 fi
14747
14748
14749 LIBS_save="$LIBS"
14750 LIBS="$LIBRT $LIBS"
14751 for ac_func in devname_r kldload pthread_condattr_setclock timer_create
14752 do :
14753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14754 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14755 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14756 cat >>confdefs.h <<_ACEOF
14757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14758 _ACEOF
14759
14760 fi
14761 done
14762
14763 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
14764 if test "x$ac_cv_func_clearenv" = xyes; then :
14765 $as_echo "#define HAVE_CLEARENV 1" >>confdefs.h
14766
14767 else
14768 case " $LIBOBJS " in
14769 *" clearenv.$ac_objext "* ) ;;
14770 *) LIBOBJS="$LIBOBJS clearenv.$ac_objext"
14771 ;;
14772 esac
14773
14774 fi
14775
14776 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
14777 if test "x$ac_cv_func_closefrom" = xyes; then :
14778 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
14779
14780 else
14781 case " $LIBOBJS " in
14782 *" closefrom.$ac_objext "* ) ;;
14783 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
14784 ;;
14785 esac
14786
14787 fi
14788
14789 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
14790 if test "x$ac_cv_func_strlcpy" = xyes; then :
14791 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
14792
14793 else
14794 case " $LIBOBJS " in
14795 *" strlcpy.$ac_objext "* ) ;;
14796 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
14797 ;;
14798 esac
14799
14800 fi
14801
14802 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14803 if test "x$ac_cv_func_clock_gettime" = xyes; then :
14804 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14805
14806 else
14807 case " $LIBOBJS " in
14808 *" clock_gettime.$ac_objext "* ) ;;
14809 *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
14810 ;;
14811 esac
14812
14813 fi
14814
14815 ac_fn_c_check_func "$LINENO" "clock_nanosleep" "ac_cv_func_clock_nanosleep"
14816 if test "x$ac_cv_func_clock_nanosleep" = xyes; then :
14817 $as_echo "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
14818
14819 else
14820 case " $LIBOBJS " in
14821 *" clock_nanosleep.$ac_objext "* ) ;;
14822 *) LIBOBJS="$LIBOBJS clock_nanosleep.$ac_objext"
14823 ;;
14824 esac
14825
14826 fi
14827
14828 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
14829 if test "x$ac_cv_func_fdatasync" = xyes; then :
14830 $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
14831
14832 else
14833 case " $LIBOBJS " in
14834 *" fdatasync.$ac_objext "* ) ;;
14835 *) LIBOBJS="$LIBOBJS fdatasync.$ac_objext"
14836 ;;
14837 esac
14838
14839 fi
14840
14841
14842 LIBS="$LIBS_save"
14843
14844 # Checks for optionnal features
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking optional features..." >&5
14846 $as_echo "$as_me: checking optional features..." >&6;}
14847
14848 # POSIX capabilities
14849 LIBCAP=""
14850 for ac_header in sys/capability.h
14851 do :
14852 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
14853 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
14854 cat >>confdefs.h <<_ACEOF
14855 #define HAVE_SYS_CAPABILITY_H 1
14856 _ACEOF
14857
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
14859 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
14860 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 ac_check_lib_save_LIBS=$LIBS
14864 LIBS="-lcap $LIBS"
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14867
14868 /* Override any GCC internal prototype to avoid an error.
14869 Use char because int might match the return type of a GCC
14870 builtin and then its argument prototype would still apply. */
14871 #ifdef __cplusplus
14872 extern "C"
14873 #endif
14874 char cap_set_proc ();
14875 int
14876 main ()
14877 {
14878 return cap_set_proc ();
14879 ;
14880 return 0;
14881 }
14882 _ACEOF
14883 if ac_fn_c_try_link "$LINENO"; then :
14884 ac_cv_lib_cap_cap_set_proc=yes
14885 else
14886 ac_cv_lib_cap_cap_set_proc=no
14887 fi
14888 rm -f core conftest.err conftest.$ac_objext \
14889 conftest$ac_exeext conftest.$ac_ext
14890 LIBS=$ac_check_lib_save_LIBS
14891 fi
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
14893 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
14894 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
14895
14896 LIBCAP="-lcap"
14897
14898 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
14899
14900
14901 fi
14902
14903
14904 fi
14905
14906 done
14907
14908
14909
14910
14911 # Judy
14912
14913 # Check whether --with-Judy was given.
14914 if test "${with_Judy+set}" = set; then :
14915 withval=$with_Judy;
14916 fi
14917
14918 LIBJUDY=""
14919 if test "x${with_Judy}" != "xno"; then :
14920
14921 for ac_header in Judy.h
14922 do :
14923 ac_fn_c_check_header_mongrel "$LINENO" "Judy.h" "ac_cv_header_Judy_h" "$ac_includes_default"
14924 if test "x$ac_cv_header_Judy_h" = xyes; then :
14925 cat >>confdefs.h <<_ACEOF
14926 #define HAVE_JUDY_H 1
14927 _ACEOF
14928
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JudyHSIns in -lJudy" >&5
14930 $as_echo_n "checking for JudyHSIns in -lJudy... " >&6; }
14931 if ${ac_cv_lib_Judy_JudyHSIns+:} false; then :
14932 $as_echo_n "(cached) " >&6
14933 else
14934 ac_check_lib_save_LIBS=$LIBS
14935 LIBS="-lJudy $LIBS"
14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h. */
14938
14939 /* Override any GCC internal prototype to avoid an error.
14940 Use char because int might match the return type of a GCC
14941 builtin and then its argument prototype would still apply. */
14942 #ifdef __cplusplus
14943 extern "C"
14944 #endif
14945 char JudyHSIns ();
14946 int
14947 main ()
14948 {
14949 return JudyHSIns ();
14950 ;
14951 return 0;
14952 }
14953 _ACEOF
14954 if ac_fn_c_try_link "$LINENO"; then :
14955 ac_cv_lib_Judy_JudyHSIns=yes
14956 else
14957 ac_cv_lib_Judy_JudyHSIns=no
14958 fi
14959 rm -f core conftest.err conftest.$ac_objext \
14960 conftest$ac_exeext conftest.$ac_ext
14961 LIBS=$ac_check_lib_save_LIBS
14962 fi
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Judy_JudyHSIns" >&5
14964 $as_echo "$ac_cv_lib_Judy_JudyHSIns" >&6; }
14965 if test "x$ac_cv_lib_Judy_JudyHSIns" = xyes; then :
14966
14967 LIBJUDY="-lJudy"
14968
14969 $as_echo "#define HAVE_LIBJUDY 1" >>confdefs.h
14970
14971
14972 fi
14973
14974
14975 fi
14976
14977 done
14978
14979 if test "x${LIBJUDY}" = "x"; then :
14980
14981 if test "x${with_Judy}" != "x"; then :
14982
14983 as_fn_error $? "Judy dynamic arrays library missing." "$LINENO" 5
14984
14985 fi
14986
14987 fi
14988
14989 fi
14990 if test "x${LIBJUDY}" = "x"; then :
14991
14992 ac_fn_c_check_func "$LINENO" "tdestroy" "ac_cv_func_tdestroy"
14993 if test "x$ac_cv_func_tdestroy" = xyes; then :
14994
14995 else
14996
14997 as_fn_error $? "Required tdestroy() or Judy dynamic arrays." "$LINENO" 5
14998
14999 fi
15000
15001
15002 fi
15003
15004
15005
15006 # Test coverage build
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build for test coverage" >&5
15008 $as_echo_n "checking whether to build for test coverage... " >&6; }
15009 # Check whether --enable-coverage was given.
15010 if test "${enable_coverage+set}" = set; then :
15011 enableval=$enable_coverage;
15012 else
15013 enable_coverage="no"
15014 fi
15015
15016 if test "${enable_coverage}" != "no"; then :
15017
15018 CFLAGS="${CFLAGS} -g -O0 -fprofile-arcs -ftest-coverage"
15019 LDFLAGS="${LDFLAGS} -lgcov"
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15021 $as_echo "yes" >&6; }
15022
15023 else
15024
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15026 $as_echo "no" >&6; }
15027
15028 fi
15029
15030
15031 # Teredo client
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Teredo client support" >&5
15033 $as_echo_n "checking whether to include Teredo client support... " >&6; }
15034 # Check whether --enable-teredo-client was given.
15035 if test "${enable_teredo_client+set}" = set; then :
15036 enableval=$enable_teredo_client;
15037 else
15038 enable_teredo_client="yes"
15039 fi
15040
15041 if test "${enable_teredo_client}" != "no"; then
15042 TEREDO_CLIENT_TRUE=
15043 TEREDO_CLIENT_FALSE='#'
15044 else
15045 TEREDO_CLIENT_TRUE='#'
15046 TEREDO_CLIENT_FALSE=
15047 fi
15048
15049 if test "${enable_teredo_client}" != "no"; then :
15050
15051
15052 $as_echo "#define MIREDO_TEREDO_CLIENT 1" >>confdefs.h
15053
15054
15055 fi
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_teredo_client}" >&5
15057 $as_echo "${enable_teredo_client}" >&6; }
15058
15059
15060 # Configuration files installation
15061 # Check whether --enable-examplesdir was given.
15062 if test "${enable_examplesdir+set}" = set; then :
15063 enableval=$enable_examplesdir;
15064 else
15065 enable_examplesdir='${docdir}/examples'
15066 fi
15067
15068 if test "x${enable_examplesdir}" != "xno"; then :
15069 examplesdir="${enable_examplesdir}"
15070 fi
15071
15072
15073 # Check whether --enable-sample-conf was given.
15074 if test "${enable_sample_conf+set}" = set; then :
15075 enableval=$enable_sample_conf;
15076 else
15077 enable_sample_conf="yes"
15078 fi
15079
15080 if test "${enable_sample_conf}" != "no"; then
15081 CONF_SAMPLE_TRUE=
15082 CONF_SAMPLE_FALSE='#'
15083 else
15084 CONF_SAMPLE_TRUE='#'
15085 CONF_SAMPLE_FALSE=
15086 fi
15087
15088
15089
15090 # Unprivileged user
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking user to run as" >&5
15092 $as_echo_n "checking user to run as... " >&6; }
15093 # Check whether --enable-miredo-user was given.
15094 if test "${enable_miredo_user+set}" = set; then :
15095 enableval=$enable_miredo_user;
15096 if test "${enable_miredo_user}" = "yes"; then :
15097 enable_miredo_user="miredo"
15098 fi
15099 if test "${enable_miredo_user}" = "no"; then :
15100 enable_miredo_user="root"
15101 fi
15102
15103 else
15104
15105 enable_miredo_user="nobody"
15106
15107 fi
15108
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_miredo_user}" >&5
15110 $as_echo "${enable_miredo_user}" >&6; }
15111 if test "${enable_miredo_user}" != "root"; then :
15112
15113
15114 cat >>confdefs.h <<_ACEOF
15115 #define MIREDO_DEFAULT_USERNAME "${enable_miredo_user}"
15116 _ACEOF
15117
15118
15119 else
15120
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Running as root is DANGEROUS!" >&5
15122 $as_echo "$as_me: WARNING: Running as root is DANGEROUS!" >&2;}
15123
15124 fi
15125
15126
15127 # Defines for <config.h>
15128
15129
15130
15131 # END
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: writing results..." >&5
15133 $as_echo "$as_me: writing results..." >&6;}
15134 ac_config_files="$ac_config_files Makefile m4/Makefile doc/Makefile misc/Makefile compat/Makefile libtun6/Makefile libteredo/Makefile libteredo/test/Makefile src/Makefile po/Makefile.in Doxyfile"
15135
15136 cat >confcache <<\_ACEOF
15137 # This file is a shell script that caches the results of configure
15138 # tests run on this system so they can be shared between configure
15139 # scripts and configure runs, see configure's option --config-cache.
15140 # It is not useful on other systems. If it contains results you don't
15141 # want to keep, you may remove or edit it.
15142 #
15143 # config.status only pays attention to the cache file if you give it
15144 # the --recheck option to rerun configure.
15145 #
15146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15148 # following values.
15149
15150 _ACEOF
15151
15152 # The following way of writing the cache mishandles newlines in values,
15153 # but we know of no workaround that is simple, portable, and efficient.
15154 # So, we kill variables containing newlines.
15155 # Ultrix sh set writes to stderr and can't be redirected directly,
15156 # and sets the high bit in the cache file unless we assign to the vars.
15157 (
15158 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15159 eval ac_val=\$$ac_var
15160 case $ac_val in #(
15161 *${as_nl}*)
15162 case $ac_var in #(
15163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15165 esac
15166 case $ac_var in #(
15167 _ | IFS | as_nl) ;; #(
15168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15169 *) { eval $ac_var=; unset $ac_var;} ;;
15170 esac ;;
15171 esac
15172 done
15173
15174 (set) 2>&1 |
15175 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15176 *${as_nl}ac_space=\ *)
15177 # `set' does not quote correctly, so add quotes: double-quote
15178 # substitution turns \\\\ into \\, and sed turns \\ into \.
15179 sed -n \
15180 "s/'/'\\\\''/g;
15181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15182 ;; #(
15183 *)
15184 # `set' quotes correctly as required by POSIX, so do not add quotes.
15185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15186 ;;
15187 esac |
15188 sort
15189 ) |
15190 sed '
15191 /^ac_cv_env_/b end
15192 t clear
15193 :clear
15194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15195 t end
15196 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15197 :end' >>confcache
15198 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15199 if test -w "$cache_file"; then
15200 if test "x$cache_file" != "x/dev/null"; then
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15202 $as_echo "$as_me: updating cache $cache_file" >&6;}
15203 if test ! -f "$cache_file" || test -h "$cache_file"; then
15204 cat confcache >"$cache_file"
15205 else
15206 case $cache_file in #(
15207 */* | ?:*)
15208 mv -f confcache "$cache_file"$$ &&
15209 mv -f "$cache_file"$$ "$cache_file" ;; #(
15210 *)
15211 mv -f confcache "$cache_file" ;;
15212 esac
15213 fi
15214 fi
15215 else
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15217 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15218 fi
15219 fi
15220 rm -f confcache
15221
15222 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15223 # Let make expand exec_prefix.
15224 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15225
15226 DEFS=-DHAVE_CONFIG_H
15227
15228 ac_libobjs=
15229 ac_ltlibobjs=
15230 U=
15231 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15232 # 1. Remove the extension, and $U if already installed.
15233 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15234 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15235 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15236 # will be set to the directory where LIBOBJS objects are built.
15237 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15238 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15239 done
15240 LIBOBJS=$ac_libobjs
15241
15242 LTLIBOBJS=$ac_ltlibobjs
15243
15244
15245 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15246 as_fn_error $? "conditional \"AMDEP\" was never defined.
15247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15248 fi
15249 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15250 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15252 fi
15253 if test -n "$EXEEXT"; then
15254 am__EXEEXT_TRUE=
15255 am__EXEEXT_FALSE='#'
15256 else
15257 am__EXEEXT_TRUE='#'
15258 am__EXEEXT_FALSE=
15259 fi
15260
15261
15262 if test -z "${TEREDO_CLIENT_TRUE}" && test -z "${TEREDO_CLIENT_FALSE}"; then
15263 as_fn_error $? "conditional \"TEREDO_CLIENT\" was never defined.
15264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15265 fi
15266 if test -z "${CONF_SAMPLE_TRUE}" && test -z "${CONF_SAMPLE_FALSE}"; then
15267 as_fn_error $? "conditional \"CONF_SAMPLE\" was never defined.
15268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15269 fi
15270
15271 : "${CONFIG_STATUS=./config.status}"
15272 ac_write_fail=0
15273 ac_clean_files_save=$ac_clean_files
15274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15276 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15277 as_write_fail=0
15278 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15279 #! $SHELL
15280 # Generated by $as_me.
15281 # Run this file to recreate the current configuration.
15282 # Compiler output produced by configure, useful for debugging
15283 # configure, is in config.log if it exists.
15284
15285 debug=false
15286 ac_cs_recheck=false
15287 ac_cs_silent=false
15288
15289 SHELL=\${CONFIG_SHELL-$SHELL}
15290 export SHELL
15291 _ASEOF
15292 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15293 ## -------------------- ##
15294 ## M4sh Initialization. ##
15295 ## -------------------- ##
15296
15297 # Be more Bourne compatible
15298 DUALCASE=1; export DUALCASE # for MKS sh
15299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15300 emulate sh
15301 NULLCMD=:
15302 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15303 # is contrary to our usage. Disable this feature.
15304 alias -g '${1+"$@"}'='"$@"'
15305 setopt NO_GLOB_SUBST
15306 else
15307 case `(set -o) 2>/dev/null` in #(
15308 *posix*) :
15309 set -o posix ;; #(
15310 *) :
15311 ;;
15312 esac
15313 fi
15314
15315
15316 as_nl='
15317 '
15318 export as_nl
15319 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15320 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15321 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15323 # Prefer a ksh shell builtin over an external printf program on Solaris,
15324 # but without wasting forks for bash or zsh.
15325 if test -z "$BASH_VERSION$ZSH_VERSION" \
15326 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15327 as_echo='print -r --'
15328 as_echo_n='print -rn --'
15329 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15330 as_echo='printf %s\n'
15331 as_echo_n='printf %s'
15332 else
15333 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15334 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15335 as_echo_n='/usr/ucb/echo -n'
15336 else
15337 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15338 as_echo_n_body='eval
15339 arg=$1;
15340 case $arg in #(
15341 *"$as_nl"*)
15342 expr "X$arg" : "X\\(.*\\)$as_nl";
15343 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15344 esac;
15345 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15346 '
15347 export as_echo_n_body
15348 as_echo_n='sh -c $as_echo_n_body as_echo'
15349 fi
15350 export as_echo_body
15351 as_echo='sh -c $as_echo_body as_echo'
15352 fi
15353
15354 # The user is always right.
15355 if test "${PATH_SEPARATOR+set}" != set; then
15356 PATH_SEPARATOR=:
15357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15358 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15359 PATH_SEPARATOR=';'
15360 }
15361 fi
15362
15363
15364 # IFS
15365 # We need space, tab and new line, in precisely that order. Quoting is
15366 # there to prevent editors from complaining about space-tab.
15367 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15368 # splitting by setting IFS to empty value.)
15369 IFS=" "" $as_nl"
15370
15371 # Find who we are. Look in the path if we contain no directory separator.
15372 as_myself=
15373 case $0 in #((
15374 *[\\/]* ) as_myself=$0 ;;
15375 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15376 for as_dir in $PATH
15377 do
15378 IFS=$as_save_IFS
15379 test -z "$as_dir" && as_dir=.
15380 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15381 done
15382 IFS=$as_save_IFS
15383
15384 ;;
15385 esac
15386 # We did not find ourselves, most probably we were run as `sh COMMAND'
15387 # in which case we are not to be found in the path.
15388 if test "x$as_myself" = x; then
15389 as_myself=$0
15390 fi
15391 if test ! -f "$as_myself"; then
15392 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15393 exit 1
15394 fi
15395
15396 # Unset variables that we do not need and which cause bugs (e.g. in
15397 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15398 # suppresses any "Segmentation fault" message there. '((' could
15399 # trigger a bug in pdksh 5.2.14.
15400 for as_var in BASH_ENV ENV MAIL MAILPATH
15401 do eval test x\${$as_var+set} = xset \
15402 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15403 done
15404 PS1='$ '
15405 PS2='> '
15406 PS4='+ '
15407
15408 # NLS nuisances.
15409 LC_ALL=C
15410 export LC_ALL
15411 LANGUAGE=C
15412 export LANGUAGE
15413
15414 # CDPATH.
15415 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15416
15417
15418 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15419 # ----------------------------------------
15420 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15421 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15422 # script with STATUS, using 1 if that was 0.
15423 as_fn_error ()
15424 {
15425 as_status=$1; test $as_status -eq 0 && as_status=1
15426 if test "$4"; then
15427 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15428 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15429 fi
15430 $as_echo "$as_me: error: $2" >&2
15431 as_fn_exit $as_status
15432 } # as_fn_error
15433
15434
15435 # as_fn_set_status STATUS
15436 # -----------------------
15437 # Set $? to STATUS, without forking.
15438 as_fn_set_status ()
15439 {
15440 return $1
15441 } # as_fn_set_status
15442
15443 # as_fn_exit STATUS
15444 # -----------------
15445 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15446 as_fn_exit ()
15447 {
15448 set +e
15449 as_fn_set_status $1
15450 exit $1
15451 } # as_fn_exit
15452
15453 # as_fn_unset VAR
15454 # ---------------
15455 # Portably unset VAR.
15456 as_fn_unset ()
15457 {
15458 { eval $1=; unset $1;}
15459 }
15460 as_unset=as_fn_unset
15461 # as_fn_append VAR VALUE
15462 # ----------------------
15463 # Append the text in VALUE to the end of the definition contained in VAR. Take
15464 # advantage of any shell optimizations that allow amortized linear growth over
15465 # repeated appends, instead of the typical quadratic growth present in naive
15466 # implementations.
15467 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15468 eval 'as_fn_append ()
15469 {
15470 eval $1+=\$2
15471 }'
15472 else
15473 as_fn_append ()
15474 {
15475 eval $1=\$$1\$2
15476 }
15477 fi # as_fn_append
15478
15479 # as_fn_arith ARG...
15480 # ------------------
15481 # Perform arithmetic evaluation on the ARGs, and store the result in the
15482 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15483 # must be portable across $(()) and expr.
15484 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15485 eval 'as_fn_arith ()
15486 {
15487 as_val=$(( $* ))
15488 }'
15489 else
15490 as_fn_arith ()
15491 {
15492 as_val=`expr "$@" || test $? -eq 1`
15493 }
15494 fi # as_fn_arith
15495
15496
15497 if expr a : '\(a\)' >/dev/null 2>&1 &&
15498 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15499 as_expr=expr
15500 else
15501 as_expr=false
15502 fi
15503
15504 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15505 as_basename=basename
15506 else
15507 as_basename=false
15508 fi
15509
15510 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15511 as_dirname=dirname
15512 else
15513 as_dirname=false
15514 fi
15515
15516 as_me=`$as_basename -- "$0" ||
15517 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15518 X"$0" : 'X\(//\)$' \| \
15519 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15520 $as_echo X/"$0" |
15521 sed '/^.*\/\([^/][^/]*\)\/*$/{
15522 s//\1/
15523 q
15524 }
15525 /^X\/\(\/\/\)$/{
15526 s//\1/
15527 q
15528 }
15529 /^X\/\(\/\).*/{
15530 s//\1/
15531 q
15532 }
15533 s/.*/./; q'`
15534
15535 # Avoid depending upon Character Ranges.
15536 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15537 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15538 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15539 as_cr_digits='0123456789'
15540 as_cr_alnum=$as_cr_Letters$as_cr_digits
15541
15542 ECHO_C= ECHO_N= ECHO_T=
15543 case `echo -n x` in #(((((
15544 -n*)
15545 case `echo 'xy\c'` in
15546 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15547 xy) ECHO_C='\c';;
15548 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15549 ECHO_T=' ';;
15550 esac;;
15551 *)
15552 ECHO_N='-n';;
15553 esac
15554
15555 rm -f conf$$ conf$$.exe conf$$.file
15556 if test -d conf$$.dir; then
15557 rm -f conf$$.dir/conf$$.file
15558 else
15559 rm -f conf$$.dir
15560 mkdir conf$$.dir 2>/dev/null
15561 fi
15562 if (echo >conf$$.file) 2>/dev/null; then
15563 if ln -s conf$$.file conf$$ 2>/dev/null; then
15564 as_ln_s='ln -s'
15565 # ... but there are two gotchas:
15566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15568 # In both cases, we have to default to `cp -pR'.
15569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15570 as_ln_s='cp -pR'
15571 elif ln conf$$.file conf$$ 2>/dev/null; then
15572 as_ln_s=ln
15573 else
15574 as_ln_s='cp -pR'
15575 fi
15576 else
15577 as_ln_s='cp -pR'
15578 fi
15579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15580 rmdir conf$$.dir 2>/dev/null
15581
15582
15583 # as_fn_mkdir_p
15584 # -------------
15585 # Create "$as_dir" as a directory, including parents if necessary.
15586 as_fn_mkdir_p ()
15587 {
15588
15589 case $as_dir in #(
15590 -*) as_dir=./$as_dir;;
15591 esac
15592 test -d "$as_dir" || eval $as_mkdir_p || {
15593 as_dirs=
15594 while :; do
15595 case $as_dir in #(
15596 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15597 *) as_qdir=$as_dir;;
15598 esac
15599 as_dirs="'$as_qdir' $as_dirs"
15600 as_dir=`$as_dirname -- "$as_dir" ||
15601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15602 X"$as_dir" : 'X\(//\)[^/]' \| \
15603 X"$as_dir" : 'X\(//\)$' \| \
15604 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15605 $as_echo X"$as_dir" |
15606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15607 s//\1/
15608 q
15609 }
15610 /^X\(\/\/\)[^/].*/{
15611 s//\1/
15612 q
15613 }
15614 /^X\(\/\/\)$/{
15615 s//\1/
15616 q
15617 }
15618 /^X\(\/\).*/{
15619 s//\1/
15620 q
15621 }
15622 s/.*/./; q'`
15623 test -d "$as_dir" && break
15624 done
15625 test -z "$as_dirs" || eval "mkdir $as_dirs"
15626 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15627
15628
15629 } # as_fn_mkdir_p
15630 if mkdir -p . 2>/dev/null; then
15631 as_mkdir_p='mkdir -p "$as_dir"'
15632 else
15633 test -d ./-p && rmdir ./-p
15634 as_mkdir_p=false
15635 fi
15636
15637
15638 # as_fn_executable_p FILE
15639 # -----------------------
15640 # Test if FILE is an executable regular file.
15641 as_fn_executable_p ()
15642 {
15643 test -f "$1" && test -x "$1"
15644 } # as_fn_executable_p
15645 as_test_x='test -x'
15646 as_executable_p=as_fn_executable_p
15647
15648 # Sed expression to map a string onto a valid CPP name.
15649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15650
15651 # Sed expression to map a string onto a valid variable name.
15652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15653
15654
15655 exec 6>&1
15656 ## ----------------------------------- ##
15657 ## Main body of $CONFIG_STATUS script. ##
15658 ## ----------------------------------- ##
15659 _ASEOF
15660 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15661
15662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15663 # Save the log message, to keep $0 and so on meaningful, and to
15664 # report actual input values of CONFIG_FILES etc. instead of their
15665 # values after options handling.
15666 ac_log="
15667 This file was extended by miredo $as_me 1.2.6, which was
15668 generated by GNU Autoconf 2.69. Invocation command line was
15669
15670 CONFIG_FILES = $CONFIG_FILES
15671 CONFIG_HEADERS = $CONFIG_HEADERS
15672 CONFIG_LINKS = $CONFIG_LINKS
15673 CONFIG_COMMANDS = $CONFIG_COMMANDS
15674 $ $0 $@
15675
15676 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15677 "
15678
15679 _ACEOF
15680
15681 case $ac_config_files in *"
15682 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15683 esac
15684
15685 case $ac_config_headers in *"
15686 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15687 esac
15688
15689
15690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15691 # Files that config.status was made for.
15692 config_files="$ac_config_files"
15693 config_headers="$ac_config_headers"
15694 config_commands="$ac_config_commands"
15695
15696 _ACEOF
15697
15698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15699 ac_cs_usage="\
15700 \`$as_me' instantiates files and other configuration actions
15701 from templates according to the current configuration. Unless the files
15702 and actions are specified as TAGs, all are instantiated by default.
15703
15704 Usage: $0 [OPTION]... [TAG]...
15705
15706 -h, --help print this help, then exit
15707 -V, --version print version number and configuration settings, then exit
15708 --config print configuration, then exit
15709 -q, --quiet, --silent
15710 do not print progress messages
15711 -d, --debug don't remove temporary files
15712 --recheck update $as_me by reconfiguring in the same conditions
15713 --file=FILE[:TEMPLATE]
15714 instantiate the configuration file FILE
15715 --header=FILE[:TEMPLATE]
15716 instantiate the configuration header FILE
15717
15718 Configuration files:
15719 $config_files
15720
15721 Configuration headers:
15722 $config_headers
15723
15724 Configuration commands:
15725 $config_commands
15726
15727 Report bugs to <[email protected]>."
15728
15729 _ACEOF
15730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15731 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15732 ac_cs_version="\\
15733 miredo config.status 1.2.6
15734 configured by $0, generated by GNU Autoconf 2.69,
15735 with options \\"\$ac_cs_config\\"
15736
15737 Copyright (C) 2012 Free Software Foundation, Inc.
15738 This config.status script is free software; the Free Software Foundation
15739 gives unlimited permission to copy, distribute and modify it."
15740
15741 ac_pwd='$ac_pwd'
15742 srcdir='$srcdir'
15743 INSTALL='$INSTALL'
15744 MKDIR_P='$MKDIR_P'
15745 AWK='$AWK'
15746 test -n "\$AWK" || AWK=awk
15747 _ACEOF
15748
15749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15750 # The default lists apply if the user does not specify any file.
15751 ac_need_defaults=:
15752 while test $# != 0
15753 do
15754 case $1 in
15755 --*=?*)
15756 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15757 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15758 ac_shift=:
15759 ;;
15760 --*=)
15761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15762 ac_optarg=
15763 ac_shift=:
15764 ;;
15765 *)
15766 ac_option=$1
15767 ac_optarg=$2
15768 ac_shift=shift
15769 ;;
15770 esac
15771
15772 case $ac_option in
15773 # Handling of the options.
15774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15775 ac_cs_recheck=: ;;
15776 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15777 $as_echo "$ac_cs_version"; exit ;;
15778 --config | --confi | --conf | --con | --co | --c )
15779 $as_echo "$ac_cs_config"; exit ;;
15780 --debug | --debu | --deb | --de | --d | -d )
15781 debug=: ;;
15782 --file | --fil | --fi | --f )
15783 $ac_shift
15784 case $ac_optarg in
15785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15786 '') as_fn_error $? "missing file argument" ;;
15787 esac
15788 as_fn_append CONFIG_FILES " '$ac_optarg'"
15789 ac_need_defaults=false;;
15790 --header | --heade | --head | --hea )
15791 $ac_shift
15792 case $ac_optarg in
15793 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15794 esac
15795 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15796 ac_need_defaults=false;;
15797 --he | --h)
15798 # Conflict between --help and --header
15799 as_fn_error $? "ambiguous option: \`$1'
15800 Try \`$0 --help' for more information.";;
15801 --help | --hel | -h )
15802 $as_echo "$ac_cs_usage"; exit ;;
15803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15805 ac_cs_silent=: ;;
15806
15807 # This is an error.
15808 -*) as_fn_error $? "unrecognized option: \`$1'
15809 Try \`$0 --help' for more information." ;;
15810
15811 *) as_fn_append ac_config_targets " $1"
15812 ac_need_defaults=false ;;
15813
15814 esac
15815 shift
15816 done
15817
15818 ac_configure_extra_args=
15819
15820 if $ac_cs_silent; then
15821 exec 6>/dev/null
15822 ac_configure_extra_args="$ac_configure_extra_args --silent"
15823 fi
15824
15825 _ACEOF
15826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15827 if \$ac_cs_recheck; then
15828 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15829 shift
15830 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15831 CONFIG_SHELL='$SHELL'
15832 export CONFIG_SHELL
15833 exec "\$@"
15834 fi
15835
15836 _ACEOF
15837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15838 exec 5>>config.log
15839 {
15840 echo
15841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15842 ## Running $as_me. ##
15843 _ASBOX
15844 $as_echo "$ac_log"
15845 } >&5
15846
15847 _ACEOF
15848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15849 #
15850 # INIT-COMMANDS
15851 #
15852
15853
15854 # The HP-UX ksh and POSIX shell print the target directory to stdout
15855 # if CDPATH is set.
15856 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15857
15858 sed_quote_subst='$sed_quote_subst'
15859 double_quote_subst='$double_quote_subst'
15860 delay_variable_subst='$delay_variable_subst'
15861 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15862 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15863 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15864 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15865 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15866 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15867 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15868 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15869 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15870 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15871 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15872 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15873 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15874 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15875 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15876 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15877 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15878 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15879 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15880 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15881 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15882 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15883 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15884 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15885 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15886 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15887 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15888 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15889 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15890 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15891 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15892 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15893 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15894 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15895 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15896 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15897 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15898 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15899 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15900 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15901 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15902 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15903 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15904 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15905 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15906 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15907 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15908 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15909 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15910 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15911 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15912 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15913 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15914 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15915 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15916 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15917 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"`'
15918 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15919 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15920 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15921 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15922 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15923 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15924 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15925 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15926 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15927 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15928 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15929 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15930 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15931 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15932 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15933 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15934 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15935 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15936 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15937 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15938 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15939 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15940 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15941 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15942 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15943 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15944 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15945 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15946 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15947 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15948 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15949 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15950 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15951 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15952 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15953 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15954 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15955 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15956 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15957 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15958 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15959 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15960 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15961 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15962 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15963 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15964 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15965 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15966 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15967 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15968 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15969 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15970 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15971 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15972 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15973 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15974 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15975 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15976 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15977 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15978 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15979 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15980 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15981 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15982 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15983 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15984 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15985 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15986 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15987 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15988 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15989 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15990 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15991
15992 LTCC='$LTCC'
15993 LTCFLAGS='$LTCFLAGS'
15994 compiler='$compiler_DEFAULT'
15995
15996 # A function that is used when there is no print builtin or printf.
15997 func_fallback_echo ()
15998 {
15999 eval 'cat <<_LTECHO_EOF
16000 \$1
16001 _LTECHO_EOF'
16002 }
16003
16004 # Quote evaled strings.
16005 for var in SHELL \
16006 ECHO \
16007 PATH_SEPARATOR \
16008 SED \
16009 GREP \
16010 EGREP \
16011 FGREP \
16012 LD \
16013 NM \
16014 LN_S \
16015 lt_SP2NL \
16016 lt_NL2SP \
16017 reload_flag \
16018 OBJDUMP \
16019 deplibs_check_method \
16020 file_magic_cmd \
16021 file_magic_glob \
16022 want_nocaseglob \
16023 DLLTOOL \
16024 sharedlib_from_linklib_cmd \
16025 AR \
16026 AR_FLAGS \
16027 archiver_list_spec \
16028 STRIP \
16029 RANLIB \
16030 CC \
16031 CFLAGS \
16032 compiler \
16033 lt_cv_sys_global_symbol_pipe \
16034 lt_cv_sys_global_symbol_to_cdecl \
16035 lt_cv_sys_global_symbol_to_c_name_address \
16036 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16037 nm_file_list_spec \
16038 lt_prog_compiler_no_builtin_flag \
16039 lt_prog_compiler_pic \
16040 lt_prog_compiler_wl \
16041 lt_prog_compiler_static \
16042 lt_cv_prog_compiler_c_o \
16043 need_locks \
16044 MANIFEST_TOOL \
16045 DSYMUTIL \
16046 NMEDIT \
16047 LIPO \
16048 OTOOL \
16049 OTOOL64 \
16050 shrext_cmds \
16051 export_dynamic_flag_spec \
16052 whole_archive_flag_spec \
16053 compiler_needs_object \
16054 with_gnu_ld \
16055 allow_undefined_flag \
16056 no_undefined_flag \
16057 hardcode_libdir_flag_spec \
16058 hardcode_libdir_separator \
16059 exclude_expsyms \
16060 include_expsyms \
16061 file_list_spec \
16062 variables_saved_for_relink \
16063 libname_spec \
16064 library_names_spec \
16065 soname_spec \
16066 install_override_mode \
16067 finish_eval \
16068 old_striplib \
16069 striplib; do
16070 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16071 *[\\\\\\\`\\"\\\$]*)
16072 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16073 ;;
16074 *)
16075 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16076 ;;
16077 esac
16078 done
16079
16080 # Double-quote double-evaled strings.
16081 for var in reload_cmds \
16082 old_postinstall_cmds \
16083 old_postuninstall_cmds \
16084 old_archive_cmds \
16085 extract_expsyms_cmds \
16086 old_archive_from_new_cmds \
16087 old_archive_from_expsyms_cmds \
16088 archive_cmds \
16089 archive_expsym_cmds \
16090 module_cmds \
16091 module_expsym_cmds \
16092 export_symbols_cmds \
16093 prelink_cmds \
16094 postlink_cmds \
16095 postinstall_cmds \
16096 postuninstall_cmds \
16097 finish_cmds \
16098 sys_lib_search_path_spec \
16099 sys_lib_dlsearch_path_spec; do
16100 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16101 *[\\\\\\\`\\"\\\$]*)
16102 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16103 ;;
16104 *)
16105 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16106 ;;
16107 esac
16108 done
16109
16110 ac_aux_dir='$ac_aux_dir'
16111 xsi_shell='$xsi_shell'
16112 lt_shell_append='$lt_shell_append'
16113
16114 # See if we are running on zsh, and set the options which allow our
16115 # commands through without removal of \ escapes INIT.
16116 if test -n "\${ZSH_VERSION+set}" ; then
16117 setopt NO_GLOB_SUBST
16118 fi
16119
16120
16121 PACKAGE='$PACKAGE'
16122 VERSION='$VERSION'
16123 TIMESTAMP='$TIMESTAMP'
16124 RM='$RM'
16125 ofile='$ofile'
16126
16127
16128
16129 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16130 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16131 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16132 # from automake < 1.5.
16133 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16134 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16135 LINGUAS="${LINGUAS-%UNSET%}"
16136
16137
16138 _ACEOF
16139
16140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16141
16142 # Handling of arguments.
16143 for ac_config_target in $ac_config_targets
16144 do
16145 case $ac_config_target in
16146 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16147 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16148 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16149 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16150 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16151 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16152 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16153 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
16154 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
16155 "libtun6/Makefile") CONFIG_FILES="$CONFIG_FILES libtun6/Makefile" ;;
16156 "libteredo/Makefile") CONFIG_FILES="$CONFIG_FILES libteredo/Makefile" ;;
16157 "libteredo/test/Makefile") CONFIG_FILES="$CONFIG_FILES libteredo/test/Makefile" ;;
16158 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16159 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16160 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
16161
16162 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16163 esac
16164 done
16165
16166
16167 # If the user did not use the arguments to specify the items to instantiate,
16168 # then the envvar interface is used. Set only those that are not.
16169 # We use the long form for the default assignment because of an extremely
16170 # bizarre bug on SunOS 4.1.3.
16171 if $ac_need_defaults; then
16172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16174 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16175 fi
16176
16177 # Have a temporary directory for convenience. Make it in the build tree
16178 # simply because there is no reason against having it here, and in addition,
16179 # creating and moving files from /tmp can sometimes cause problems.
16180 # Hook for its removal unless debugging.
16181 # Note that there is a small window in which the directory will not be cleaned:
16182 # after its creation but before its name has been assigned to `$tmp'.
16183 $debug ||
16184 {
16185 tmp= ac_tmp=
16186 trap 'exit_status=$?
16187 : "${ac_tmp:=$tmp}"
16188 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16189 ' 0
16190 trap 'as_fn_exit 1' 1 2 13 15
16191 }
16192 # Create a (secure) tmp directory for tmp files.
16193
16194 {
16195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16196 test -d "$tmp"
16197 } ||
16198 {
16199 tmp=./conf$$-$RANDOM
16200 (umask 077 && mkdir "$tmp")
16201 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16202 ac_tmp=$tmp
16203
16204 # Set up the scripts for CONFIG_FILES section.
16205 # No need to generate them if there are no CONFIG_FILES.
16206 # This happens for instance with `./config.status config.h'.
16207 if test -n "$CONFIG_FILES"; then
16208
16209
16210 ac_cr=`echo X | tr X '\015'`
16211 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16212 # But we know of no other shell where ac_cr would be empty at this
16213 # point, so we can use a bashism as a fallback.
16214 if test "x$ac_cr" = x; then
16215 eval ac_cr=\$\'\\r\'
16216 fi
16217 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16218 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16219 ac_cs_awk_cr='\\r'
16220 else
16221 ac_cs_awk_cr=$ac_cr
16222 fi
16223
16224 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16225 _ACEOF
16226
16227
16228 {
16229 echo "cat >conf$$subs.awk <<_ACEOF" &&
16230 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16231 echo "_ACEOF"
16232 } >conf$$subs.sh ||
16233 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16234 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16235 ac_delim='%!_!# '
16236 for ac_last_try in false false false false false :; do
16237 . ./conf$$subs.sh ||
16238 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16239
16240 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16241 if test $ac_delim_n = $ac_delim_num; then
16242 break
16243 elif $ac_last_try; then
16244 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16245 else
16246 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16247 fi
16248 done
16249 rm -f conf$$subs.sh
16250
16251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16252 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16253 _ACEOF
16254 sed -n '
16255 h
16256 s/^/S["/; s/!.*/"]=/
16257 p
16258 g
16259 s/^[^!]*!//
16260 :repl
16261 t repl
16262 s/'"$ac_delim"'$//
16263 t delim
16264 :nl
16265 h
16266 s/\(.\{148\}\)..*/\1/
16267 t more1
16268 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16269 p
16270 n
16271 b repl
16272 :more1
16273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16274 p
16275 g
16276 s/.\{148\}//
16277 t nl
16278 :delim
16279 h
16280 s/\(.\{148\}\)..*/\1/
16281 t more2
16282 s/["\\]/\\&/g; s/^/"/; s/$/"/
16283 p
16284 b
16285 :more2
16286 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16287 p
16288 g
16289 s/.\{148\}//
16290 t delim
16291 ' <conf$$subs.awk | sed '
16292 /^[^""]/{
16293 N
16294 s/\n//
16295 }
16296 ' >>$CONFIG_STATUS || ac_write_fail=1
16297 rm -f conf$$subs.awk
16298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16299 _ACAWK
16300 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16301 for (key in S) S_is_set[key] = 1
16302 FS = ""
16303
16304 }
16305 {
16306 line = $ 0
16307 nfields = split(line, field, "@")
16308 substed = 0
16309 len = length(field[1])
16310 for (i = 2; i < nfields; i++) {
16311 key = field[i]
16312 keylen = length(key)
16313 if (S_is_set[key]) {
16314 value = S[key]
16315 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16316 len += length(value) + length(field[++i])
16317 substed = 1
16318 } else
16319 len += 1 + keylen
16320 }
16321
16322 print line
16323 }
16324
16325 _ACAWK
16326 _ACEOF
16327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16328 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16329 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16330 else
16331 cat
16332 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16333 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16334 _ACEOF
16335
16336 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16337 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16338 # trailing colons and then remove the whole line if VPATH becomes empty
16339 # (actually we leave an empty line to preserve line numbers).
16340 if test "x$srcdir" = x.; then
16341 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16342 h
16343 s///
16344 s/^/:/
16345 s/[ ]*$/:/
16346 s/:\$(srcdir):/:/g
16347 s/:\${srcdir}:/:/g
16348 s/:@srcdir@:/:/g
16349 s/^:*//
16350 s/:*$//
16351 x
16352 s/\(=[ ]*\).*/\1/
16353 G
16354 s/\n//
16355 s/^[^=]*=[ ]*$//
16356 }'
16357 fi
16358
16359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16360 fi # test -n "$CONFIG_FILES"
16361
16362 # Set up the scripts for CONFIG_HEADERS section.
16363 # No need to generate them if there are no CONFIG_HEADERS.
16364 # This happens for instance with `./config.status Makefile'.
16365 if test -n "$CONFIG_HEADERS"; then
16366 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16367 BEGIN {
16368 _ACEOF
16369
16370 # Transform confdefs.h into an awk script `defines.awk', embedded as
16371 # here-document in config.status, that substitutes the proper values into
16372 # config.h.in to produce config.h.
16373
16374 # Create a delimiter string that does not exist in confdefs.h, to ease
16375 # handling of long lines.
16376 ac_delim='%!_!# '
16377 for ac_last_try in false false :; do
16378 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16379 if test -z "$ac_tt"; then
16380 break
16381 elif $ac_last_try; then
16382 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16383 else
16384 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16385 fi
16386 done
16387
16388 # For the awk script, D is an array of macro values keyed by name,
16389 # likewise P contains macro parameters if any. Preserve backslash
16390 # newline sequences.
16391
16392 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16393 sed -n '
16394 s/.\{148\}/&'"$ac_delim"'/g
16395 t rset
16396 :rset
16397 s/^[ ]*#[ ]*define[ ][ ]*/ /
16398 t def
16399 d
16400 :def
16401 s/\\$//
16402 t bsnl
16403 s/["\\]/\\&/g
16404 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16405 D["\1"]=" \3"/p
16406 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16407 d
16408 :bsnl
16409 s/["\\]/\\&/g
16410 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16411 D["\1"]=" \3\\\\\\n"\\/p
16412 t cont
16413 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16414 t cont
16415 d
16416 :cont
16417 n
16418 s/.\{148\}/&'"$ac_delim"'/g
16419 t clear
16420 :clear
16421 s/\\$//
16422 t bsnlc
16423 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16424 d
16425 :bsnlc
16426 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16427 b cont
16428 ' <confdefs.h | sed '
16429 s/'"$ac_delim"'/"\\\
16430 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16431
16432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16433 for (key in D) D_is_set[key] = 1
16434 FS = ""
16435 }
16436 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16437 line = \$ 0
16438 split(line, arg, " ")
16439 if (arg[1] == "#") {
16440 defundef = arg[2]
16441 mac1 = arg[3]
16442 } else {
16443 defundef = substr(arg[1], 2)
16444 mac1 = arg[2]
16445 }
16446 split(mac1, mac2, "(") #)
16447 macro = mac2[1]
16448 prefix = substr(line, 1, index(line, defundef) - 1)
16449 if (D_is_set[macro]) {
16450 # Preserve the white space surrounding the "#".
16451 print prefix "define", macro P[macro] D[macro]
16452 next
16453 } else {
16454 # Replace #undef with comments. This is necessary, for example,
16455 # in the case of _POSIX_SOURCE, which is predefined and required
16456 # on some systems where configure will not decide to define it.
16457 if (defundef == "undef") {
16458 print "/*", prefix defundef, macro, "*/"
16459 next
16460 }
16461 }
16462 }
16463 { print }
16464 _ACAWK
16465 _ACEOF
16466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16467 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16468 fi # test -n "$CONFIG_HEADERS"
16469
16470
16471 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16472 shift
16473 for ac_tag
16474 do
16475 case $ac_tag in
16476 :[FHLC]) ac_mode=$ac_tag; continue;;
16477 esac
16478 case $ac_mode$ac_tag in
16479 :[FHL]*:*);;
16480 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16481 :[FH]-) ac_tag=-:-;;
16482 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16483 esac
16484 ac_save_IFS=$IFS
16485 IFS=:
16486 set x $ac_tag
16487 IFS=$ac_save_IFS
16488 shift
16489 ac_file=$1
16490 shift
16491
16492 case $ac_mode in
16493 :L) ac_source=$1;;
16494 :[FH])
16495 ac_file_inputs=
16496 for ac_f
16497 do
16498 case $ac_f in
16499 -) ac_f="$ac_tmp/stdin";;
16500 *) # Look for the file first in the build tree, then in the source tree
16501 # (if the path is not absolute). The absolute path cannot be DOS-style,
16502 # because $ac_f cannot contain `:'.
16503 test -f "$ac_f" ||
16504 case $ac_f in
16505 [\\/$]*) false;;
16506 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16507 esac ||
16508 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16509 esac
16510 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16511 as_fn_append ac_file_inputs " '$ac_f'"
16512 done
16513
16514 # Let's still pretend it is `configure' which instantiates (i.e., don't
16515 # use $as_me), people would be surprised to read:
16516 # /* config.h. Generated by config.status. */
16517 configure_input='Generated from '`
16518 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16519 `' by configure.'
16520 if test x"$ac_file" != x-; then
16521 configure_input="$ac_file. $configure_input"
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16523 $as_echo "$as_me: creating $ac_file" >&6;}
16524 fi
16525 # Neutralize special characters interpreted by sed in replacement strings.
16526 case $configure_input in #(
16527 *\&* | *\|* | *\\* )
16528 ac_sed_conf_input=`$as_echo "$configure_input" |
16529 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16530 *) ac_sed_conf_input=$configure_input;;
16531 esac
16532
16533 case $ac_tag in
16534 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16536 esac
16537 ;;
16538 esac
16539
16540 ac_dir=`$as_dirname -- "$ac_file" ||
16541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16542 X"$ac_file" : 'X\(//\)[^/]' \| \
16543 X"$ac_file" : 'X\(//\)$' \| \
16544 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16545 $as_echo X"$ac_file" |
16546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16547 s//\1/
16548 q
16549 }
16550 /^X\(\/\/\)[^/].*/{
16551 s//\1/
16552 q
16553 }
16554 /^X\(\/\/\)$/{
16555 s//\1/
16556 q
16557 }
16558 /^X\(\/\).*/{
16559 s//\1/
16560 q
16561 }
16562 s/.*/./; q'`
16563 as_dir="$ac_dir"; as_fn_mkdir_p
16564 ac_builddir=.
16565
16566 case "$ac_dir" in
16567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16568 *)
16569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16570 # A ".." for each directory in $ac_dir_suffix.
16571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16572 case $ac_top_builddir_sub in
16573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16575 esac ;;
16576 esac
16577 ac_abs_top_builddir=$ac_pwd
16578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16579 # for backward compatibility:
16580 ac_top_builddir=$ac_top_build_prefix
16581
16582 case $srcdir in
16583 .) # We are building in place.
16584 ac_srcdir=.
16585 ac_top_srcdir=$ac_top_builddir_sub
16586 ac_abs_top_srcdir=$ac_pwd ;;
16587 [\\/]* | ?:[\\/]* ) # Absolute name.
16588 ac_srcdir=$srcdir$ac_dir_suffix;
16589 ac_top_srcdir=$srcdir
16590 ac_abs_top_srcdir=$srcdir ;;
16591 *) # Relative name.
16592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16593 ac_top_srcdir=$ac_top_build_prefix$srcdir
16594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16595 esac
16596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16597
16598
16599 case $ac_mode in
16600 :F)
16601 #
16602 # CONFIG_FILE
16603 #
16604
16605 case $INSTALL in
16606 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16607 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16608 esac
16609 ac_MKDIR_P=$MKDIR_P
16610 case $MKDIR_P in
16611 [\\/$]* | ?:[\\/]* ) ;;
16612 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16613 esac
16614 _ACEOF
16615
16616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16617 # If the template does not know about datarootdir, expand it.
16618 # FIXME: This hack should be removed a few years after 2.60.
16619 ac_datarootdir_hack=; ac_datarootdir_seen=
16620 ac_sed_dataroot='
16621 /datarootdir/ {
16622 p
16623 q
16624 }
16625 /@datadir@/p
16626 /@docdir@/p
16627 /@infodir@/p
16628 /@localedir@/p
16629 /@mandir@/p'
16630 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16631 *datarootdir*) ac_datarootdir_seen=yes;;
16632 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16634 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16635 _ACEOF
16636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16637 ac_datarootdir_hack='
16638 s&@datadir@&$datadir&g
16639 s&@docdir@&$docdir&g
16640 s&@infodir@&$infodir&g
16641 s&@localedir@&$localedir&g
16642 s&@mandir@&$mandir&g
16643 s&\\\${datarootdir}&$datarootdir&g' ;;
16644 esac
16645 _ACEOF
16646
16647 # Neutralize VPATH when `$srcdir' = `.'.
16648 # Shell code in configure.ac might set extrasub.
16649 # FIXME: do we really want to maintain this feature?
16650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16651 ac_sed_extra="$ac_vpsub
16652 $extrasub
16653 _ACEOF
16654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16655 :t
16656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16657 s|@configure_input@|$ac_sed_conf_input|;t t
16658 s&@top_builddir@&$ac_top_builddir_sub&;t t
16659 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16660 s&@srcdir@&$ac_srcdir&;t t
16661 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16662 s&@top_srcdir@&$ac_top_srcdir&;t t
16663 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16664 s&@builddir@&$ac_builddir&;t t
16665 s&@abs_builddir@&$ac_abs_builddir&;t t
16666 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16667 s&@INSTALL@&$ac_INSTALL&;t t
16668 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16669 $ac_datarootdir_hack
16670 "
16671 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16672 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16673
16674 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16675 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16676 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16677 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16679 which seems to be undefined. Please make sure it is defined" >&5
16680 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16681 which seems to be undefined. Please make sure it is defined" >&2;}
16682
16683 rm -f "$ac_tmp/stdin"
16684 case $ac_file in
16685 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16686 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16687 esac \
16688 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16689 ;;
16690 :H)
16691 #
16692 # CONFIG_HEADER
16693 #
16694 if test x"$ac_file" != x-; then
16695 {
16696 $as_echo "/* $configure_input */" \
16697 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16698 } >"$ac_tmp/config.h" \
16699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16700 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16702 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16703 else
16704 rm -f "$ac_file"
16705 mv "$ac_tmp/config.h" "$ac_file" \
16706 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16707 fi
16708 else
16709 $as_echo "/* $configure_input */" \
16710 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16711 || as_fn_error $? "could not create -" "$LINENO" 5
16712 fi
16713 # Compute "$ac_file"'s index in $config_headers.
16714 _am_arg="$ac_file"
16715 _am_stamp_count=1
16716 for _am_header in $config_headers :; do
16717 case $_am_header in
16718 $_am_arg | $_am_arg:* )
16719 break ;;
16720 * )
16721 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16722 esac
16723 done
16724 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16725 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16726 X"$_am_arg" : 'X\(//\)[^/]' \| \
16727 X"$_am_arg" : 'X\(//\)$' \| \
16728 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16729 $as_echo X"$_am_arg" |
16730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16731 s//\1/
16732 q
16733 }
16734 /^X\(\/\/\)[^/].*/{
16735 s//\1/
16736 q
16737 }
16738 /^X\(\/\/\)$/{
16739 s//\1/
16740 q
16741 }
16742 /^X\(\/\).*/{
16743 s//\1/
16744 q
16745 }
16746 s/.*/./; q'`/stamp-h$_am_stamp_count
16747 ;;
16748
16749 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16750 $as_echo "$as_me: executing $ac_file commands" >&6;}
16751 ;;
16752 esac
16753
16754
16755 case $ac_file$ac_mode in
16756 "libtool":C)
16757
16758 # See if we are running on zsh, and set the options which allow our
16759 # commands through without removal of \ escapes.
16760 if test -n "${ZSH_VERSION+set}" ; then
16761 setopt NO_GLOB_SUBST
16762 fi
16763
16764 cfgfile="${ofile}T"
16765 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16766 $RM "$cfgfile"
16767
16768 cat <<_LT_EOF >> "$cfgfile"
16769 #! $SHELL
16770
16771 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16772 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16774 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16775 #
16776 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16777 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16778 # Foundation, Inc.
16779 # Written by Gordon Matzigkeit, 1996
16780 #
16781 # This file is part of GNU Libtool.
16782 #
16783 # GNU Libtool is free software; you can redistribute it and/or
16784 # modify it under the terms of the GNU General Public License as
16785 # published by the Free Software Foundation; either version 2 of
16786 # the License, or (at your option) any later version.
16787 #
16788 # As a special exception to the GNU General Public License,
16789 # if you distribute this file as part of a program or library that
16790 # is built using GNU Libtool, you may include this file under the
16791 # same distribution terms that you use for the rest of that program.
16792 #
16793 # GNU Libtool is distributed in the hope that it will be useful,
16794 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16795 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16796 # GNU General Public License for more details.
16797 #
16798 # You should have received a copy of the GNU General Public License
16799 # along with GNU Libtool; see the file COPYING. If not, a copy
16800 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16801 # obtained by writing to the Free Software Foundation, Inc.,
16802 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16803
16804
16805 # The names of the tagged configurations supported by this script.
16806 available_tags=""
16807
16808 # ### BEGIN LIBTOOL CONFIG
16809
16810 # Which release of libtool.m4 was used?
16811 macro_version=$macro_version
16812 macro_revision=$macro_revision
16813
16814 # Whether or not to build shared libraries.
16815 build_libtool_libs=$enable_shared
16816
16817 # Whether or not to build static libraries.
16818 build_old_libs=$enable_static
16819
16820 # What type of objects to build.
16821 pic_mode=$pic_mode
16822
16823 # Whether or not to optimize for fast installation.
16824 fast_install=$enable_fast_install
16825
16826 # Shell to use when invoking shell scripts.
16827 SHELL=$lt_SHELL
16828
16829 # An echo program that protects backslashes.
16830 ECHO=$lt_ECHO
16831
16832 # The PATH separator for the build system.
16833 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16834
16835 # The host system.
16836 host_alias=$host_alias
16837 host=$host
16838 host_os=$host_os
16839
16840 # The build system.
16841 build_alias=$build_alias
16842 build=$build
16843 build_os=$build_os
16844
16845 # A sed program that does not truncate output.
16846 SED=$lt_SED
16847
16848 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16849 Xsed="\$SED -e 1s/^X//"
16850
16851 # A grep program that handles long lines.
16852 GREP=$lt_GREP
16853
16854 # An ERE matcher.
16855 EGREP=$lt_EGREP
16856
16857 # A literal string matcher.
16858 FGREP=$lt_FGREP
16859
16860 # A BSD- or MS-compatible name lister.
16861 NM=$lt_NM
16862
16863 # Whether we need soft or hard links.
16864 LN_S=$lt_LN_S
16865
16866 # What is the maximum length of a command?
16867 max_cmd_len=$max_cmd_len
16868
16869 # Object file suffix (normally "o").
16870 objext=$ac_objext
16871
16872 # Executable file suffix (normally "").
16873 exeext=$exeext
16874
16875 # whether the shell understands "unset".
16876 lt_unset=$lt_unset
16877
16878 # turn spaces into newlines.
16879 SP2NL=$lt_lt_SP2NL
16880
16881 # turn newlines into spaces.
16882 NL2SP=$lt_lt_NL2SP
16883
16884 # convert \$build file names to \$host format.
16885 to_host_file_cmd=$lt_cv_to_host_file_cmd
16886
16887 # convert \$build files to toolchain format.
16888 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16889
16890 # An object symbol dumper.
16891 OBJDUMP=$lt_OBJDUMP
16892
16893 # Method to check whether dependent libraries are shared objects.
16894 deplibs_check_method=$lt_deplibs_check_method
16895
16896 # Command to use when deplibs_check_method = "file_magic".
16897 file_magic_cmd=$lt_file_magic_cmd
16898
16899 # How to find potential files when deplibs_check_method = "file_magic".
16900 file_magic_glob=$lt_file_magic_glob
16901
16902 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16903 want_nocaseglob=$lt_want_nocaseglob
16904
16905 # DLL creation program.
16906 DLLTOOL=$lt_DLLTOOL
16907
16908 # Command to associate shared and link libraries.
16909 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16910
16911 # The archiver.
16912 AR=$lt_AR
16913
16914 # Flags to create an archive.
16915 AR_FLAGS=$lt_AR_FLAGS
16916
16917 # How to feed a file listing to the archiver.
16918 archiver_list_spec=$lt_archiver_list_spec
16919
16920 # A symbol stripping program.
16921 STRIP=$lt_STRIP
16922
16923 # Commands used to install an old-style archive.
16924 RANLIB=$lt_RANLIB
16925 old_postinstall_cmds=$lt_old_postinstall_cmds
16926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16927
16928 # Whether to use a lock for old archive extraction.
16929 lock_old_archive_extraction=$lock_old_archive_extraction
16930
16931 # A C compiler.
16932 LTCC=$lt_CC
16933
16934 # LTCC compiler flags.
16935 LTCFLAGS=$lt_CFLAGS
16936
16937 # Take the output of nm and produce a listing of raw symbols and C names.
16938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16939
16940 # Transform the output of nm in a proper C declaration.
16941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16942
16943 # Transform the output of nm in a C name address pair.
16944 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16945
16946 # Transform the output of nm in a C name address pair when lib prefix is needed.
16947 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16948
16949 # Specify filename containing input files for \$NM.
16950 nm_file_list_spec=$lt_nm_file_list_spec
16951
16952 # The root where to search for dependent libraries,and in which our libraries should be installed.
16953 lt_sysroot=$lt_sysroot
16954
16955 # The name of the directory that contains temporary libtool files.
16956 objdir=$objdir
16957
16958 # Used to examine libraries when file_magic_cmd begins with "file".
16959 MAGIC_CMD=$MAGIC_CMD
16960
16961 # Must we lock files when doing compilation?
16962 need_locks=$lt_need_locks
16963
16964 # Manifest tool.
16965 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16966
16967 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16968 DSYMUTIL=$lt_DSYMUTIL
16969
16970 # Tool to change global to local symbols on Mac OS X.
16971 NMEDIT=$lt_NMEDIT
16972
16973 # Tool to manipulate fat objects and archives on Mac OS X.
16974 LIPO=$lt_LIPO
16975
16976 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16977 OTOOL=$lt_OTOOL
16978
16979 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16980 OTOOL64=$lt_OTOOL64
16981
16982 # Old archive suffix (normally "a").
16983 libext=$libext
16984
16985 # Shared library suffix (normally ".so").
16986 shrext_cmds=$lt_shrext_cmds
16987
16988 # The commands to extract the exported symbol list from a shared archive.
16989 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16990
16991 # Variables whose values should be saved in libtool wrapper scripts and
16992 # restored at link time.
16993 variables_saved_for_relink=$lt_variables_saved_for_relink
16994
16995 # Do we need the "lib" prefix for modules?
16996 need_lib_prefix=$need_lib_prefix
16997
16998 # Do we need a version for libraries?
16999 need_version=$need_version
17000
17001 # Library versioning type.
17002 version_type=$version_type
17003
17004 # Shared library runtime path variable.
17005 runpath_var=$runpath_var
17006
17007 # Shared library path variable.
17008 shlibpath_var=$shlibpath_var
17009
17010 # Is shlibpath searched before the hard-coded library search path?
17011 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17012
17013 # Format of library name prefix.
17014 libname_spec=$lt_libname_spec
17015
17016 # List of archive names. First name is the real one, the rest are links.
17017 # The last name is the one that the linker finds with -lNAME
17018 library_names_spec=$lt_library_names_spec
17019
17020 # The coded name of the library, if different from the real name.
17021 soname_spec=$lt_soname_spec
17022
17023 # Permission mode override for installation of shared libraries.
17024 install_override_mode=$lt_install_override_mode
17025
17026 # Command to use after installation of a shared archive.
17027 postinstall_cmds=$lt_postinstall_cmds
17028
17029 # Command to use after uninstallation of a shared archive.
17030 postuninstall_cmds=$lt_postuninstall_cmds
17031
17032 # Commands used to finish a libtool library installation in a directory.
17033 finish_cmds=$lt_finish_cmds
17034
17035 # As "finish_cmds", except a single script fragment to be evaled but
17036 # not shown.
17037 finish_eval=$lt_finish_eval
17038
17039 # Whether we should hardcode library paths into libraries.
17040 hardcode_into_libs=$hardcode_into_libs
17041
17042 # Compile-time system search path for libraries.
17043 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17044
17045 # Run-time system search path for libraries.
17046 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17047
17048 # Whether dlopen is supported.
17049 dlopen_support=$enable_dlopen
17050
17051 # Whether dlopen of programs is supported.
17052 dlopen_self=$enable_dlopen_self
17053
17054 # Whether dlopen of statically linked programs is supported.
17055 dlopen_self_static=$enable_dlopen_self_static
17056
17057 # Commands to strip libraries.
17058 old_striplib=$lt_old_striplib
17059 striplib=$lt_striplib
17060
17061
17062 # The linker used to build libraries.
17063 LD=$lt_LD
17064
17065 # How to create reloadable object files.
17066 reload_flag=$lt_reload_flag
17067 reload_cmds=$lt_reload_cmds
17068
17069 # Commands used to build an old-style archive.
17070 old_archive_cmds=$lt_old_archive_cmds
17071
17072 # A language specific compiler.
17073 CC=$lt_compiler
17074
17075 # Is the compiler the GNU compiler?
17076 with_gcc=$GCC
17077
17078 # Compiler flag to turn off builtin functions.
17079 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17080
17081 # Additional compiler flags for building library objects.
17082 pic_flag=$lt_lt_prog_compiler_pic
17083
17084 # How to pass a linker flag through the compiler.
17085 wl=$lt_lt_prog_compiler_wl
17086
17087 # Compiler flag to prevent dynamic linking.
17088 link_static_flag=$lt_lt_prog_compiler_static
17089
17090 # Does compiler simultaneously support -c and -o options?
17091 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17092
17093 # Whether or not to add -lc for building shared libraries.
17094 build_libtool_need_lc=$archive_cmds_need_lc
17095
17096 # Whether or not to disallow shared libs when runtime libs are static.
17097 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17098
17099 # Compiler flag to allow reflexive dlopens.
17100 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17101
17102 # Compiler flag to generate shared objects directly from archives.
17103 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17104
17105 # Whether the compiler copes with passing no objects directly.
17106 compiler_needs_object=$lt_compiler_needs_object
17107
17108 # Create an old-style archive from a shared archive.
17109 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17110
17111 # Create a temporary old-style archive to link instead of a shared archive.
17112 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17113
17114 # Commands used to build a shared archive.
17115 archive_cmds=$lt_archive_cmds
17116 archive_expsym_cmds=$lt_archive_expsym_cmds
17117
17118 # Commands used to build a loadable module if different from building
17119 # a shared archive.
17120 module_cmds=$lt_module_cmds
17121 module_expsym_cmds=$lt_module_expsym_cmds
17122
17123 # Whether we are building with GNU ld or not.
17124 with_gnu_ld=$lt_with_gnu_ld
17125
17126 # Flag that allows shared libraries with undefined symbols to be built.
17127 allow_undefined_flag=$lt_allow_undefined_flag
17128
17129 # Flag that enforces no undefined symbols.
17130 no_undefined_flag=$lt_no_undefined_flag
17131
17132 # Flag to hardcode \$libdir into a binary during linking.
17133 # This must work even if \$libdir does not exist
17134 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17135
17136 # Whether we need a single "-rpath" flag with a separated argument.
17137 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17138
17139 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17140 # DIR into the resulting binary.
17141 hardcode_direct=$hardcode_direct
17142
17143 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17144 # DIR into the resulting binary and the resulting library dependency is
17145 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17146 # library is relocated.
17147 hardcode_direct_absolute=$hardcode_direct_absolute
17148
17149 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17150 # into the resulting binary.
17151 hardcode_minus_L=$hardcode_minus_L
17152
17153 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17154 # into the resulting binary.
17155 hardcode_shlibpath_var=$hardcode_shlibpath_var
17156
17157 # Set to "yes" if building a shared library automatically hardcodes DIR
17158 # into the library and all subsequent libraries and executables linked
17159 # against it.
17160 hardcode_automatic=$hardcode_automatic
17161
17162 # Set to yes if linker adds runtime paths of dependent libraries
17163 # to runtime path list.
17164 inherit_rpath=$inherit_rpath
17165
17166 # Whether libtool must link a program against all its dependency libraries.
17167 link_all_deplibs=$link_all_deplibs
17168
17169 # Set to "yes" if exported symbols are required.
17170 always_export_symbols=$always_export_symbols
17171
17172 # The commands to list exported symbols.
17173 export_symbols_cmds=$lt_export_symbols_cmds
17174
17175 # Symbols that should not be listed in the preloaded symbols.
17176 exclude_expsyms=$lt_exclude_expsyms
17177
17178 # Symbols that must always be exported.
17179 include_expsyms=$lt_include_expsyms
17180
17181 # Commands necessary for linking programs (against libraries) with templates.
17182 prelink_cmds=$lt_prelink_cmds
17183
17184 # Commands necessary for finishing linking programs.
17185 postlink_cmds=$lt_postlink_cmds
17186
17187 # Specify filename containing input files.
17188 file_list_spec=$lt_file_list_spec
17189
17190 # How to hardcode a shared library path into an executable.
17191 hardcode_action=$hardcode_action
17192
17193 # ### END LIBTOOL CONFIG
17194
17195 _LT_EOF
17196
17197 case $host_os in
17198 aix3*)
17199 cat <<\_LT_EOF >> "$cfgfile"
17200 # AIX sometimes has problems with the GCC collect2 program. For some
17201 # reason, if we set the COLLECT_NAMES environment variable, the problems
17202 # vanish in a puff of smoke.
17203 if test "X${COLLECT_NAMES+set}" != Xset; then
17204 COLLECT_NAMES=
17205 export COLLECT_NAMES
17206 fi
17207 _LT_EOF
17208 ;;
17209 esac
17210
17211
17212 ltmain="$ac_aux_dir/ltmain.sh"
17213
17214
17215 # We use sed instead of cat because bash on DJGPP gets confused if
17216 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17217 # text mode, it properly converts lines to CR/LF. This bash problem
17218 # is reportedly fixed, but why not run on old versions too?
17219 sed '$q' "$ltmain" >> "$cfgfile" \
17220 || (rm -f "$cfgfile"; exit 1)
17221
17222 if test x"$xsi_shell" = xyes; then
17223 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17224 func_dirname ()\
17225 {\
17226 \ case ${1} in\
17227 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17228 \ * ) func_dirname_result="${3}" ;;\
17229 \ esac\
17230 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17231 && mv -f "$cfgfile.tmp" "$cfgfile" \
17232 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17233 test 0 -eq $? || _lt_function_replace_fail=:
17234
17235
17236 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17237 func_basename ()\
17238 {\
17239 \ func_basename_result="${1##*/}"\
17240 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17241 && mv -f "$cfgfile.tmp" "$cfgfile" \
17242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17243 test 0 -eq $? || _lt_function_replace_fail=:
17244
17245
17246 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17247 func_dirname_and_basename ()\
17248 {\
17249 \ case ${1} in\
17250 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17251 \ * ) func_dirname_result="${3}" ;;\
17252 \ esac\
17253 \ func_basename_result="${1##*/}"\
17254 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17255 && mv -f "$cfgfile.tmp" "$cfgfile" \
17256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17257 test 0 -eq $? || _lt_function_replace_fail=:
17258
17259
17260 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17261 func_stripname ()\
17262 {\
17263 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17264 \ # positional parameters, so assign one to ordinary parameter first.\
17265 \ func_stripname_result=${3}\
17266 \ func_stripname_result=${func_stripname_result#"${1}"}\
17267 \ func_stripname_result=${func_stripname_result%"${2}"}\
17268 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17269 && mv -f "$cfgfile.tmp" "$cfgfile" \
17270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17271 test 0 -eq $? || _lt_function_replace_fail=:
17272
17273
17274 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17275 func_split_long_opt ()\
17276 {\
17277 \ func_split_long_opt_name=${1%%=*}\
17278 \ func_split_long_opt_arg=${1#*=}\
17279 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17280 && mv -f "$cfgfile.tmp" "$cfgfile" \
17281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17282 test 0 -eq $? || _lt_function_replace_fail=:
17283
17284
17285 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17286 func_split_short_opt ()\
17287 {\
17288 \ func_split_short_opt_arg=${1#??}\
17289 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17290 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17291 && mv -f "$cfgfile.tmp" "$cfgfile" \
17292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17293 test 0 -eq $? || _lt_function_replace_fail=:
17294
17295
17296 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17297 func_lo2o ()\
17298 {\
17299 \ case ${1} in\
17300 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17301 \ *) func_lo2o_result=${1} ;;\
17302 \ esac\
17303 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17304 && mv -f "$cfgfile.tmp" "$cfgfile" \
17305 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17306 test 0 -eq $? || _lt_function_replace_fail=:
17307
17308
17309 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17310 func_xform ()\
17311 {\
17312 func_xform_result=${1%.*}.lo\
17313 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17314 && mv -f "$cfgfile.tmp" "$cfgfile" \
17315 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17316 test 0 -eq $? || _lt_function_replace_fail=:
17317
17318
17319 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17320 func_arith ()\
17321 {\
17322 func_arith_result=$(( $* ))\
17323 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17324 && mv -f "$cfgfile.tmp" "$cfgfile" \
17325 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17326 test 0 -eq $? || _lt_function_replace_fail=:
17327
17328
17329 sed -e '/^func_len ()$/,/^} # func_len /c\
17330 func_len ()\
17331 {\
17332 func_len_result=${#1}\
17333 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17334 && mv -f "$cfgfile.tmp" "$cfgfile" \
17335 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17336 test 0 -eq $? || _lt_function_replace_fail=:
17337
17338 fi
17339
17340 if test x"$lt_shell_append" = xyes; then
17341 sed -e '/^func_append ()$/,/^} # func_append /c\
17342 func_append ()\
17343 {\
17344 eval "${1}+=\\${2}"\
17345 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17346 && mv -f "$cfgfile.tmp" "$cfgfile" \
17347 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17348 test 0 -eq $? || _lt_function_replace_fail=:
17349
17350
17351 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17352 func_append_quoted ()\
17353 {\
17354 \ func_quote_for_eval "${2}"\
17355 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17356 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17357 && mv -f "$cfgfile.tmp" "$cfgfile" \
17358 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17359 test 0 -eq $? || _lt_function_replace_fail=:
17360
17361
17362 # Save a `func_append' function call where possible by direct use of '+='
17363 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17364 && mv -f "$cfgfile.tmp" "$cfgfile" \
17365 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17366 test 0 -eq $? || _lt_function_replace_fail=:
17367 else
17368 # Save a `func_append' function call even when '+=' is not available
17369 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17370 && mv -f "$cfgfile.tmp" "$cfgfile" \
17371 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17372 test 0 -eq $? || _lt_function_replace_fail=:
17373 fi
17374
17375 if test x"$_lt_function_replace_fail" = x":"; then
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17377 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17378 fi
17379
17380
17381 mv -f "$cfgfile" "$ofile" ||
17382 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17383 chmod +x "$ofile"
17384
17385 ;;
17386 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17387 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17388 # are listed without --file. Let's play safe and only enable the eval
17389 # if we detect the quoting.
17390 case $CONFIG_FILES in
17391 *\'*) eval set x "$CONFIG_FILES" ;;
17392 *) set x $CONFIG_FILES ;;
17393 esac
17394 shift
17395 for mf
17396 do
17397 # Strip MF so we end up with the name of the file.
17398 mf=`echo "$mf" | sed -e 's/:.*$//'`
17399 # Check whether this is an Automake generated Makefile or not.
17400 # We used to match only the files named `Makefile.in', but
17401 # some people rename them; so instead we look at the file content.
17402 # Grep'ing the first line is not enough: some people post-process
17403 # each Makefile.in and add a new line on top of each file to say so.
17404 # Grep'ing the whole file is not good either: AIX grep has a line
17405 # limit of 2048, but all sed's we know have understand at least 4000.
17406 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17407 dirpart=`$as_dirname -- "$mf" ||
17408 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17409 X"$mf" : 'X\(//\)[^/]' \| \
17410 X"$mf" : 'X\(//\)$' \| \
17411 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17412 $as_echo X"$mf" |
17413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17414 s//\1/
17415 q
17416 }
17417 /^X\(\/\/\)[^/].*/{
17418 s//\1/
17419 q
17420 }
17421 /^X\(\/\/\)$/{
17422 s//\1/
17423 q
17424 }
17425 /^X\(\/\).*/{
17426 s//\1/
17427 q
17428 }
17429 s/.*/./; q'`
17430 else
17431 continue
17432 fi
17433 # Extract the definition of DEPDIR, am__include, and am__quote
17434 # from the Makefile without running `make'.
17435 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17436 test -z "$DEPDIR" && continue
17437 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17438 test -z "am__include" && continue
17439 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17440 # When using ansi2knr, U may be empty or an underscore; expand it
17441 U=`sed -n 's/^U = //p' < "$mf"`
17442 # Find all dependency output files, they are included files with
17443 # $(DEPDIR) in their names. We invoke sed twice because it is the
17444 # simplest approach to changing $(DEPDIR) to its actual value in the
17445 # expansion.
17446 for file in `sed -n "
17447 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17448 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17449 # Make sure the directory exists.
17450 test -f "$dirpart/$file" && continue
17451 fdir=`$as_dirname -- "$file" ||
17452 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17453 X"$file" : 'X\(//\)[^/]' \| \
17454 X"$file" : 'X\(//\)$' \| \
17455 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17456 $as_echo X"$file" |
17457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17458 s//\1/
17459 q
17460 }
17461 /^X\(\/\/\)[^/].*/{
17462 s//\1/
17463 q
17464 }
17465 /^X\(\/\/\)$/{
17466 s//\1/
17467 q
17468 }
17469 /^X\(\/\).*/{
17470 s//\1/
17471 q
17472 }
17473 s/.*/./; q'`
17474 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17475 # echo "creating $dirpart/$file"
17476 echo '# dummy' > "$dirpart/$file"
17477 done
17478 done
17479 }
17480 ;;
17481 "po-directories":C)
17482 for ac_file in $CONFIG_FILES; do
17483 # Support "outfile[:infile[:infile...]]"
17484 case "$ac_file" in
17485 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17486 esac
17487 # PO directories have a Makefile.in generated from Makefile.in.in.
17488 case "$ac_file" in */Makefile.in)
17489 # Adjust a relative srcdir.
17490 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17491 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17492 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17493 # In autoconf-2.13 it is called $ac_given_srcdir.
17494 # In autoconf-2.50 it is called $srcdir.
17495 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17496 case "$ac_given_srcdir" in
17497 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17498 /*) top_srcdir="$ac_given_srcdir" ;;
17499 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17500 esac
17501 # Treat a directory as a PO directory if and only if it has a
17502 # POTFILES.in file. This allows packages to have multiple PO
17503 # directories under different names or in different locations.
17504 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17505 rm -f "$ac_dir/POTFILES"
17506 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17507 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17508 POMAKEFILEDEPS="POTFILES.in"
17509 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17510 # on $ac_dir but don't depend on user-specified configuration
17511 # parameters.
17512 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17513 # The LINGUAS file contains the set of available languages.
17514 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17515 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17516 fi
17517 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17518 # Hide the ALL_LINGUAS assigment from automake < 1.5.
17519 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17520 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17521 else
17522 # The set of available languages was given in configure.in.
17523 # Hide the ALL_LINGUAS assigment from automake < 1.5.
17524 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17525 fi
17526 # Compute POFILES
17527 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17528 # Compute UPDATEPOFILES
17529 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17530 # Compute DUMMYPOFILES
17531 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17532 # Compute GMOFILES
17533 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17534 case "$ac_given_srcdir" in
17535 .) srcdirpre= ;;
17536 *) srcdirpre='$(srcdir)/' ;;
17537 esac
17538 POFILES=
17539 UPDATEPOFILES=
17540 DUMMYPOFILES=
17541 GMOFILES=
17542 for lang in $ALL_LINGUAS; do
17543 POFILES="$POFILES $srcdirpre$lang.po"
17544 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17545 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17546 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17547 done
17548 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17549 # environment variable.
17550 INST_LINGUAS=
17551 if test -n "$ALL_LINGUAS"; then
17552 for presentlang in $ALL_LINGUAS; do
17553 useit=no
17554 if test "%UNSET%" != "$LINGUAS"; then
17555 desiredlanguages="$LINGUAS"
17556 else
17557 desiredlanguages="$ALL_LINGUAS"
17558 fi
17559 for desiredlang in $desiredlanguages; do
17560 # Use the presentlang catalog if desiredlang is
17561 # a. equal to presentlang, or
17562 # b. a variant of presentlang (because in this case,
17563 # presentlang can be used as a fallback for messages
17564 # which are not translated in the desiredlang catalog).
17565 case "$desiredlang" in
17566 "$presentlang"*) useit=yes;;
17567 esac
17568 done
17569 if test $useit = yes; then
17570 INST_LINGUAS="$INST_LINGUAS $presentlang"
17571 fi
17572 done
17573 fi
17574 CATALOGS=
17575 if test -n "$INST_LINGUAS"; then
17576 for lang in $INST_LINGUAS; do
17577 CATALOGS="$CATALOGS $lang.gmo"
17578 done
17579 fi
17580 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17581 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"
17582 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17583 if test -f "$f"; then
17584 case "$f" in
17585 *.orig | *.bak | *~) ;;
17586 *) cat "$f" >> "$ac_dir/Makefile" ;;
17587 esac
17588 fi
17589 done
17590 fi
17591 ;;
17592 esac
17593 done ;;
17594
17595 esac
17596 done # for ac_tag
17597
17598
17599 as_fn_exit 0
17600 _ACEOF
17601 ac_clean_files=$ac_clean_files_save
17602
17603 test $ac_write_fail = 0 ||
17604 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17605
17606
17607 # configure is writing to config.log, and then calls config.status.
17608 # config.status does its own redirection, appending to config.log.
17609 # Unfortunately, on DOS this fails, as config.log is still kept open
17610 # by configure, so config.status won't be able to write to it; its
17611 # output is simply discarded. So we exec the FD to /dev/null,
17612 # effectively closing config.log, so it can be properly (re)opened and
17613 # appended to by config.status. When coming back to configure, we
17614 # need to make the FD available again.
17615 if test "$no_create" != yes; then
17616 ac_cs_success=:
17617 ac_config_status_args=
17618 test "$silent" = yes &&
17619 ac_config_status_args="$ac_config_status_args --quiet"
17620 exec 5>/dev/null
17621 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17622 exec 5>>config.log
17623 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17624 # would make configure fail if this is the last instruction.
17625 $ac_cs_success || as_fn_exit 1
17626 fi
17627 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17629 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17630 fi
17631