Debian Codegraph @

hp/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for canlock-hp 3.3.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='canlock-hp'
592 PACKAGE_TARNAME='canlock-hp'
593 PACKAGE_VERSION='3.3.1'
594 PACKAGE_STRING='canlock-hp 3.3.1'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL='https://micha.freeshell.org/libcanlock'
597
598 ac_unique_file="util/canlock-mhp.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 AM_BACKSLASH
640 AM_DEFAULT_VERBOSITY
641 AM_DEFAULT_V
642 AM_V
643 am__fastdepCC_FALSE
644 am__fastdepCC_TRUE
645 CCDEPMODE
646 am__nodep
647 AMDEPBACKSLASH
648 AMDEP_FALSE
649 AMDEP_TRUE
650 am__include
651 DEPDIR
652 am__untar
653 am__tar
654 AMTAR
655 am__leading_dot
656 SET_MAKE
657 mkdir_p
658 MKDIR_P
659 INSTALL_STRIP_PROGRAM
660 install_sh
661 MAKEINFO
662 AUTOHEADER
663 AUTOMAKE
664 AUTOCONF
665 ACLOCAL
666 VERSION
667 PACKAGE
668 CYGPATH_W
669 am__isrc
670 LT_SYS_LIBRARY_PATH
671 OTOOL64
672 OTOOL
673 LIPO
674 NMEDIT
675 DSYMUTIL
676 MANIFEST_TOOL
677 AWK
678 RANLIB
679 STRIP
680 ac_ct_AR
681 AR
682 DLLTOOL
683 OBJDUMP
684 LN_S
685 NM
686 ac_ct_DUMPBIN
687 DUMPBIN
688 LD
689 FGREP
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 LIBTOOL
699 EGREP
700 GREP
701 CPP
702 YFLAGS
703 YACC
704 LEXLIB
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 LEX_OUTPUT_ROOT
713 LEX
714 SED
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 pkgconfigdir
719 pn_hfp_parser
720 pn_mhp_parser
721 RELEASE_DATE
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL
760 am__quote'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_pc_files
765 with_pkgconfigdir
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_aix_soname
771 with_gnu_ld
772 with_sysroot
773 enable_libtool_lock
774 enable_dependency_tracking
775 enable_silent_rules
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 YACC
786 YFLAGS
787 CPP
788 LT_SYS_LIBRARY_PATH'
789
790
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 ac_unrecognized_opts=
795 ac_unrecognized_sep=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
812
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
838
839 ac_prev=
840 ac_dashdash=
841 for ac_option
842 do
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
848 fi
849
850 case $ac_option in
851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *=) ac_optarg= ;;
853 *) ac_optarg=yes ;;
854 esac
855
856 # Accept the important Cygnus configure options, so we can diagnose typos.
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1084
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1095
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1100
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1105
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1112
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1117
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1120
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1123
1124 -with-* | --with-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
1139
1140 -without-* | --without-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
1155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
1174 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175 Try \`$0 --help' for more information"
1176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184 esac
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194 ;;
1195
1196 esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 as_fn_error $? "missing argument to $ac_option"
1202 fi
1203
1204 if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1210 fi
1211
1212 # Check all directory arguments for consistency.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1217 do
1218 eval ac_val=\$$ac_var
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
1226 case $ac_val in
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 esac
1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 done
1232
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1239
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247 fi
1248
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252 test "$silent" = yes && exec 6>/dev/null
1253
1254
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error $? "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1293 fi
1294 else
1295 ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures canlock-hp 3.3.1 to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking ...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/canlock-hp]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1383
1384 cat <<\_ACEOF
1385
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of canlock-hp 3.3.1:";;
1400 esac
1401 cat <<\_ACEOF
1402
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-pc-files generate and install .pc files for pkg-config
1408 --enable-shared[=PKGS] build shared libraries [default=yes]
1409 --enable-static[=PKGS] build static libraries [default=yes]
1410 --enable-fast-install[=PKGS]
1411 optimize for fast installation [default=yes]
1412 --disable-libtool-lock avoid locking (might break parallel builds)
1413 --enable-dependency-tracking
1414 do not reject slow dependency extractors
1415 --disable-dependency-tracking
1416 speeds up one-time build
1417 --enable-silent-rules less verbose build output (undo: "make V=1")
1418 --disable-silent-rules verbose build output (undo: "make V=0")
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pkgconfigdir pkg-config installation directory
1424 ['${libdir}/pkgconfig']
1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-aix-soname=aix|svr4|both
1428 shared library versioning (aka "SONAME") variant to
1429 provide on AIX, [default=aix].
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1432 compiler's sysroot if not specified).
1433
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 YACC The `Yet Another Compiler Compiler' implementation to use.
1443 Defaults to the first program found out of: `bison -y', `byacc',
1444 `yacc'.
1445 YFLAGS The list of arguments that will be passed by default to $YACC.
1446 This script will default YFLAGS to the empty string to avoid a
1447 default value of `-d' given by some make applications.
1448 CPP C preprocessor
1449 LT_SYS_LIBRARY_PATH
1450 User-defined run-time library search path.
1451
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1454
1455 Report bugs to <[email protected]>.
1456 canlock-hp home page: <https://micha.freeshell.org/libcanlock>.
1457 _ACEOF
1458 ac_status=$?
1459 fi
1460
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
1467 ac_builddir=.
1468
1469 case "$ac_dir" in
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *)
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479 esac
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1484
1485 case $srcdir in
1486 .) # We are building in place.
1487 ac_srcdir=.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 esac
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1514 fi
1515
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1518 cat <<\_ACEOF
1519 canlock-hp configure 3.3.1
1520 generated by GNU Autoconf 2.69
1521
1522 Copyright (C) 2012 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525 _ACEOF
1526 exit
1527 fi
1528
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1532
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1537 {
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560 else
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564 ac_retval=1
1565 fi
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1568
1569 } # ac_fn_c_try_compile
1570
1571 # ac_fn_c_try_link LINENO
1572 # -----------------------
1573 # Try to link conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_link ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 test -x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_link
1616
1617 # ac_fn_c_try_cpp LINENO
1618 # ----------------------
1619 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_cpp ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } > conftest.i && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 }; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648 fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_cpp
1653
1654 # ac_fn_c_try_run LINENO
1655 # ----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657 # that executables *can* be run.
1658 ac_fn_c_try_run ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if { { ac_try="$ac_link"
1662 case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>&5
1669 ac_status=$?
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1672 { { case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_try") 2>&5
1679 ac_status=$?
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; }; }; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: program exited with status $ac_status" >&5
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=$ac_status
1689 fi
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_run
1695
1696 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1699 # the include files in INCLUDES and setting the cache variable VAR
1700 # accordingly.
1701 ac_fn_c_check_header_mongrel ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if eval \${$3+:} false; then :
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1709 fi
1710 eval ac_res=\$$3
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1713 else
1714 # Is the header compilable?
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1716 $as_echo_n "checking $2 usability... " >&6; }
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 $4
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723 ac_header_compiler=yes
1724 else
1725 ac_header_compiler=no
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1729 $as_echo "$ac_header_compiler" >&6; }
1730
1731 # Is the header present?
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1733 $as_echo_n "checking $2 presence... " >&6; }
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1736 #include <$2>
1737 _ACEOF
1738 if ac_fn_c_try_cpp "$LINENO"; then :
1739 ac_header_preproc=yes
1740 else
1741 ac_header_preproc=no
1742 fi
1743 rm -f conftest.err conftest.i conftest.$ac_ext
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1745 $as_echo "$ac_header_preproc" >&6; }
1746
1747 # So? What about this header?
1748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1749 yes:no: )
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1751 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754 ;;
1755 no:yes:* )
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1757 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1759 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1761 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1763 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766 ( $as_echo "## --------------------------------------- ##
1767 ## Report this to [email protected] ##
1768 ## --------------------------------------- ##"
1769 ) | sed "s/^/$as_me: WARNING: /" >&2
1770 ;;
1771 esac
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 eval "$3=\$ac_header_compiler"
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 fi
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_header_mongrel
1786
1787 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1788 # -------------------------------------------------------
1789 # Tests whether HEADER exists and can be compiled using the include files in
1790 # INCLUDES, setting the cache variable VAR accordingly.
1791 ac_fn_c_check_header_compile ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 $4
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_compile "$LINENO"; then :
1805 eval "$3=yes"
1806 else
1807 eval "$3=no"
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 fi
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816 } # ac_fn_c_check_header_compile
1817
1818 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1819 # --------------------------------------------
1820 # Tries to find the compile-time value of EXPR in a program that includes
1821 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1822 # computed
1823 ac_fn_c_compute_int ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if test "$cross_compiling" = yes; then
1827 # Depending upon the size, compute the lo and hi bounds.
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 $4
1831 int
1832 main ()
1833 {
1834 static int test_array [1 - 2 * !(($2) >= 0)];
1835 test_array [0] = 0;
1836 return test_array [0];
1837
1838 ;
1839 return 0;
1840 }
1841 _ACEOF
1842 if ac_fn_c_try_compile "$LINENO"; then :
1843 ac_lo=0 ac_mid=0
1844 while :; do
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 $4
1848 int
1849 main ()
1850 {
1851 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1852 test_array [0] = 0;
1853 return test_array [0];
1854
1855 ;
1856 return 0;
1857 }
1858 _ACEOF
1859 if ac_fn_c_try_compile "$LINENO"; then :
1860 ac_hi=$ac_mid; break
1861 else
1862 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1863 if test $ac_lo -le $ac_mid; then
1864 ac_lo= ac_hi=
1865 break
1866 fi
1867 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 done
1871 else
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1874 $4
1875 int
1876 main ()
1877 {
1878 static int test_array [1 - 2 * !(($2) < 0)];
1879 test_array [0] = 0;
1880 return test_array [0];
1881
1882 ;
1883 return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887 ac_hi=-1 ac_mid=-1
1888 while :; do
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 $4
1892 int
1893 main ()
1894 {
1895 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1896 test_array [0] = 0;
1897 return test_array [0];
1898
1899 ;
1900 return 0;
1901 }
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 ac_lo=$ac_mid; break
1905 else
1906 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1907 if test $ac_mid -le $ac_hi; then
1908 ac_lo= ac_hi=
1909 break
1910 fi
1911 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 done
1915 else
1916 ac_lo= ac_hi=
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 # Binary search between lo and hi bounds.
1922 while test "x$ac_lo" != "x$ac_hi"; do
1923 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $4
1927 int
1928 main ()
1929 {
1930 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1931 test_array [0] = 0;
1932 return test_array [0];
1933
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_hi=$ac_mid
1940 else
1941 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 done
1945 case $ac_lo in #((
1946 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1947 '') ac_retval=1 ;;
1948 esac
1949 else
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 $4
1953 static long int longval () { return $2; }
1954 static unsigned long int ulongval () { return $2; }
1955 #include <stdio.h>
1956 #include <stdlib.h>
1957 int
1958 main ()
1959 {
1960
1961 FILE *f = fopen ("conftest.val", "w");
1962 if (! f)
1963 return 1;
1964 if (($2) < 0)
1965 {
1966 long int i = longval ();
1967 if (i != ($2))
1968 return 1;
1969 fprintf (f, "%ld", i);
1970 }
1971 else
1972 {
1973 unsigned long int i = ulongval ();
1974 if (i != ($2))
1975 return 1;
1976 fprintf (f, "%lu", i);
1977 }
1978 /* Do not output a trailing newline, as this causes \r\n confusion
1979 on some platforms. */
1980 return ferror (f) || fclose (f) != 0;
1981
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_run "$LINENO"; then :
1987 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1988 else
1989 ac_retval=1
1990 fi
1991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1992 conftest.$ac_objext conftest.beam conftest.$ac_ext
1993 rm -f conftest.val
1994
1995 fi
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
1998
1999 } # ac_fn_c_compute_int
2000
2001 # ac_fn_c_check_func LINENO FUNC VAR
2002 # ----------------------------------
2003 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2004 ac_fn_c_check_func ()
2005 {
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if eval \${$3+:} false; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2016 #define $2 innocuous_$2
2017
2018 /* System header to define __stub macros and hopefully few prototypes,
2019 which can conflict with char $2 (); below.
2020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2021 <limits.h> exists even on freestanding compilers. */
2022
2023 #ifdef __STDC__
2024 # include <limits.h>
2025 #else
2026 # include <assert.h>
2027 #endif
2028
2029 #undef $2
2030
2031 /* Override any GCC internal prototype to avoid an error.
2032 Use char because int might match the return type of a GCC
2033 builtin and then its argument prototype would still apply. */
2034 #ifdef __cplusplus
2035 extern "C"
2036 #endif
2037 char $2 ();
2038 /* The GNU C library defines this for functions which it implements
2039 to always fail with ENOSYS. Some functions are actually named
2040 something starting with __ and the normal name is an alias. */
2041 #if defined __stub_$2 || defined __stub___$2
2042 choke me
2043 #endif
2044
2045 int
2046 main ()
2047 {
2048 return $2 ();
2049 ;
2050 return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_link "$LINENO"; then :
2054 eval "$3=yes"
2055 else
2056 eval "$3=no"
2057 fi
2058 rm -f core conftest.err conftest.$ac_objext \
2059 conftest$ac_exeext conftest.$ac_ext
2060 fi
2061 eval ac_res=\$$3
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065
2066 } # ac_fn_c_check_func
2067 cat >config.log <<_ACEOF
2068 This file contains any messages produced by compilers while
2069 running configure, to aid debugging if configure makes a mistake.
2070
2071 It was created by canlock-hp $as_me 3.3.1, which was
2072 generated by GNU Autoconf 2.69. Invocation command line was
2073
2074 $ $0 $@
2075
2076 _ACEOF
2077 exec 5>>config.log
2078 {
2079 cat <<_ASUNAME
2080 ## --------- ##
2081 ## Platform. ##
2082 ## --------- ##
2083
2084 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2085 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2086 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2087 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2088 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2089
2090 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2091 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2092
2093 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2094 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2095 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2096 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2097 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2098 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2099 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2100
2101 _ASUNAME
2102
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 $as_echo "PATH: $as_dir"
2109 done
2110 IFS=$as_save_IFS
2111
2112 } >&5
2113
2114 cat >&5 <<_ACEOF
2115
2116
2117 ## ----------- ##
2118 ## Core tests. ##
2119 ## ----------- ##
2120
2121 _ACEOF
2122
2123
2124 # Keep a trace of the command line.
2125 # Strip out --no-create and --no-recursion so they do not pile up.
2126 # Strip out --silent because we don't want to record it for future runs.
2127 # Also quote any args containing shell meta-characters.
2128 # Make two passes to allow for proper duplicate-argument suppression.
2129 ac_configure_args=
2130 ac_configure_args0=
2131 ac_configure_args1=
2132 ac_must_keep_next=false
2133 for ac_pass in 1 2
2134 do
2135 for ac_arg
2136 do
2137 case $ac_arg in
2138 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2140 | -silent | --silent | --silen | --sile | --sil)
2141 continue ;;
2142 *\'*)
2143 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2144 esac
2145 case $ac_pass in
2146 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2147 2)
2148 as_fn_append ac_configure_args1 " '$ac_arg'"
2149 if test $ac_must_keep_next = true; then
2150 ac_must_keep_next=false # Got value, back to normal.
2151 else
2152 case $ac_arg in
2153 *=* | --config-cache | -C | -disable-* | --disable-* \
2154 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2155 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2156 | -with-* | --with-* | -without-* | --without-* | --x)
2157 case "$ac_configure_args0 " in
2158 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2159 esac
2160 ;;
2161 -* ) ac_must_keep_next=true ;;
2162 esac
2163 fi
2164 as_fn_append ac_configure_args " '$ac_arg'"
2165 ;;
2166 esac
2167 done
2168 done
2169 { ac_configure_args0=; unset ac_configure_args0;}
2170 { ac_configure_args1=; unset ac_configure_args1;}
2171
2172 # When interrupted or exit'd, cleanup temporary files, and complete
2173 # config.log. We remove comments because anyway the quotes in there
2174 # would cause problems or look ugly.
2175 # WARNING: Use '\'' to represent an apostrophe within the trap.
2176 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2177 trap 'exit_status=$?
2178 # Save into config.log some information that might help in debugging.
2179 {
2180 echo
2181
2182 $as_echo "## ---------------- ##
2183 ## Cache variables. ##
2184 ## ---------------- ##"
2185 echo
2186 # The following way of writing the cache mishandles newlines in values,
2187 (
2188 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in #(
2191 *${as_nl}*)
2192 case $ac_var in #(
2193 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2194 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2195 esac
2196 case $ac_var in #(
2197 _ | IFS | as_nl) ;; #(
2198 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2199 *) { eval $ac_var=; unset $ac_var;} ;;
2200 esac ;;
2201 esac
2202 done
2203 (set) 2>&1 |
2204 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2205 *${as_nl}ac_space=\ *)
2206 sed -n \
2207 "s/'\''/'\''\\\\'\'''\''/g;
2208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2209 ;; #(
2210 *)
2211 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2212 ;;
2213 esac |
2214 sort
2215 )
2216 echo
2217
2218 $as_echo "## ----------------- ##
2219 ## Output variables. ##
2220 ## ----------------- ##"
2221 echo
2222 for ac_var in $ac_subst_vars
2223 do
2224 eval ac_val=\$$ac_var
2225 case $ac_val in
2226 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227 esac
2228 $as_echo "$ac_var='\''$ac_val'\''"
2229 done | sort
2230 echo
2231
2232 if test -n "$ac_subst_files"; then
2233 $as_echo "## ------------------- ##
2234 ## File substitutions. ##
2235 ## ------------------- ##"
2236 echo
2237 for ac_var in $ac_subst_files
2238 do
2239 eval ac_val=\$$ac_var
2240 case $ac_val in
2241 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242 esac
2243 $as_echo "$ac_var='\''$ac_val'\''"
2244 done | sort
2245 echo
2246 fi
2247
2248 if test -s confdefs.h; then
2249 $as_echo "## ----------- ##
2250 ## confdefs.h. ##
2251 ## ----------- ##"
2252 echo
2253 cat confdefs.h
2254 echo
2255 fi
2256 test "$ac_signal" != 0 &&
2257 $as_echo "$as_me: caught signal $ac_signal"
2258 $as_echo "$as_me: exit $exit_status"
2259 } >&5
2260 rm -f core *.core core.conftest.* &&
2261 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2262 exit $exit_status
2263 ' 0
2264 for ac_signal in 1 2 13 15; do
2265 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2266 done
2267 ac_signal=0
2268
2269 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2270 rm -f -r conftest* confdefs.h
2271
2272 $as_echo "/* confdefs.h */" > confdefs.h
2273
2274 # Predefined preprocessor variables.
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_NAME "$PACKAGE_NAME"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2286 _ACEOF
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_STRING "$PACKAGE_STRING"
2290 _ACEOF
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2294 _ACEOF
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_URL "$PACKAGE_URL"
2298 _ACEOF
2299
2300
2301 # Let the site file select an alternate cache file if it wants to.
2302 # Prefer an explicitly selected file to automatically selected ones.
2303 ac_site_file1=NONE
2304 ac_site_file2=NONE
2305 if test -n "$CONFIG_SITE"; then
2306 # We do not want a PATH search for config.site.
2307 case $CONFIG_SITE in #((
2308 -*) ac_site_file1=./$CONFIG_SITE;;
2309 */*) ac_site_file1=$CONFIG_SITE;;
2310 *) ac_site_file1=./$CONFIG_SITE;;
2311 esac
2312 elif test "x$prefix" != xNONE; then
2313 ac_site_file1=$prefix/share/config.site
2314 ac_site_file2=$prefix/etc/config.site
2315 else
2316 ac_site_file1=$ac_default_prefix/share/config.site
2317 ac_site_file2=$ac_default_prefix/etc/config.site
2318 fi
2319 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2320 do
2321 test "x$ac_site_file" = xNONE && continue
2322 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2324 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2325 sed 's/^/| /' "$ac_site_file" >&5
2326 . "$ac_site_file" \
2327 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329 as_fn_error $? "failed to load site script $ac_site_file
2330 See \`config.log' for more details" "$LINENO" 5; }
2331 fi
2332 done
2333
2334 if test -r "$cache_file"; then
2335 # Some versions of bash will fail to source /dev/null (special files
2336 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2337 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2339 $as_echo "$as_me: loading cache $cache_file" >&6;}
2340 case $cache_file in
2341 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2342 *) . "./$cache_file";;
2343 esac
2344 fi
2345 else
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2347 $as_echo "$as_me: creating cache $cache_file" >&6;}
2348 >$cache_file
2349 fi
2350
2351 # Check that the precious variables saved in the cache have kept the same
2352 # value.
2353 ac_cache_corrupted=false
2354 for ac_var in $ac_precious_vars; do
2355 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2356 eval ac_new_set=\$ac_env_${ac_var}_set
2357 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2358 eval ac_new_val=\$ac_env_${ac_var}_value
2359 case $ac_old_set,$ac_new_set in
2360 set,)
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2362 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2363 ac_cache_corrupted=: ;;
2364 ,set)
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2366 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2367 ac_cache_corrupted=: ;;
2368 ,);;
2369 *)
2370 if test "x$ac_old_val" != "x$ac_new_val"; then
2371 # differences in whitespace do not lead to failure.
2372 ac_old_val_w=`echo x $ac_old_val`
2373 ac_new_val_w=`echo x $ac_new_val`
2374 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2376 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2377 ac_cache_corrupted=:
2378 else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2380 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2381 eval $ac_var=\$ac_old_val
2382 fi
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2384 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2386 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2387 fi;;
2388 esac
2389 # Pass precious variables to config.status.
2390 if test "$ac_new_set" = set; then
2391 case $ac_new_val in
2392 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2393 *) ac_arg=$ac_var=$ac_new_val ;;
2394 esac
2395 case " $ac_configure_args " in
2396 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2397 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2398 esac
2399 fi
2400 done
2401 if $ac_cache_corrupted; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2405 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2406 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2407 fi
2408 ## -------------------- ##
2409 ## Main body of script. ##
2410 ## -------------------- ##
2411
2412 ac_ext=c
2413 ac_cpp='$CPP $CPPFLAGS'
2414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417
2418
2419
2420 ac_config_headers="$ac_config_headers config.h"
2421
2422
2423
2424
2425 ac_aux_dir=
2426 for ac_dir in build-aux "$srcdir"/build-aux; do
2427 if test -f "$ac_dir/install-sh"; then
2428 ac_aux_dir=$ac_dir
2429 ac_install_sh="$ac_aux_dir/install-sh -c"
2430 break
2431 elif test -f "$ac_dir/install.sh"; then
2432 ac_aux_dir=$ac_dir
2433 ac_install_sh="$ac_aux_dir/install.sh -c"
2434 break
2435 elif test -f "$ac_dir/shtool"; then
2436 ac_aux_dir=$ac_dir
2437 ac_install_sh="$ac_aux_dir/shtool install -c"
2438 break
2439 fi
2440 done
2441 if test -z "$ac_aux_dir"; then
2442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2443 fi
2444
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2452
2453
2454
2455
2456
2457 RELEASE_DATE=2024-05-11
2458
2459
2460 pn_mhp_parser="${prefix}/bin/canlock-mhp"
2461
2462
2463 pn_hfp_parser="${prefix}/bin/canlock-hfp"
2464
2465
2466 # Check whether --enable-pc-files was given.
2467 if test "${enable_pc_files+set}" = set; then :
2468 enableval=$enable_pc_files;
2469 else
2470 enable_pc_files=no
2471 fi
2472
2473 if test "x$enable_pc_files" = "xyes"; then :
2474
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: Enable .pc files for pkg-config" >&5
2476 $as_echo "$as_me: Enable .pc files for pkg-config" >&6;}
2477
2478
2479
2480
2481
2482
2483 # Check whether --with-pkgconfigdir was given.
2484 if test "${with_pkgconfigdir+set}" = set; then :
2485 withval=$with_pkgconfigdir;
2486 else
2487 with_pkgconfigdir='${libdir}/pkgconfig'
2488 fi
2489
2490 pkgconfigdir=$with_pkgconfigdir
2491
2492
2493
2494
2495
2496 fi
2497 if test "x$enable_pc_files" != "xyes"; then :
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: Disable .pc files for pkg-config" >&5
2500 $as_echo "$as_me: Disable .pc files for pkg-config" >&6;}
2501
2502 fi
2503
2504
2505
2506 # Find a good install program. We prefer a C program (faster),
2507 # so one script is as good as another. But avoid the broken or
2508 # incompatible versions:
2509 # SysV /etc/install, /usr/sbin/install
2510 # SunOS /usr/etc/install
2511 # IRIX /sbin/install
2512 # AIX /bin/install
2513 # AmigaOS /C/install, which installs bootblocks on floppy discs
2514 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2515 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2516 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2517 # OS/2's system install, which has a completely different semantic
2518 # ./install, which can be erroneously created by make from ./install.sh.
2519 # Reject install programs that cannot install multiple files.
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2521 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2522 if test -z "$INSTALL"; then
2523 if ${ac_cv_path_install+:} false; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 # Account for people who put trailing slashes in PATH elements.
2532 case $as_dir/ in #((
2533 ./ | .// | /[cC]/* | \
2534 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2535 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2536 /usr/ucb/* ) ;;
2537 *)
2538 # OSF1 and SCO ODT 3.0 have their own names for install.
2539 # Don't use installbsd from OSF since it installs stuff as root
2540 # by default.
2541 for ac_prog in ginstall scoinst install; do
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2544 if test $ac_prog = install &&
2545 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2546 # AIX install. It has an incompatible calling convention.
2547 :
2548 elif test $ac_prog = install &&
2549 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2550 # program-specific install script used by HP pwplus--don't use.
2551 :
2552 else
2553 rm -rf conftest.one conftest.two conftest.dir
2554 echo one > conftest.one
2555 echo two > conftest.two
2556 mkdir conftest.dir
2557 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2558 test -s conftest.one && test -s conftest.two &&
2559 test -s conftest.dir/conftest.one &&
2560 test -s conftest.dir/conftest.two
2561 then
2562 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2563 break 3
2564 fi
2565 fi
2566 fi
2567 done
2568 done
2569 ;;
2570 esac
2571
2572 done
2573 IFS=$as_save_IFS
2574
2575 rm -rf conftest.one conftest.two conftest.dir
2576
2577 fi
2578 if test "${ac_cv_path_install+set}" = set; then
2579 INSTALL=$ac_cv_path_install
2580 else
2581 # As a last resort, use the slow shell script. Don't cache a
2582 # value for INSTALL within a source directory, because that will
2583 # break other packages using the cache if that directory is
2584 # removed, or if the value is a relative name.
2585 INSTALL=$ac_install_sh
2586 fi
2587 fi
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2589 $as_echo "$INSTALL" >&6; }
2590
2591 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2592 # It thinks the first close brace ends the variable substitution.
2593 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2594
2595 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2596
2597 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2598
2599
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2601 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2602 if ${ac_cv_path_SED+:} false; then :
2603 $as_echo_n "(cached) " >&6
2604 else
2605 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2606 for ac_i in 1 2 3 4 5 6 7; do
2607 ac_script="$ac_script$as_nl$ac_script"
2608 done
2609 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2610 { ac_script=; unset ac_script;}
2611 if test -z "$SED"; then
2612 ac_path_SED_found=false
2613 # Loop through the user's path and test for each of PROGNAME-LIST
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_prog in sed gsed; do
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2622 as_fn_executable_p "$ac_path_SED" || continue
2623 # Check for GNU ac_path_SED and select it if it is found.
2624 # Check for GNU $ac_path_SED
2625 case `"$ac_path_SED" --version 2>&1` in
2626 *GNU*)
2627 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2628 *)
2629 ac_count=0
2630 $as_echo_n 0123456789 >"conftest.in"
2631 while :
2632 do
2633 cat "conftest.in" "conftest.in" >"conftest.tmp"
2634 mv "conftest.tmp" "conftest.in"
2635 cp "conftest.in" "conftest.nl"
2636 $as_echo '' >> "conftest.nl"
2637 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2639 as_fn_arith $ac_count + 1 && ac_count=$as_val
2640 if test $ac_count -gt ${ac_path_SED_max-0}; then
2641 # Best one so far, save it but keep looking for a better one
2642 ac_cv_path_SED="$ac_path_SED"
2643 ac_path_SED_max=$ac_count
2644 fi
2645 # 10*(2^10) chars as input seems more than enough
2646 test $ac_count -gt 10 && break
2647 done
2648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2649 esac
2650
2651 $ac_path_SED_found && break 3
2652 done
2653 done
2654 done
2655 IFS=$as_save_IFS
2656 if test -z "$ac_cv_path_SED"; then
2657 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2658 fi
2659 else
2660 ac_cv_path_SED=$SED
2661 fi
2662
2663 fi
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2665 $as_echo "$ac_cv_path_SED" >&6; }
2666 SED="$ac_cv_path_SED"
2667 rm -f conftest.sed
2668
2669
2670 # Expand $ac_aux_dir to an absolute path.
2671 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2672
2673 if test x"${MISSING+set}" != xset; then
2674 case $am_aux_dir in
2675 *\ * | *\ *)
2676 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2677 *)
2678 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2679 esac
2680 fi
2681 # Use eval to expand $SHELL
2682 if eval "$MISSING --is-lightweight"; then
2683 am_missing_run="$MISSING "
2684 else
2685 am_missing_run=
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2687 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2688 fi
2689
2690 ac_ext=c
2691 ac_cpp='$CPP $CPPFLAGS'
2692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 if test -n "$ac_tool_prefix"; then
2696 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2697 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_CC+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2716 fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 CC=$ac_cv_prog_CC
2724 if test -n "$CC"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2727 else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733 fi
2734 if test -z "$ac_cv_prog_CC"; then
2735 ac_ct_CC=$CC
2736 # Extract the first word of "gcc", so it can be a program name with args.
2737 set dummy gcc; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$ac_ct_CC"; then
2744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_ac_ct_CC="gcc"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757 done
2758 done
2759 IFS=$as_save_IFS
2760
2761 fi
2762 fi
2763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2764 if test -n "$ac_ct_CC"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2766 $as_echo "$ac_ct_CC" >&6; }
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 fi
2771
2772 if test "x$ac_ct_CC" = x; then
2773 CC=""
2774 else
2775 case $cross_compiling:$ac_tool_warned in
2776 yes:)
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2779 ac_tool_warned=yes ;;
2780 esac
2781 CC=$ac_ct_CC
2782 fi
2783 else
2784 CC="$ac_cv_prog_CC"
2785 fi
2786
2787 if test -z "$CC"; then
2788 if test -n "$ac_tool_prefix"; then
2789 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2790 set dummy ${ac_tool_prefix}cc; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_CC+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_CC="${ac_tool_prefix}cc"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2820 else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 fi
2828 if test -z "$CC"; then
2829 # Extract the first word of "cc", so it can be a program name with args.
2830 set dummy cc; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_CC+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2838 else
2839 ac_prog_rejected=no
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2848 ac_prog_rejected=yes
2849 continue
2850 fi
2851 ac_cv_prog_CC="cc"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 if test $ac_prog_rejected = yes; then
2860 # We found a bogon in the path, so make sure we never use it.
2861 set dummy $ac_cv_prog_CC
2862 shift
2863 if test $# != 0; then
2864 # We chose a different compiler from the bogus one.
2865 # However, it has the same basename, so the bogon will be chosen
2866 # first if we set CC to just the basename; use the full file name.
2867 shift
2868 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2869 fi
2870 fi
2871 fi
2872 fi
2873 CC=$ac_cv_prog_CC
2874 if test -n "$CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876 $as_echo "$CC" >&6; }
2877 else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2880 fi
2881
2882
2883 fi
2884 if test -z "$CC"; then
2885 if test -n "$ac_tool_prefix"; then
2886 for ac_prog in cl.exe
2887 do
2888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_CC+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC="$CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 CC=$ac_cv_prog_CC
2916 if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924
2925 test -n "$CC" && break
2926 done
2927 fi
2928 if test -z "$CC"; then
2929 ac_ct_CC=$CC
2930 for ac_prog in cl.exe
2931 do
2932 # Extract the first word of "$ac_prog", so it can be a program name with args.
2933 set dummy $ac_prog; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$ac_ct_CC"; then
2940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_ac_ct_CC="$ac_prog"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2962 $as_echo "$ac_ct_CC" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 test -n "$ac_ct_CC" && break
2970 done
2971
2972 if test "x$ac_ct_CC" = x; then
2973 CC=""
2974 else
2975 case $cross_compiling:$ac_tool_warned in
2976 yes:)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2979 ac_tool_warned=yes ;;
2980 esac
2981 CC=$ac_ct_CC
2982 fi
2983 fi
2984
2985 fi
2986
2987
2988 test -z "$CC" && { { $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 $? "no acceptable C compiler found in \$PATH
2991 See \`config.log' for more details" "$LINENO" 5; }
2992
2993 # Provide some information about the compiler.
2994 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2995 set X $ac_compile
2996 ac_compiler=$2
2997 for ac_option in --version -v -V -qversion; do
2998 { { ac_try="$ac_compiler $ac_option >&5"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3006 ac_status=$?
3007 if test -s conftest.err; then
3008 sed '10a\
3009 ... rest of stderr output deleted ...
3010 10q' conftest.err >conftest.er1
3011 cat conftest.er1 >&5
3012 fi
3013 rm -f conftest.er1 conftest.err
3014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015 test $ac_status = 0; }
3016 done
3017
3018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019 /* end confdefs.h. */
3020
3021 int
3022 main ()
3023 {
3024
3025 ;
3026 return 0;
3027 }
3028 _ACEOF
3029 ac_clean_files_save=$ac_clean_files
3030 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3031 # Try to create an executable without -o first, disregard a.out.
3032 # It will help us diagnose broken compilers, and finding out an intuition
3033 # of exeext.
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3035 $as_echo_n "checking whether the C compiler works... " >&6; }
3036 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3037
3038 # The possible output files:
3039 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3040
3041 ac_rmfiles=
3042 for ac_file in $ac_files
3043 do
3044 case $ac_file in
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3046 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3047 esac
3048 done
3049 rm -f $ac_rmfiles
3050
3051 if { { ac_try="$ac_link_default"
3052 case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_link_default") 2>&5
3059 ac_status=$?
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }; then :
3062 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3063 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3064 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3065 # so that the user can short-circuit this test for compilers unknown to
3066 # Autoconf.
3067 for ac_file in $ac_files ''
3068 do
3069 test -f "$ac_file" || continue
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3072 ;;
3073 [ab].out )
3074 # We found the default executable, but exeext='' is most
3075 # certainly right.
3076 break;;
3077 *.* )
3078 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3079 then :; else
3080 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3081 fi
3082 # We set ac_cv_exeext here because the later test for it is not
3083 # safe: cross compilers may not add the suffix if given an `-o'
3084 # argument, so we may need to know it at that point already.
3085 # Even if this section looks crufty: it has the advantage of
3086 # actually working.
3087 break;;
3088 * )
3089 break;;
3090 esac
3091 done
3092 test "$ac_cv_exeext" = no && ac_cv_exeext=
3093
3094 else
3095 ac_file=''
3096 fi
3097 if test -z "$ac_file"; then :
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105 as_fn_error 77 "C compiler cannot create executables
3106 See \`config.log' for more details" "$LINENO" 5; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3109 $as_echo "yes" >&6; }
3110 fi
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3112 $as_echo_n "checking for C compiler default output file name... " >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3114 $as_echo "$ac_file" >&6; }
3115 ac_exeext=$ac_cv_exeext
3116
3117 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3118 ac_clean_files=$ac_clean_files_save
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3120 $as_echo_n "checking for suffix of executables... " >&6; }
3121 if { { ac_try="$ac_link"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_link") 2>&5
3129 ac_status=$?
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; then :
3132 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3133 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3134 # work properly (i.e., refer to `conftest.exe'), while it won't with
3135 # `rm'.
3136 for ac_file in conftest.exe conftest conftest.*; do
3137 test -f "$ac_file" || continue
3138 case $ac_file in
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3140 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141 break;;
3142 * ) break;;
3143 esac
3144 done
3145 else
3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3149 See \`config.log' for more details" "$LINENO" 5; }
3150 fi
3151 rm -f conftest conftest$ac_cv_exeext
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3153 $as_echo "$ac_cv_exeext" >&6; }
3154
3155 rm -f conftest.$ac_ext
3156 EXEEXT=$ac_cv_exeext
3157 ac_exeext=$EXEEXT
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3160 #include <stdio.h>
3161 int
3162 main ()
3163 {
3164 FILE *f = fopen ("conftest.out", "w");
3165 return ferror (f) || fclose (f) != 0;
3166
3167 ;
3168 return 0;
3169 }
3170 _ACEOF
3171 ac_clean_files="$ac_clean_files conftest.out"
3172 # Check that the compiler produces executables we can run. If not, either
3173 # the compiler is broken, or we cross compile.
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3175 $as_echo_n "checking whether we are cross compiling... " >&6; }
3176 if test "$cross_compiling" != yes; then
3177 { { ac_try="$ac_link"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_link") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }
3188 if { ac_try='./conftest$ac_cv_exeext'
3189 { { case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_try") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }; }; then
3199 cross_compiling=no
3200 else
3201 if test "$cross_compiling" = maybe; then
3202 cross_compiling=yes
3203 else
3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error $? "cannot run C compiled programs.
3207 If you meant to cross compile, use \`--host'.
3208 See \`config.log' for more details" "$LINENO" 5; }
3209 fi
3210 fi
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3213 $as_echo "$cross_compiling" >&6; }
3214
3215 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3216 ac_clean_files=$ac_clean_files_save
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3218 $as_echo_n "checking for suffix of object files... " >&6; }
3219 if ${ac_cv_objext+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3224
3225 int
3226 main ()
3227 {
3228
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.o conftest.obj
3234 if { { ac_try="$ac_compile"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_compile") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; then :
3245 for ac_file in conftest.o conftest.obj conftest.*; do
3246 test -f "$ac_file" || continue;
3247 case $ac_file in
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3249 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3250 break;;
3251 esac
3252 done
3253 else
3254 $as_echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256
3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error $? "cannot compute suffix of object files: cannot compile
3260 See \`config.log' for more details" "$LINENO" 5; }
3261 fi
3262 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3265 $as_echo "$ac_cv_objext" >&6; }
3266 OBJEXT=$ac_cv_objext
3267 ac_objext=$OBJEXT
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3269 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3270 if ${ac_cv_c_compiler_gnu+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275
3276 int
3277 main ()
3278 {
3279 #ifndef __GNUC__
3280 choke me
3281 #endif
3282
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 if ac_fn_c_try_compile "$LINENO"; then :
3288 ac_compiler_gnu=yes
3289 else
3290 ac_compiler_gnu=no
3291 fi
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3294
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3297 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3298 if test $ac_compiler_gnu = yes; then
3299 GCC=yes
3300 else
3301 GCC=
3302 fi
3303 ac_test_CFLAGS=${CFLAGS+set}
3304 ac_save_CFLAGS=$CFLAGS
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3306 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3307 if ${ac_cv_prog_cc_g+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 ac_save_c_werror_flag=$ac_c_werror_flag
3311 ac_c_werror_flag=yes
3312 ac_cv_prog_cc_g=no
3313 CFLAGS="-g"
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3316
3317 int
3318 main ()
3319 {
3320
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 if ac_fn_c_try_compile "$LINENO"; then :
3326 ac_cv_prog_cc_g=yes
3327 else
3328 CFLAGS=""
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331
3332 int
3333 main ()
3334 {
3335
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 if ac_fn_c_try_compile "$LINENO"; then :
3341
3342 else
3343 ac_c_werror_flag=$ac_save_c_werror_flag
3344 CFLAGS="-g"
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347
3348 int
3349 main ()
3350 {
3351
3352 ;
3353 return 0;
3354 }
3355 _ACEOF
3356 if ac_fn_c_try_compile "$LINENO"; then :
3357 ac_cv_prog_cc_g=yes
3358 fi
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 fi
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 fi
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_c_werror_flag=$ac_save_c_werror_flag
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3367 $as_echo "$ac_cv_prog_cc_g" >&6; }
3368 if test "$ac_test_CFLAGS" = set; then
3369 CFLAGS=$ac_save_CFLAGS
3370 elif test $ac_cv_prog_cc_g = yes; then
3371 if test "$GCC" = yes; then
3372 CFLAGS="-g -O2"
3373 else
3374 CFLAGS="-g"
3375 fi
3376 else
3377 if test "$GCC" = yes; then
3378 CFLAGS="-O2"
3379 else
3380 CFLAGS=
3381 fi
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3384 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3385 if ${ac_cv_prog_cc_c89+:} false; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 ac_cv_prog_cc_c89=no
3389 ac_save_CC=$CC
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3392 #include <stdarg.h>
3393 #include <stdio.h>
3394 struct stat;
3395 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3396 struct buf { int x; };
3397 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3398 static char *e (p, i)
3399 char **p;
3400 int i;
3401 {
3402 return p[i];
3403 }
3404 static char *f (char * (*g) (char **, int), char **p, ...)
3405 {
3406 char *s;
3407 va_list v;
3408 va_start (v,p);
3409 s = g (p, va_arg (v,int));
3410 va_end (v);
3411 return s;
3412 }
3413
3414 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3415 function prototypes and stuff, but not '\xHH' hex character constants.
3416 These don't provoke an error unfortunately, instead are silently treated
3417 as 'x'. The following induces an error, until -std is added to get
3418 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3419 array size at least. It's necessary to write '\x00'==0 to get something
3420 that's true only with -std. */
3421 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3422
3423 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3424 inside strings and character constants. */
3425 #define FOO(x) 'x'
3426 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3427
3428 int test (int i, double x);
3429 struct s1 {int (*f) (int a);};
3430 struct s2 {int (*f) (double a);};
3431 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3432 int argc;
3433 char **argv;
3434 int
3435 main ()
3436 {
3437 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3443 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3444 do
3445 CC="$ac_save_CC $ac_arg"
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447 ac_cv_prog_cc_c89=$ac_arg
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext
3450 test "x$ac_cv_prog_cc_c89" != "xno" && break
3451 done
3452 rm -f conftest.$ac_ext
3453 CC=$ac_save_CC
3454
3455 fi
3456 # AC_CACHE_VAL
3457 case "x$ac_cv_prog_cc_c89" in
3458 x)
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3460 $as_echo "none needed" >&6; } ;;
3461 xno)
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3463 $as_echo "unsupported" >&6; } ;;
3464 *)
3465 CC="$CC $ac_cv_prog_cc_c89"
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3467 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3468 esac
3469 if test "x$ac_cv_prog_cc_c89" != xno; then :
3470
3471 fi
3472
3473 ac_ext=c
3474 ac_cpp='$CPP $CPPFLAGS'
3475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478
3479 ac_ext=c
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3485 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3486 if ${am_cv_prog_cc_c_o+:} false; then :
3487 $as_echo_n "(cached) " >&6
3488 else
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3491
3492 int
3493 main ()
3494 {
3495
3496 ;
3497 return 0;
3498 }
3499 _ACEOF
3500 # Make sure it works both with $CC and with simple cc.
3501 # Following AC_PROG_CC_C_O, we do the test twice because some
3502 # compilers refuse to overwrite an existing .o file with -o,
3503 # though they will create one.
3504 am_cv_prog_cc_c_o=yes
3505 for am_i in 1 2; do
3506 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3507 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } \
3511 && test -f conftest2.$ac_objext; then
3512 : OK
3513 else
3514 am_cv_prog_cc_c_o=no
3515 break
3516 fi
3517 done
3518 rm -f core conftest*
3519 unset am_i
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3522 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3523 if test "$am_cv_prog_cc_c_o" != yes; then
3524 # Losing compiler, so override with the script.
3525 # FIXME: It is wrong to rewrite CC.
3526 # But if we don't then we get into trouble of one sort or another.
3527 # A longer-term fix would be to have automake use am__CC in this case,
3528 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3529 CC="$am_aux_dir/compile $CC"
3530 fi
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537
3538
3539 for ac_prog in flex lex
3540 do
3541 # Extract the first word of "$ac_prog", so it can be a program name with args.
3542 set dummy $ac_prog; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if ${ac_cv_prog_LEX+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 if test -n "$LEX"; then
3549 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_LEX="$ac_prog"
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 break 2
3561 fi
3562 done
3563 done
3564 IFS=$as_save_IFS
3565
3566 fi
3567 fi
3568 LEX=$ac_cv_prog_LEX
3569 if test -n "$LEX"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3571 $as_echo "$LEX" >&6; }
3572 else
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 fi
3576
3577
3578 test -n "$LEX" && break
3579 done
3580 test -n "$LEX" || LEX=":"
3581
3582 if test "x$LEX" != "x:"; then
3583 cat >conftest.l <<_ACEOF
3584 %%
3585 a { ECHO; }
3586 b { REJECT; }
3587 c { yymore (); }
3588 d { yyless (1); }
3589 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
3590 yyless ((input () != 0)); }
3591 f { unput (yytext[0]); }
3592 . { BEGIN INITIAL; }
3593 %%
3594 #ifdef YYTEXT_POINTER
3595 extern char *yytext;
3596 #endif
3597 int
3598 main (void)
3599 {
3600 return ! yylex () + ! yywrap ();
3601 }
3602 _ACEOF
3603 { { ac_try="$LEX conftest.l"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610 (eval "$LEX conftest.l") 2>&5
3611 ac_status=$?
3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613 test $ac_status = 0; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3615 $as_echo_n "checking lex output file root... " >&6; }
3616 if ${ac_cv_prog_lex_root+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619
3620 if test -f lex.yy.c; then
3621 ac_cv_prog_lex_root=lex.yy
3622 elif test -f lexyy.c; then
3623 ac_cv_prog_lex_root=lexyy
3624 else
3625 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
3626 fi
3627 fi
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3629 $as_echo "$ac_cv_prog_lex_root" >&6; }
3630 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3631
3632 if test -z "${LEXLIB+set}"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3634 $as_echo_n "checking lex library... " >&6; }
3635 if ${ac_cv_lib_lex+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638
3639 ac_save_LIBS=$LIBS
3640 ac_cv_lib_lex='none needed'
3641 for ac_lib in '' -lfl -ll; do
3642 LIBS="$ac_lib $ac_save_LIBS"
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645 `cat $LEX_OUTPUT_ROOT.c`
3646 _ACEOF
3647 if ac_fn_c_try_link "$LINENO"; then :
3648 ac_cv_lib_lex=$ac_lib
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext \
3651 conftest$ac_exeext conftest.$ac_ext
3652 test "$ac_cv_lib_lex" != 'none needed' && break
3653 done
3654 LIBS=$ac_save_LIBS
3655
3656 fi
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3658 $as_echo "$ac_cv_lib_lex" >&6; }
3659 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3660 fi
3661
3662
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3664 $as_echo_n "checking whether yytext is a pointer... " >&6; }
3665 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 # POSIX says lex can declare yytext either as a pointer or an array; the
3669 # default is implementation-dependent. Figure out which it is, since
3670 # not all implementations provide the %pointer and %array declarations.
3671 ac_cv_prog_lex_yytext_pointer=no
3672 ac_save_LIBS=$LIBS
3673 LIBS="$LEXLIB $ac_save_LIBS"
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676
3677 #define YYTEXT_POINTER 1
3678 `cat $LEX_OUTPUT_ROOT.c`
3679 _ACEOF
3680 if ac_fn_c_try_link "$LINENO"; then :
3681 ac_cv_prog_lex_yytext_pointer=yes
3682 fi
3683 rm -f core conftest.err conftest.$ac_objext \
3684 conftest$ac_exeext conftest.$ac_ext
3685 LIBS=$ac_save_LIBS
3686
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3689 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3690 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3691
3692 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3693
3694 fi
3695 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3696
3697 fi
3698 if test "$LEX" = :; then
3699 LEX=${am_missing_run}flex
3700 fi
3701
3702 for ac_prog in 'bison -y' byacc
3703 do
3704 # Extract the first word of "$ac_prog", so it can be a program name with args.
3705 set dummy $ac_prog; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if ${ac_cv_prog_YACC+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 if test -n "$YACC"; then
3712 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_YACC="$ac_prog"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3724 fi
3725 done
3726 done
3727 IFS=$as_save_IFS
3728
3729 fi
3730 fi
3731 YACC=$ac_cv_prog_YACC
3732 if test -n "$YACC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3734 $as_echo "$YACC" >&6; }
3735 else
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3738 fi
3739
3740
3741 test -n "$YACC" && break
3742 done
3743 test -n "$YACC" || YACC="yacc"
3744
3745
3746
3747
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3754 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3755 # On Suns, sometimes $CPP names a directory.
3756 if test -n "$CPP" && test -d "$CPP"; then
3757 CPP=
3758 fi
3759 if test -z "$CPP"; then
3760 if ${ac_cv_prog_CPP+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 # Double quotes because CPP needs to be expanded
3764 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3765 do
3766 ac_preproc_ok=false
3767 for ac_c_preproc_warn_flag in '' yes
3768 do
3769 # Use a header file that comes with gcc, so configuring glibc
3770 # with a fresh cross-compiler works.
3771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3772 # <limits.h> exists even on freestanding compilers.
3773 # On the NeXT, cc -E runs the code through the compiler's parser,
3774 # not just through cpp. "Syntax error" is here to catch this case.
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777 #ifdef __STDC__
3778 # include <limits.h>
3779 #else
3780 # include <assert.h>
3781 #endif
3782 Syntax error
3783 _ACEOF
3784 if ac_fn_c_try_cpp "$LINENO"; then :
3785
3786 else
3787 # Broken: fails on valid input.
3788 continue
3789 fi
3790 rm -f conftest.err conftest.i conftest.$ac_ext
3791
3792 # OK, works on sane cases. Now check whether nonexistent headers
3793 # can be detected and how.
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796 #include <ac_nonexistent.h>
3797 _ACEOF
3798 if ac_fn_c_try_cpp "$LINENO"; then :
3799 # Broken: success on invalid input.
3800 continue
3801 else
3802 # Passes both tests.
3803 ac_preproc_ok=:
3804 break
3805 fi
3806 rm -f conftest.err conftest.i conftest.$ac_ext
3807
3808 done
3809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3810 rm -f conftest.i conftest.err conftest.$ac_ext
3811 if $ac_preproc_ok; then :
3812 break
3813 fi
3814
3815 done
3816 ac_cv_prog_CPP=$CPP
3817
3818 fi
3819 CPP=$ac_cv_prog_CPP
3820 else
3821 ac_cv_prog_CPP=$CPP
3822 fi
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3824 $as_echo "$CPP" >&6; }
3825 ac_preproc_ok=false
3826 for ac_c_preproc_warn_flag in '' yes
3827 do
3828 # Use a header file that comes with gcc, so configuring glibc
3829 # with a fresh cross-compiler works.
3830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3831 # <limits.h> exists even on freestanding compilers.
3832 # On the NeXT, cc -E runs the code through the compiler's parser,
3833 # not just through cpp. "Syntax error" is here to catch this case.
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836 #ifdef __STDC__
3837 # include <limits.h>
3838 #else
3839 # include <assert.h>
3840 #endif
3841 Syntax error
3842 _ACEOF
3843 if ac_fn_c_try_cpp "$LINENO"; then :
3844
3845 else
3846 # Broken: fails on valid input.
3847 continue
3848 fi
3849 rm -f conftest.err conftest.i conftest.$ac_ext
3850
3851 # OK, works on sane cases. Now check whether nonexistent headers
3852 # can be detected and how.
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855 #include <ac_nonexistent.h>
3856 _ACEOF
3857 if ac_fn_c_try_cpp "$LINENO"; then :
3858 # Broken: success on invalid input.
3859 continue
3860 else
3861 # Passes both tests.
3862 ac_preproc_ok=:
3863 break
3864 fi
3865 rm -f conftest.err conftest.i conftest.$ac_ext
3866
3867 done
3868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3869 rm -f conftest.i conftest.err conftest.$ac_ext
3870 if $ac_preproc_ok; then :
3871
3872 else
3873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3875 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3876 See \`config.log' for more details" "$LINENO" 5; }
3877 fi
3878
3879 ac_ext=c
3880 ac_cpp='$CPP $CPPFLAGS'
3881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884
3885
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3887 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3888 if ${ac_cv_path_GREP+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 if test -z "$GREP"; then
3892 ac_path_GREP_found=false
3893 # Loop through the user's path and test for each of PROGNAME-LIST
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3896 do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_prog in grep ggrep; do
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3902 as_fn_executable_p "$ac_path_GREP" || continue
3903 # Check for GNU ac_path_GREP and select it if it is found.
3904 # Check for GNU $ac_path_GREP
3905 case `"$ac_path_GREP" --version 2>&1` in
3906 *GNU*)
3907 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3908 *)
3909 ac_count=0
3910 $as_echo_n 0123456789 >"conftest.in"
3911 while :
3912 do
3913 cat "conftest.in" "conftest.in" >"conftest.tmp"
3914 mv "conftest.tmp" "conftest.in"
3915 cp "conftest.in" "conftest.nl"
3916 $as_echo 'GREP' >> "conftest.nl"
3917 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3919 as_fn_arith $ac_count + 1 && ac_count=$as_val
3920 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3921 # Best one so far, save it but keep looking for a better one
3922 ac_cv_path_GREP="$ac_path_GREP"
3923 ac_path_GREP_max=$ac_count
3924 fi
3925 # 10*(2^10) chars as input seems more than enough
3926 test $ac_count -gt 10 && break
3927 done
3928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3929 esac
3930
3931 $ac_path_GREP_found && break 3
3932 done
3933 done
3934 done
3935 IFS=$as_save_IFS
3936 if test -z "$ac_cv_path_GREP"; then
3937 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3938 fi
3939 else
3940 ac_cv_path_GREP=$GREP
3941 fi
3942
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3945 $as_echo "$ac_cv_path_GREP" >&6; }
3946 GREP="$ac_cv_path_GREP"
3947
3948
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3950 $as_echo_n "checking for egrep... " >&6; }
3951 if ${ac_cv_path_EGREP+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3955 then ac_cv_path_EGREP="$GREP -E"
3956 else
3957 if test -z "$EGREP"; then
3958 ac_path_EGREP_found=false
3959 # Loop through the user's path and test for each of PROGNAME-LIST
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962 do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in egrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3968 as_fn_executable_p "$ac_path_EGREP" || continue
3969 # Check for GNU ac_path_EGREP and select it if it is found.
3970 # Check for GNU $ac_path_EGREP
3971 case `"$ac_path_EGREP" --version 2>&1` in
3972 *GNU*)
3973 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3974 *)
3975 ac_count=0
3976 $as_echo_n 0123456789 >"conftest.in"
3977 while :
3978 do
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 $as_echo 'EGREP' >> "conftest.nl"
3983 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985 as_fn_arith $ac_count + 1 && ac_count=$as_val
3986 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_EGREP="$ac_path_EGREP"
3989 ac_path_EGREP_max=$ac_count
3990 fi
3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3993 done
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995 esac
3996
3997 $ac_path_EGREP_found && break 3
3998 done
3999 done
4000 done
4001 IFS=$as_save_IFS
4002 if test -z "$ac_cv_path_EGREP"; then
4003 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4004 fi
4005 else
4006 ac_cv_path_EGREP=$EGREP
4007 fi
4008
4009 fi
4010 fi
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4012 $as_echo "$ac_cv_path_EGREP" >&6; }
4013 EGREP="$ac_cv_path_EGREP"
4014
4015
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4017 $as_echo_n "checking for ANSI C header files... " >&6; }
4018 if ${ac_cv_header_stdc+:} false; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <stdlib.h>
4024 #include <stdarg.h>
4025 #include <string.h>
4026 #include <float.h>
4027
4028 int
4029 main ()
4030 {
4031
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_cv_header_stdc=yes
4038 else
4039 ac_cv_header_stdc=no
4040 fi
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042
4043 if test $ac_cv_header_stdc = yes; then
4044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 #include <string.h>
4048
4049 _ACEOF
4050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4051 $EGREP "memchr" >/dev/null 2>&1; then :
4052
4053 else
4054 ac_cv_header_stdc=no
4055 fi
4056 rm -f conftest*
4057
4058 fi
4059
4060 if test $ac_cv_header_stdc = yes; then
4061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064 #include <stdlib.h>
4065
4066 _ACEOF
4067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4068 $EGREP "free" >/dev/null 2>&1; then :
4069
4070 else
4071 ac_cv_header_stdc=no
4072 fi
4073 rm -f conftest*
4074
4075 fi
4076
4077 if test $ac_cv_header_stdc = yes; then
4078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4079 if test "$cross_compiling" = yes; then :
4080 :
4081 else
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084 #include <ctype.h>
4085 #include <stdlib.h>
4086 #if ((' ' & 0x0FF) == 0x020)
4087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4089 #else
4090 # define ISLOWER(c) \
4091 (('a' <= (c) && (c) <= 'i') \
4092 || ('j' <= (c) && (c) <= 'r') \
4093 || ('s' <= (c) && (c) <= 'z'))
4094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4095 #endif
4096
4097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4098 int
4099 main ()
4100 {
4101 int i;
4102 for (i = 0; i < 256; i++)
4103 if (XOR (islower (i), ISLOWER (i))
4104 || toupper (i) != TOUPPER (i))
4105 return 2;
4106 return 0;
4107 }
4108 _ACEOF
4109 if ac_fn_c_try_run "$LINENO"; then :
4110
4111 else
4112 ac_cv_header_stdc=no
4113 fi
4114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4115 conftest.$ac_objext conftest.beam conftest.$ac_ext
4116 fi
4117
4118 fi
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4121 $as_echo "$ac_cv_header_stdc" >&6; }
4122 if test $ac_cv_header_stdc = yes; then
4123
4124 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4125
4126 fi
4127
4128
4129 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4130 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4131 inttypes.h stdint.h unistd.h
4132 do :
4133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4134 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4135 "
4136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4137 cat >>confdefs.h <<_ACEOF
4138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4139 _ACEOF
4140
4141 fi
4142
4143 done
4144
4145
4146 for ac_header in ctype.h limits.h stdint.h stdio.h stdlib.h string.h \
4147 signal.h unistd.h
4148 do :
4149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4150 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4151 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4152 cat >>confdefs.h <<_ACEOF
4153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4154 _ACEOF
4155
4156 else
4157 as_fn_error $? "Required header file not found." "$LINENO" 5
4158 fi
4159
4160 done
4161
4162
4163
4164
4165 # The cast to long int works around a bug in the HP C Compiler
4166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4168 # This bug is HP SR number 8606223364.
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4170 $as_echo_n "checking size of int... " >&6; }
4171 if ${ac_cv_sizeof_int+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4175
4176 else
4177 if test "$ac_cv_type_int" = yes; then
4178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4180 as_fn_error 77 "cannot compute sizeof (int)
4181 See \`config.log' for more details" "$LINENO" 5; }
4182 else
4183 ac_cv_sizeof_int=0
4184 fi
4185 fi
4186
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4189 $as_echo "$ac_cv_sizeof_int" >&6; }
4190
4191
4192
4193 cat >>confdefs.h <<_ACEOF
4194 #define SIZEOF_INT $ac_cv_sizeof_int
4195 _ACEOF
4196
4197
4198 if test $ac_cv_sizeof_int -lt 4
4199 then
4200 printf "%s\n" "Error: Type int must be at least 32 bits wide!"
4201 exit 1
4202 fi
4203
4204
4205
4206
4207 case `pwd` in
4208 *\ * | *\ *)
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4210 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4211 esac
4212
4213
4214
4215 macro_version='2.4.6'
4216 macro_revision='2.4.6'
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230 ltmain=$ac_aux_dir/ltmain.sh
4231
4232 # Make sure we can run config.sub.
4233 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4234 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4235
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4237 $as_echo_n "checking build system type... " >&6; }
4238 if ${ac_cv_build+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 ac_build_alias=$build_alias
4242 test "x$ac_build_alias" = x &&
4243 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4244 test "x$ac_build_alias" = x &&
4245 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4246 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4247 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4248
4249 fi
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4251 $as_echo "$ac_cv_build" >&6; }
4252 case $ac_cv_build in
4253 *-*-*) ;;
4254 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4255 esac
4256 build=$ac_cv_build
4257 ac_save_IFS=$IFS; IFS='-'
4258 set x $ac_cv_build
4259 shift
4260 build_cpu=$1
4261 build_vendor=$2
4262 shift; shift
4263 # Remember, the first character of IFS is used to create $*,
4264 # except with old shells:
4265 build_os=$*
4266 IFS=$ac_save_IFS
4267 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4268
4269
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4271 $as_echo_n "checking host system type... " >&6; }
4272 if ${ac_cv_host+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test "x$host_alias" = x; then
4276 ac_cv_host=$ac_cv_build
4277 else
4278 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4279 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4280 fi
4281
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4284 $as_echo "$ac_cv_host" >&6; }
4285 case $ac_cv_host in
4286 *-*-*) ;;
4287 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4288 esac
4289 host=$ac_cv_host
4290 ac_save_IFS=$IFS; IFS='-'
4291 set x $ac_cv_host
4292 shift
4293 host_cpu=$1
4294 host_vendor=$2
4295 shift; shift
4296 # Remember, the first character of IFS is used to create $*,
4297 # except with old shells:
4298 host_os=$*
4299 IFS=$ac_save_IFS
4300 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4301
4302
4303 # Backslashify metacharacters that are still active within
4304 # double-quoted strings.
4305 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4306
4307 # Same as above, but do not quote variable references.
4308 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4309
4310 # Sed substitution to delay expansion of an escaped shell variable in a
4311 # double_quote_subst'ed string.
4312 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4313
4314 # Sed substitution to delay expansion of an escaped single quote.
4315 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4316
4317 # Sed substitution to avoid accidental globbing in evaled expressions
4318 no_glob_subst='s/\*/\\\*/g'
4319
4320 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4321 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4322 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4323
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4325 $as_echo_n "checking how to print strings... " >&6; }
4326 # Test print first, because it will be a builtin if present.
4327 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4328 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4329 ECHO='print -r --'
4330 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4331 ECHO='printf %s\n'
4332 else
4333 # Use this function as a fallback that always works.
4334 func_fallback_echo ()
4335 {
4336 eval 'cat <<_LTECHO_EOF
4337 $1
4338 _LTECHO_EOF'
4339 }
4340 ECHO='func_fallback_echo'
4341 fi
4342
4343 # func_echo_all arg...
4344 # Invoke $ECHO with all args, space-separated.
4345 func_echo_all ()
4346 {
4347 $ECHO ""
4348 }
4349
4350 case $ECHO in
4351 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4352 $as_echo "printf" >&6; } ;;
4353 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4354 $as_echo "print -r" >&6; } ;;
4355 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4356 $as_echo "cat" >&6; } ;;
4357 esac
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4373 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4374 if ${ac_cv_path_SED+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4378 for ac_i in 1 2 3 4 5 6 7; do
4379 ac_script="$ac_script$as_nl$ac_script"
4380 done
4381 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4382 { ac_script=; unset ac_script;}
4383 if test -z "$SED"; then
4384 ac_path_SED_found=false
4385 # Loop through the user's path and test for each of PROGNAME-LIST
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4388 do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_prog in sed gsed; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4394 as_fn_executable_p "$ac_path_SED" || continue
4395 # Check for GNU ac_path_SED and select it if it is found.
4396 # Check for GNU $ac_path_SED
4397 case `"$ac_path_SED" --version 2>&1` in
4398 *GNU*)
4399 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4400 *)
4401 ac_count=0
4402 $as_echo_n 0123456789 >"conftest.in"
4403 while :
4404 do
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
4408 $as_echo '' >> "conftest.nl"
4409 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4411 as_fn_arith $ac_count + 1 && ac_count=$as_val
4412 if test $ac_count -gt ${ac_path_SED_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_SED="$ac_path_SED"
4415 ac_path_SED_max=$ac_count
4416 fi
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4419 done
4420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421 esac
4422
4423 $ac_path_SED_found && break 3
4424 done
4425 done
4426 done
4427 IFS=$as_save_IFS
4428 if test -z "$ac_cv_path_SED"; then
4429 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4430 fi
4431 else
4432 ac_cv_path_SED=$SED
4433 fi
4434
4435 fi
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4437 $as_echo "$ac_cv_path_SED" >&6; }
4438 SED="$ac_cv_path_SED"
4439 rm -f conftest.sed
4440
4441 test -z "$SED" && SED=sed
4442 Xsed="$SED -e 1s/^X//"
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4455 $as_echo_n "checking for fgrep... " >&6; }
4456 if ${ac_cv_path_FGREP+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4460 then ac_cv_path_FGREP="$GREP -F"
4461 else
4462 if test -z "$FGREP"; then
4463 ac_path_FGREP_found=false
4464 # Loop through the user's path and test for each of PROGNAME-LIST
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4467 do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_prog in fgrep; do
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4473 as_fn_executable_p "$ac_path_FGREP" || continue
4474 # Check for GNU ac_path_FGREP and select it if it is found.
4475 # Check for GNU $ac_path_FGREP
4476 case `"$ac_path_FGREP" --version 2>&1` in
4477 *GNU*)
4478 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4479 *)
4480 ac_count=0
4481 $as_echo_n 0123456789 >"conftest.in"
4482 while :
4483 do
4484 cat "conftest.in" "conftest.in" >"conftest.tmp"
4485 mv "conftest.tmp" "conftest.in"
4486 cp "conftest.in" "conftest.nl"
4487 $as_echo 'FGREP' >> "conftest.nl"
4488 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4490 as_fn_arith $ac_count + 1 && ac_count=$as_val
4491 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4492 # Best one so far, save it but keep looking for a better one
4493 ac_cv_path_FGREP="$ac_path_FGREP"
4494 ac_path_FGREP_max=$ac_count
4495 fi
4496 # 10*(2^10) chars as input seems more than enough
4497 test $ac_count -gt 10 && break
4498 done
4499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4500 esac
4501
4502 $ac_path_FGREP_found && break 3
4503 done
4504 done
4505 done
4506 IFS=$as_save_IFS
4507 if test -z "$ac_cv_path_FGREP"; then
4508 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4509 fi
4510 else
4511 ac_cv_path_FGREP=$FGREP
4512 fi
4513
4514 fi
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4517 $as_echo "$ac_cv_path_FGREP" >&6; }
4518 FGREP="$ac_cv_path_FGREP"
4519
4520
4521 test -z "$GREP" && GREP=grep
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541 # Check whether --with-gnu-ld was given.
4542 if test "${with_gnu_ld+set}" = set; then :
4543 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4544 else
4545 with_gnu_ld=no
4546 fi
4547
4548 ac_prog=ld
4549 if test yes = "$GCC"; then
4550 # Check if gcc -print-prog-name=ld gives a path.
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4552 $as_echo_n "checking for ld used by $CC... " >&6; }
4553 case $host in
4554 *-*-mingw*)
4555 # gcc leaves a trailing carriage return, which upsets mingw
4556 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4557 *)
4558 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4559 esac
4560 case $ac_prog in
4561 # Accept absolute paths.
4562 [\\/]* | ?:[\\/]*)
4563 re_direlt='/[^/][^/]*/\.\./'
4564 # Canonicalize the pathname of ld
4565 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4566 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4567 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4568 done
4569 test -z "$LD" && LD=$ac_prog
4570 ;;
4571 "")
4572 # If it fails, then pretend we aren't using GCC.
4573 ac_prog=ld
4574 ;;
4575 *)
4576 # If it is relative, then search for the first ld in PATH.
4577 with_gnu_ld=unknown
4578 ;;
4579 esac
4580 elif test yes = "$with_gnu_ld"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4582 $as_echo_n "checking for GNU ld... " >&6; }
4583 else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4585 $as_echo_n "checking for non-GNU ld... " >&6; }
4586 fi
4587 if ${lt_cv_path_LD+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 if test -z "$LD"; then
4591 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4592 for ac_dir in $PATH; do
4593 IFS=$lt_save_ifs
4594 test -z "$ac_dir" && ac_dir=.
4595 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4596 lt_cv_path_LD=$ac_dir/$ac_prog
4597 # Check to see if the program is GNU ld. I'd rather use --version,
4598 # but apparently some variants of GNU ld only accept -v.
4599 # Break only if it was the GNU/non-GNU ld that we prefer.
4600 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4601 *GNU* | *'with BFD'*)
4602 test no != "$with_gnu_ld" && break
4603 ;;
4604 *)
4605 test yes != "$with_gnu_ld" && break
4606 ;;
4607 esac
4608 fi
4609 done
4610 IFS=$lt_save_ifs
4611 else
4612 lt_cv_path_LD=$LD # Let the user override the test with a path.
4613 fi
4614 fi
4615
4616 LD=$lt_cv_path_LD
4617 if test -n "$LD"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4619 $as_echo "$LD" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4623 fi
4624 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4626 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4627 if ${lt_cv_prog_gnu_ld+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4631 case `$LD -v 2>&1 </dev/null` in
4632 *GNU* | *'with BFD'*)
4633 lt_cv_prog_gnu_ld=yes
4634 ;;
4635 *)
4636 lt_cv_prog_gnu_ld=no
4637 ;;
4638 esac
4639 fi
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4641 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4642 with_gnu_ld=$lt_cv_prog_gnu_ld
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4653 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4654 if ${lt_cv_path_NM+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 if test -n "$NM"; then
4658 # Let the user override the test.
4659 lt_cv_path_NM=$NM
4660 else
4661 lt_nm_to_check=${ac_tool_prefix}nm
4662 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4663 lt_nm_to_check="$lt_nm_to_check nm"
4664 fi
4665 for lt_tmp_nm in $lt_nm_to_check; do
4666 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4667 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4668 IFS=$lt_save_ifs
4669 test -z "$ac_dir" && ac_dir=.
4670 tmp_nm=$ac_dir/$lt_tmp_nm
4671 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4672 # Check to see if the nm accepts a BSD-compat flag.
4673 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4674 # nm: unknown option "B" ignored
4675 # Tru64's nm complains that /dev/null is an invalid object file
4676 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4677 case $build_os in
4678 mingw*) lt_bad_file=conftest.nm/nofile ;;
4679 *) lt_bad_file=/dev/null ;;
4680 esac
4681 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4682 *$lt_bad_file* | *'Invalid file or object type'*)
4683 lt_cv_path_NM="$tmp_nm -B"
4684 break 2
4685 ;;
4686 *)
4687 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4688 */dev/null*)
4689 lt_cv_path_NM="$tmp_nm -p"
4690 break 2
4691 ;;
4692 *)
4693 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4694 continue # so that we can try to find one that supports BSD flags
4695 ;;
4696 esac
4697 ;;
4698 esac
4699 fi
4700 done
4701 IFS=$lt_save_ifs
4702 done
4703 : ${lt_cv_path_NM=no}
4704 fi
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4707 $as_echo "$lt_cv_path_NM" >&6; }
4708 if test no != "$lt_cv_path_NM"; then
4709 NM=$lt_cv_path_NM
4710 else
4711 # Didn't find any BSD compatible name lister, look for dumpbin.
4712 if test -n "$DUMPBIN"; then :
4713 # Let the user override the test.
4714 else
4715 if test -n "$ac_tool_prefix"; then
4716 for ac_prog in dumpbin "link -dump"
4717 do
4718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if ${ac_cv_prog_DUMPBIN+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$DUMPBIN"; then
4726 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 fi
4744 fi
4745 DUMPBIN=$ac_cv_prog_DUMPBIN
4746 if test -n "$DUMPBIN"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4748 $as_echo "$DUMPBIN" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4752 fi
4753
4754
4755 test -n "$DUMPBIN" && break
4756 done
4757 fi
4758 if test -z "$DUMPBIN"; then
4759 ac_ct_DUMPBIN=$DUMPBIN
4760 for ac_prog in dumpbin "link -dump"
4761 do
4762 # Extract the first word of "$ac_prog", so it can be a program name with args.
4763 set dummy $ac_prog; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -n "$ac_ct_DUMPBIN"; then
4770 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4782 fi
4783 done
4784 done
4785 IFS=$as_save_IFS
4786
4787 fi
4788 fi
4789 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4790 if test -n "$ac_ct_DUMPBIN"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4792 $as_echo "$ac_ct_DUMPBIN" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4796 fi
4797
4798
4799 test -n "$ac_ct_DUMPBIN" && break
4800 done
4801
4802 if test "x$ac_ct_DUMPBIN" = x; then
4803 DUMPBIN=":"
4804 else
4805 case $cross_compiling:$ac_tool_warned in
4806 yes:)
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4809 ac_tool_warned=yes ;;
4810 esac
4811 DUMPBIN=$ac_ct_DUMPBIN
4812 fi
4813 fi
4814
4815 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4816 *COFF*)
4817 DUMPBIN="$DUMPBIN -symbols -headers"
4818 ;;
4819 *)
4820 DUMPBIN=:
4821 ;;
4822 esac
4823 fi
4824
4825 if test : != "$DUMPBIN"; then
4826 NM=$DUMPBIN
4827 fi
4828 fi
4829 test -z "$NM" && NM=nm
4830
4831
4832
4833
4834
4835
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4837 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4838 if ${lt_cv_nm_interface+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 lt_cv_nm_interface="BSD nm"
4842 echo "int some_variable = 0;" > conftest.$ac_ext
4843 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4844 (eval "$ac_compile" 2>conftest.err)
4845 cat conftest.err >&5
4846 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4847 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4848 cat conftest.err >&5
4849 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4850 cat conftest.out >&5
4851 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4852 lt_cv_nm_interface="MS dumpbin"
4853 fi
4854 rm -f conftest*
4855 fi
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4857 $as_echo "$lt_cv_nm_interface" >&6; }
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4860 $as_echo_n "checking whether ln -s works... " >&6; }
4861 LN_S=$as_ln_s
4862 if test "$LN_S" = "ln -s"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4864 $as_echo "yes" >&6; }
4865 else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4867 $as_echo "no, using $LN_S" >&6; }
4868 fi
4869
4870 # find the maximum length of command line arguments
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4872 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4873 if ${lt_cv_sys_max_cmd_len+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 i=0
4877 teststring=ABCD
4878
4879 case $build_os in
4880 msdosdjgpp*)
4881 # On DJGPP, this test can blow up pretty badly due to problems in libc
4882 # (any single argument exceeding 2000 bytes causes a buffer overrun
4883 # during glob expansion). Even if it were fixed, the result of this
4884 # check would be larger than it should be.
4885 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4886 ;;
4887
4888 gnu*)
4889 # Under GNU Hurd, this test is not required because there is
4890 # no limit to the length of command line arguments.
4891 # Libtool will interpret -1 as no limit whatsoever
4892 lt_cv_sys_max_cmd_len=-1;
4893 ;;
4894
4895 cygwin* | mingw* | cegcc*)
4896 # On Win9x/ME, this test blows up -- it succeeds, but takes
4897 # about 5 minutes as the teststring grows exponentially.
4898 # Worse, since 9x/ME are not pre-emptively multitasking,
4899 # you end up with a "frozen" computer, even though with patience
4900 # the test eventually succeeds (with a max line length of 256k).
4901 # Instead, let's just punt: use the minimum linelength reported by
4902 # all of the supported platforms: 8192 (on NT/2K/XP).
4903 lt_cv_sys_max_cmd_len=8192;
4904 ;;
4905
4906 mint*)
4907 # On MiNT this can take a long time and run out of memory.
4908 lt_cv_sys_max_cmd_len=8192;
4909 ;;
4910
4911 amigaos*)
4912 # On AmigaOS with pdksh, this test takes hours, literally.
4913 # So we just punt and use a minimum line length of 8192.
4914 lt_cv_sys_max_cmd_len=8192;
4915 ;;
4916
4917 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4918 # This has been around since 386BSD, at least. Likely further.
4919 if test -x /sbin/sysctl; then
4920 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4921 elif test -x /usr/sbin/sysctl; then
4922 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4923 else
4924 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4925 fi
4926 # And add a safety zone
4927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4929 ;;
4930
4931 interix*)
4932 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4933 lt_cv_sys_max_cmd_len=196608
4934 ;;
4935
4936 os2*)
4937 # The test takes a long time on OS/2.
4938 lt_cv_sys_max_cmd_len=8192
4939 ;;
4940
4941 osf*)
4942 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4943 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4944 # nice to cause kernel panics so lets avoid the loop below.
4945 # First set a reasonable default.
4946 lt_cv_sys_max_cmd_len=16384
4947 #
4948 if test -x /sbin/sysconfig; then
4949 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4950 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4951 esac
4952 fi
4953 ;;
4954 sco3.2v5*)
4955 lt_cv_sys_max_cmd_len=102400
4956 ;;
4957 sysv5* | sco5v6* | sysv4.2uw2*)
4958 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4959 if test -n "$kargmax"; then
4960 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4961 else
4962 lt_cv_sys_max_cmd_len=32768
4963 fi
4964 ;;
4965 *)
4966 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4967 if test -n "$lt_cv_sys_max_cmd_len" && \
4968 test undefined != "$lt_cv_sys_max_cmd_len"; then
4969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4971 else
4972 # Make teststring a little bigger before we do anything with it.
4973 # a 1K string should be a reasonable start.
4974 for i in 1 2 3 4 5 6 7 8; do
4975 teststring=$teststring$teststring
4976 done
4977 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4978 # If test is not a shell built-in, we'll probably end up computing a
4979 # maximum length that is only half of the actual maximum length, but
4980 # we can't tell.
4981 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4982 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4983 test 17 != "$i" # 1/2 MB should be enough
4984 do
4985 i=`expr $i + 1`
4986 teststring=$teststring$teststring
4987 done
4988 # Only check the string length outside the loop.
4989 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4990 teststring=
4991 # Add a significant safety factor because C++ compilers can tack on
4992 # massive amounts of additional arguments before passing them to the
4993 # linker. It appears as though 1/2 is a usable value.
4994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4995 fi
4996 ;;
4997 esac
4998
4999 fi
5000
5001 if test -n "$lt_cv_sys_max_cmd_len"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5003 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5006 $as_echo "none" >&6; }
5007 fi
5008 max_cmd_len=$lt_cv_sys_max_cmd_len
5009
5010
5011
5012
5013
5014
5015 : ${CP="cp -f"}
5016 : ${MV="mv -f"}
5017 : ${RM="rm -f"}
5018
5019 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5020 lt_unset=unset
5021 else
5022 lt_unset=false
5023 fi
5024
5025
5026
5027
5028
5029 # test EBCDIC or ASCII
5030 case `echo X|tr X '\101'` in
5031 A) # ASCII based system
5032 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5033 lt_SP2NL='tr \040 \012'
5034 lt_NL2SP='tr \015\012 \040\040'
5035 ;;
5036 *) # EBCDIC based system
5037 lt_SP2NL='tr \100 \n'
5038 lt_NL2SP='tr \r\n \100\100'
5039 ;;
5040 esac
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5051 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5052 if ${lt_cv_to_host_file_cmd+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 case $host in
5056 *-*-mingw* )
5057 case $build in
5058 *-*-mingw* ) # actually msys
5059 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5060 ;;
5061 *-*-cygwin* )
5062 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5063 ;;
5064 * ) # otherwise, assume *nix
5065 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5066 ;;
5067 esac
5068 ;;
5069 *-*-cygwin* )
5070 case $build in
5071 *-*-mingw* ) # actually msys
5072 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5073 ;;
5074 *-*-cygwin* )
5075 lt_cv_to_host_file_cmd=func_convert_file_noop
5076 ;;
5077 * ) # otherwise, assume *nix
5078 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5079 ;;
5080 esac
5081 ;;
5082 * ) # unhandled hosts (and "normal" native builds)
5083 lt_cv_to_host_file_cmd=func_convert_file_noop
5084 ;;
5085 esac
5086
5087 fi
5088
5089 to_host_file_cmd=$lt_cv_to_host_file_cmd
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5091 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5092
5093
5094
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5098 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5099 if ${lt_cv_to_tool_file_cmd+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 #assume ordinary cross tools, or native build.
5103 lt_cv_to_tool_file_cmd=func_convert_file_noop
5104 case $host in
5105 *-*-mingw* )
5106 case $build in
5107 *-*-mingw* ) # actually msys
5108 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5109 ;;
5110 esac
5111 ;;
5112 esac
5113
5114 fi
5115
5116 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5118 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5119
5120
5121
5122
5123
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5125 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5126 if ${lt_cv_ld_reload_flag+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 lt_cv_ld_reload_flag='-r'
5130 fi
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5132 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5133 reload_flag=$lt_cv_ld_reload_flag
5134 case $reload_flag in
5135 "" | " "*) ;;
5136 *) reload_flag=" $reload_flag" ;;
5137 esac
5138 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5139 case $host_os in
5140 cygwin* | mingw* | pw32* | cegcc*)
5141 if test yes != "$GCC"; then
5142 reload_cmds=false
5143 fi
5144 ;;
5145 darwin*)
5146 if test yes = "$GCC"; then
5147 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5148 else
5149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5150 fi
5151 ;;
5152 esac
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 if test -n "$ac_tool_prefix"; then
5163 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5164 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_OBJDUMP+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -n "$OBJDUMP"; then
5171 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 OBJDUMP=$ac_cv_prog_OBJDUMP
5191 if test -n "$OBJDUMP"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5193 $as_echo "$OBJDUMP" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199
5200 fi
5201 if test -z "$ac_cv_prog_OBJDUMP"; then
5202 ac_ct_OBJDUMP=$OBJDUMP
5203 # Extract the first word of "objdump", so it can be a program name with args.
5204 set dummy objdump; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$ac_ct_OBJDUMP"; then
5211 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5231 if test -n "$ac_ct_OBJDUMP"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5233 $as_echo "$ac_ct_OBJDUMP" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239 if test "x$ac_ct_OBJDUMP" = x; then
5240 OBJDUMP="false"
5241 else
5242 case $cross_compiling:$ac_tool_warned in
5243 yes:)
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5246 ac_tool_warned=yes ;;
5247 esac
5248 OBJDUMP=$ac_ct_OBJDUMP
5249 fi
5250 else
5251 OBJDUMP="$ac_cv_prog_OBJDUMP"
5252 fi
5253
5254 test -z "$OBJDUMP" && OBJDUMP=objdump
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5265 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5266 if ${lt_cv_deplibs_check_method+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 lt_cv_file_magic_cmd='$MAGIC_CMD'
5270 lt_cv_file_magic_test_file=
5271 lt_cv_deplibs_check_method='unknown'
5272 # Need to set the preceding variable on all platforms that support
5273 # interlibrary dependencies.
5274 # 'none' -- dependencies not supported.
5275 # 'unknown' -- same as none, but documents that we really don't know.
5276 # 'pass_all' -- all dependencies passed with no checks.
5277 # 'test_compile' -- check by making test program.
5278 # 'file_magic [[regex]]' -- check by looking for files in library path
5279 # that responds to the $file_magic_cmd with a given extended regex.
5280 # If you have 'file' or equivalent on your system and you're not sure
5281 # whether 'pass_all' will *always* work, you probably want this one.
5282
5283 case $host_os in
5284 aix[4-9]*)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287
5288 beos*)
5289 lt_cv_deplibs_check_method=pass_all
5290 ;;
5291
5292 bsdi[45]*)
5293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5294 lt_cv_file_magic_cmd='/usr/bin/file -L'
5295 lt_cv_file_magic_test_file=/shlib/libc.so
5296 ;;
5297
5298 cygwin*)
5299 # func_win32_libid is a shell function defined in ltmain.sh
5300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5301 lt_cv_file_magic_cmd='func_win32_libid'
5302 ;;
5303
5304 mingw* | pw32*)
5305 # Base MSYS/MinGW do not provide the 'file' command needed by
5306 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5307 # unless we find 'file', for example because we are cross-compiling.
5308 if ( file / ) >/dev/null 2>&1; then
5309 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5310 lt_cv_file_magic_cmd='func_win32_libid'
5311 else
5312 # Keep this pattern in sync with the one in func_win32_libid.
5313 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5314 lt_cv_file_magic_cmd='$OBJDUMP -f'
5315 fi
5316 ;;
5317
5318 cegcc*)
5319 # use the weaker test based on 'objdump'. See mingw*.
5320 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5321 lt_cv_file_magic_cmd='$OBJDUMP -f'
5322 ;;
5323
5324 darwin* | rhapsody*)
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327
5328 freebsd* | dragonfly*)
5329 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5330 case $host_cpu in
5331 i*86 )
5332 # Not sure whether the presence of OpenBSD here was a mistake.
5333 # Let's accept both of them until this is cleared up.
5334 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5335 lt_cv_file_magic_cmd=/usr/bin/file
5336 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5337 ;;
5338 esac
5339 else
5340 lt_cv_deplibs_check_method=pass_all
5341 fi
5342 ;;
5343
5344 haiku*)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
5348 hpux10.20* | hpux11*)
5349 lt_cv_file_magic_cmd=/usr/bin/file
5350 case $host_cpu in
5351 ia64*)
5352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5353 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5354 ;;
5355 hppa*64*)
5356 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]'
5357 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5358 ;;
5359 *)
5360 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5361 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5362 ;;
5363 esac
5364 ;;
5365
5366 interix[3-9]*)
5367 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5369 ;;
5370
5371 irix5* | irix6* | nonstopux*)
5372 case $LD in
5373 *-32|*"-32 ") libmagic=32-bit;;
5374 *-n32|*"-n32 ") libmagic=N32;;
5375 *-64|*"-64 ") libmagic=64-bit;;
5376 *) libmagic=never-match;;
5377 esac
5378 lt_cv_deplibs_check_method=pass_all
5379 ;;
5380
5381 # This must be glibc/ELF.
5382 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5383 lt_cv_deplibs_check_method=pass_all
5384 ;;
5385
5386 netbsd*)
5387 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5389 else
5390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5391 fi
5392 ;;
5393
5394 newos6*)
5395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5396 lt_cv_file_magic_cmd=/usr/bin/file
5397 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5398 ;;
5399
5400 *nto* | *qnx*)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403
5404 openbsd* | bitrig*)
5405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5407 else
5408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5409 fi
5410 ;;
5411
5412 osf3* | osf4* | osf5*)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415
5416 rdos*)
5417 lt_cv_deplibs_check_method=pass_all
5418 ;;
5419
5420 solaris*)
5421 lt_cv_deplibs_check_method=pass_all
5422 ;;
5423
5424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5425 lt_cv_deplibs_check_method=pass_all
5426 ;;
5427
5428 sysv4 | sysv4.3*)
5429 case $host_vendor in
5430 motorola)
5431 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]'
5432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5433 ;;
5434 ncr)
5435 lt_cv_deplibs_check_method=pass_all
5436 ;;
5437 sequent)
5438 lt_cv_file_magic_cmd='/bin/file'
5439 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5440 ;;
5441 sni)
5442 lt_cv_file_magic_cmd='/bin/file'
5443 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5444 lt_cv_file_magic_test_file=/lib/libc.so
5445 ;;
5446 siemens)
5447 lt_cv_deplibs_check_method=pass_all
5448 ;;
5449 pc)
5450 lt_cv_deplibs_check_method=pass_all
5451 ;;
5452 esac
5453 ;;
5454
5455 tpf*)
5456 lt_cv_deplibs_check_method=pass_all
5457 ;;
5458 os2*)
5459 lt_cv_deplibs_check_method=pass_all
5460 ;;
5461 esac
5462
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5465 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5466
5467 file_magic_glob=
5468 want_nocaseglob=no
5469 if test "$build" = "$host"; then
5470 case $host_os in
5471 mingw* | pw32*)
5472 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5473 want_nocaseglob=yes
5474 else
5475 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5476 fi
5477 ;;
5478 esac
5479 fi
5480
5481 file_magic_cmd=$lt_cv_file_magic_cmd
5482 deplibs_check_method=$lt_cv_deplibs_check_method
5483 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506 if test -n "$ac_tool_prefix"; then
5507 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5508 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_DLLTOOL+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -n "$DLLTOOL"; then
5515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 break 2
5527 fi
5528 done
5529 done
5530 IFS=$as_save_IFS
5531
5532 fi
5533 fi
5534 DLLTOOL=$ac_cv_prog_DLLTOOL
5535 if test -n "$DLLTOOL"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5537 $as_echo "$DLLTOOL" >&6; }
5538 else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5541 fi
5542
5543
5544 fi
5545 if test -z "$ac_cv_prog_DLLTOOL"; then
5546 ac_ct_DLLTOOL=$DLLTOOL
5547 # Extract the first word of "dlltool", so it can be a program name with args.
5548 set dummy dlltool; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if test -n "$ac_ct_DLLTOOL"; then
5555 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568 done
5569 done
5570 IFS=$as_save_IFS
5571
5572 fi
5573 fi
5574 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5575 if test -n "$ac_ct_DLLTOOL"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5577 $as_echo "$ac_ct_DLLTOOL" >&6; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5581 fi
5582
5583 if test "x$ac_ct_DLLTOOL" = x; then
5584 DLLTOOL="false"
5585 else
5586 case $cross_compiling:$ac_tool_warned in
5587 yes:)
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5590 ac_tool_warned=yes ;;
5591 esac
5592 DLLTOOL=$ac_ct_DLLTOOL
5593 fi
5594 else
5595 DLLTOOL="$ac_cv_prog_DLLTOOL"
5596 fi
5597
5598 test -z "$DLLTOOL" && DLLTOOL=dlltool
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5610 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5611 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 lt_cv_sharedlib_from_linklib_cmd='unknown'
5615
5616 case $host_os in
5617 cygwin* | mingw* | pw32* | cegcc*)
5618 # two different shell functions defined in ltmain.sh;
5619 # decide which one to use based on capabilities of $DLLTOOL
5620 case `$DLLTOOL --help 2>&1` in
5621 *--identify-strict*)
5622 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5623 ;;
5624 *)
5625 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5626 ;;
5627 esac
5628 ;;
5629 *)
5630 # fallback: assume linklib IS sharedlib
5631 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5632 ;;
5633 esac
5634
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5637 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5638 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5639 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5640
5641
5642
5643
5644
5645
5646
5647 if test -n "$ac_tool_prefix"; then
5648 for ac_prog in ar
5649 do
5650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if ${ac_cv_prog_AR+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 if test -n "$AR"; then
5658 ac_cv_prog_AR="$AR" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5662 do
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5670 fi
5671 done
5672 done
5673 IFS=$as_save_IFS
5674
5675 fi
5676 fi
5677 AR=$ac_cv_prog_AR
5678 if test -n "$AR"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5680 $as_echo "$AR" >&6; }
5681 else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5684 fi
5685
5686
5687 test -n "$AR" && break
5688 done
5689 fi
5690 if test -z "$AR"; then
5691 ac_ct_AR=$AR
5692 for ac_prog in ar
5693 do
5694 # Extract the first word of "$ac_prog", so it can be a program name with args.
5695 set dummy $ac_prog; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$ac_ct_AR"; then
5702 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_ac_ct_AR="$ac_prog"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715 done
5716 done
5717 IFS=$as_save_IFS
5718
5719 fi
5720 fi
5721 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5722 if test -n "$ac_ct_AR"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5724 $as_echo "$ac_ct_AR" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5728 fi
5729
5730
5731 test -n "$ac_ct_AR" && break
5732 done
5733
5734 if test "x$ac_ct_AR" = x; then
5735 AR="false"
5736 else
5737 case $cross_compiling:$ac_tool_warned in
5738 yes:)
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5741 ac_tool_warned=yes ;;
5742 esac
5743 AR=$ac_ct_AR
5744 fi
5745 fi
5746
5747 : ${AR=ar}
5748 : ${AR_FLAGS=cru}
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5761 $as_echo_n "checking for archiver @FILE support... " >&6; }
5762 if ${lt_cv_ar_at_file+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 lt_cv_ar_at_file=no
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768
5769 int
5770 main ()
5771 {
5772
5773 ;
5774 return 0;
5775 }
5776 _ACEOF
5777 if ac_fn_c_try_compile "$LINENO"; then :
5778 echo conftest.$ac_objext > conftest.lst
5779 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5781 (eval $lt_ar_try) 2>&5
5782 ac_status=$?
5783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5784 test $ac_status = 0; }
5785 if test 0 -eq "$ac_status"; then
5786 # Ensure the archiver fails upon bogus file names.
5787 rm -f conftest.$ac_objext libconftest.a
5788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5789 (eval $lt_ar_try) 2>&5
5790 ac_status=$?
5791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5792 test $ac_status = 0; }
5793 if test 0 -ne "$ac_status"; then
5794 lt_cv_ar_at_file=@
5795 fi
5796 fi
5797 rm -f conftest.* libconftest.a
5798
5799 fi
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5804 $as_echo "$lt_cv_ar_at_file" >&6; }
5805
5806 if test no = "$lt_cv_ar_at_file"; then
5807 archiver_list_spec=
5808 else
5809 archiver_list_spec=$lt_cv_ar_at_file
5810 fi
5811
5812
5813
5814
5815
5816
5817
5818 if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}strip; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if ${ac_cv_prog_STRIP+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 if test -n "$STRIP"; then
5827 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840 done
5841 done
5842 IFS=$as_save_IFS
5843
5844 fi
5845 fi
5846 STRIP=$ac_cv_prog_STRIP
5847 if test -n "$STRIP"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5849 $as_echo "$STRIP" >&6; }
5850 else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5853 fi
5854
5855
5856 fi
5857 if test -z "$ac_cv_prog_STRIP"; then
5858 ac_ct_STRIP=$STRIP
5859 # Extract the first word of "strip", so it can be a program name with args.
5860 set dummy strip; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if test -n "$ac_ct_STRIP"; then
5867 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876 ac_cv_prog_ac_ct_STRIP="strip"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5883
5884 fi
5885 fi
5886 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5887 if test -n "$ac_ct_STRIP"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5889 $as_echo "$ac_ct_STRIP" >&6; }
5890 else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894
5895 if test "x$ac_ct_STRIP" = x; then
5896 STRIP=":"
5897 else
5898 case $cross_compiling:$ac_tool_warned in
5899 yes:)
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902 ac_tool_warned=yes ;;
5903 esac
5904 STRIP=$ac_ct_STRIP
5905 fi
5906 else
5907 STRIP="$ac_cv_prog_STRIP"
5908 fi
5909
5910 test -z "$STRIP" && STRIP=:
5911
5912
5913
5914
5915
5916
5917 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_prog_RANLIB+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 if test -n "$RANLIB"; then
5926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 RANLIB=$ac_cv_prog_RANLIB
5946 if test -n "$RANLIB"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5948 $as_echo "$RANLIB" >&6; }
5949 else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954
5955 fi
5956 if test -z "$ac_cv_prog_RANLIB"; then
5957 ac_ct_RANLIB=$RANLIB
5958 # Extract the first word of "ranlib", so it can be a program name with args.
5959 set dummy ranlib; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if test -n "$ac_ct_RANLIB"; then
5966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975 ac_cv_prog_ac_ct_RANLIB="ranlib"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5986 if test -n "$ac_ct_RANLIB"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5988 $as_echo "$ac_ct_RANLIB" >&6; }
5989 else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993
5994 if test "x$ac_ct_RANLIB" = x; then
5995 RANLIB=":"
5996 else
5997 case $cross_compiling:$ac_tool_warned in
5998 yes:)
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001 ac_tool_warned=yes ;;
6002 esac
6003 RANLIB=$ac_ct_RANLIB
6004 fi
6005 else
6006 RANLIB="$ac_cv_prog_RANLIB"
6007 fi
6008
6009 test -z "$RANLIB" && RANLIB=:
6010
6011
6012
6013
6014
6015
6016 # Determine commands to create old-style static archives.
6017 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6018 old_postinstall_cmds='chmod 644 $oldlib'
6019 old_postuninstall_cmds=
6020
6021 if test -n "$RANLIB"; then
6022 case $host_os in
6023 bitrig* | openbsd*)
6024 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6025 ;;
6026 *)
6027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6028 ;;
6029 esac
6030 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6031 fi
6032
6033 case $host_os in
6034 darwin*)
6035 lock_old_archive_extraction=yes ;;
6036 *)
6037 lock_old_archive_extraction=no ;;
6038 esac
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060 for ac_prog in gawk mawk nawk awk
6061 do
6062 # Extract the first word of "$ac_prog", so it can be a program name with args.
6063 set dummy $ac_prog; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_AWK+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test -n "$AWK"; then
6070 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079 ac_cv_prog_AWK="$ac_prog"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083 done
6084 done
6085 IFS=$as_save_IFS
6086
6087 fi
6088 fi
6089 AWK=$ac_cv_prog_AWK
6090 if test -n "$AWK"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6092 $as_echo "$AWK" >&6; }
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097
6098
6099 test -n "$AWK" && break
6100 done
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120 # If no C compiler was specified, use CC.
6121 LTCC=${LTCC-"$CC"}
6122
6123 # If no C compiler flags were specified, use CFLAGS.
6124 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6125
6126 # Allow CC to be a program name with arguments.
6127 compiler=$CC
6128
6129
6130 # Check for command to grab the raw symbol name followed by C symbol from nm.
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6132 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6133 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136
6137 # These are sane defaults that work on at least a few old systems.
6138 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6139
6140 # Character class describing NM global symbol codes.
6141 symcode='[BCDEGRST]'
6142
6143 # Regexp to match symbols that can be accessed directly from C.
6144 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6145
6146 # Define system-specific variables.
6147 case $host_os in
6148 aix*)
6149 symcode='[BCDT]'
6150 ;;
6151 cygwin* | mingw* | pw32* | cegcc*)
6152 symcode='[ABCDGISTW]'
6153 ;;
6154 hpux*)
6155 if test ia64 = "$host_cpu"; then
6156 symcode='[ABCDEGRST]'
6157 fi
6158 ;;
6159 irix* | nonstopux*)
6160 symcode='[BCDEGRST]'
6161 ;;
6162 osf*)
6163 symcode='[BCDEGQRST]'
6164 ;;
6165 solaris*)
6166 symcode='[BDRT]'
6167 ;;
6168 sco3.2v5*)
6169 symcode='[DT]'
6170 ;;
6171 sysv4.2uw2*)
6172 symcode='[DT]'
6173 ;;
6174 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6175 symcode='[ABDT]'
6176 ;;
6177 sysv4)
6178 symcode='[DFNSTU]'
6179 ;;
6180 esac
6181
6182 # If we're using GNU nm, then use its standard symbol codes.
6183 case `$NM -V 2>&1` in
6184 *GNU* | *'with BFD'*)
6185 symcode='[ABCDGIRSTW]' ;;
6186 esac
6187
6188 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6189 # Gets list of data symbols to import.
6190 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6191 # Adjust the below global symbol transforms to fixup imported variables.
6192 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6193 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6194 lt_c_name_lib_hook="\
6195 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6196 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6197 else
6198 # Disable hooks by default.
6199 lt_cv_sys_global_symbol_to_import=
6200 lt_cdecl_hook=
6201 lt_c_name_hook=
6202 lt_c_name_lib_hook=
6203 fi
6204
6205 # Transform an extracted symbol line into a proper C declaration.
6206 # Some systems (esp. on ia64) link data and code symbols differently,
6207 # so use this general approach.
6208 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6209 $lt_cdecl_hook\
6210 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6211 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6212
6213 # Transform an extracted symbol line into symbol name and symbol address
6214 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6215 $lt_c_name_hook\
6216 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6217 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6218
6219 # Transform an extracted symbol line into symbol name with lib prefix and
6220 # symbol address.
6221 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6222 $lt_c_name_lib_hook\
6223 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6224 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6225 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6226
6227 # Handle CRLF in mingw tool chain
6228 opt_cr=
6229 case $build_os in
6230 mingw*)
6231 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6232 ;;
6233 esac
6234
6235 # Try without a prefix underscore, then with it.
6236 for ac_symprfx in "" "_"; do
6237
6238 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6239 symxfrm="\\1 $ac_symprfx\\2 \\2"
6240
6241 # Write the raw and C identifiers.
6242 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6243 # Fake it for dumpbin and say T for any non-static function,
6244 # D for any global variable and I for any imported variable.
6245 # Also find C++ and __fastcall symbols from MSVC++,
6246 # which start with @ or ?.
6247 lt_cv_sys_global_symbol_pipe="$AWK '"\
6248 " {last_section=section; section=\$ 3};"\
6249 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6250 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6251 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6252 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6253 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6254 " \$ 0!~/External *\|/{next};"\
6255 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6256 " {if(hide[section]) next};"\
6257 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6258 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6259 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6260 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6261 " ' prfx=^$ac_symprfx"
6262 else
6263 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6264 fi
6265 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6266
6267 # Check to see that the pipe works correctly.
6268 pipe_works=no
6269
6270 rm -f conftest*
6271 cat > conftest.$ac_ext <<_LT_EOF
6272 #ifdef __cplusplus
6273 extern "C" {
6274 #endif
6275 char nm_test_var;
6276 void nm_test_func(void);
6277 void nm_test_func(void){}
6278 #ifdef __cplusplus
6279 }
6280 #endif
6281 int main(){nm_test_var='a';nm_test_func();return(0);}
6282 _LT_EOF
6283
6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6285 (eval $ac_compile) 2>&5
6286 ac_status=$?
6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; }; then
6289 # Now try to grab the symbols.
6290 nlist=conftest.nm
6291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6292 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6293 ac_status=$?
6294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6295 test $ac_status = 0; } && test -s "$nlist"; then
6296 # Try sorting and uniquifying the output.
6297 if sort "$nlist" | uniq > "$nlist"T; then
6298 mv -f "$nlist"T "$nlist"
6299 else
6300 rm -f "$nlist"T
6301 fi
6302
6303 # Make sure that we snagged all the symbols we need.
6304 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6305 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6306 cat <<_LT_EOF > conftest.$ac_ext
6307 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6308 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6309 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6310 relocations are performed -- see ld's documentation on pseudo-relocs. */
6311 # define LT_DLSYM_CONST
6312 #elif defined __osf__
6313 /* This system does not cope well with relocations in const data. */
6314 # define LT_DLSYM_CONST
6315 #else
6316 # define LT_DLSYM_CONST const
6317 #endif
6318
6319 #ifdef __cplusplus
6320 extern "C" {
6321 #endif
6322
6323 _LT_EOF
6324 # Now generate the symbol file.
6325 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6326
6327 cat <<_LT_EOF >> conftest.$ac_ext
6328
6329 /* The mapping between symbol names and symbols. */
6330 LT_DLSYM_CONST struct {
6331 const char *name;
6332 void *address;
6333 }
6334 lt__PROGRAM__LTX_preloaded_symbols[] =
6335 {
6336 { "@PROGRAM@", (void *) 0 },
6337 _LT_EOF
6338 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6339 cat <<\_LT_EOF >> conftest.$ac_ext
6340 {0, (void *) 0}
6341 };
6342
6343 /* This works around a problem in FreeBSD linker */
6344 #ifdef FREEBSD_WORKAROUND
6345 static const void *lt_preloaded_setup() {
6346 return lt__PROGRAM__LTX_preloaded_symbols;
6347 }
6348 #endif
6349
6350 #ifdef __cplusplus
6351 }
6352 #endif
6353 _LT_EOF
6354 # Now try linking the two files.
6355 mv conftest.$ac_objext conftstm.$ac_objext
6356 lt_globsym_save_LIBS=$LIBS
6357 lt_globsym_save_CFLAGS=$CFLAGS
6358 LIBS=conftstm.$ac_objext
6359 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6361 (eval $ac_link) 2>&5
6362 ac_status=$?
6363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6365 pipe_works=yes
6366 fi
6367 LIBS=$lt_globsym_save_LIBS
6368 CFLAGS=$lt_globsym_save_CFLAGS
6369 else
6370 echo "cannot find nm_test_func in $nlist" >&5
6371 fi
6372 else
6373 echo "cannot find nm_test_var in $nlist" >&5
6374 fi
6375 else
6376 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6377 fi
6378 else
6379 echo "$progname: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6381 fi
6382 rm -rf conftest* conftst*
6383
6384 # Do not use the global_symbol_pipe unless it works.
6385 if test yes = "$pipe_works"; then
6386 break
6387 else
6388 lt_cv_sys_global_symbol_pipe=
6389 fi
6390 done
6391
6392 fi
6393
6394 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6395 lt_cv_sys_global_symbol_to_cdecl=
6396 fi
6397 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6399 $as_echo "failed" >&6; }
6400 else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6402 $as_echo "ok" >&6; }
6403 fi
6404
6405 # Response file support.
6406 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6407 nm_file_list_spec='@'
6408 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6409 nm_file_list_spec='@'
6410 fi
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6449 $as_echo_n "checking for sysroot... " >&6; }
6450
6451 # Check whether --with-sysroot was given.
6452 if test "${with_sysroot+set}" = set; then :
6453 withval=$with_sysroot;
6454 else
6455 with_sysroot=no
6456 fi
6457
6458
6459 lt_sysroot=
6460 case $with_sysroot in #(
6461 yes)
6462 if test yes = "$GCC"; then
6463 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6464 fi
6465 ;; #(
6466 /*)
6467 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6468 ;; #(
6469 no|'')
6470 ;; #(
6471 *)
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6473 $as_echo "$with_sysroot" >&6; }
6474 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6475 ;;
6476 esac
6477
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6479 $as_echo "${lt_sysroot:-no}" >&6; }
6480
6481
6482
6483
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6486 $as_echo_n "checking for a working dd... " >&6; }
6487 if ${ac_cv_path_lt_DD+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 printf 0123456789abcdef0123456789abcdef >conftest.i
6491 cat conftest.i conftest.i >conftest2.i
6492 : ${lt_DD:=$DD}
6493 if test -z "$lt_DD"; then
6494 ac_path_lt_DD_found=false
6495 # Loop through the user's path and test for each of PROGNAME-LIST
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_prog in dd; do
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6504 as_fn_executable_p "$ac_path_lt_DD" || continue
6505 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6506 cmp -s conftest.i conftest.out \
6507 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6508 fi
6509 $ac_path_lt_DD_found && break 3
6510 done
6511 done
6512 done
6513 IFS=$as_save_IFS
6514 if test -z "$ac_cv_path_lt_DD"; then
6515 :
6516 fi
6517 else
6518 ac_cv_path_lt_DD=$lt_DD
6519 fi
6520
6521 rm -f conftest.i conftest2.i conftest.out
6522 fi
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6524 $as_echo "$ac_cv_path_lt_DD" >&6; }
6525
6526
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6528 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6529 if ${lt_cv_truncate_bin+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 printf 0123456789abcdef0123456789abcdef >conftest.i
6533 cat conftest.i conftest.i >conftest2.i
6534 lt_cv_truncate_bin=
6535 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6536 cmp -s conftest.i conftest.out \
6537 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6538 fi
6539 rm -f conftest.i conftest2.i conftest.out
6540 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6541 fi
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6543 $as_echo "$lt_cv_truncate_bin" >&6; }
6544
6545
6546
6547
6548
6549
6550
6551 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6552 func_cc_basename ()
6553 {
6554 for cc_temp in $*""; do
6555 case $cc_temp in
6556 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6557 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6558 \-*) ;;
6559 *) break;;
6560 esac
6561 done
6562 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6563 }
6564
6565 # Check whether --enable-libtool-lock was given.
6566 if test "${enable_libtool_lock+set}" = set; then :
6567 enableval=$enable_libtool_lock;
6568 fi
6569
6570 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6571
6572 # Some flags need to be propagated to the compiler or linker for good
6573 # libtool support.
6574 case $host in
6575 ia64-*-hpux*)
6576 # Find out what ABI is being produced by ac_compile, and set mode
6577 # options accordingly.
6578 echo 'int i;' > conftest.$ac_ext
6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6580 (eval $ac_compile) 2>&5
6581 ac_status=$?
6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583 test $ac_status = 0; }; then
6584 case `/usr/bin/file conftest.$ac_objext` in
6585 *ELF-32*)
6586 HPUX_IA64_MODE=32
6587 ;;
6588 *ELF-64*)
6589 HPUX_IA64_MODE=64
6590 ;;
6591 esac
6592 fi
6593 rm -rf conftest*
6594 ;;
6595 *-*-irix6*)
6596 # Find out what ABI is being produced by ac_compile, and set linker
6597 # options accordingly.
6598 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6600 (eval $ac_compile) 2>&5
6601 ac_status=$?
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; }; then
6604 if test yes = "$lt_cv_prog_gnu_ld"; then
6605 case `/usr/bin/file conftest.$ac_objext` in
6606 *32-bit*)
6607 LD="${LD-ld} -melf32bsmip"
6608 ;;
6609 *N32*)
6610 LD="${LD-ld} -melf32bmipn32"
6611 ;;
6612 *64-bit*)
6613 LD="${LD-ld} -melf64bmip"
6614 ;;
6615 esac
6616 else
6617 case `/usr/bin/file conftest.$ac_objext` in
6618 *32-bit*)
6619 LD="${LD-ld} -32"
6620 ;;
6621 *N32*)
6622 LD="${LD-ld} -n32"
6623 ;;
6624 *64-bit*)
6625 LD="${LD-ld} -64"
6626 ;;
6627 esac
6628 fi
6629 fi
6630 rm -rf conftest*
6631 ;;
6632
6633 mips64*-*linux*)
6634 # Find out what ABI is being produced by ac_compile, and set linker
6635 # options accordingly.
6636 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6638 (eval $ac_compile) 2>&5
6639 ac_status=$?
6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641 test $ac_status = 0; }; then
6642 emul=elf
6643 case `/usr/bin/file conftest.$ac_objext` in
6644 *32-bit*)
6645 emul="${emul}32"
6646 ;;
6647 *64-bit*)
6648 emul="${emul}64"
6649 ;;
6650 esac
6651 case `/usr/bin/file conftest.$ac_objext` in
6652 *MSB*)
6653 emul="${emul}btsmip"
6654 ;;
6655 *LSB*)
6656 emul="${emul}ltsmip"
6657 ;;
6658 esac
6659 case `/usr/bin/file conftest.$ac_objext` in
6660 *N32*)
6661 emul="${emul}n32"
6662 ;;
6663 esac
6664 LD="${LD-ld} -m $emul"
6665 fi
6666 rm -rf conftest*
6667 ;;
6668
6669 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6670 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6671 # Find out what ABI is being produced by ac_compile, and set linker
6672 # options accordingly. Note that the listed cases only cover the
6673 # situations where additional linker options are needed (such as when
6674 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6675 # vice versa); the common cases where no linker options are needed do
6676 # not appear in the list.
6677 echo 'int i;' > conftest.$ac_ext
6678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6679 (eval $ac_compile) 2>&5
6680 ac_status=$?
6681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6682 test $ac_status = 0; }; then
6683 case `/usr/bin/file conftest.o` in
6684 *32-bit*)
6685 case $host in
6686 x86_64-*kfreebsd*-gnu)
6687 LD="${LD-ld} -m elf_i386_fbsd"
6688 ;;
6689 x86_64-*linux*)
6690 case `/usr/bin/file conftest.o` in
6691 *x86-64*)
6692 LD="${LD-ld} -m elf32_x86_64"
6693 ;;
6694 *)
6695 LD="${LD-ld} -m elf_i386"
6696 ;;
6697 esac
6698 ;;
6699 powerpc64le-*linux*)
6700 LD="${LD-ld} -m elf32lppclinux"
6701 ;;
6702 powerpc64-*linux*)
6703 LD="${LD-ld} -m elf32ppclinux"
6704 ;;
6705 s390x-*linux*)
6706 LD="${LD-ld} -m elf_s390"
6707 ;;
6708 sparc64-*linux*)
6709 LD="${LD-ld} -m elf32_sparc"
6710 ;;
6711 esac
6712 ;;
6713 *64-bit*)
6714 case $host in
6715 x86_64-*kfreebsd*-gnu)
6716 LD="${LD-ld} -m elf_x86_64_fbsd"
6717 ;;
6718 x86_64-*linux*)
6719 LD="${LD-ld} -m elf_x86_64"
6720 ;;
6721 powerpcle-*linux*)
6722 LD="${LD-ld} -m elf64lppc"
6723 ;;
6724 powerpc-*linux*)
6725 LD="${LD-ld} -m elf64ppc"
6726 ;;
6727 s390*-*linux*|s390*-*tpf*)
6728 LD="${LD-ld} -m elf64_s390"
6729 ;;
6730 sparc*-*linux*)
6731 LD="${LD-ld} -m elf64_sparc"
6732 ;;
6733 esac
6734 ;;
6735 esac
6736 fi
6737 rm -rf conftest*
6738 ;;
6739
6740 *-*-sco3.2v5*)
6741 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6742 SAVE_CFLAGS=$CFLAGS
6743 CFLAGS="$CFLAGS -belf"
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6745 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6746 if ${lt_cv_cc_needs_belf+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 ac_ext=c
6750 ac_cpp='$CPP $CPPFLAGS'
6751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6754
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757
6758 int
6759 main ()
6760 {
6761
6762 ;
6763 return 0;
6764 }
6765 _ACEOF
6766 if ac_fn_c_try_link "$LINENO"; then :
6767 lt_cv_cc_needs_belf=yes
6768 else
6769 lt_cv_cc_needs_belf=no
6770 fi
6771 rm -f core conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6773 ac_ext=c
6774 ac_cpp='$CPP $CPPFLAGS'
6775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6778
6779 fi
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6781 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6782 if test yes != "$lt_cv_cc_needs_belf"; then
6783 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6784 CFLAGS=$SAVE_CFLAGS
6785 fi
6786 ;;
6787 *-*solaris*)
6788 # Find out what ABI is being produced by ac_compile, and set linker
6789 # options accordingly.
6790 echo 'int i;' > conftest.$ac_ext
6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6792 (eval $ac_compile) 2>&5
6793 ac_status=$?
6794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795 test $ac_status = 0; }; then
6796 case `/usr/bin/file conftest.o` in
6797 *64-bit*)
6798 case $lt_cv_prog_gnu_ld in
6799 yes*)
6800 case $host in
6801 i?86-*-solaris*|x86_64-*-solaris*)
6802 LD="${LD-ld} -m elf_x86_64"
6803 ;;
6804 sparc*-*-solaris*)
6805 LD="${LD-ld} -m elf64_sparc"
6806 ;;
6807 esac
6808 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6809 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6810 LD=${LD-ld}_sol2
6811 fi
6812 ;;
6813 *)
6814 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6815 LD="${LD-ld} -64"
6816 fi
6817 ;;
6818 esac
6819 ;;
6820 esac
6821 fi
6822 rm -rf conftest*
6823 ;;
6824 esac
6825
6826 need_locks=$enable_libtool_lock
6827
6828 if test -n "$ac_tool_prefix"; then
6829 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6830 set dummy ${ac_tool_prefix}mt; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 if test -n "$MANIFEST_TOOL"; then
6837 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6838 else
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6853
6854 fi
6855 fi
6856 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6857 if test -n "$MANIFEST_TOOL"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6859 $as_echo "$MANIFEST_TOOL" >&6; }
6860 else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6863 fi
6864
6865
6866 fi
6867 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6868 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6869 # Extract the first word of "mt", so it can be a program name with args.
6870 set dummy mt; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 if test -n "$ac_ct_MANIFEST_TOOL"; then
6877 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6886 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6889 fi
6890 done
6891 done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6897 if test -n "$ac_ct_MANIFEST_TOOL"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6899 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6903 fi
6904
6905 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6906 MANIFEST_TOOL=":"
6907 else
6908 case $cross_compiling:$ac_tool_warned in
6909 yes:)
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6912 ac_tool_warned=yes ;;
6913 esac
6914 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6915 fi
6916 else
6917 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6918 fi
6919
6920 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6922 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6923 if ${lt_cv_path_mainfest_tool+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 lt_cv_path_mainfest_tool=no
6927 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6928 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6929 cat conftest.err >&5
6930 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6931 lt_cv_path_mainfest_tool=yes
6932 fi
6933 rm -f conftest*
6934 fi
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6936 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6937 if test yes != "$lt_cv_path_mainfest_tool"; then
6938 MANIFEST_TOOL=:
6939 fi
6940
6941
6942
6943
6944
6945
6946 case $host_os in
6947 rhapsody* | darwin*)
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$DSYMUTIL"; then
6957 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6977 if test -n "$DSYMUTIL"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6979 $as_echo "$DSYMUTIL" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985
6986 fi
6987 if test -z "$ac_cv_prog_DSYMUTIL"; then
6988 ac_ct_DSYMUTIL=$DSYMUTIL
6989 # Extract the first word of "dsymutil", so it can be a program name with args.
6990 set dummy dsymutil; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 if test -n "$ac_ct_DSYMUTIL"; then
6997 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7017 if test -n "$ac_ct_DSYMUTIL"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7019 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7020 else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023 fi
7024
7025 if test "x$ac_ct_DSYMUTIL" = x; then
7026 DSYMUTIL=":"
7027 else
7028 case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032 ac_tool_warned=yes ;;
7033 esac
7034 DSYMUTIL=$ac_ct_DSYMUTIL
7035 fi
7036 else
7037 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7038 fi
7039
7040 if test -n "$ac_tool_prefix"; then
7041 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7042 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if ${ac_cv_prog_NMEDIT+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 if test -n "$NMEDIT"; then
7049 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 NMEDIT=$ac_cv_prog_NMEDIT
7069 if test -n "$NMEDIT"; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7071 $as_echo "$NMEDIT" >&6; }
7072 else
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 $as_echo "no" >&6; }
7075 fi
7076
7077
7078 fi
7079 if test -z "$ac_cv_prog_NMEDIT"; then
7080 ac_ct_NMEDIT=$NMEDIT
7081 # Extract the first word of "nmedit", so it can be a program name with args.
7082 set dummy nmedit; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 if test -n "$ac_ct_NMEDIT"; then
7089 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106 fi
7107 fi
7108 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7109 if test -n "$ac_ct_NMEDIT"; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7111 $as_echo "$ac_ct_NMEDIT" >&6; }
7112 else
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 $as_echo "no" >&6; }
7115 fi
7116
7117 if test "x$ac_ct_NMEDIT" = x; then
7118 NMEDIT=":"
7119 else
7120 case $cross_compiling:$ac_tool_warned in
7121 yes:)
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7124 ac_tool_warned=yes ;;
7125 esac
7126 NMEDIT=$ac_ct_NMEDIT
7127 fi
7128 else
7129 NMEDIT="$ac_cv_prog_NMEDIT"
7130 fi
7131
7132 if test -n "$ac_tool_prefix"; then
7133 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7134 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if ${ac_cv_prog_LIPO+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 if test -n "$LIPO"; then
7141 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7142 else
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154 done
7155 done
7156 IFS=$as_save_IFS
7157
7158 fi
7159 fi
7160 LIPO=$ac_cv_prog_LIPO
7161 if test -n "$LIPO"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7163 $as_echo "$LIPO" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 fi
7168
7169
7170 fi
7171 if test -z "$ac_cv_prog_LIPO"; then
7172 ac_ct_LIPO=$LIPO
7173 # Extract the first word of "lipo", so it can be a program name with args.
7174 set dummy lipo; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 if test -n "$ac_ct_LIPO"; then
7181 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_prog_ac_ct_LIPO="lipo"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7193 fi
7194 done
7195 done
7196 IFS=$as_save_IFS
7197
7198 fi
7199 fi
7200 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7201 if test -n "$ac_ct_LIPO"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7203 $as_echo "$ac_ct_LIPO" >&6; }
7204 else
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7207 fi
7208
7209 if test "x$ac_ct_LIPO" = x; then
7210 LIPO=":"
7211 else
7212 case $cross_compiling:$ac_tool_warned in
7213 yes:)
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7216 ac_tool_warned=yes ;;
7217 esac
7218 LIPO=$ac_ct_LIPO
7219 fi
7220 else
7221 LIPO="$ac_cv_prog_LIPO"
7222 fi
7223
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}otool; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_OTOOL+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 if test -n "$OTOOL"; then
7233 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246 done
7247 done
7248 IFS=$as_save_IFS
7249
7250 fi
7251 fi
7252 OTOOL=$ac_cv_prog_OTOOL
7253 if test -n "$OTOOL"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7255 $as_echo "$OTOOL" >&6; }
7256 else
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260
7261
7262 fi
7263 if test -z "$ac_cv_prog_OTOOL"; then
7264 ac_ct_OTOOL=$OTOOL
7265 # Extract the first word of "otool", so it can be a program name with args.
7266 set dummy otool; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 if test -n "$ac_ct_OTOOL"; then
7273 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282 ac_cv_prog_ac_ct_OTOOL="otool"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 break 2
7285 fi
7286 done
7287 done
7288 IFS=$as_save_IFS
7289
7290 fi
7291 fi
7292 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7293 if test -n "$ac_ct_OTOOL"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7295 $as_echo "$ac_ct_OTOOL" >&6; }
7296 else
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7299 fi
7300
7301 if test "x$ac_ct_OTOOL" = x; then
7302 OTOOL=":"
7303 else
7304 case $cross_compiling:$ac_tool_warned in
7305 yes:)
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308 ac_tool_warned=yes ;;
7309 esac
7310 OTOOL=$ac_ct_OTOOL
7311 fi
7312 else
7313 OTOOL="$ac_cv_prog_OTOOL"
7314 fi
7315
7316 if test -n "$ac_tool_prefix"; then
7317 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7318 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_prog_OTOOL64+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 if test -n "$OTOOL64"; then
7325 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7326 else
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 break 2
7337 fi
7338 done
7339 done
7340 IFS=$as_save_IFS
7341
7342 fi
7343 fi
7344 OTOOL64=$ac_cv_prog_OTOOL64
7345 if test -n "$OTOOL64"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7347 $as_echo "$OTOOL64" >&6; }
7348 else
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7351 fi
7352
7353
7354 fi
7355 if test -z "$ac_cv_prog_OTOOL64"; then
7356 ac_ct_OTOOL64=$OTOOL64
7357 # Extract the first word of "otool64", so it can be a program name with args.
7358 set dummy otool64; ac_word=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 if test -n "$ac_ct_OTOOL64"; then
7365 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7369 do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374 ac_cv_prog_ac_ct_OTOOL64="otool64"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378 done
7379 done
7380 IFS=$as_save_IFS
7381
7382 fi
7383 fi
7384 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7385 if test -n "$ac_ct_OTOOL64"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7387 $as_echo "$ac_ct_OTOOL64" >&6; }
7388 else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7391 fi
7392
7393 if test "x$ac_ct_OTOOL64" = x; then
7394 OTOOL64=":"
7395 else
7396 case $cross_compiling:$ac_tool_warned in
7397 yes:)
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7400 ac_tool_warned=yes ;;
7401 esac
7402 OTOOL64=$ac_ct_OTOOL64
7403 fi
7404 else
7405 OTOOL64="$ac_cv_prog_OTOOL64"
7406 fi
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7435 $as_echo_n "checking for -single_module linker flag... " >&6; }
7436 if ${lt_cv_apple_cc_single_mod+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 lt_cv_apple_cc_single_mod=no
7440 if test -z "$LT_MULTI_MODULE"; then
7441 # By default we will add the -single_module flag. You can override
7442 # by either setting the environment variable LT_MULTI_MODULE
7443 # non-empty at configure time, or by adding -multi_module to the
7444 # link flags.
7445 rm -rf libconftest.dylib*
7446 echo "int foo(void){return 1;}" > conftest.c
7447 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7448 -dynamiclib -Wl,-single_module conftest.c" >&5
7449 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7450 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7451 _lt_result=$?
7452 # If there is a non-empty error log, and "single_module"
7453 # appears in it, assume the flag caused a linker warning
7454 if test -s conftest.err && $GREP single_module conftest.err; then
7455 cat conftest.err >&5
7456 # Otherwise, if the output was created with a 0 exit code from
7457 # the compiler, it worked.
7458 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7459 lt_cv_apple_cc_single_mod=yes
7460 else
7461 cat conftest.err >&5
7462 fi
7463 rm -rf libconftest.dylib*
7464 rm -f conftest.*
7465 fi
7466 fi
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7468 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7469
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7471 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7472 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 lt_cv_ld_exported_symbols_list=no
7476 save_LDFLAGS=$LDFLAGS
7477 echo "_main" > conftest.sym
7478 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481
7482 int
7483 main ()
7484 {
7485
7486 ;
7487 return 0;
7488 }
7489 _ACEOF
7490 if ac_fn_c_try_link "$LINENO"; then :
7491 lt_cv_ld_exported_symbols_list=yes
7492 else
7493 lt_cv_ld_exported_symbols_list=no
7494 fi
7495 rm -f core conftest.err conftest.$ac_objext \
7496 conftest$ac_exeext conftest.$ac_ext
7497 LDFLAGS=$save_LDFLAGS
7498
7499 fi
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7501 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7502
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7504 $as_echo_n "checking for -force_load linker flag... " >&6; }
7505 if ${lt_cv_ld_force_load+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 lt_cv_ld_force_load=no
7509 cat > conftest.c << _LT_EOF
7510 int forced_loaded() { return 2;}
7511 _LT_EOF
7512 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7513 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7514 echo "$AR cru libconftest.a conftest.o" >&5
7515 $AR cru libconftest.a conftest.o 2>&5
7516 echo "$RANLIB libconftest.a" >&5
7517 $RANLIB libconftest.a 2>&5
7518 cat > conftest.c << _LT_EOF
7519 int main() { return 0;}
7520 _LT_EOF
7521 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7522 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7523 _lt_result=$?
7524 if test -s conftest.err && $GREP force_load conftest.err; then
7525 cat conftest.err >&5
7526 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7527 lt_cv_ld_force_load=yes
7528 else
7529 cat conftest.err >&5
7530 fi
7531 rm -f conftest.err libconftest.a conftest conftest.c
7532 rm -rf conftest.dSYM
7533
7534 fi
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7536 $as_echo "$lt_cv_ld_force_load" >&6; }
7537 case $host_os in
7538 rhapsody* | darwin1.[012])
7539 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7540 darwin1.*)
7541 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7542 darwin*) # darwin 5.x on
7543 # if running on 10.5 or later, the deployment target defaults
7544 # to the OS version, if on x86, and 10.4, the deployment
7545 # target defaults to 10.4. Don't you love it?
7546 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7547 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7548 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7549 10.[012][,.]*)
7550 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7551 10.*)
7552 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7553 esac
7554 ;;
7555 esac
7556 if test yes = "$lt_cv_apple_cc_single_mod"; then
7557 _lt_dar_single_mod='$single_module'
7558 fi
7559 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7560 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7561 else
7562 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7563 fi
7564 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7565 _lt_dsymutil='~$DSYMUTIL $lib || :'
7566 else
7567 _lt_dsymutil=
7568 fi
7569 ;;
7570 esac
7571
7572 # func_munge_path_list VARIABLE PATH
7573 # -----------------------------------
7574 # VARIABLE is name of variable containing _space_ separated list of
7575 # directories to be munged by the contents of PATH, which is string
7576 # having a format:
7577 # "DIR[:DIR]:"
7578 # string "DIR[ DIR]" will be prepended to VARIABLE
7579 # ":DIR[:DIR]"
7580 # string "DIR[ DIR]" will be appended to VARIABLE
7581 # "DIRP[:DIRP]::[DIRA:]DIRA"
7582 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7583 # "DIRA[ DIRA]" will be appended to VARIABLE
7584 # "DIR[:DIR]"
7585 # VARIABLE will be replaced by "DIR[ DIR]"
7586 func_munge_path_list ()
7587 {
7588 case x$2 in
7589 x)
7590 ;;
7591 *:)
7592 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7593 ;;
7594 x:*)
7595 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7596 ;;
7597 *::*)
7598 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7599 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7600 ;;
7601 *)
7602 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7603 ;;
7604 esac
7605 }
7606
7607 for ac_header in dlfcn.h
7608 do :
7609 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7610 "
7611 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7612 cat >>confdefs.h <<_ACEOF
7613 #define HAVE_DLFCN_H 1
7614 _ACEOF
7615
7616 fi
7617
7618 done
7619
7620
7621
7622
7623
7624 # Set options
7625
7626
7627
7628 enable_dlopen=no
7629
7630
7631 enable_win32_dll=no
7632
7633
7634 # Check whether --enable-shared was given.
7635 if test "${enable_shared+set}" = set; then :
7636 enableval=$enable_shared; p=${PACKAGE-default}
7637 case $enableval in
7638 yes) enable_shared=yes ;;
7639 no) enable_shared=no ;;
7640 *)
7641 enable_shared=no
7642 # Look at the argument we got. We use all the common list separators.
7643 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7644 for pkg in $enableval; do
7645 IFS=$lt_save_ifs
7646 if test "X$pkg" = "X$p"; then
7647 enable_shared=yes
7648 fi
7649 done
7650 IFS=$lt_save_ifs
7651 ;;
7652 esac
7653 else
7654 enable_shared=yes
7655 fi
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665 # Check whether --enable-static was given.
7666 if test "${enable_static+set}" = set; then :
7667 enableval=$enable_static; p=${PACKAGE-default}
7668 case $enableval in
7669 yes) enable_static=yes ;;
7670 no) enable_static=no ;;
7671 *)
7672 enable_static=no
7673 # Look at the argument we got. We use all the common list separators.
7674 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7675 for pkg in $enableval; do
7676 IFS=$lt_save_ifs
7677 if test "X$pkg" = "X$p"; then
7678 enable_static=yes
7679 fi
7680 done
7681 IFS=$lt_save_ifs
7682 ;;
7683 esac
7684 else
7685 enable_static=yes
7686 fi
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697 # Check whether --with-pic was given.
7698 if test "${with_pic+set}" = set; then :
7699 withval=$with_pic; lt_p=${PACKAGE-default}
7700 case $withval in
7701 yes|no) pic_mode=$withval ;;
7702 *)
7703 pic_mode=default
7704 # Look at the argument we got. We use all the common list separators.
7705 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7706 for lt_pkg in $withval; do
7707 IFS=$lt_save_ifs
7708 if test "X$lt_pkg" = "X$lt_p"; then
7709 pic_mode=yes
7710 fi
7711 done
7712 IFS=$lt_save_ifs
7713 ;;
7714 esac
7715 else
7716 pic_mode=default
7717 fi
7718
7719
7720
7721
7722
7723
7724
7725
7726 # Check whether --enable-fast-install was given.
7727 if test "${enable_fast_install+set}" = set; then :
7728 enableval=$enable_fast_install; p=${PACKAGE-default}
7729 case $enableval in
7730 yes) enable_fast_install=yes ;;
7731 no) enable_fast_install=no ;;
7732 *)
7733 enable_fast_install=no
7734 # Look at the argument we got. We use all the common list separators.
7735 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7736 for pkg in $enableval; do
7737 IFS=$lt_save_ifs
7738 if test "X$pkg" = "X$p"; then
7739 enable_fast_install=yes
7740 fi
7741 done
7742 IFS=$lt_save_ifs
7743 ;;
7744 esac
7745 else
7746 enable_fast_install=yes
7747 fi
7748
7749
7750
7751
7752
7753
7754
7755
7756 shared_archive_member_spec=
7757 case $host,$enable_shared in
7758 power*-*-aix[5-9]*,yes)
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7760 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7761
7762 # Check whether --with-aix-soname was given.
7763 if test "${with_aix_soname+set}" = set; then :
7764 withval=$with_aix_soname; case $withval in
7765 aix|svr4|both)
7766 ;;
7767 *)
7768 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7769 ;;
7770 esac
7771 lt_cv_with_aix_soname=$with_aix_soname
7772 else
7773 if ${lt_cv_with_aix_soname+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 lt_cv_with_aix_soname=aix
7777 fi
7778
7779 with_aix_soname=$lt_cv_with_aix_soname
7780 fi
7781
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7783 $as_echo "$with_aix_soname" >&6; }
7784 if test aix != "$with_aix_soname"; then
7785 # For the AIX way of multilib, we name the shared archive member
7786 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7787 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7788 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7789 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7790 if test 64 = "${OBJECT_MODE-32}"; then
7791 shared_archive_member_spec=shr_64
7792 else
7793 shared_archive_member_spec=shr
7794 fi
7795 fi
7796 ;;
7797 *)
7798 with_aix_soname=aix
7799 ;;
7800 esac
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811 # This can be used to rebuild libtool when needed
7812 LIBTOOL_DEPS=$ltmain
7813
7814 # Always use our own libtool.
7815 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846 test -z "$LN_S" && LN_S="ln -s"
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861 if test -n "${ZSH_VERSION+set}"; then
7862 setopt NO_GLOB_SUBST
7863 fi
7864
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7866 $as_echo_n "checking for objdir... " >&6; }
7867 if ${lt_cv_objdir+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 rm -f .libs 2>/dev/null
7871 mkdir .libs 2>/dev/null
7872 if test -d .libs; then
7873 lt_cv_objdir=.libs
7874 else
7875 # MS-DOS does not allow filenames that begin with a dot.
7876 lt_cv_objdir=_libs
7877 fi
7878 rmdir .libs 2>/dev/null
7879 fi
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7881 $as_echo "$lt_cv_objdir" >&6; }
7882 objdir=$lt_cv_objdir
7883
7884
7885
7886
7887
7888 cat >>confdefs.h <<_ACEOF
7889 #define LT_OBJDIR "$lt_cv_objdir/"
7890 _ACEOF
7891
7892
7893
7894
7895 case $host_os in
7896 aix3*)
7897 # AIX sometimes has problems with the GCC collect2 program. For some
7898 # reason, if we set the COLLECT_NAMES environment variable, the problems
7899 # vanish in a puff of smoke.
7900 if test set != "${COLLECT_NAMES+set}"; then
7901 COLLECT_NAMES=
7902 export COLLECT_NAMES
7903 fi
7904 ;;
7905 esac
7906
7907 # Global variables:
7908 ofile=libtool
7909 can_build_shared=yes
7910
7911 # All known linkers require a '.a' archive for static linking (except MSVC,
7912 # which needs '.lib').
7913 libext=a
7914
7915 with_gnu_ld=$lt_cv_prog_gnu_ld
7916
7917 old_CC=$CC
7918 old_CFLAGS=$CFLAGS
7919
7920 # Set sane defaults for various variables
7921 test -z "$CC" && CC=cc
7922 test -z "$LTCC" && LTCC=$CC
7923 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7924 test -z "$LD" && LD=ld
7925 test -z "$ac_objext" && ac_objext=o
7926
7927 func_cc_basename $compiler
7928 cc_basename=$func_cc_basename_result
7929
7930
7931 # Only perform the check for file, if the check method requires it
7932 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7933 case $deplibs_check_method in
7934 file_magic*)
7935 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7937 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7938 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 case $MAGIC_CMD in
7942 [\\/*] | ?:[\\/]*)
7943 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7944 ;;
7945 *)
7946 lt_save_MAGIC_CMD=$MAGIC_CMD
7947 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7948 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7949 for ac_dir in $ac_dummy; do
7950 IFS=$lt_save_ifs
7951 test -z "$ac_dir" && ac_dir=.
7952 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7953 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7954 if test -n "$file_magic_test_file"; then
7955 case $deplibs_check_method in
7956 "file_magic "*)
7957 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7958 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7959 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7960 $EGREP "$file_magic_regex" > /dev/null; then
7961 :
7962 else
7963 cat <<_LT_EOF 1>&2
7964
7965 *** Warning: the command libtool uses to detect shared libraries,
7966 *** $file_magic_cmd, produces output that libtool cannot recognize.
7967 *** The result is that libtool may fail to recognize shared libraries
7968 *** as such. This will affect the creation of libtool libraries that
7969 *** depend on shared libraries, but programs linked with such libtool
7970 *** libraries will work regardless of this problem. Nevertheless, you
7971 *** may want to report the problem to your system manager and/or to
7972 *** [email protected]
7973
7974 _LT_EOF
7975 fi ;;
7976 esac
7977 fi
7978 break
7979 fi
7980 done
7981 IFS=$lt_save_ifs
7982 MAGIC_CMD=$lt_save_MAGIC_CMD
7983 ;;
7984 esac
7985 fi
7986
7987 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7988 if test -n "$MAGIC_CMD"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7990 $as_echo "$MAGIC_CMD" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994 fi
7995
7996
7997
7998
7999
8000 if test -z "$lt_cv_path_MAGIC_CMD"; then
8001 if test -n "$ac_tool_prefix"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8003 $as_echo_n "checking for file... " >&6; }
8004 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 case $MAGIC_CMD in
8008 [\\/*] | ?:[\\/]*)
8009 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8010 ;;
8011 *)
8012 lt_save_MAGIC_CMD=$MAGIC_CMD
8013 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8014 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8015 for ac_dir in $ac_dummy; do
8016 IFS=$lt_save_ifs
8017 test -z "$ac_dir" && ac_dir=.
8018 if test -f "$ac_dir/file"; then
8019 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8020 if test -n "$file_magic_test_file"; then
8021 case $deplibs_check_method in
8022 "file_magic "*)
8023 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8024 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8025 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8026 $EGREP "$file_magic_regex" > /dev/null; then
8027 :
8028 else
8029 cat <<_LT_EOF 1>&2
8030
8031 *** Warning: the command libtool uses to detect shared libraries,
8032 *** $file_magic_cmd, produces output that libtool cannot recognize.
8033 *** The result is that libtool may fail to recognize shared libraries
8034 *** as such. This will affect the creation of libtool libraries that
8035 *** depend on shared libraries, but programs linked with such libtool
8036 *** libraries will work regardless of this problem. Nevertheless, you
8037 *** may want to report the problem to your system manager and/or to
8038 *** [email protected]
8039
8040 _LT_EOF
8041 fi ;;
8042 esac
8043 fi
8044 break
8045 fi
8046 done
8047 IFS=$lt_save_ifs
8048 MAGIC_CMD=$lt_save_MAGIC_CMD
8049 ;;
8050 esac
8051 fi
8052
8053 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8054 if test -n "$MAGIC_CMD"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8056 $as_echo "$MAGIC_CMD" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8060 fi
8061
8062
8063 else
8064 MAGIC_CMD=:
8065 fi
8066 fi
8067
8068 fi
8069 ;;
8070 esac
8071
8072 # Use C for the default configuration in the libtool script
8073
8074 lt_save_CC=$CC
8075 ac_ext=c
8076 ac_cpp='$CPP $CPPFLAGS'
8077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8080
8081
8082 # Source file extension for C test sources.
8083 ac_ext=c
8084
8085 # Object file extension for compiled C test sources.
8086 objext=o
8087 objext=$objext
8088
8089 # Code to be used in simple compile tests
8090 lt_simple_compile_test_code="int some_variable = 0;"
8091
8092 # Code to be used in simple link tests
8093 lt_simple_link_test_code='int main(){return(0);}'
8094
8095
8096
8097
8098
8099
8100
8101 # If no C compiler was specified, use CC.
8102 LTCC=${LTCC-"$CC"}
8103
8104 # If no C compiler flags were specified, use CFLAGS.
8105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8106
8107 # Allow CC to be a program name with arguments.
8108 compiler=$CC
8109
8110 # Save the default compiler, since it gets overwritten when the other
8111 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8112 compiler_DEFAULT=$CC
8113
8114 # save warnings/boilerplate of simple test code
8115 ac_outfile=conftest.$ac_objext
8116 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8117 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8118 _lt_compiler_boilerplate=`cat conftest.err`
8119 $RM conftest*
8120
8121 ac_outfile=conftest.$ac_objext
8122 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8123 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8124 _lt_linker_boilerplate=`cat conftest.err`
8125 $RM -r conftest*
8126
8127
8128 ## CAVEAT EMPTOR:
8129 ## There is no encapsulation within the following macros, do not change
8130 ## the running order or otherwise move them around unless you know exactly
8131 ## what you are doing...
8132 if test -n "$compiler"; then
8133
8134 lt_prog_compiler_no_builtin_flag=
8135
8136 if test yes = "$GCC"; then
8137 case $cc_basename in
8138 nvcc*)
8139 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8140 *)
8141 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8142 esac
8143
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8145 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8146 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 lt_cv_prog_compiler_rtti_exceptions=no
8150 ac_outfile=conftest.$ac_objext
8151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8152 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8153 # Insert the option either (1) after the last *FLAGS variable, or
8154 # (2) before a word containing "conftest.", or (3) at the end.
8155 # Note that $ac_compile itself does not contain backslashes and begins
8156 # with a dollar sign (not a hyphen), so the echo should work correctly.
8157 # The option is referenced via a variable to avoid confusing sed.
8158 lt_compile=`echo "$ac_compile" | $SED \
8159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8161 -e 's:$: $lt_compiler_flag:'`
8162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8163 (eval "$lt_compile" 2>conftest.err)
8164 ac_status=$?
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 if (exit $ac_status) && test -s "$ac_outfile"; then
8168 # The compiler can only warn and ignore the option if not recognized
8169 # So say no if there are warnings other than the usual output.
8170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8173 lt_cv_prog_compiler_rtti_exceptions=yes
8174 fi
8175 fi
8176 $RM conftest*
8177
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8180 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8181
8182 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8183 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8184 else
8185 :
8186 fi
8187
8188 fi
8189
8190
8191
8192
8193
8194
8195 lt_prog_compiler_wl=
8196 lt_prog_compiler_pic=
8197 lt_prog_compiler_static=
8198
8199
8200 if test yes = "$GCC"; then
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_static='-static'
8203
8204 case $host_os in
8205 aix*)
8206 # All AIX code is PIC.
8207 if test ia64 = "$host_cpu"; then
8208 # AIX 5 now supports IA64 processor
8209 lt_prog_compiler_static='-Bstatic'
8210 fi
8211 lt_prog_compiler_pic='-fPIC'
8212 ;;
8213
8214 amigaos*)
8215 case $host_cpu in
8216 powerpc)
8217 # see comment about AmigaOS4 .so support
8218 lt_prog_compiler_pic='-fPIC'
8219 ;;
8220 m68k)
8221 # FIXME: we need at least 68020 code to build shared libraries, but
8222 # adding the '-m68020' flag to GCC prevents building anything better,
8223 # like '-m68040'.
8224 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8225 ;;
8226 esac
8227 ;;
8228
8229 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8230 # PIC is the default for these OSes.
8231 ;;
8232
8233 mingw* | cygwin* | pw32* | os2* | cegcc*)
8234 # This hack is so that the source file can tell whether it is being
8235 # built for inclusion in a dll (and should export symbols for example).
8236 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8237 # (--disable-auto-import) libraries
8238 lt_prog_compiler_pic='-DDLL_EXPORT'
8239 case $host_os in
8240 os2*)
8241 lt_prog_compiler_static='$wl-static'
8242 ;;
8243 esac
8244 ;;
8245
8246 darwin* | rhapsody*)
8247 # PIC is the default on this platform
8248 # Common symbols not allowed in MH_DYLIB files
8249 lt_prog_compiler_pic='-fno-common'
8250 ;;
8251
8252 haiku*)
8253 # PIC is the default for Haiku.
8254 # The "-static" flag exists, but is broken.
8255 lt_prog_compiler_static=
8256 ;;
8257
8258 hpux*)
8259 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8260 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8261 # sets the default TLS model and affects inlining.
8262 case $host_cpu in
8263 hppa*64*)
8264 # +Z the default
8265 ;;
8266 *)
8267 lt_prog_compiler_pic='-fPIC'
8268 ;;
8269 esac
8270 ;;
8271
8272 interix[3-9]*)
8273 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8274 # Instead, we relocate shared libraries at runtime.
8275 ;;
8276
8277 msdosdjgpp*)
8278 # Just because we use GCC doesn't mean we suddenly get shared libraries
8279 # on systems that don't support them.
8280 lt_prog_compiler_can_build_shared=no
8281 enable_shared=no
8282 ;;
8283
8284 *nto* | *qnx*)
8285 # QNX uses GNU C++, but need to define -shared option too, otherwise
8286 # it will coredump.
8287 lt_prog_compiler_pic='-fPIC -shared'
8288 ;;
8289
8290 sysv4*MP*)
8291 if test -d /usr/nec; then
8292 lt_prog_compiler_pic=-Kconform_pic
8293 fi
8294 ;;
8295
8296 *)
8297 lt_prog_compiler_pic='-fPIC'
8298 ;;
8299 esac
8300
8301 case $cc_basename in
8302 nvcc*) # Cuda Compiler Driver 2.2
8303 lt_prog_compiler_wl='-Xlinker '
8304 if test -n "$lt_prog_compiler_pic"; then
8305 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8306 fi
8307 ;;
8308 esac
8309 else
8310 # PORTME Check for flag to pass linker flags through the system compiler.
8311 case $host_os in
8312 aix*)
8313 lt_prog_compiler_wl='-Wl,'
8314 if test ia64 = "$host_cpu"; then
8315 # AIX 5 now supports IA64 processor
8316 lt_prog_compiler_static='-Bstatic'
8317 else
8318 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8319 fi
8320 ;;
8321
8322 darwin* | rhapsody*)
8323 # PIC is the default on this platform
8324 # Common symbols not allowed in MH_DYLIB files
8325 lt_prog_compiler_pic='-fno-common'
8326 case $cc_basename in
8327 nagfor*)
8328 # NAG Fortran compiler
8329 lt_prog_compiler_wl='-Wl,-Wl,,'
8330 lt_prog_compiler_pic='-PIC'
8331 lt_prog_compiler_static='-Bstatic'
8332 ;;
8333 esac
8334 ;;
8335
8336 mingw* | cygwin* | pw32* | os2* | cegcc*)
8337 # This hack is so that the source file can tell whether it is being
8338 # built for inclusion in a dll (and should export symbols for example).
8339 lt_prog_compiler_pic='-DDLL_EXPORT'
8340 case $host_os in
8341 os2*)
8342 lt_prog_compiler_static='$wl-static'
8343 ;;
8344 esac
8345 ;;
8346
8347 hpux9* | hpux10* | hpux11*)
8348 lt_prog_compiler_wl='-Wl,'
8349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8350 # not for PA HP-UX.
8351 case $host_cpu in
8352 hppa*64*|ia64*)
8353 # +Z the default
8354 ;;
8355 *)
8356 lt_prog_compiler_pic='+Z'
8357 ;;
8358 esac
8359 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8360 lt_prog_compiler_static='$wl-a ${wl}archive'
8361 ;;
8362
8363 irix5* | irix6* | nonstopux*)
8364 lt_prog_compiler_wl='-Wl,'
8365 # PIC (with -KPIC) is the default.
8366 lt_prog_compiler_static='-non_shared'
8367 ;;
8368
8369 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8370 case $cc_basename in
8371 # old Intel for x86_64, which still supported -KPIC.
8372 ecc*)
8373 lt_prog_compiler_wl='-Wl,'
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-static'
8376 ;;
8377 # icc used to be incompatible with GCC.
8378 # ICC 10 doesn't accept -KPIC any more.
8379 icc* | ifort*)
8380 lt_prog_compiler_wl='-Wl,'
8381 lt_prog_compiler_pic='-fPIC'
8382 lt_prog_compiler_static='-static'
8383 ;;
8384 # Lahey Fortran 8.1.
8385 lf95*)
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_pic='--shared'
8388 lt_prog_compiler_static='--static'
8389 ;;
8390 nagfor*)
8391 # NAG Fortran compiler
8392 lt_prog_compiler_wl='-Wl,-Wl,,'
8393 lt_prog_compiler_pic='-PIC'
8394 lt_prog_compiler_static='-Bstatic'
8395 ;;
8396 tcc*)
8397 # Fabrice Bellard et al's Tiny C Compiler
8398 lt_prog_compiler_wl='-Wl,'
8399 lt_prog_compiler_pic='-fPIC'
8400 lt_prog_compiler_static='-static'
8401 ;;
8402 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8403 # Portland Group compilers (*not* the Pentium gcc compiler,
8404 # which looks to be a dead project)
8405 lt_prog_compiler_wl='-Wl,'
8406 lt_prog_compiler_pic='-fpic'
8407 lt_prog_compiler_static='-Bstatic'
8408 ;;
8409 ccc*)
8410 lt_prog_compiler_wl='-Wl,'
8411 # All Alpha code is PIC.
8412 lt_prog_compiler_static='-non_shared'
8413 ;;
8414 xl* | bgxl* | bgf* | mpixl*)
8415 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_pic='-qpic'
8418 lt_prog_compiler_static='-qstaticlink'
8419 ;;
8420 *)
8421 case `$CC -V 2>&1 | sed 5q` in
8422 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8423 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8424 lt_prog_compiler_pic='-KPIC'
8425 lt_prog_compiler_static='-Bstatic'
8426 lt_prog_compiler_wl=''
8427 ;;
8428 *Sun\ F* | *Sun*Fortran*)
8429 lt_prog_compiler_pic='-KPIC'
8430 lt_prog_compiler_static='-Bstatic'
8431 lt_prog_compiler_wl='-Qoption ld '
8432 ;;
8433 *Sun\ C*)
8434 # Sun C 5.9
8435 lt_prog_compiler_pic='-KPIC'
8436 lt_prog_compiler_static='-Bstatic'
8437 lt_prog_compiler_wl='-Wl,'
8438 ;;
8439 *Intel*\ [CF]*Compiler*)
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_pic='-fPIC'
8442 lt_prog_compiler_static='-static'
8443 ;;
8444 *Portland\ Group*)
8445 lt_prog_compiler_wl='-Wl,'
8446 lt_prog_compiler_pic='-fpic'
8447 lt_prog_compiler_static='-Bstatic'
8448 ;;
8449 esac
8450 ;;
8451 esac
8452 ;;
8453
8454 newsos6)
8455 lt_prog_compiler_pic='-KPIC'
8456 lt_prog_compiler_static='-Bstatic'
8457 ;;
8458
8459 *nto* | *qnx*)
8460 # QNX uses GNU C++, but need to define -shared option too, otherwise
8461 # it will coredump.
8462 lt_prog_compiler_pic='-fPIC -shared'
8463 ;;
8464
8465 osf3* | osf4* | osf5*)
8466 lt_prog_compiler_wl='-Wl,'
8467 # All OSF/1 code is PIC.
8468 lt_prog_compiler_static='-non_shared'
8469 ;;
8470
8471 rdos*)
8472 lt_prog_compiler_static='-non_shared'
8473 ;;
8474
8475 solaris*)
8476 lt_prog_compiler_pic='-KPIC'
8477 lt_prog_compiler_static='-Bstatic'
8478 case $cc_basename in
8479 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8480 lt_prog_compiler_wl='-Qoption ld ';;
8481 *)
8482 lt_prog_compiler_wl='-Wl,';;
8483 esac
8484 ;;
8485
8486 sunos4*)
8487 lt_prog_compiler_wl='-Qoption ld '
8488 lt_prog_compiler_pic='-PIC'
8489 lt_prog_compiler_static='-Bstatic'
8490 ;;
8491
8492 sysv4 | sysv4.2uw2* | sysv4.3*)
8493 lt_prog_compiler_wl='-Wl,'
8494 lt_prog_compiler_pic='-KPIC'
8495 lt_prog_compiler_static='-Bstatic'
8496 ;;
8497
8498 sysv4*MP*)
8499 if test -d /usr/nec; then
8500 lt_prog_compiler_pic='-Kconform_pic'
8501 lt_prog_compiler_static='-Bstatic'
8502 fi
8503 ;;
8504
8505 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_pic='-KPIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 ;;
8510
8511 unicos*)
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_can_build_shared=no
8514 ;;
8515
8516 uts4*)
8517 lt_prog_compiler_pic='-pic'
8518 lt_prog_compiler_static='-Bstatic'
8519 ;;
8520
8521 *)
8522 lt_prog_compiler_can_build_shared=no
8523 ;;
8524 esac
8525 fi
8526
8527 case $host_os in
8528 # For platforms that do not support PIC, -DPIC is meaningless:
8529 *djgpp*)
8530 lt_prog_compiler_pic=
8531 ;;
8532 *)
8533 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8534 ;;
8535 esac
8536
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8538 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8539 if ${lt_cv_prog_compiler_pic+:} false; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8543 fi
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8545 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8546 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8547
8548 #
8549 # Check to make sure the PIC flag actually works.
8550 #
8551 if test -n "$lt_prog_compiler_pic"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8553 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8554 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 lt_cv_prog_compiler_pic_works=no
8558 ac_outfile=conftest.$ac_objext
8559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8560 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8561 # Insert the option either (1) after the last *FLAGS variable, or
8562 # (2) before a word containing "conftest.", or (3) at the end.
8563 # Note that $ac_compile itself does not contain backslashes and begins
8564 # with a dollar sign (not a hyphen), so the echo should work correctly.
8565 # The option is referenced via a variable to avoid confusing sed.
8566 lt_compile=`echo "$ac_compile" | $SED \
8567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8569 -e 's:$: $lt_compiler_flag:'`
8570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8571 (eval "$lt_compile" 2>conftest.err)
8572 ac_status=$?
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 if (exit $ac_status) && test -s "$ac_outfile"; then
8576 # The compiler can only warn and ignore the option if not recognized
8577 # So say no if there are warnings other than the usual output.
8578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8581 lt_cv_prog_compiler_pic_works=yes
8582 fi
8583 fi
8584 $RM conftest*
8585
8586 fi
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8588 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8589
8590 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8591 case $lt_prog_compiler_pic in
8592 "" | " "*) ;;
8593 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8594 esac
8595 else
8596 lt_prog_compiler_pic=
8597 lt_prog_compiler_can_build_shared=no
8598 fi
8599
8600 fi
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612 #
8613 # Check to make sure the static flag actually works.
8614 #
8615 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8617 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8618 if ${lt_cv_prog_compiler_static_works+:} false; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 lt_cv_prog_compiler_static_works=no
8622 save_LDFLAGS=$LDFLAGS
8623 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8624 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8625 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8626 # The linker can only warn and ignore the option if not recognized
8627 # So say no if there are warnings
8628 if test -s conftest.err; then
8629 # Append any errors to the config.log.
8630 cat conftest.err 1>&5
8631 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8633 if diff conftest.exp conftest.er2 >/dev/null; then
8634 lt_cv_prog_compiler_static_works=yes
8635 fi
8636 else
8637 lt_cv_prog_compiler_static_works=yes
8638 fi
8639 fi
8640 $RM -r conftest*
8641 LDFLAGS=$save_LDFLAGS
8642
8643 fi
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8645 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8646
8647 if test yes = "$lt_cv_prog_compiler_static_works"; then
8648 :
8649 else
8650 lt_prog_compiler_static=
8651 fi
8652
8653
8654
8655
8656
8657
8658
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8660 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8661 if ${lt_cv_prog_compiler_c_o+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 lt_cv_prog_compiler_c_o=no
8665 $RM -r conftest 2>/dev/null
8666 mkdir conftest
8667 cd conftest
8668 mkdir out
8669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8670
8671 lt_compiler_flag="-o out/conftest2.$ac_objext"
8672 # Insert the option either (1) after the last *FLAGS variable, or
8673 # (2) before a word containing "conftest.", or (3) at the end.
8674 # Note that $ac_compile itself does not contain backslashes and begins
8675 # with a dollar sign (not a hyphen), so the echo should work correctly.
8676 lt_compile=`echo "$ac_compile" | $SED \
8677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8679 -e 's:$: $lt_compiler_flag:'`
8680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8681 (eval "$lt_compile" 2>out/conftest.err)
8682 ac_status=$?
8683 cat out/conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8686 then
8687 # The compiler can only warn and ignore the option if not recognized
8688 # So say no if there are warnings
8689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8692 lt_cv_prog_compiler_c_o=yes
8693 fi
8694 fi
8695 chmod u+w . 2>&5
8696 $RM conftest*
8697 # SGI C++ compiler will create directory out/ii_files/ for
8698 # template instantiation
8699 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8700 $RM out/* && rmdir out
8701 cd ..
8702 $RM -r conftest
8703 $RM conftest*
8704
8705 fi
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8707 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8708
8709
8710
8711
8712
8713
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8715 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8716 if ${lt_cv_prog_compiler_c_o+:} false; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 lt_cv_prog_compiler_c_o=no
8720 $RM -r conftest 2>/dev/null
8721 mkdir conftest
8722 cd conftest
8723 mkdir out
8724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8725
8726 lt_compiler_flag="-o out/conftest2.$ac_objext"
8727 # Insert the option either (1) after the last *FLAGS variable, or
8728 # (2) before a word containing "conftest.", or (3) at the end.
8729 # Note that $ac_compile itself does not contain backslashes and begins
8730 # with a dollar sign (not a hyphen), so the echo should work correctly.
8731 lt_compile=`echo "$ac_compile" | $SED \
8732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8734 -e 's:$: $lt_compiler_flag:'`
8735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8736 (eval "$lt_compile" 2>out/conftest.err)
8737 ac_status=$?
8738 cat out/conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8741 then
8742 # The compiler can only warn and ignore the option if not recognized
8743 # So say no if there are warnings
8744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8747 lt_cv_prog_compiler_c_o=yes
8748 fi
8749 fi
8750 chmod u+w . 2>&5
8751 $RM conftest*
8752 # SGI C++ compiler will create directory out/ii_files/ for
8753 # template instantiation
8754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8755 $RM out/* && rmdir out
8756 cd ..
8757 $RM -r conftest
8758 $RM conftest*
8759
8760 fi
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8762 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8763
8764
8765
8766
8767 hard_links=nottested
8768 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8769 # do not overwrite the value of need_locks provided by the user
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8771 $as_echo_n "checking if we can lock with hard links... " >&6; }
8772 hard_links=yes
8773 $RM conftest*
8774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8775 touch conftest.a
8776 ln conftest.a conftest.b 2>&5 || hard_links=no
8777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8779 $as_echo "$hard_links" >&6; }
8780 if test no = "$hard_links"; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8782 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8783 need_locks=warn
8784 fi
8785 else
8786 need_locks=no
8787 fi
8788
8789
8790
8791
8792
8793
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8795 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8796
8797 runpath_var=
8798 allow_undefined_flag=
8799 always_export_symbols=no
8800 archive_cmds=
8801 archive_expsym_cmds=
8802 compiler_needs_object=no
8803 enable_shared_with_static_runtimes=no
8804 export_dynamic_flag_spec=
8805 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8806 hardcode_automatic=no
8807 hardcode_direct=no
8808 hardcode_direct_absolute=no
8809 hardcode_libdir_flag_spec=
8810 hardcode_libdir_separator=
8811 hardcode_minus_L=no
8812 hardcode_shlibpath_var=unsupported
8813 inherit_rpath=no
8814 link_all_deplibs=unknown
8815 module_cmds=
8816 module_expsym_cmds=
8817 old_archive_from_new_cmds=
8818 old_archive_from_expsyms_cmds=
8819 thread_safe_flag_spec=
8820 whole_archive_flag_spec=
8821 # include_expsyms should be a list of space-separated symbols to be *always*
8822 # included in the symbol list
8823 include_expsyms=
8824 # exclude_expsyms can be an extended regexp of symbols to exclude
8825 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8826 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8827 # as well as any symbol that contains 'd'.
8828 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8829 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8830 # platforms (ab)use it in PIC code, but their linkers get confused if
8831 # the symbol is explicitly referenced. Since portable code cannot
8832 # rely on this symbol name, it's probably fine to never include it in
8833 # preloaded symbol tables.
8834 # Exclude shared library initialization/finalization symbols.
8835 extract_expsyms_cmds=
8836
8837 case $host_os in
8838 cygwin* | mingw* | pw32* | cegcc*)
8839 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8840 # When not using gcc, we currently assume that we are using
8841 # Microsoft Visual C++.
8842 if test yes != "$GCC"; then
8843 with_gnu_ld=no
8844 fi
8845 ;;
8846 interix*)
8847 # we just hope/assume this is gcc and not c89 (= MSVC++)
8848 with_gnu_ld=yes
8849 ;;
8850 openbsd* | bitrig*)
8851 with_gnu_ld=no
8852 ;;
8853 esac
8854
8855 ld_shlibs=yes
8856
8857 # On some targets, GNU ld is compatible enough with the native linker
8858 # that we're better off using the native interface for both.
8859 lt_use_gnu_ld_interface=no
8860 if test yes = "$with_gnu_ld"; then
8861 case $host_os in
8862 aix*)
8863 # The AIX port of GNU ld has always aspired to compatibility
8864 # with the native linker. However, as the warning in the GNU ld
8865 # block says, versions before 2.19.5* couldn't really create working
8866 # shared libraries, regardless of the interface used.
8867 case `$LD -v 2>&1` in
8868 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8869 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8870 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8871 *)
8872 lt_use_gnu_ld_interface=yes
8873 ;;
8874 esac
8875 ;;
8876 *)
8877 lt_use_gnu_ld_interface=yes
8878 ;;
8879 esac
8880 fi
8881
8882 if test yes = "$lt_use_gnu_ld_interface"; then
8883 # If archive_cmds runs LD, not CC, wlarc should be empty
8884 wlarc='$wl'
8885
8886 # Set some defaults for GNU ld with shared library support. These
8887 # are reset later if shared libraries are not supported. Putting them
8888 # here allows them to be overridden if necessary.
8889 runpath_var=LD_RUN_PATH
8890 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8891 export_dynamic_flag_spec='$wl--export-dynamic'
8892 # ancient GNU ld didn't support --whole-archive et. al.
8893 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8894 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8895 else
8896 whole_archive_flag_spec=
8897 fi
8898 supports_anon_versioning=no
8899 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8900 *GNU\ gold*) supports_anon_versioning=yes ;;
8901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8904 *\ 2.11.*) ;; # other 2.11 versions
8905 *) supports_anon_versioning=yes ;;
8906 esac
8907
8908 # See if GNU ld supports shared libraries.
8909 case $host_os in
8910 aix[3-9]*)
8911 # On AIX/PPC, the GNU linker is very broken
8912 if test ia64 != "$host_cpu"; then
8913 ld_shlibs=no
8914 cat <<_LT_EOF 1>&2
8915
8916 *** Warning: the GNU linker, at least up to release 2.19, is reported
8917 *** to be unable to reliably create shared libraries on AIX.
8918 *** Therefore, libtool is disabling shared libraries support. If you
8919 *** really care for shared libraries, you may want to install binutils
8920 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8921 *** You will then need to restart the configuration process.
8922
8923 _LT_EOF
8924 fi
8925 ;;
8926
8927 amigaos*)
8928 case $host_cpu in
8929 powerpc)
8930 # see comment about AmigaOS4 .so support
8931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8932 archive_expsym_cmds=''
8933 ;;
8934 m68k)
8935 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)'
8936 hardcode_libdir_flag_spec='-L$libdir'
8937 hardcode_minus_L=yes
8938 ;;
8939 esac
8940 ;;
8941
8942 beos*)
8943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8944 allow_undefined_flag=unsupported
8945 # Joseph Beckenbach <[email protected]> says some releases of gcc
8946 # support --undefined. This deserves some investigation. FIXME
8947 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8948 else
8949 ld_shlibs=no
8950 fi
8951 ;;
8952
8953 cygwin* | mingw* | pw32* | cegcc*)
8954 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8955 # as there is no search path for DLLs.
8956 hardcode_libdir_flag_spec='-L$libdir'
8957 export_dynamic_flag_spec='$wl--export-all-symbols'
8958 allow_undefined_flag=unsupported
8959 always_export_symbols=no
8960 enable_shared_with_static_runtimes=yes
8961 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'
8962 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8963
8964 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8966 # If the export-symbols file already is a .def file, use it as
8967 # is; otherwise, prepend EXPORTS...
8968 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8969 cp $export_symbols $output_objdir/$soname.def;
8970 else
8971 echo EXPORTS > $output_objdir/$soname.def;
8972 cat $export_symbols >> $output_objdir/$soname.def;
8973 fi~
8974 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8975 else
8976 ld_shlibs=no
8977 fi
8978 ;;
8979
8980 haiku*)
8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8982 link_all_deplibs=yes
8983 ;;
8984
8985 os2*)
8986 hardcode_libdir_flag_spec='-L$libdir'
8987 hardcode_minus_L=yes
8988 allow_undefined_flag=unsupported
8989 shrext_cmds=.dll
8990 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8991 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8992 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8993 $ECHO EXPORTS >> $output_objdir/$libname.def~
8994 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8995 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8996 emximp -o $lib $output_objdir/$libname.def'
8997 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8998 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8999 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9000 $ECHO EXPORTS >> $output_objdir/$libname.def~
9001 prefix_cmds="$SED"~
9002 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9003 prefix_cmds="$prefix_cmds -e 1d";
9004 fi~
9005 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9006 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9007 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9008 emximp -o $lib $output_objdir/$libname.def'
9009 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9010 enable_shared_with_static_runtimes=yes
9011 ;;
9012
9013 interix[3-9]*)
9014 hardcode_direct=no
9015 hardcode_shlibpath_var=no
9016 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9017 export_dynamic_flag_spec='$wl-E'
9018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9019 # Instead, shared libraries are loaded at an image base (0x10000000 by
9020 # default) and relocated if they conflict, which is a slow very memory
9021 # consuming and fragmenting process. To avoid this, we pick a random,
9022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9024 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9025 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'
9026 ;;
9027
9028 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9029 tmp_diet=no
9030 if test linux-dietlibc = "$host_os"; then
9031 case $cc_basename in
9032 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9033 esac
9034 fi
9035 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9036 && test no = "$tmp_diet"
9037 then
9038 tmp_addflag=' $pic_flag'
9039 tmp_sharedflag='-shared'
9040 case $cc_basename,$host_cpu in
9041 pgcc*) # Portland Group C compiler
9042 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'
9043 tmp_addflag=' $pic_flag'
9044 ;;
9045 pgf77* | pgf90* | pgf95* | pgfortran*)
9046 # Portland Group f77 and f90 compilers
9047 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'
9048 tmp_addflag=' $pic_flag -Mnomain' ;;
9049 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9050 tmp_addflag=' -i_dynamic' ;;
9051 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9052 tmp_addflag=' -i_dynamic -nofor_main' ;;
9053 ifc* | ifort*) # Intel Fortran compiler
9054 tmp_addflag=' -nofor_main' ;;
9055 lf95*) # Lahey Fortran 8.1
9056 whole_archive_flag_spec=
9057 tmp_sharedflag='--shared' ;;
9058 nagfor*) # NAGFOR 5.3
9059 tmp_sharedflag='-Wl,-shared' ;;
9060 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9061 tmp_sharedflag='-qmkshrobj'
9062 tmp_addflag= ;;
9063 nvcc*) # Cuda Compiler Driver 2.2
9064 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'
9065 compiler_needs_object=yes
9066 ;;
9067 esac
9068 case `$CC -V 2>&1 | sed 5q` in
9069 *Sun\ C*) # Sun C 5.9
9070 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'
9071 compiler_needs_object=yes
9072 tmp_sharedflag='-G' ;;
9073 *Sun\ F*) # Sun Fortran 8.3
9074 tmp_sharedflag='-G' ;;
9075 esac
9076 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9077
9078 if test yes = "$supports_anon_versioning"; then
9079 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9081 echo "local: *; };" >> $output_objdir/$libname.ver~
9082 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9083 fi
9084
9085 case $cc_basename in
9086 tcc*)
9087 export_dynamic_flag_spec='-rdynamic'
9088 ;;
9089 xlf* | bgf* | bgxlf* | mpixlf*)
9090 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9091 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9092 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9093 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9094 if test yes = "$supports_anon_versioning"; then
9095 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9096 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9097 echo "local: *; };" >> $output_objdir/$libname.ver~
9098 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9099 fi
9100 ;;
9101 esac
9102 else
9103 ld_shlibs=no
9104 fi
9105 ;;
9106
9107 netbsd*)
9108 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9109 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9110 wlarc=
9111 else
9112 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9113 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9114 fi
9115 ;;
9116
9117 solaris*)
9118 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9119 ld_shlibs=no
9120 cat <<_LT_EOF 1>&2
9121
9122 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9123 *** create shared libraries on Solaris systems. Therefore, libtool
9124 *** is disabling shared libraries support. We urge you to upgrade GNU
9125 *** binutils to release 2.9.1 or newer. Another option is to modify
9126 *** your PATH or compiler configuration so that the native linker is
9127 *** used, and then restart.
9128
9129 _LT_EOF
9130 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9131 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9132 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9133 else
9134 ld_shlibs=no
9135 fi
9136 ;;
9137
9138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9139 case `$LD -v 2>&1` in
9140 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9141 ld_shlibs=no
9142 cat <<_LT_EOF 1>&2
9143
9144 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9145 *** reliably create shared libraries on SCO systems. Therefore, libtool
9146 *** is disabling shared libraries support. We urge you to upgrade GNU
9147 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9148 *** your PATH or compiler configuration so that the native linker is
9149 *** used, and then restart.
9150
9151 _LT_EOF
9152 ;;
9153 *)
9154 # For security reasons, it is highly recommended that you always
9155 # use absolute paths for naming shared libraries, and exclude the
9156 # DT_RUNPATH tag from executables and libraries. But doing so
9157 # requires that you compile everything twice, which is a pain.
9158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9159 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9162 else
9163 ld_shlibs=no
9164 fi
9165 ;;
9166 esac
9167 ;;
9168
9169 sunos4*)
9170 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9171 wlarc=
9172 hardcode_direct=yes
9173 hardcode_shlibpath_var=no
9174 ;;
9175
9176 *)
9177 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9178 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9179 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9180 else
9181 ld_shlibs=no
9182 fi
9183 ;;
9184 esac
9185
9186 if test no = "$ld_shlibs"; then
9187 runpath_var=
9188 hardcode_libdir_flag_spec=
9189 export_dynamic_flag_spec=
9190 whole_archive_flag_spec=
9191 fi
9192 else
9193 # PORTME fill in a description of your system's linker (not GNU ld)
9194 case $host_os in
9195 aix3*)
9196 allow_undefined_flag=unsupported
9197 always_export_symbols=yes
9198 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'
9199 # Note: this linker hardcodes the directories in LIBPATH if there
9200 # are no directories specified by -L.
9201 hardcode_minus_L=yes
9202 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9203 # Neither direct hardcoding nor static linking is supported with a
9204 # broken collect2.
9205 hardcode_direct=unsupported
9206 fi
9207 ;;
9208
9209 aix[4-9]*)
9210 if test ia64 = "$host_cpu"; then
9211 # On IA64, the linker does run time linking by default, so we don't
9212 # have to do anything special.
9213 aix_use_runtimelinking=no
9214 exp_sym_flag='-Bexport'
9215 no_entry_flag=
9216 else
9217 # If we're using GNU nm, then we don't want the "-C" option.
9218 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9219 # Without the "-l" option, or with the "-B" option, AIX nm treats
9220 # weak defined symbols like other global defined symbols, whereas
9221 # GNU nm marks them as "W".
9222 # While the 'weak' keyword is ignored in the Export File, we need
9223 # it in the Import File for the 'aix-soname' feature, so we have
9224 # to replace the "-B" option with "-P" for AIX nm.
9225 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9226 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9227 else
9228 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9229 fi
9230 aix_use_runtimelinking=no
9231
9232 # Test if we are trying to use run time linking or normal
9233 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9234 # have runtime linking enabled, and use it for executables.
9235 # For shared libraries, we enable/disable runtime linking
9236 # depending on the kind of the shared library created -
9237 # when "with_aix_soname,aix_use_runtimelinking" is:
9238 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9239 # "aix,yes" lib.so shared, rtl:yes, for executables
9240 # lib.a static archive
9241 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9242 # lib.a(lib.so.V) shared, rtl:no, for executables
9243 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9244 # lib.a(lib.so.V) shared, rtl:no
9245 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9246 # lib.a static archive
9247 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9248 for ld_flag in $LDFLAGS; do
9249 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9250 aix_use_runtimelinking=yes
9251 break
9252 fi
9253 done
9254 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9255 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9256 # so we don't have lib.a shared libs to link our executables.
9257 # We have to force runtime linking in this case.
9258 aix_use_runtimelinking=yes
9259 LDFLAGS="$LDFLAGS -Wl,-brtl"
9260 fi
9261 ;;
9262 esac
9263
9264 exp_sym_flag='-bexport'
9265 no_entry_flag='-bnoentry'
9266 fi
9267
9268 # When large executables or shared objects are built, AIX ld can
9269 # have problems creating the table of contents. If linking a library
9270 # or program results in "error TOC overflow" add -mminimal-toc to
9271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9273
9274 archive_cmds=''
9275 hardcode_direct=yes
9276 hardcode_direct_absolute=yes
9277 hardcode_libdir_separator=':'
9278 link_all_deplibs=yes
9279 file_list_spec='$wl-f,'
9280 case $with_aix_soname,$aix_use_runtimelinking in
9281 aix,*) ;; # traditional, no import file
9282 svr4,* | *,yes) # use import file
9283 # The Import File defines what to hardcode.
9284 hardcode_direct=no
9285 hardcode_direct_absolute=no
9286 ;;
9287 esac
9288
9289 if test yes = "$GCC"; then
9290 case $host_os in aix4.[012]|aix4.[012].*)
9291 # We only want to do this on AIX 4.2 and lower, the check
9292 # below for broken collect2 doesn't work under 4.3+
9293 collect2name=`$CC -print-prog-name=collect2`
9294 if test -f "$collect2name" &&
9295 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9296 then
9297 # We have reworked collect2
9298 :
9299 else
9300 # We have old collect2
9301 hardcode_direct=unsupported
9302 # It fails to find uninstalled libraries when the uninstalled
9303 # path is not listed in the libpath. Setting hardcode_minus_L
9304 # to unsupported forces relinking
9305 hardcode_minus_L=yes
9306 hardcode_libdir_flag_spec='-L$libdir'
9307 hardcode_libdir_separator=
9308 fi
9309 ;;
9310 esac
9311 shared_flag='-shared'
9312 if test yes = "$aix_use_runtimelinking"; then
9313 shared_flag="$shared_flag "'$wl-G'
9314 fi
9315 # Need to ensure runtime linking is disabled for the traditional
9316 # shared library, or the linker may eventually find shared libraries
9317 # /with/ Import File - we do not want to mix them.
9318 shared_flag_aix='-shared'
9319 shared_flag_svr4='-shared $wl-G'
9320 else
9321 # not using gcc
9322 if test ia64 = "$host_cpu"; then
9323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9324 # chokes on -Wl,-G. The following line is correct:
9325 shared_flag='-G'
9326 else
9327 if test yes = "$aix_use_runtimelinking"; then
9328 shared_flag='$wl-G'
9329 else
9330 shared_flag='$wl-bM:SRE'
9331 fi
9332 shared_flag_aix='$wl-bM:SRE'
9333 shared_flag_svr4='$wl-G'
9334 fi
9335 fi
9336
9337 export_dynamic_flag_spec='$wl-bexpall'
9338 # It seems that -bexpall does not export symbols beginning with
9339 # underscore (_), so it is better to generate a list of symbols to export.
9340 always_export_symbols=yes
9341 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9342 # Warning - without using the other runtime loading flags (-brtl),
9343 # -berok will link without error, but may produce a broken library.
9344 allow_undefined_flag='-berok'
9345 # Determine the default libpath from the value encoded in an
9346 # empty executable.
9347 if test set = "${lt_cv_aix_libpath+set}"; then
9348 aix_libpath=$lt_cv_aix_libpath
9349 else
9350 if ${lt_cv_aix_libpath_+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355
9356 int
9357 main ()
9358 {
9359
9360 ;
9361 return 0;
9362 }
9363 _ACEOF
9364 if ac_fn_c_try_link "$LINENO"; then :
9365
9366 lt_aix_libpath_sed='
9367 /Import File Strings/,/^$/ {
9368 /^0/ {
9369 s/^0 *\([^ ]*\) *$/\1/
9370 p
9371 }
9372 }'
9373 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9374 # Check for a 64-bit object if we didn't find anything.
9375 if test -z "$lt_cv_aix_libpath_"; then
9376 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9377 fi
9378 fi
9379 rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9381 if test -z "$lt_cv_aix_libpath_"; then
9382 lt_cv_aix_libpath_=/usr/lib:/lib
9383 fi
9384
9385 fi
9386
9387 aix_libpath=$lt_cv_aix_libpath_
9388 fi
9389
9390 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9391 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9392 else
9393 if test ia64 = "$host_cpu"; then
9394 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9395 allow_undefined_flag="-z nodefs"
9396 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"
9397 else
9398 # Determine the default libpath from the value encoded in an
9399 # empty executable.
9400 if test set = "${lt_cv_aix_libpath+set}"; then
9401 aix_libpath=$lt_cv_aix_libpath
9402 else
9403 if ${lt_cv_aix_libpath_+:} false; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408
9409 int
9410 main ()
9411 {
9412
9413 ;
9414 return 0;
9415 }
9416 _ACEOF
9417 if ac_fn_c_try_link "$LINENO"; then :
9418
9419 lt_aix_libpath_sed='
9420 /Import File Strings/,/^$/ {
9421 /^0/ {
9422 s/^0 *\([^ ]*\) *$/\1/
9423 p
9424 }
9425 }'
9426 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9427 # Check for a 64-bit object if we didn't find anything.
9428 if test -z "$lt_cv_aix_libpath_"; then
9429 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9430 fi
9431 fi
9432 rm -f core conftest.err conftest.$ac_objext \
9433 conftest$ac_exeext conftest.$ac_ext
9434 if test -z "$lt_cv_aix_libpath_"; then
9435 lt_cv_aix_libpath_=/usr/lib:/lib
9436 fi
9437
9438 fi
9439
9440 aix_libpath=$lt_cv_aix_libpath_
9441 fi
9442
9443 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9444 # Warning - without using the other run time loading flags,
9445 # -berok will link without error, but may produce a broken library.
9446 no_undefined_flag=' $wl-bernotok'
9447 allow_undefined_flag=' $wl-berok'
9448 if test yes = "$with_gnu_ld"; then
9449 # We only use this code for GNU lds that support --whole-archive.
9450 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9451 else
9452 # Exported symbols can be pulled into shared objects from archives
9453 whole_archive_flag_spec='$convenience'
9454 fi
9455 archive_cmds_need_lc=yes
9456 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9457 # -brtl affects multiple linker settings, -berok does not and is overridden later
9458 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9459 if test svr4 != "$with_aix_soname"; then
9460 # This is similar to how AIX traditionally builds its shared libraries.
9461 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9462 fi
9463 if test aix != "$with_aix_soname"; then
9464 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9465 else
9466 # used by -dlpreopen to get the symbols
9467 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9468 fi
9469 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9470 fi
9471 fi
9472 ;;
9473
9474 amigaos*)
9475 case $host_cpu in
9476 powerpc)
9477 # see comment about AmigaOS4 .so support
9478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9479 archive_expsym_cmds=''
9480 ;;
9481 m68k)
9482 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)'
9483 hardcode_libdir_flag_spec='-L$libdir'
9484 hardcode_minus_L=yes
9485 ;;
9486 esac
9487 ;;
9488
9489 bsdi[45]*)
9490 export_dynamic_flag_spec=-rdynamic
9491 ;;
9492
9493 cygwin* | mingw* | pw32* | cegcc*)
9494 # When not using gcc, we currently assume that we are using
9495 # Microsoft Visual C++.
9496 # hardcode_libdir_flag_spec is actually meaningless, as there is
9497 # no search path for DLLs.
9498 case $cc_basename in
9499 cl*)
9500 # Native MSVC
9501 hardcode_libdir_flag_spec=' '
9502 allow_undefined_flag=unsupported
9503 always_export_symbols=yes
9504 file_list_spec='@'
9505 # Tell ltmain to make .lib files, not .a files.
9506 libext=lib
9507 # Tell ltmain to make .dll files, not .so files.
9508 shrext_cmds=.dll
9509 # FIXME: Setting linknames here is a bad hack.
9510 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9511 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9512 cp "$export_symbols" "$output_objdir/$soname.def";
9513 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9514 else
9515 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9516 fi~
9517 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9518 linknames='
9519 # The linker will not automatically build a static lib if we build a DLL.
9520 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9521 enable_shared_with_static_runtimes=yes
9522 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9523 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9524 # Don't use ranlib
9525 old_postinstall_cmds='chmod 644 $oldlib'
9526 postlink_cmds='lt_outputfile="@OUTPUT@"~
9527 lt_tool_outputfile="@TOOL_OUTPUT@"~
9528 case $lt_outputfile in
9529 *.exe|*.EXE) ;;
9530 *)
9531 lt_outputfile=$lt_outputfile.exe
9532 lt_tool_outputfile=$lt_tool_outputfile.exe
9533 ;;
9534 esac~
9535 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9536 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9537 $RM "$lt_outputfile.manifest";
9538 fi'
9539 ;;
9540 *)
9541 # Assume MSVC wrapper
9542 hardcode_libdir_flag_spec=' '
9543 allow_undefined_flag=unsupported
9544 # Tell ltmain to make .lib files, not .a files.
9545 libext=lib
9546 # Tell ltmain to make .dll files, not .so files.
9547 shrext_cmds=.dll
9548 # FIXME: Setting linknames here is a bad hack.
9549 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9550 # The linker will automatically build a .lib file if we build a DLL.
9551 old_archive_from_new_cmds='true'
9552 # FIXME: Should let the user specify the lib program.
9553 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9554 enable_shared_with_static_runtimes=yes
9555 ;;
9556 esac
9557 ;;
9558
9559 darwin* | rhapsody*)
9560
9561
9562 archive_cmds_need_lc=no
9563 hardcode_direct=no
9564 hardcode_automatic=yes
9565 hardcode_shlibpath_var=unsupported
9566 if test yes = "$lt_cv_ld_force_load"; then
9567 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\"`'
9568
9569 else
9570 whole_archive_flag_spec=''
9571 fi
9572 link_all_deplibs=yes
9573 allow_undefined_flag=$_lt_dar_allow_undefined
9574 case $cc_basename in
9575 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9576 *) _lt_dar_can_shared=$GCC ;;
9577 esac
9578 if test yes = "$_lt_dar_can_shared"; then
9579 output_verbose_link_cmd=func_echo_all
9580 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9581 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9582 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"
9583 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"
9584
9585 else
9586 ld_shlibs=no
9587 fi
9588
9589 ;;
9590
9591 dgux*)
9592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9593 hardcode_libdir_flag_spec='-L$libdir'
9594 hardcode_shlibpath_var=no
9595 ;;
9596
9597 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9598 # support. Future versions do this automatically, but an explicit c++rt0.o
9599 # does not break anything, and helps significantly (at the cost of a little
9600 # extra space).
9601 freebsd2.2*)
9602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9603 hardcode_libdir_flag_spec='-R$libdir'
9604 hardcode_direct=yes
9605 hardcode_shlibpath_var=no
9606 ;;
9607
9608 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9609 freebsd2.*)
9610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9611 hardcode_direct=yes
9612 hardcode_minus_L=yes
9613 hardcode_shlibpath_var=no
9614 ;;
9615
9616 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9617 freebsd* | dragonfly*)
9618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9619 hardcode_libdir_flag_spec='-R$libdir'
9620 hardcode_direct=yes
9621 hardcode_shlibpath_var=no
9622 ;;
9623
9624 hpux9*)
9625 if test yes = "$GCC"; then
9626 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9627 else
9628 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9629 fi
9630 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9631 hardcode_libdir_separator=:
9632 hardcode_direct=yes
9633
9634 # hardcode_minus_L: Not really in the search PATH,
9635 # but as the default location of the library.
9636 hardcode_minus_L=yes
9637 export_dynamic_flag_spec='$wl-E'
9638 ;;
9639
9640 hpux10*)
9641 if test yes,no = "$GCC,$with_gnu_ld"; then
9642 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9643 else
9644 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9645 fi
9646 if test no = "$with_gnu_ld"; then
9647 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9648 hardcode_libdir_separator=:
9649 hardcode_direct=yes
9650 hardcode_direct_absolute=yes
9651 export_dynamic_flag_spec='$wl-E'
9652 # hardcode_minus_L: Not really in the search PATH,
9653 # but as the default location of the library.
9654 hardcode_minus_L=yes
9655 fi
9656 ;;
9657
9658 hpux11*)
9659 if test yes,no = "$GCC,$with_gnu_ld"; then
9660 case $host_cpu in
9661 hppa*64*)
9662 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9663 ;;
9664 ia64*)
9665 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9666 ;;
9667 *)
9668 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9669 ;;
9670 esac
9671 else
9672 case $host_cpu in
9673 hppa*64*)
9674 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9675 ;;
9676 ia64*)
9677 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9678 ;;
9679 *)
9680
9681 # Older versions of the 11.00 compiler do not understand -b yet
9682 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9684 $as_echo_n "checking if $CC understands -b... " >&6; }
9685 if ${lt_cv_prog_compiler__b+:} false; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 lt_cv_prog_compiler__b=no
9689 save_LDFLAGS=$LDFLAGS
9690 LDFLAGS="$LDFLAGS -b"
9691 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9692 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9693 # The linker can only warn and ignore the option if not recognized
9694 # So say no if there are warnings
9695 if test -s conftest.err; then
9696 # Append any errors to the config.log.
9697 cat conftest.err 1>&5
9698 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9700 if diff conftest.exp conftest.er2 >/dev/null; then
9701 lt_cv_prog_compiler__b=yes
9702 fi
9703 else
9704 lt_cv_prog_compiler__b=yes
9705 fi
9706 fi
9707 $RM -r conftest*
9708 LDFLAGS=$save_LDFLAGS
9709
9710 fi
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9712 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9713
9714 if test yes = "$lt_cv_prog_compiler__b"; then
9715 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9716 else
9717 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9718 fi
9719
9720 ;;
9721 esac
9722 fi
9723 if test no = "$with_gnu_ld"; then
9724 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9725 hardcode_libdir_separator=:
9726
9727 case $host_cpu in
9728 hppa*64*|ia64*)
9729 hardcode_direct=no
9730 hardcode_shlibpath_var=no
9731 ;;
9732 *)
9733 hardcode_direct=yes
9734 hardcode_direct_absolute=yes
9735 export_dynamic_flag_spec='$wl-E'
9736
9737 # hardcode_minus_L: Not really in the search PATH,
9738 # but as the default location of the library.
9739 hardcode_minus_L=yes
9740 ;;
9741 esac
9742 fi
9743 ;;
9744
9745 irix5* | irix6* | nonstopux*)
9746 if test yes = "$GCC"; then
9747 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'
9748 # Try to use the -exported_symbol ld option, if it does not
9749 # work, assume that -exports_file does not work either and
9750 # implicitly export all symbols.
9751 # This should be the same for all languages, so no per-tag cache variable.
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9753 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9754 if ${lt_cv_irix_exported_symbol+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 save_LDFLAGS=$LDFLAGS
9758 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9761 int foo (void) { return 0; }
9762 _ACEOF
9763 if ac_fn_c_try_link "$LINENO"; then :
9764 lt_cv_irix_exported_symbol=yes
9765 else
9766 lt_cv_irix_exported_symbol=no
9767 fi
9768 rm -f core conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext conftest.$ac_ext
9770 LDFLAGS=$save_LDFLAGS
9771 fi
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9773 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9774 if test yes = "$lt_cv_irix_exported_symbol"; then
9775 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'
9776 fi
9777 else
9778 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'
9779 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'
9780 fi
9781 archive_cmds_need_lc='no'
9782 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9783 hardcode_libdir_separator=:
9784 inherit_rpath=yes
9785 link_all_deplibs=yes
9786 ;;
9787
9788 linux*)
9789 case $cc_basename in
9790 tcc*)
9791 # Fabrice Bellard et al's Tiny C Compiler
9792 ld_shlibs=yes
9793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9794 ;;
9795 esac
9796 ;;
9797
9798 netbsd*)
9799 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9801 else
9802 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9803 fi
9804 hardcode_libdir_flag_spec='-R$libdir'
9805 hardcode_direct=yes
9806 hardcode_shlibpath_var=no
9807 ;;
9808
9809 newsos6)
9810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811 hardcode_direct=yes
9812 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9813 hardcode_libdir_separator=:
9814 hardcode_shlibpath_var=no
9815 ;;
9816
9817 *nto* | *qnx*)
9818 ;;
9819
9820 openbsd* | bitrig*)
9821 if test -f /usr/libexec/ld.so; then
9822 hardcode_direct=yes
9823 hardcode_shlibpath_var=no
9824 hardcode_direct_absolute=yes
9825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9827 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9828 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9829 export_dynamic_flag_spec='$wl-E'
9830 else
9831 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9832 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9833 fi
9834 else
9835 ld_shlibs=no
9836 fi
9837 ;;
9838
9839 os2*)
9840 hardcode_libdir_flag_spec='-L$libdir'
9841 hardcode_minus_L=yes
9842 allow_undefined_flag=unsupported
9843 shrext_cmds=.dll
9844 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9845 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9846 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9847 $ECHO EXPORTS >> $output_objdir/$libname.def~
9848 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9849 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9850 emximp -o $lib $output_objdir/$libname.def'
9851 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9852 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9853 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9854 $ECHO EXPORTS >> $output_objdir/$libname.def~
9855 prefix_cmds="$SED"~
9856 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9857 prefix_cmds="$prefix_cmds -e 1d";
9858 fi~
9859 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9860 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9861 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9862 emximp -o $lib $output_objdir/$libname.def'
9863 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9864 enable_shared_with_static_runtimes=yes
9865 ;;
9866
9867 osf3*)
9868 if test yes = "$GCC"; then
9869 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9870 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'
9871 else
9872 allow_undefined_flag=' -expect_unresolved \*'
9873 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'
9874 fi
9875 archive_cmds_need_lc='no'
9876 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9877 hardcode_libdir_separator=:
9878 ;;
9879
9880 osf4* | osf5*) # as osf3* with the addition of -msym flag
9881 if test yes = "$GCC"; then
9882 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9883 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'
9884 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9885 else
9886 allow_undefined_flag=' -expect_unresolved \*'
9887 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'
9888 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~
9889 $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'
9890
9891 # Both c and cxx compiler support -rpath directly
9892 hardcode_libdir_flag_spec='-rpath $libdir'
9893 fi
9894 archive_cmds_need_lc='no'
9895 hardcode_libdir_separator=:
9896 ;;
9897
9898 solaris*)
9899 no_undefined_flag=' -z defs'
9900 if test yes = "$GCC"; then
9901 wlarc='$wl'
9902 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9904 $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'
9905 else
9906 case `$CC -V 2>&1` in
9907 *"Compilers 5.0"*)
9908 wlarc=''
9909 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9910 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9911 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9912 ;;
9913 *)
9914 wlarc='$wl'
9915 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9916 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9917 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9918 ;;
9919 esac
9920 fi
9921 hardcode_libdir_flag_spec='-R$libdir'
9922 hardcode_shlibpath_var=no
9923 case $host_os in
9924 solaris2.[0-5] | solaris2.[0-5].*) ;;
9925 *)
9926 # The compiler driver will combine and reorder linker options,
9927 # but understands '-z linker_flag'. GCC discards it without '$wl',
9928 # but is careful enough not to reorder.
9929 # Supported since Solaris 2.6 (maybe 2.5.1?)
9930 if test yes = "$GCC"; then
9931 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9932 else
9933 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9934 fi
9935 ;;
9936 esac
9937 link_all_deplibs=yes
9938 ;;
9939
9940 sunos4*)
9941 if test sequent = "$host_vendor"; then
9942 # Use $CC to link under sequent, because it throws in some extra .o
9943 # files that make .init and .fini sections work.
9944 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9945 else
9946 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9947 fi
9948 hardcode_libdir_flag_spec='-L$libdir'
9949 hardcode_direct=yes
9950 hardcode_minus_L=yes
9951 hardcode_shlibpath_var=no
9952 ;;
9953
9954 sysv4)
9955 case $host_vendor in
9956 sni)
9957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9958 hardcode_direct=yes # is this really true???
9959 ;;
9960 siemens)
9961 ## LD is ld it makes a PLAMLIB
9962 ## CC just makes a GrossModule.
9963 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9964 reload_cmds='$CC -r -o $output$reload_objs'
9965 hardcode_direct=no
9966 ;;
9967 motorola)
9968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9969 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9970 ;;
9971 esac
9972 runpath_var='LD_RUN_PATH'
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 sysv4.3*)
9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978 hardcode_shlibpath_var=no
9979 export_dynamic_flag_spec='-Bexport'
9980 ;;
9981
9982 sysv4*MP*)
9983 if test -d /usr/nec; then
9984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9985 hardcode_shlibpath_var=no
9986 runpath_var=LD_RUN_PATH
9987 hardcode_runpath_var=yes
9988 ld_shlibs=yes
9989 fi
9990 ;;
9991
9992 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9993 no_undefined_flag='$wl-z,text'
9994 archive_cmds_need_lc=no
9995 hardcode_shlibpath_var=no
9996 runpath_var='LD_RUN_PATH'
9997
9998 if test yes = "$GCC"; then
9999 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10000 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10001 else
10002 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10003 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10004 fi
10005 ;;
10006
10007 sysv5* | sco3.2v5* | sco5v6*)
10008 # Note: We CANNOT use -z defs as we might desire, because we do not
10009 # link with -lc, and that would cause any symbols used from libc to
10010 # always be unresolved, which means just about no library would
10011 # ever link correctly. If we're not using GNU ld we use -z text
10012 # though, which does catch some bad symbols but isn't as heavy-handed
10013 # as -z defs.
10014 no_undefined_flag='$wl-z,text'
10015 allow_undefined_flag='$wl-z,nodefs'
10016 archive_cmds_need_lc=no
10017 hardcode_shlibpath_var=no
10018 hardcode_libdir_flag_spec='$wl-R,$libdir'
10019 hardcode_libdir_separator=':'
10020 link_all_deplibs=yes
10021 export_dynamic_flag_spec='$wl-Bexport'
10022 runpath_var='LD_RUN_PATH'
10023
10024 if test yes = "$GCC"; then
10025 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027 else
10028 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10029 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030 fi
10031 ;;
10032
10033 uts4*)
10034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035 hardcode_libdir_flag_spec='-L$libdir'
10036 hardcode_shlibpath_var=no
10037 ;;
10038
10039 *)
10040 ld_shlibs=no
10041 ;;
10042 esac
10043
10044 if test sni = "$host_vendor"; then
10045 case $host in
10046 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10047 export_dynamic_flag_spec='$wl-Blargedynsym'
10048 ;;
10049 esac
10050 fi
10051 fi
10052
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10054 $as_echo "$ld_shlibs" >&6; }
10055 test no = "$ld_shlibs" && can_build_shared=no
10056
10057 with_gnu_ld=$with_gnu_ld
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073 #
10074 # Do we need to explicitly link libc?
10075 #
10076 case "x$archive_cmds_need_lc" in
10077 x|xyes)
10078 # Assume -lc should be added
10079 archive_cmds_need_lc=yes
10080
10081 if test yes,yes = "$GCC,$enable_shared"; then
10082 case $archive_cmds in
10083 *'~'*)
10084 # FIXME: we may have to deal with multi-command sequences.
10085 ;;
10086 '$CC '*)
10087 # Test whether the compiler implicitly links with -lc since on some
10088 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10089 # to ld, don't add -lc before -lgcc.
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10091 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10092 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10093 $as_echo_n "(cached) " >&6
10094 else
10095 $RM conftest*
10096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10097
10098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10099 (eval $ac_compile) 2>&5
10100 ac_status=$?
10101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10102 test $ac_status = 0; } 2>conftest.err; then
10103 soname=conftest
10104 lib=conftest
10105 libobjs=conftest.$ac_objext
10106 deplibs=
10107 wl=$lt_prog_compiler_wl
10108 pic_flag=$lt_prog_compiler_pic
10109 compiler_flags=-v
10110 linker_flags=-v
10111 verstring=
10112 output_objdir=.
10113 libname=conftest
10114 lt_save_allow_undefined_flag=$allow_undefined_flag
10115 allow_undefined_flag=
10116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10117 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10118 ac_status=$?
10119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10120 test $ac_status = 0; }
10121 then
10122 lt_cv_archive_cmds_need_lc=no
10123 else
10124 lt_cv_archive_cmds_need_lc=yes
10125 fi
10126 allow_undefined_flag=$lt_save_allow_undefined_flag
10127 else
10128 cat conftest.err 1>&5
10129 fi
10130 $RM conftest*
10131
10132 fi
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10134 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10135 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10136 ;;
10137 esac
10138 fi
10139 ;;
10140 esac
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10294 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10295
10296 if test yes = "$GCC"; then
10297 case $host_os in
10298 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10299 *) lt_awk_arg='/^libraries:/' ;;
10300 esac
10301 case $host_os in
10302 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10303 *) lt_sed_strip_eq='s|=/|/|g' ;;
10304 esac
10305 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10306 case $lt_search_path_spec in
10307 *\;*)
10308 # if the path contains ";" then we assume it to be the separator
10309 # otherwise default to the standard path separator (i.e. ":") - it is
10310 # assumed that no part of a normal pathname contains ";" but that should
10311 # okay in the real world where ";" in dirpaths is itself problematic.
10312 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10313 ;;
10314 *)
10315 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10316 ;;
10317 esac
10318 # Ok, now we have the path, separated by spaces, we can step through it
10319 # and add multilib dir if necessary...
10320 lt_tmp_lt_search_path_spec=
10321 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10322 # ...but if some path component already ends with the multilib dir we assume
10323 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10324 case "$lt_multi_os_dir; $lt_search_path_spec " in
10325 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10326 lt_multi_os_dir=
10327 ;;
10328 esac
10329 for lt_sys_path in $lt_search_path_spec; do
10330 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10331 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10332 elif test -n "$lt_multi_os_dir"; then
10333 test -d "$lt_sys_path" && \
10334 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10335 fi
10336 done
10337 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10338 BEGIN {RS = " "; FS = "/|\n";} {
10339 lt_foo = "";
10340 lt_count = 0;
10341 for (lt_i = NF; lt_i > 0; lt_i--) {
10342 if ($lt_i != "" && $lt_i != ".") {
10343 if ($lt_i == "..") {
10344 lt_count++;
10345 } else {
10346 if (lt_count == 0) {
10347 lt_foo = "/" $lt_i lt_foo;
10348 } else {
10349 lt_count--;
10350 }
10351 }
10352 }
10353 }
10354 if (lt_foo != "") { lt_freq[lt_foo]++; }
10355 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10356 }'`
10357 # AWK program above erroneously prepends '/' to C:/dos/paths
10358 # for these hosts.
10359 case $host_os in
10360 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10361 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10362 esac
10363 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10364 else
10365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10366 fi
10367 library_names_spec=
10368 libname_spec='lib$name'
10369 soname_spec=
10370 shrext_cmds=.so
10371 postinstall_cmds=
10372 postuninstall_cmds=
10373 finish_cmds=
10374 finish_eval=
10375 shlibpath_var=
10376 shlibpath_overrides_runpath=unknown
10377 version_type=none
10378 dynamic_linker="$host_os ld.so"
10379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10380 need_lib_prefix=unknown
10381 hardcode_into_libs=no
10382
10383 # when you set need_version to no, make sure it does not cause -set_version
10384 # flags to be left without arguments
10385 need_version=unknown
10386
10387
10388
10389 case $host_os in
10390 aix3*)
10391 version_type=linux # correct to gnu/linux during the next big refactor
10392 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10393 shlibpath_var=LIBPATH
10394
10395 # AIX 3 has no versioning support, so we append a major version to the name.
10396 soname_spec='$libname$release$shared_ext$major'
10397 ;;
10398
10399 aix[4-9]*)
10400 version_type=linux # correct to gnu/linux during the next big refactor
10401 need_lib_prefix=no
10402 need_version=no
10403 hardcode_into_libs=yes
10404 if test ia64 = "$host_cpu"; then
10405 # AIX 5 supports IA64
10406 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 else
10409 # With GCC up to 2.95.x, collect2 would create an import file
10410 # for dependence libraries. The import file would start with
10411 # the line '#! .'. This would cause the generated library to
10412 # depend on '.', always an invalid library. This was fixed in
10413 # development snapshots of GCC prior to 3.0.
10414 case $host_os in
10415 aix4 | aix4.[01] | aix4.[01].*)
10416 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10417 echo ' yes '
10418 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10419 :
10420 else
10421 can_build_shared=no
10422 fi
10423 ;;
10424 esac
10425 # Using Import Files as archive members, it is possible to support
10426 # filename-based versioning of shared library archives on AIX. While
10427 # this would work for both with and without runtime linking, it will
10428 # prevent static linking of such archives. So we do filename-based
10429 # shared library versioning with .so extension only, which is used
10430 # when both runtime linking and shared linking is enabled.
10431 # Unfortunately, runtime linking may impact performance, so we do
10432 # not want this to be the default eventually. Also, we use the
10433 # versioned .so libs for executables only if there is the -brtl
10434 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10435 # To allow for filename-based versioning support, we need to create
10436 # libNAME.so.V as an archive file, containing:
10437 # *) an Import File, referring to the versioned filename of the
10438 # archive as well as the shared archive member, telling the
10439 # bitwidth (32 or 64) of that shared object, and providing the
10440 # list of exported symbols of that shared object, eventually
10441 # decorated with the 'weak' keyword
10442 # *) the shared object with the F_LOADONLY flag set, to really avoid
10443 # it being seen by the linker.
10444 # At run time we better use the real file rather than another symlink,
10445 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10446
10447 case $with_aix_soname,$aix_use_runtimelinking in
10448 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10449 # soname into executable. Probably we can add versioning support to
10450 # collect2, so additional links can be useful in future.
10451 aix,yes) # traditional libtool
10452 dynamic_linker='AIX unversionable lib.so'
10453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10454 # instead of lib<name>.a to let people know that these are not
10455 # typical AIX shared libraries.
10456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10457 ;;
10458 aix,no) # traditional AIX only
10459 dynamic_linker='AIX lib.a(lib.so.V)'
10460 # We preserve .a as extension for shared libraries through AIX4.2
10461 # and later when we are not doing run time linking.
10462 library_names_spec='$libname$release.a $libname.a'
10463 soname_spec='$libname$release$shared_ext$major'
10464 ;;
10465 svr4,*) # full svr4 only
10466 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10467 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10468 # We do not specify a path in Import Files, so LIBPATH fires.
10469 shlibpath_overrides_runpath=yes
10470 ;;
10471 *,yes) # both, prefer svr4
10472 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10473 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10474 # unpreferred sharedlib libNAME.a needs extra handling
10475 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10476 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10477 # We do not specify a path in Import Files, so LIBPATH fires.
10478 shlibpath_overrides_runpath=yes
10479 ;;
10480 *,no) # both, prefer aix
10481 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10482 library_names_spec='$libname$release.a $libname.a'
10483 soname_spec='$libname$release$shared_ext$major'
10484 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10485 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10486 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10487 ;;
10488 esac
10489 shlibpath_var=LIBPATH
10490 fi
10491 ;;
10492
10493 amigaos*)
10494 case $host_cpu in
10495 powerpc)
10496 # Since July 2007 AmigaOS4 officially supports .so libraries.
10497 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10499 ;;
10500 m68k)
10501 library_names_spec='$libname.ixlibrary $libname.a'
10502 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10503 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10504 ;;
10505 esac
10506 ;;
10507
10508 beos*)
10509 library_names_spec='$libname$shared_ext'
10510 dynamic_linker="$host_os ld.so"
10511 shlibpath_var=LIBRARY_PATH
10512 ;;
10513
10514 bsdi[45]*)
10515 version_type=linux # correct to gnu/linux during the next big refactor
10516 need_version=no
10517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10518 soname_spec='$libname$release$shared_ext$major'
10519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10523 # the default ld.so.conf also contains /usr/contrib/lib and
10524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10525 # libtool to hard-code these into programs
10526 ;;
10527
10528 cygwin* | mingw* | pw32* | cegcc*)
10529 version_type=windows
10530 shrext_cmds=.dll
10531 need_version=no
10532 need_lib_prefix=no
10533
10534 case $GCC,$cc_basename in
10535 yes,*)
10536 # gcc
10537 library_names_spec='$libname.dll.a'
10538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10539 postinstall_cmds='base_file=`basename \$file`~
10540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10541 dldir=$destdir/`dirname \$dlpath`~
10542 test -d \$dldir || mkdir -p \$dldir~
10543 $install_prog $dir/$dlname \$dldir/$dlname~
10544 chmod a+x \$dldir/$dlname~
10545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10547 fi'
10548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10549 dlpath=$dir/\$dldll~
10550 $RM \$dlpath'
10551 shlibpath_overrides_runpath=yes
10552
10553 case $host_os in
10554 cygwin*)
10555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10556 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10557
10558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10559 ;;
10560 mingw* | cegcc*)
10561 # MinGW DLLs use traditional 'lib' prefix
10562 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10563 ;;
10564 pw32*)
10565 # pw32 DLLs use 'pw' prefix rather than 'lib'
10566 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10567 ;;
10568 esac
10569 dynamic_linker='Win32 ld.exe'
10570 ;;
10571
10572 *,cl*)
10573 # Native MSVC
10574 libname_spec='$name'
10575 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10576 library_names_spec='$libname.dll.lib'
10577
10578 case $build_os in
10579 mingw*)
10580 sys_lib_search_path_spec=
10581 lt_save_ifs=$IFS
10582 IFS=';'
10583 for lt_path in $LIB
10584 do
10585 IFS=$lt_save_ifs
10586 # Let DOS variable expansion print the short 8.3 style file name.
10587 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10588 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10589 done
10590 IFS=$lt_save_ifs
10591 # Convert to MSYS style.
10592 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10593 ;;
10594 cygwin*)
10595 # Convert to unix form, then to dos form, then back to unix form
10596 # but this time dos style (no spaces!) so that the unix form looks
10597 # like /cygdrive/c/PROGRA~1:/cygdr...
10598 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10599 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10600 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10601 ;;
10602 *)
10603 sys_lib_search_path_spec=$LIB
10604 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10605 # It is most probably a Windows format PATH.
10606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10607 else
10608 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10609 fi
10610 # FIXME: find the short name or the path components, as spaces are
10611 # common. (e.g. "Program Files" -> "PROGRA~1")
10612 ;;
10613 esac
10614
10615 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10616 postinstall_cmds='base_file=`basename \$file`~
10617 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10618 dldir=$destdir/`dirname \$dlpath`~
10619 test -d \$dldir || mkdir -p \$dldir~
10620 $install_prog $dir/$dlname \$dldir/$dlname'
10621 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10622 dlpath=$dir/\$dldll~
10623 $RM \$dlpath'
10624 shlibpath_overrides_runpath=yes
10625 dynamic_linker='Win32 link.exe'
10626 ;;
10627
10628 *)
10629 # Assume MSVC wrapper
10630 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10631 dynamic_linker='Win32 ld.exe'
10632 ;;
10633 esac
10634 # FIXME: first we should search . and the directory the executable is in
10635 shlibpath_var=PATH
10636 ;;
10637
10638 darwin* | rhapsody*)
10639 dynamic_linker="$host_os dyld"
10640 version_type=darwin
10641 need_lib_prefix=no
10642 need_version=no
10643 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10644 soname_spec='$libname$release$major$shared_ext'
10645 shlibpath_overrides_runpath=yes
10646 shlibpath_var=DYLD_LIBRARY_PATH
10647 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10648
10649 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10650 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10651 ;;
10652
10653 dgux*)
10654 version_type=linux # correct to gnu/linux during the next big refactor
10655 need_lib_prefix=no
10656 need_version=no
10657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10658 soname_spec='$libname$release$shared_ext$major'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 ;;
10661
10662 freebsd* | dragonfly*)
10663 # DragonFly does not have aout. When/if they implement a new
10664 # versioning mechanism, adjust this.
10665 if test -x /usr/bin/objformat; then
10666 objformat=`/usr/bin/objformat`
10667 else
10668 case $host_os in
10669 freebsd[23].*) objformat=aout ;;
10670 *) objformat=elf ;;
10671 esac
10672 fi
10673 version_type=freebsd-$objformat
10674 case $version_type in
10675 freebsd-elf*)
10676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10677 soname_spec='$libname$release$shared_ext$major'
10678 need_version=no
10679 need_lib_prefix=no
10680 ;;
10681 freebsd-*)
10682 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10683 need_version=yes
10684 ;;
10685 esac
10686 shlibpath_var=LD_LIBRARY_PATH
10687 case $host_os in
10688 freebsd2.*)
10689 shlibpath_overrides_runpath=yes
10690 ;;
10691 freebsd3.[01]* | freebsdelf3.[01]*)
10692 shlibpath_overrides_runpath=yes
10693 hardcode_into_libs=yes
10694 ;;
10695 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10696 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10697 shlibpath_overrides_runpath=no
10698 hardcode_into_libs=yes
10699 ;;
10700 *) # from 4.6 on, and DragonFly
10701 shlibpath_overrides_runpath=yes
10702 hardcode_into_libs=yes
10703 ;;
10704 esac
10705 ;;
10706
10707 haiku*)
10708 version_type=linux # correct to gnu/linux during the next big refactor
10709 need_lib_prefix=no
10710 need_version=no
10711 dynamic_linker="$host_os runtime_loader"
10712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10713 soname_spec='$libname$release$shared_ext$major'
10714 shlibpath_var=LIBRARY_PATH
10715 shlibpath_overrides_runpath=no
10716 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10717 hardcode_into_libs=yes
10718 ;;
10719
10720 hpux9* | hpux10* | hpux11*)
10721 # Give a soname corresponding to the major version so that dld.sl refuses to
10722 # link against other versions.
10723 version_type=sunos
10724 need_lib_prefix=no
10725 need_version=no
10726 case $host_cpu in
10727 ia64*)
10728 shrext_cmds='.so'
10729 hardcode_into_libs=yes
10730 dynamic_linker="$host_os dld.so"
10731 shlibpath_var=LD_LIBRARY_PATH
10732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10734 soname_spec='$libname$release$shared_ext$major'
10735 if test 32 = "$HPUX_IA64_MODE"; then
10736 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10737 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10738 else
10739 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10740 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10741 fi
10742 ;;
10743 hppa*64*)
10744 shrext_cmds='.sl'
10745 hardcode_into_libs=yes
10746 dynamic_linker="$host_os dld.sl"
10747 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10748 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10750 soname_spec='$libname$release$shared_ext$major'
10751 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10753 ;;
10754 *)
10755 shrext_cmds='.sl'
10756 dynamic_linker="$host_os dld.sl"
10757 shlibpath_var=SHLIB_PATH
10758 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10760 soname_spec='$libname$release$shared_ext$major'
10761 ;;
10762 esac
10763 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10764 postinstall_cmds='chmod 555 $lib'
10765 # or fails outright, so override atomically:
10766 install_override_mode=555
10767 ;;
10768
10769 interix[3-9]*)
10770 version_type=linux # correct to gnu/linux during the next big refactor
10771 need_lib_prefix=no
10772 need_version=no
10773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10774 soname_spec='$libname$release$shared_ext$major'
10775 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 shlibpath_overrides_runpath=no
10778 hardcode_into_libs=yes
10779 ;;
10780
10781 irix5* | irix6* | nonstopux*)
10782 case $host_os in
10783 nonstopux*) version_type=nonstopux ;;
10784 *)
10785 if test yes = "$lt_cv_prog_gnu_ld"; then
10786 version_type=linux # correct to gnu/linux during the next big refactor
10787 else
10788 version_type=irix
10789 fi ;;
10790 esac
10791 need_lib_prefix=no
10792 need_version=no
10793 soname_spec='$libname$release$shared_ext$major'
10794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10795 case $host_os in
10796 irix5* | nonstopux*)
10797 libsuff= shlibsuff=
10798 ;;
10799 *)
10800 case $LD in # libtool.m4 will add one of these switches to LD
10801 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10802 libsuff= shlibsuff= libmagic=32-bit;;
10803 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10804 libsuff=32 shlibsuff=N32 libmagic=N32;;
10805 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10806 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10807 *) libsuff= shlibsuff= libmagic=never-match;;
10808 esac
10809 ;;
10810 esac
10811 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10812 shlibpath_overrides_runpath=no
10813 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10814 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10815 hardcode_into_libs=yes
10816 ;;
10817
10818 # No shared lib support for Linux oldld, aout, or coff.
10819 linux*oldld* | linux*aout* | linux*coff*)
10820 dynamic_linker=no
10821 ;;
10822
10823 linux*android*)
10824 version_type=none # Android doesn't support versioned libraries.
10825 need_lib_prefix=no
10826 need_version=no
10827 library_names_spec='$libname$release$shared_ext'
10828 soname_spec='$libname$release$shared_ext'
10829 finish_cmds=
10830 shlibpath_var=LD_LIBRARY_PATH
10831 shlibpath_overrides_runpath=yes
10832
10833 # This implies no fast_install, which is unacceptable.
10834 # Some rework will be needed to allow for fast_install
10835 # before this can be enabled.
10836 hardcode_into_libs=yes
10837
10838 dynamic_linker='Android linker'
10839 # Don't embed -rpath directories since the linker doesn't support them.
10840 hardcode_libdir_flag_spec='-L$libdir'
10841 ;;
10842
10843 # This must be glibc/ELF.
10844 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10845 version_type=linux # correct to gnu/linux during the next big refactor
10846 need_lib_prefix=no
10847 need_version=no
10848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10849 soname_spec='$libname$release$shared_ext$major'
10850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10851 shlibpath_var=LD_LIBRARY_PATH
10852 shlibpath_overrides_runpath=no
10853
10854 # Some binutils ld are patched to set DT_RUNPATH
10855 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858 lt_cv_shlibpath_overrides_runpath=no
10859 save_LDFLAGS=$LDFLAGS
10860 save_libdir=$libdir
10861 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10862 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10865
10866 int
10867 main ()
10868 {
10869
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10876 lt_cv_shlibpath_overrides_runpath=yes
10877 fi
10878 fi
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LDFLAGS=$save_LDFLAGS
10882 libdir=$save_libdir
10883
10884 fi
10885
10886 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10887
10888 # This implies no fast_install, which is unacceptable.
10889 # Some rework will be needed to allow for fast_install
10890 # before this can be enabled.
10891 hardcode_into_libs=yes
10892
10893 # Ideally, we could use ldconfig to report *all* directores which are
10894 # searched for libraries, however this is still not possible. Aside from not
10895 # being certain /sbin/ldconfig is available, command
10896 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10897 # even though it is searched at run-time. Try to do the best guess by
10898 # appending ld.so.conf contents (and includes) to the search path.
10899 if test -f /etc/ld.so.conf; then
10900 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' ' '`
10901 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10902 fi
10903
10904 # We used to test for /lib/ld.so.1 and disable shared libraries on
10905 # powerpc, because MkLinux only supported shared libraries with the
10906 # GNU dynamic linker. Since this was broken with cross compilers,
10907 # most powerpc-linux boxes support dynamic linking these days and
10908 # people can always --disable-shared, the test was removed, and we
10909 # assume the GNU/Linux dynamic linker is in use.
10910 dynamic_linker='GNU/Linux ld.so'
10911 ;;
10912
10913 netbsd*)
10914 version_type=sunos
10915 need_lib_prefix=no
10916 need_version=no
10917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10918 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10920 dynamic_linker='NetBSD (a.out) ld.so'
10921 else
10922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10923 soname_spec='$libname$release$shared_ext$major'
10924 dynamic_linker='NetBSD ld.elf_so'
10925 fi
10926 shlibpath_var=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath=yes
10928 hardcode_into_libs=yes
10929 ;;
10930
10931 newsos6)
10932 version_type=linux # correct to gnu/linux during the next big refactor
10933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 shlibpath_overrides_runpath=yes
10936 ;;
10937
10938 *nto* | *qnx*)
10939 version_type=qnx
10940 need_lib_prefix=no
10941 need_version=no
10942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10943 soname_spec='$libname$release$shared_ext$major'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=no
10946 hardcode_into_libs=yes
10947 dynamic_linker='ldqnx.so'
10948 ;;
10949
10950 openbsd* | bitrig*)
10951 version_type=sunos
10952 sys_lib_dlsearch_path_spec=/usr/lib
10953 need_lib_prefix=no
10954 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10955 need_version=no
10956 else
10957 need_version=yes
10958 fi
10959 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 shlibpath_overrides_runpath=yes
10963 ;;
10964
10965 os2*)
10966 libname_spec='$name'
10967 version_type=windows
10968 shrext_cmds=.dll
10969 need_version=no
10970 need_lib_prefix=no
10971 # OS/2 can only load a DLL with a base name of 8 characters or less.
10972 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10973 v=$($ECHO $release$versuffix | tr -d .-);
10974 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10975 $ECHO $n$v`$shared_ext'
10976 library_names_spec='${libname}_dll.$libext'
10977 dynamic_linker='OS/2 ld.exe'
10978 shlibpath_var=BEGINLIBPATH
10979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10981 postinstall_cmds='base_file=`basename \$file`~
10982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10983 dldir=$destdir/`dirname \$dlpath`~
10984 test -d \$dldir || mkdir -p \$dldir~
10985 $install_prog $dir/$dlname \$dldir/$dlname~
10986 chmod a+x \$dldir/$dlname~
10987 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10988 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10989 fi'
10990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10991 dlpath=$dir/\$dldll~
10992 $RM \$dlpath'
10993 ;;
10994
10995 osf3* | osf4* | osf5*)
10996 version_type=osf
10997 need_lib_prefix=no
10998 need_version=no
10999 soname_spec='$libname$release$shared_ext$major'
11000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11001 shlibpath_var=LD_LIBRARY_PATH
11002 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11004 ;;
11005
11006 rdos*)
11007 dynamic_linker=no
11008 ;;
11009
11010 solaris*)
11011 version_type=linux # correct to gnu/linux during the next big refactor
11012 need_lib_prefix=no
11013 need_version=no
11014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11015 soname_spec='$libname$release$shared_ext$major'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 shlibpath_overrides_runpath=yes
11018 hardcode_into_libs=yes
11019 # ldd complains unless libraries are executable
11020 postinstall_cmds='chmod +x $lib'
11021 ;;
11022
11023 sunos4*)
11024 version_type=sunos
11025 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11026 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 shlibpath_overrides_runpath=yes
11029 if test yes = "$with_gnu_ld"; then
11030 need_lib_prefix=no
11031 fi
11032 need_version=yes
11033 ;;
11034
11035 sysv4 | sysv4.3*)
11036 version_type=linux # correct to gnu/linux during the next big refactor
11037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11038 soname_spec='$libname$release$shared_ext$major'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 case $host_vendor in
11041 sni)
11042 shlibpath_overrides_runpath=no
11043 need_lib_prefix=no
11044 runpath_var=LD_RUN_PATH
11045 ;;
11046 siemens)
11047 need_lib_prefix=no
11048 ;;
11049 motorola)
11050 need_lib_prefix=no
11051 need_version=no
11052 shlibpath_overrides_runpath=no
11053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11054 ;;
11055 esac
11056 ;;
11057
11058 sysv4*MP*)
11059 if test -d /usr/nec; then
11060 version_type=linux # correct to gnu/linux during the next big refactor
11061 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11062 soname_spec='$libname$shared_ext.$major'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 fi
11065 ;;
11066
11067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11068 version_type=sco
11069 need_lib_prefix=no
11070 need_version=no
11071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11072 soname_spec='$libname$release$shared_ext$major'
11073 shlibpath_var=LD_LIBRARY_PATH
11074 shlibpath_overrides_runpath=yes
11075 hardcode_into_libs=yes
11076 if test yes = "$with_gnu_ld"; then
11077 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11078 else
11079 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11080 case $host_os in
11081 sco3.2v5*)
11082 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11083 ;;
11084 esac
11085 fi
11086 sys_lib_dlsearch_path_spec='/usr/lib'
11087 ;;
11088
11089 tpf*)
11090 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11091 version_type=linux # correct to gnu/linux during the next big refactor
11092 need_lib_prefix=no
11093 need_version=no
11094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 shlibpath_overrides_runpath=no
11097 hardcode_into_libs=yes
11098 ;;
11099
11100 uts4*)
11101 version_type=linux # correct to gnu/linux during the next big refactor
11102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11103 soname_spec='$libname$release$shared_ext$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 ;;
11106
11107 *)
11108 dynamic_linker=no
11109 ;;
11110 esac
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11112 $as_echo "$dynamic_linker" >&6; }
11113 test no = "$dynamic_linker" && can_build_shared=no
11114
11115 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11116 if test yes = "$GCC"; then
11117 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11118 fi
11119
11120 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11121 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11122 fi
11123
11124 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11125 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11126 fi
11127
11128 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11129 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11130
11131 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11132 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11133
11134 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11135 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11234 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11235 hardcode_action=
11236 if test -n "$hardcode_libdir_flag_spec" ||
11237 test -n "$runpath_var" ||
11238 test yes = "$hardcode_automatic"; then
11239
11240 # We can hardcode non-existent directories.
11241 if test no != "$hardcode_direct" &&
11242 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11243 # have to relink, otherwise we might link with an installed library
11244 # when we should be linking with a yet-to-be-installed one
11245 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11246 test no != "$hardcode_minus_L"; then
11247 # Linking always hardcodes the temporary library directory.
11248 hardcode_action=relink
11249 else
11250 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11251 hardcode_action=immediate
11252 fi
11253 else
11254 # We cannot hardcode anything, or else we can only hardcode existing
11255 # directories.
11256 hardcode_action=unsupported
11257 fi
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11259 $as_echo "$hardcode_action" >&6; }
11260
11261 if test relink = "$hardcode_action" ||
11262 test yes = "$inherit_rpath"; then
11263 # Fast installation is not supported
11264 enable_fast_install=no
11265 elif test yes = "$shlibpath_overrides_runpath" ||
11266 test no = "$enable_shared"; then
11267 # Fast installation is not necessary
11268 enable_fast_install=needless
11269 fi
11270
11271
11272
11273
11274
11275
11276 if test yes != "$enable_dlopen"; then
11277 enable_dlopen=unknown
11278 enable_dlopen_self=unknown
11279 enable_dlopen_self_static=unknown
11280 else
11281 lt_cv_dlopen=no
11282 lt_cv_dlopen_libs=
11283
11284 case $host_os in
11285 beos*)
11286 lt_cv_dlopen=load_add_on
11287 lt_cv_dlopen_libs=
11288 lt_cv_dlopen_self=yes
11289 ;;
11290
11291 mingw* | pw32* | cegcc*)
11292 lt_cv_dlopen=LoadLibrary
11293 lt_cv_dlopen_libs=
11294 ;;
11295
11296 cygwin*)
11297 lt_cv_dlopen=dlopen
11298 lt_cv_dlopen_libs=
11299 ;;
11300
11301 darwin*)
11302 # if libdl is installed we need to link against it
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11304 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11305 if ${ac_cv_lib_dl_dlopen+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 ac_check_lib_save_LIBS=$LIBS
11309 LIBS="-ldl $LIBS"
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11312
11313 /* Override any GCC internal prototype to avoid an error.
11314 Use char because int might match the return type of a GCC
11315 builtin and then its argument prototype would still apply. */
11316 #ifdef __cplusplus
11317 extern "C"
11318 #endif
11319 char dlopen ();
11320 int
11321 main ()
11322 {
11323 return dlopen ();
11324 ;
11325 return 0;
11326 }
11327 _ACEOF
11328 if ac_fn_c_try_link "$LINENO"; then :
11329 ac_cv_lib_dl_dlopen=yes
11330 else
11331 ac_cv_lib_dl_dlopen=no
11332 fi
11333 rm -f core conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11335 LIBS=$ac_check_lib_save_LIBS
11336 fi
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11338 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11339 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11340 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11341 else
11342
11343 lt_cv_dlopen=dyld
11344 lt_cv_dlopen_libs=
11345 lt_cv_dlopen_self=yes
11346
11347 fi
11348
11349 ;;
11350
11351 tpf*)
11352 # Don't try to run any link tests for TPF. We know it's impossible
11353 # because TPF is a cross-compiler, and we know how we open DSOs.
11354 lt_cv_dlopen=dlopen
11355 lt_cv_dlopen_libs=
11356 lt_cv_dlopen_self=no
11357 ;;
11358
11359 *)
11360 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11361 if test "x$ac_cv_func_shl_load" = xyes; then :
11362 lt_cv_dlopen=shl_load
11363 else
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11365 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11366 if ${ac_cv_lib_dld_shl_load+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 ac_check_lib_save_LIBS=$LIBS
11370 LIBS="-ldld $LIBS"
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11373
11374 /* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11377 #ifdef __cplusplus
11378 extern "C"
11379 #endif
11380 char shl_load ();
11381 int
11382 main ()
11383 {
11384 return shl_load ();
11385 ;
11386 return 0;
11387 }
11388 _ACEOF
11389 if ac_fn_c_try_link "$LINENO"; then :
11390 ac_cv_lib_dld_shl_load=yes
11391 else
11392 ac_cv_lib_dld_shl_load=no
11393 fi
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11396 LIBS=$ac_check_lib_save_LIBS
11397 fi
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11399 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11400 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11401 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11402 else
11403 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11404 if test "x$ac_cv_func_dlopen" = xyes; then :
11405 lt_cv_dlopen=dlopen
11406 else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11408 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11409 if ${ac_cv_lib_dl_dlopen+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 ac_check_lib_save_LIBS=$LIBS
11413 LIBS="-ldl $LIBS"
11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11416
11417 /* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
11420 #ifdef __cplusplus
11421 extern "C"
11422 #endif
11423 char dlopen ();
11424 int
11425 main ()
11426 {
11427 return dlopen ();
11428 ;
11429 return 0;
11430 }
11431 _ACEOF
11432 if ac_fn_c_try_link "$LINENO"; then :
11433 ac_cv_lib_dl_dlopen=yes
11434 else
11435 ac_cv_lib_dl_dlopen=no
11436 fi
11437 rm -f core conftest.err conftest.$ac_objext \
11438 conftest$ac_exeext conftest.$ac_ext
11439 LIBS=$ac_check_lib_save_LIBS
11440 fi
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11442 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11443 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11444 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11445 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11447 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11448 if ${ac_cv_lib_svld_dlopen+:} false; then :
11449 $as_echo_n "(cached) " >&6
11450 else
11451 ac_check_lib_save_LIBS=$LIBS
11452 LIBS="-lsvld $LIBS"
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11455
11456 /* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459 #ifdef __cplusplus
11460 extern "C"
11461 #endif
11462 char dlopen ();
11463 int
11464 main ()
11465 {
11466 return dlopen ();
11467 ;
11468 return 0;
11469 }
11470 _ACEOF
11471 if ac_fn_c_try_link "$LINENO"; then :
11472 ac_cv_lib_svld_dlopen=yes
11473 else
11474 ac_cv_lib_svld_dlopen=no
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478 LIBS=$ac_check_lib_save_LIBS
11479 fi
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11481 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11482 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11483 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11484 else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11486 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11487 if ${ac_cv_lib_dld_dld_link+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 ac_check_lib_save_LIBS=$LIBS
11491 LIBS="-ldld $LIBS"
11492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11493 /* end confdefs.h. */
11494
11495 /* Override any GCC internal prototype to avoid an error.
11496 Use char because int might match the return type of a GCC
11497 builtin and then its argument prototype would still apply. */
11498 #ifdef __cplusplus
11499 extern "C"
11500 #endif
11501 char dld_link ();
11502 int
11503 main ()
11504 {
11505 return dld_link ();
11506 ;
11507 return 0;
11508 }
11509 _ACEOF
11510 if ac_fn_c_try_link "$LINENO"; then :
11511 ac_cv_lib_dld_dld_link=yes
11512 else
11513 ac_cv_lib_dld_dld_link=no
11514 fi
11515 rm -f core conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext conftest.$ac_ext
11517 LIBS=$ac_check_lib_save_LIBS
11518 fi
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11520 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11521 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11522 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11523 fi
11524
11525
11526 fi
11527
11528
11529 fi
11530
11531
11532 fi
11533
11534
11535 fi
11536
11537
11538 fi
11539
11540 ;;
11541 esac
11542
11543 if test no = "$lt_cv_dlopen"; then
11544 enable_dlopen=no
11545 else
11546 enable_dlopen=yes
11547 fi
11548
11549 case $lt_cv_dlopen in
11550 dlopen)
11551 save_CPPFLAGS=$CPPFLAGS
11552 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11553
11554 save_LDFLAGS=$LDFLAGS
11555 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11556
11557 save_LIBS=$LIBS
11558 LIBS="$lt_cv_dlopen_libs $LIBS"
11559
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11561 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11562 if ${lt_cv_dlopen_self+:} false; then :
11563 $as_echo_n "(cached) " >&6
11564 else
11565 if test yes = "$cross_compiling"; then :
11566 lt_cv_dlopen_self=cross
11567 else
11568 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11569 lt_status=$lt_dlunknown
11570 cat > conftest.$ac_ext <<_LT_EOF
11571 #line $LINENO "configure"
11572 #include "confdefs.h"
11573
11574 #if HAVE_DLFCN_H
11575 #include <dlfcn.h>
11576 #endif
11577
11578 #include <stdio.h>
11579
11580 #ifdef RTLD_GLOBAL
11581 # define LT_DLGLOBAL RTLD_GLOBAL
11582 #else
11583 # ifdef DL_GLOBAL
11584 # define LT_DLGLOBAL DL_GLOBAL
11585 # else
11586 # define LT_DLGLOBAL 0
11587 # endif
11588 #endif
11589
11590 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11591 find out it does not work in some platform. */
11592 #ifndef LT_DLLAZY_OR_NOW
11593 # ifdef RTLD_LAZY
11594 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11595 # else
11596 # ifdef DL_LAZY
11597 # define LT_DLLAZY_OR_NOW DL_LAZY
11598 # else
11599 # ifdef RTLD_NOW
11600 # define LT_DLLAZY_OR_NOW RTLD_NOW
11601 # else
11602 # ifdef DL_NOW
11603 # define LT_DLLAZY_OR_NOW DL_NOW
11604 # else
11605 # define LT_DLLAZY_OR_NOW 0
11606 # endif
11607 # endif
11608 # endif
11609 # endif
11610 #endif
11611
11612 /* When -fvisibility=hidden is used, assume the code has been annotated
11613 correspondingly for the symbols needed. */
11614 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11615 int fnord () __attribute__((visibility("default")));
11616 #endif
11617
11618 int fnord () { return 42; }
11619 int main ()
11620 {
11621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11622 int status = $lt_dlunknown;
11623
11624 if (self)
11625 {
11626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11627 else
11628 {
11629 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11630 else puts (dlerror ());
11631 }
11632 /* dlclose (self); */
11633 }
11634 else
11635 puts (dlerror ());
11636
11637 return status;
11638 }
11639 _LT_EOF
11640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11641 (eval $ac_link) 2>&5
11642 ac_status=$?
11643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11644 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11645 (./conftest; exit; ) >&5 2>/dev/null
11646 lt_status=$?
11647 case x$lt_status in
11648 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11649 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11650 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11651 esac
11652 else :
11653 # compilation failed
11654 lt_cv_dlopen_self=no
11655 fi
11656 fi
11657 rm -fr conftest*
11658
11659
11660 fi
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11662 $as_echo "$lt_cv_dlopen_self" >&6; }
11663
11664 if test yes = "$lt_cv_dlopen_self"; then
11665 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11667 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11668 if ${lt_cv_dlopen_self_static+:} false; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 if test yes = "$cross_compiling"; then :
11672 lt_cv_dlopen_self_static=cross
11673 else
11674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11675 lt_status=$lt_dlunknown
11676 cat > conftest.$ac_ext <<_LT_EOF
11677 #line $LINENO "configure"
11678 #include "confdefs.h"
11679
11680 #if HAVE_DLFCN_H
11681 #include <dlfcn.h>
11682 #endif
11683
11684 #include <stdio.h>
11685
11686 #ifdef RTLD_GLOBAL
11687 # define LT_DLGLOBAL RTLD_GLOBAL
11688 #else
11689 # ifdef DL_GLOBAL
11690 # define LT_DLGLOBAL DL_GLOBAL
11691 # else
11692 # define LT_DLGLOBAL 0
11693 # endif
11694 #endif
11695
11696 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11697 find out it does not work in some platform. */
11698 #ifndef LT_DLLAZY_OR_NOW
11699 # ifdef RTLD_LAZY
11700 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11701 # else
11702 # ifdef DL_LAZY
11703 # define LT_DLLAZY_OR_NOW DL_LAZY
11704 # else
11705 # ifdef RTLD_NOW
11706 # define LT_DLLAZY_OR_NOW RTLD_NOW
11707 # else
11708 # ifdef DL_NOW
11709 # define LT_DLLAZY_OR_NOW DL_NOW
11710 # else
11711 # define LT_DLLAZY_OR_NOW 0
11712 # endif
11713 # endif
11714 # endif
11715 # endif
11716 #endif
11717
11718 /* When -fvisibility=hidden is used, assume the code has been annotated
11719 correspondingly for the symbols needed. */
11720 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11721 int fnord () __attribute__((visibility("default")));
11722 #endif
11723
11724 int fnord () { return 42; }
11725 int main ()
11726 {
11727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11728 int status = $lt_dlunknown;
11729
11730 if (self)
11731 {
11732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11733 else
11734 {
11735 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11736 else puts (dlerror ());
11737 }
11738 /* dlclose (self); */
11739 }
11740 else
11741 puts (dlerror ());
11742
11743 return status;
11744 }
11745 _LT_EOF
11746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11747 (eval $ac_link) 2>&5
11748 ac_status=$?
11749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11750 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11751 (./conftest; exit; ) >&5 2>/dev/null
11752 lt_status=$?
11753 case x$lt_status in
11754 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11755 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11756 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11757 esac
11758 else :
11759 # compilation failed
11760 lt_cv_dlopen_self_static=no
11761 fi
11762 fi
11763 rm -fr conftest*
11764
11765
11766 fi
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11768 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11769 fi
11770
11771 CPPFLAGS=$save_CPPFLAGS
11772 LDFLAGS=$save_LDFLAGS
11773 LIBS=$save_LIBS
11774 ;;
11775 esac
11776
11777 case $lt_cv_dlopen_self in
11778 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11779 *) enable_dlopen_self=unknown ;;
11780 esac
11781
11782 case $lt_cv_dlopen_self_static in
11783 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11784 *) enable_dlopen_self_static=unknown ;;
11785 esac
11786 fi
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804 striplib=
11805 old_striplib=
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11807 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11808 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11809 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11810 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11812 $as_echo "yes" >&6; }
11813 else
11814 # FIXME - insert some real tests, host_os isn't really good enough
11815 case $host_os in
11816 darwin*)
11817 if test -n "$STRIP"; then
11818 striplib="$STRIP -x"
11819 old_striplib="$STRIP -S"
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11821 $as_echo "yes" >&6; }
11822 else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11825 fi
11826 ;;
11827 *)
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11830 ;;
11831 esac
11832 fi
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845 # Report what library types will actually be built
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11847 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11849 $as_echo "$can_build_shared" >&6; }
11850
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11852 $as_echo_n "checking whether to build shared libraries... " >&6; }
11853 test no = "$can_build_shared" && enable_shared=no
11854
11855 # On AIX, shared libraries and static libraries use the same namespace, and
11856 # are all built from PIC.
11857 case $host_os in
11858 aix3*)
11859 test yes = "$enable_shared" && enable_static=no
11860 if test -n "$RANLIB"; then
11861 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11862 postinstall_cmds='$RANLIB $lib'
11863 fi
11864 ;;
11865
11866 aix[4-9]*)
11867 if test ia64 != "$host_cpu"; then
11868 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11869 yes,aix,yes) ;; # shared object as lib.so file only
11870 yes,svr4,*) ;; # shared object as lib.so archive member only
11871 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11872 esac
11873 fi
11874 ;;
11875 esac
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11877 $as_echo "$enable_shared" >&6; }
11878
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11880 $as_echo_n "checking whether to build static libraries... " >&6; }
11881 # Make sure either enable_shared or enable_static is yes.
11882 test yes = "$enable_shared" || enable_static=yes
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11884 $as_echo "$enable_static" >&6; }
11885
11886
11887
11888
11889 fi
11890 ac_ext=c
11891 ac_cpp='$CPP $CPPFLAGS'
11892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11895
11896 CC=$lt_save_CC
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912 ac_config_commands="$ac_config_commands libtool"
11913
11914
11915
11916
11917 # Only expand once:
11918
11919
11920
11921
11922
11923 ac_ext=c
11924 ac_cpp='$CPP $CPPFLAGS'
11925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11928 if test -n "$ac_tool_prefix"; then
11929 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932 $as_echo_n "checking for $ac_word... " >&6; }
11933 if ${ac_cv_prog_CC+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 if test -n "$CC"; then
11937 ac_cv_prog_CC="$CC" # Let the user override the test.
11938 else
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11941 do
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948 break 2
11949 fi
11950 done
11951 done
11952 IFS=$as_save_IFS
11953
11954 fi
11955 fi
11956 CC=$ac_cv_prog_CC
11957 if test -n "$CC"; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11959 $as_echo "$CC" >&6; }
11960 else
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11963 fi
11964
11965
11966 fi
11967 if test -z "$ac_cv_prog_CC"; then
11968 ac_ct_CC=$CC
11969 # Extract the first word of "gcc", so it can be a program name with args.
11970 set dummy gcc; ac_word=$2
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972 $as_echo_n "checking for $ac_word... " >&6; }
11973 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 if test -n "$ac_ct_CC"; then
11977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11978 else
11979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980 for as_dir in $PATH
11981 do
11982 IFS=$as_save_IFS
11983 test -z "$as_dir" && as_dir=.
11984 for ac_exec_ext in '' $ac_executable_extensions; do
11985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11986 ac_cv_prog_ac_ct_CC="gcc"
11987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988 break 2
11989 fi
11990 done
11991 done
11992 IFS=$as_save_IFS
11993
11994 fi
11995 fi
11996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11997 if test -n "$ac_ct_CC"; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11999 $as_echo "$ac_ct_CC" >&6; }
12000 else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12003 fi
12004
12005 if test "x$ac_ct_CC" = x; then
12006 CC=""
12007 else
12008 case $cross_compiling:$ac_tool_warned in
12009 yes:)
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12012 ac_tool_warned=yes ;;
12013 esac
12014 CC=$ac_ct_CC
12015 fi
12016 else
12017 CC="$ac_cv_prog_CC"
12018 fi
12019
12020 if test -z "$CC"; then
12021 if test -n "$ac_tool_prefix"; then
12022 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12023 set dummy ${ac_tool_prefix}cc; ac_word=$2
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025 $as_echo_n "checking for $ac_word... " >&6; }
12026 if ${ac_cv_prog_CC+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 if test -n "$CC"; then
12030 ac_cv_prog_CC="$CC" # Let the user override the test.
12031 else
12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12034 do
12035 IFS=$as_save_IFS
12036 test -z "$as_dir" && as_dir=.
12037 for ac_exec_ext in '' $ac_executable_extensions; do
12038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12039 ac_cv_prog_CC="${ac_tool_prefix}cc"
12040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12041 break 2
12042 fi
12043 done
12044 done
12045 IFS=$as_save_IFS
12046
12047 fi
12048 fi
12049 CC=$ac_cv_prog_CC
12050 if test -n "$CC"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12052 $as_echo "$CC" >&6; }
12053 else
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056 fi
12057
12058
12059 fi
12060 fi
12061 if test -z "$CC"; then
12062 # Extract the first word of "cc", so it can be a program name with args.
12063 set dummy cc; ac_word=$2
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065 $as_echo_n "checking for $ac_word... " >&6; }
12066 if ${ac_cv_prog_CC+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 if test -n "$CC"; then
12070 ac_cv_prog_CC="$CC" # Let the user override the test.
12071 else
12072 ac_prog_rejected=no
12073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074 for as_dir in $PATH
12075 do
12076 IFS=$as_save_IFS
12077 test -z "$as_dir" && as_dir=.
12078 for ac_exec_ext in '' $ac_executable_extensions; do
12079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12080 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12081 ac_prog_rejected=yes
12082 continue
12083 fi
12084 ac_cv_prog_CC="cc"
12085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 break 2
12087 fi
12088 done
12089 done
12090 IFS=$as_save_IFS
12091
12092 if test $ac_prog_rejected = yes; then
12093 # We found a bogon in the path, so make sure we never use it.
12094 set dummy $ac_cv_prog_CC
12095 shift
12096 if test $# != 0; then
12097 # We chose a different compiler from the bogus one.
12098 # However, it has the same basename, so the bogon will be chosen
12099 # first if we set CC to just the basename; use the full file name.
12100 shift
12101 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12102 fi
12103 fi
12104 fi
12105 fi
12106 CC=$ac_cv_prog_CC
12107 if test -n "$CC"; then
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12109 $as_echo "$CC" >&6; }
12110 else
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112 $as_echo "no" >&6; }
12113 fi
12114
12115
12116 fi
12117 if test -z "$CC"; then
12118 if test -n "$ac_tool_prefix"; then
12119 for ac_prog in cl.exe
12120 do
12121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if ${ac_cv_prog_CC+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 if test -n "$CC"; then
12129 ac_cv_prog_CC="$CC" # Let the user override the test.
12130 else
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12133 do
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140 break 2
12141 fi
12142 done
12143 done
12144 IFS=$as_save_IFS
12145
12146 fi
12147 fi
12148 CC=$ac_cv_prog_CC
12149 if test -n "$CC"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12151 $as_echo "$CC" >&6; }
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156
12157
12158 test -n "$CC" && break
12159 done
12160 fi
12161 if test -z "$CC"; then
12162 ac_ct_CC=$CC
12163 for ac_prog in cl.exe
12164 do
12165 # Extract the first word of "$ac_prog", so it can be a program name with args.
12166 set dummy $ac_prog; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 if test -n "$ac_ct_CC"; then
12173 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12174 else
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12177 do
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182 ac_cv_prog_ac_ct_CC="$ac_prog"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 break 2
12185 fi
12186 done
12187 done
12188 IFS=$as_save_IFS
12189
12190 fi
12191 fi
12192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12193 if test -n "$ac_ct_CC"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12195 $as_echo "$ac_ct_CC" >&6; }
12196 else
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12199 fi
12200
12201
12202 test -n "$ac_ct_CC" && break
12203 done
12204
12205 if test "x$ac_ct_CC" = x; then
12206 CC=""
12207 else
12208 case $cross_compiling:$ac_tool_warned in
12209 yes:)
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12212 ac_tool_warned=yes ;;
12213 esac
12214 CC=$ac_ct_CC
12215 fi
12216 fi
12217
12218 fi
12219
12220
12221 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12223 as_fn_error $? "no acceptable C compiler found in \$PATH
12224 See \`config.log' for more details" "$LINENO" 5; }
12225
12226 # Provide some information about the compiler.
12227 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12228 set X $ac_compile
12229 ac_compiler=$2
12230 for ac_option in --version -v -V -qversion; do
12231 { { ac_try="$ac_compiler $ac_option >&5"
12232 case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12235 esac
12236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12237 $as_echo "$ac_try_echo"; } >&5
12238 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12239 ac_status=$?
12240 if test -s conftest.err; then
12241 sed '10a\
12242 ... rest of stderr output deleted ...
12243 10q' conftest.err >conftest.er1
12244 cat conftest.er1 >&5
12245 fi
12246 rm -f conftest.er1 conftest.err
12247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12248 test $ac_status = 0; }
12249 done
12250
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12252 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12253 if ${ac_cv_c_compiler_gnu+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12258
12259 int
12260 main ()
12261 {
12262 #ifndef __GNUC__
12263 choke me
12264 #endif
12265
12266 ;
12267 return 0;
12268 }
12269 _ACEOF
12270 if ac_fn_c_try_compile "$LINENO"; then :
12271 ac_compiler_gnu=yes
12272 else
12273 ac_compiler_gnu=no
12274 fi
12275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12277
12278 fi
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12280 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12281 if test $ac_compiler_gnu = yes; then
12282 GCC=yes
12283 else
12284 GCC=
12285 fi
12286 ac_test_CFLAGS=${CFLAGS+set}
12287 ac_save_CFLAGS=$CFLAGS
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12289 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12290 if ${ac_cv_prog_cc_g+:} false; then :
12291 $as_echo_n "(cached) " >&6
12292 else
12293 ac_save_c_werror_flag=$ac_c_werror_flag
12294 ac_c_werror_flag=yes
12295 ac_cv_prog_cc_g=no
12296 CFLAGS="-g"
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12299
12300 int
12301 main ()
12302 {
12303
12304 ;
12305 return 0;
12306 }
12307 _ACEOF
12308 if ac_fn_c_try_compile "$LINENO"; then :
12309 ac_cv_prog_cc_g=yes
12310 else
12311 CFLAGS=""
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314
12315 int
12316 main ()
12317 {
12318
12319 ;
12320 return 0;
12321 }
12322 _ACEOF
12323 if ac_fn_c_try_compile "$LINENO"; then :
12324
12325 else
12326 ac_c_werror_flag=$ac_save_c_werror_flag
12327 CFLAGS="-g"
12328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330
12331 int
12332 main ()
12333 {
12334
12335 ;
12336 return 0;
12337 }
12338 _ACEOF
12339 if ac_fn_c_try_compile "$LINENO"; then :
12340 ac_cv_prog_cc_g=yes
12341 fi
12342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12343 fi
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345 fi
12346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12347 ac_c_werror_flag=$ac_save_c_werror_flag
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12350 $as_echo "$ac_cv_prog_cc_g" >&6; }
12351 if test "$ac_test_CFLAGS" = set; then
12352 CFLAGS=$ac_save_CFLAGS
12353 elif test $ac_cv_prog_cc_g = yes; then
12354 if test "$GCC" = yes; then
12355 CFLAGS="-g -O2"
12356 else
12357 CFLAGS="-g"
12358 fi
12359 else
12360 if test "$GCC" = yes; then
12361 CFLAGS="-O2"
12362 else
12363 CFLAGS=
12364 fi
12365 fi
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12367 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12368 if ${ac_cv_prog_cc_c89+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 ac_cv_prog_cc_c89=no
12372 ac_save_CC=$CC
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375 #include <stdarg.h>
12376 #include <stdio.h>
12377 struct stat;
12378 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12379 struct buf { int x; };
12380 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12381 static char *e (p, i)
12382 char **p;
12383 int i;
12384 {
12385 return p[i];
12386 }
12387 static char *f (char * (*g) (char **, int), char **p, ...)
12388 {
12389 char *s;
12390 va_list v;
12391 va_start (v,p);
12392 s = g (p, va_arg (v,int));
12393 va_end (v);
12394 return s;
12395 }
12396
12397 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12398 function prototypes and stuff, but not '\xHH' hex character constants.
12399 These don't provoke an error unfortunately, instead are silently treated
12400 as 'x'. The following induces an error, until -std is added to get
12401 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12402 array size at least. It's necessary to write '\x00'==0 to get something
12403 that's true only with -std. */
12404 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12405
12406 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12407 inside strings and character constants. */
12408 #define FOO(x) 'x'
12409 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12410
12411 int test (int i, double x);
12412 struct s1 {int (*f) (int a);};
12413 struct s2 {int (*f) (double a);};
12414 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12415 int argc;
12416 char **argv;
12417 int
12418 main ()
12419 {
12420 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12421 ;
12422 return 0;
12423 }
12424 _ACEOF
12425 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12426 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12427 do
12428 CC="$ac_save_CC $ac_arg"
12429 if ac_fn_c_try_compile "$LINENO"; then :
12430 ac_cv_prog_cc_c89=$ac_arg
12431 fi
12432 rm -f core conftest.err conftest.$ac_objext
12433 test "x$ac_cv_prog_cc_c89" != "xno" && break
12434 done
12435 rm -f conftest.$ac_ext
12436 CC=$ac_save_CC
12437
12438 fi
12439 # AC_CACHE_VAL
12440 case "x$ac_cv_prog_cc_c89" in
12441 x)
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12443 $as_echo "none needed" >&6; } ;;
12444 xno)
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12446 $as_echo "unsupported" >&6; } ;;
12447 *)
12448 CC="$CC $ac_cv_prog_cc_c89"
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12450 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12451 esac
12452 if test "x$ac_cv_prog_cc_c89" != xno; then :
12453
12454 fi
12455
12456 ac_ext=c
12457 ac_cpp='$CPP $CPPFLAGS'
12458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12461
12462 ac_ext=c
12463 ac_cpp='$CPP $CPPFLAGS'
12464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12468 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12469 if ${am_cv_prog_cc_c_o+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474
12475 int
12476 main ()
12477 {
12478
12479 ;
12480 return 0;
12481 }
12482 _ACEOF
12483 # Make sure it works both with $CC and with simple cc.
12484 # Following AC_PROG_CC_C_O, we do the test twice because some
12485 # compilers refuse to overwrite an existing .o file with -o,
12486 # though they will create one.
12487 am_cv_prog_cc_c_o=yes
12488 for am_i in 1 2; do
12489 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12490 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } \
12494 && test -f conftest2.$ac_objext; then
12495 : OK
12496 else
12497 am_cv_prog_cc_c_o=no
12498 break
12499 fi
12500 done
12501 rm -f core conftest*
12502 unset am_i
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12505 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12506 if test "$am_cv_prog_cc_c_o" != yes; then
12507 # Losing compiler, so override with the script.
12508 # FIXME: It is wrong to rewrite CC.
12509 # But if we don't then we get into trouble of one sort or another.
12510 # A longer-term fix would be to have automake use am__CC in this case,
12511 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12512 CC="$am_aux_dir/compile $CC"
12513 fi
12514 ac_ext=c
12515 ac_cpp='$CPP $CPPFLAGS'
12516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12519
12520
12521
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12523 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12524 if ${ac_cv_prog_cc_c99+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12527 ac_cv_prog_cc_c99=no
12528 ac_save_CC=$CC
12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12531 #include <stdarg.h>
12532 #include <stdbool.h>
12533 #include <stdlib.h>
12534 #include <wchar.h>
12535 #include <stdio.h>
12536
12537 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12538 #define debug(...) fprintf (stderr, __VA_ARGS__)
12539 #define showlist(...) puts (#__VA_ARGS__)
12540 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12541 static void
12542 test_varargs_macros (void)
12543 {
12544 int x = 1234;
12545 int y = 5678;
12546 debug ("Flag");
12547 debug ("X = %d\n", x);
12548 showlist (The first, second, and third items.);
12549 report (x>y, "x is %d but y is %d", x, y);
12550 }
12551
12552 // Check long long types.
12553 #define BIG64 18446744073709551615ull
12554 #define BIG32 4294967295ul
12555 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12556 #if !BIG_OK
12557 your preprocessor is broken;
12558 #endif
12559 #if BIG_OK
12560 #else
12561 your preprocessor is broken;
12562 #endif
12563 static long long int bignum = -9223372036854775807LL;
12564 static unsigned long long int ubignum = BIG64;
12565
12566 struct incomplete_array
12567 {
12568 int datasize;
12569 double data[];
12570 };
12571
12572 struct named_init {
12573 int number;
12574 const wchar_t *name;
12575 double average;
12576 };
12577
12578 typedef const char *ccp;
12579
12580 static inline int
12581 test_restrict (ccp restrict text)
12582 {
12583 // See if C++-style comments work.
12584 // Iterate through items via the restricted pointer.
12585 // Also check for declarations in for loops.
12586 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12587 continue;
12588 return 0;
12589 }
12590
12591 // Check varargs and va_copy.
12592 static void
12593 test_varargs (const char *format, ...)
12594 {
12595 va_list args;
12596 va_start (args, format);
12597 va_list args_copy;
12598 va_copy (args_copy, args);
12599
12600 const char *str;
12601 int number;
12602 float fnumber;
12603
12604 while (*format)
12605 {
12606 switch (*format++)
12607 {
12608 case 's': // string
12609 str = va_arg (args_copy, const char *);
12610 break;
12611 case 'd': // int
12612 number = va_arg (args_copy, int);
12613 break;
12614 case 'f': // float
12615 fnumber = va_arg (args_copy, double);
12616 break;
12617 default:
12618 break;
12619 }
12620 }
12621 va_end (args_copy);
12622 va_end (args);
12623 }
12624
12625 int
12626 main ()
12627 {
12628
12629 // Check bool.
12630 _Bool success = false;
12631
12632 // Check restrict.
12633 if (test_restrict ("String literal") == 0)
12634 success = true;
12635 char *restrict newvar = "Another string";
12636
12637 // Check varargs.
12638 test_varargs ("s, d' f .", "string", 65, 34.234);
12639 test_varargs_macros ();
12640
12641 // Check flexible array members.
12642 struct incomplete_array *ia =
12643 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12644 ia->datasize = 10;
12645 for (int i = 0; i < ia->datasize; ++i)
12646 ia->data[i] = i * 1.234;
12647
12648 // Check named initializers.
12649 struct named_init ni = {
12650 .number = 34,
12651 .name = L"Test wide string",
12652 .average = 543.34343,
12653 };
12654
12655 ni.number = 58;
12656
12657 int dynamic_array[ni.number];
12658 dynamic_array[ni.number - 1] = 543;
12659
12660 // work around unused variable warnings
12661 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12662 || dynamic_array[ni.number - 1] != 543);
12663
12664 ;
12665 return 0;
12666 }
12667 _ACEOF
12668 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12669 do
12670 CC="$ac_save_CC $ac_arg"
12671 if ac_fn_c_try_compile "$LINENO"; then :
12672 ac_cv_prog_cc_c99=$ac_arg
12673 fi
12674 rm -f core conftest.err conftest.$ac_objext
12675 test "x$ac_cv_prog_cc_c99" != "xno" && break
12676 done
12677 rm -f conftest.$ac_ext
12678 CC=$ac_save_CC
12679
12680 fi
12681 # AC_CACHE_VAL
12682 case "x$ac_cv_prog_cc_c99" in
12683 x)
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12685 $as_echo "none needed" >&6; } ;;
12686 xno)
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12688 $as_echo "unsupported" >&6; } ;;
12689 *)
12690 CC="$CC $ac_cv_prog_cc_c99"
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12692 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12693 esac
12694 if test "x$ac_cv_prog_cc_c99" != xno; then :
12695
12696 fi
12697
12698
12699
12700
12701
12702 am__api_version='1.16'
12703
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12705 $as_echo_n "checking whether build environment is sane... " >&6; }
12706 # Reject unsafe characters in $srcdir or the absolute working directory
12707 # name. Accept space and tab only in the latter.
12708 am_lf='
12709 '
12710 case `pwd` in
12711 *[\\\"\#\$\&\'\`$am_lf]*)
12712 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12713 esac
12714 case $srcdir in
12715 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12716 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12717 esac
12718
12719 # Do 'set' in a subshell so we don't clobber the current shell's
12720 # arguments. Must try -L first in case configure is actually a
12721 # symlink; some systems play weird games with the mod time of symlinks
12722 # (eg FreeBSD returns the mod time of the symlink's containing
12723 # directory).
12724 if (
12725 am_has_slept=no
12726 for am_try in 1 2; do
12727 echo "timestamp, slept: $am_has_slept" > conftest.file
12728 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12729 if test "$*" = "X"; then
12730 # -L didn't work.
12731 set X `ls -t "$srcdir/configure" conftest.file`
12732 fi
12733 if test "$*" != "X $srcdir/configure conftest.file" \
12734 && test "$*" != "X conftest.file $srcdir/configure"; then
12735
12736 # If neither matched, then we have a broken ls. This can happen
12737 # if, for instance, CONFIG_SHELL is bash and it inherits a
12738 # broken ls alias from the environment. This has actually
12739 # happened. Such a system could not be considered "sane".
12740 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12741 alias in your environment" "$LINENO" 5
12742 fi
12743 if test "$2" = conftest.file || test $am_try -eq 2; then
12744 break
12745 fi
12746 # Just in case.
12747 sleep 1
12748 am_has_slept=yes
12749 done
12750 test "$2" = conftest.file
12751 )
12752 then
12753 # Ok.
12754 :
12755 else
12756 as_fn_error $? "newly created file is older than distributed files!
12757 Check your system clock" "$LINENO" 5
12758 fi
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760 $as_echo "yes" >&6; }
12761 # If we didn't sleep, we still need to ensure time stamps of config.status and
12762 # generated files are strictly newer.
12763 am_sleep_pid=
12764 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12765 ( sleep 1 ) &
12766 am_sleep_pid=$!
12767 fi
12768
12769 rm -f conftest.file
12770
12771 test "$program_prefix" != NONE &&
12772 program_transform_name="s&^&$program_prefix&;$program_transform_name"
12773 # Use a double $ so make ignores it.
12774 test "$program_suffix" != NONE &&
12775 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
12776 # Double any \ or $.
12777 # By default was `s,x,x', remove it if useless.
12778 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
12779 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
12780
12781 if test x"${install_sh+set}" != xset; then
12782 case $am_aux_dir in
12783 *\ * | *\ *)
12784 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12785 *)
12786 install_sh="\${SHELL} $am_aux_dir/install-sh"
12787 esac
12788 fi
12789
12790 # Installed binaries are usually stripped using 'strip' when the user
12791 # run "make install-strip". However 'strip' might not be the right
12792 # tool to use in cross-compilation environments, therefore Automake
12793 # will honor the 'STRIP' environment variable to overrule this program.
12794 if test "$cross_compiling" != no; then
12795 if test -n "$ac_tool_prefix"; then
12796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12797 set dummy ${ac_tool_prefix}strip; ac_word=$2
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799 $as_echo_n "checking for $ac_word... " >&6; }
12800 if ${ac_cv_prog_STRIP+:} false; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 if test -n "$STRIP"; then
12804 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12805 else
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12808 do
12809 IFS=$as_save_IFS
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
12812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12813 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815 break 2
12816 fi
12817 done
12818 done
12819 IFS=$as_save_IFS
12820
12821 fi
12822 fi
12823 STRIP=$ac_cv_prog_STRIP
12824 if test -n "$STRIP"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12826 $as_echo "$STRIP" >&6; }
12827 else
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12830 fi
12831
12832
12833 fi
12834 if test -z "$ac_cv_prog_STRIP"; then
12835 ac_ct_STRIP=$STRIP
12836 # Extract the first word of "strip", so it can be a program name with args.
12837 set dummy strip; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843 if test -n "$ac_ct_STRIP"; then
12844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12845 else
12846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847 for as_dir in $PATH
12848 do
12849 IFS=$as_save_IFS
12850 test -z "$as_dir" && as_dir=.
12851 for ac_exec_ext in '' $ac_executable_extensions; do
12852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12853 ac_cv_prog_ac_ct_STRIP="strip"
12854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12855 break 2
12856 fi
12857 done
12858 done
12859 IFS=$as_save_IFS
12860
12861 fi
12862 fi
12863 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12864 if test -n "$ac_ct_STRIP"; then
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12866 $as_echo "$ac_ct_STRIP" >&6; }
12867 else
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 $as_echo "no" >&6; }
12870 fi
12871
12872 if test "x$ac_ct_STRIP" = x; then
12873 STRIP=":"
12874 else
12875 case $cross_compiling:$ac_tool_warned in
12876 yes:)
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12879 ac_tool_warned=yes ;;
12880 esac
12881 STRIP=$ac_ct_STRIP
12882 fi
12883 else
12884 STRIP="$ac_cv_prog_STRIP"
12885 fi
12886
12887 fi
12888 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12889
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12891 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12892 if test -z "$MKDIR_P"; then
12893 if ${ac_cv_path_mkdir+:} false; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12898 do
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
12901 for ac_prog in mkdir gmkdir; do
12902 for ac_exec_ext in '' $ac_executable_extensions; do
12903 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12904 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12905 'mkdir (GNU coreutils) '* | \
12906 'mkdir (coreutils) '* | \
12907 'mkdir (fileutils) '4.1*)
12908 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12909 break 3;;
12910 esac
12911 done
12912 done
12913 done
12914 IFS=$as_save_IFS
12915
12916 fi
12917
12918 test -d ./--version && rmdir ./--version
12919 if test "${ac_cv_path_mkdir+set}" = set; then
12920 MKDIR_P="$ac_cv_path_mkdir -p"
12921 else
12922 # As a last resort, use the slow shell script. Don't cache a
12923 # value for MKDIR_P within a source directory, because that will
12924 # break other packages using the cache if that directory is
12925 # removed, or if the value is a relative name.
12926 MKDIR_P="$ac_install_sh -d"
12927 fi
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12930 $as_echo "$MKDIR_P" >&6; }
12931
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12933 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12934 set x ${MAKE-make}
12935 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12936 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12937 $as_echo_n "(cached) " >&6
12938 else
12939 cat >conftest.make <<\_ACEOF
12940 SHELL = /bin/sh
12941 all:
12942 @echo '@@@%%%=$(MAKE)=@@@%%%'
12943 _ACEOF
12944 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12945 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12946 *@@@%%%=?*=@@@%%%*)
12947 eval ac_cv_prog_make_${ac_make}_set=yes;;
12948 *)
12949 eval ac_cv_prog_make_${ac_make}_set=no;;
12950 esac
12951 rm -f conftest.make
12952 fi
12953 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12955 $as_echo "yes" >&6; }
12956 SET_MAKE=
12957 else
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 $as_echo "no" >&6; }
12960 SET_MAKE="MAKE=${MAKE-make}"
12961 fi
12962
12963 rm -rf .tst 2>/dev/null
12964 mkdir .tst 2>/dev/null
12965 if test -d .tst; then
12966 am__leading_dot=.
12967 else
12968 am__leading_dot=_
12969 fi
12970 rmdir .tst 2>/dev/null
12971
12972 DEPDIR="${am__leading_dot}deps"
12973
12974 ac_config_commands="$ac_config_commands depfiles"
12975
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
12977 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
12978 cat > confinc.mk << 'END'
12979 am__doit:
12980 @echo this is the am__doit target >confinc.out
12981 .PHONY: am__doit
12982 END
12983 am__include="#"
12984 am__quote=
12985 # BSD make does it like this.
12986 echo '.include "confinc.mk" # ignored' > confmf.BSD
12987 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
12988 echo 'include confinc.mk # ignored' > confmf.GNU
12989 _am_result=no
12990 for s in GNU BSD; do
12991 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
12992 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }
12996 case $?:`cat confinc.out 2>/dev/null` in #(
12997 '0:this is the am__doit target') :
12998 case $s in #(
12999 BSD) :
13000 am__include='.include' am__quote='"' ;; #(
13001 *) :
13002 am__include='include' am__quote='' ;;
13003 esac ;; #(
13004 *) :
13005 ;;
13006 esac
13007 if test "$am__include" != "#"; then
13008 _am_result="yes ($s style)"
13009 break
13010 fi
13011 done
13012 rm -f confinc.* confmf.*
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
13014 $as_echo "${_am_result}" >&6; }
13015
13016 # Check whether --enable-dependency-tracking was given.
13017 if test "${enable_dependency_tracking+set}" = set; then :
13018 enableval=$enable_dependency_tracking;
13019 fi
13020
13021 if test "x$enable_dependency_tracking" != xno; then
13022 am_depcomp="$ac_aux_dir/depcomp"
13023 AMDEPBACKSLASH='\'
13024 am__nodep='_no'
13025 fi
13026 if test "x$enable_dependency_tracking" != xno; then
13027 AMDEP_TRUE=
13028 AMDEP_FALSE='#'
13029 else
13030 AMDEP_TRUE='#'
13031 AMDEP_FALSE=
13032 fi
13033
13034
13035 # Check whether --enable-silent-rules was given.
13036 if test "${enable_silent_rules+set}" = set; then :
13037 enableval=$enable_silent_rules;
13038 fi
13039
13040 case $enable_silent_rules in # (((
13041 yes) AM_DEFAULT_VERBOSITY=0;;
13042 no) AM_DEFAULT_VERBOSITY=1;;
13043 *) AM_DEFAULT_VERBOSITY=1;;
13044 esac
13045 am_make=${MAKE-make}
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13047 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13048 if ${am_cv_make_support_nested_variables+:} false; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 if $as_echo 'TRUE=$(BAR$(V))
13052 BAR0=false
13053 BAR1=true
13054 V=1
13055 am__doit:
13056 @$(TRUE)
13057 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13058 am_cv_make_support_nested_variables=yes
13059 else
13060 am_cv_make_support_nested_variables=no
13061 fi
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13064 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13065 if test $am_cv_make_support_nested_variables = yes; then
13066 AM_V='$(V)'
13067 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13068 else
13069 AM_V=$AM_DEFAULT_VERBOSITY
13070 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13071 fi
13072 AM_BACKSLASH='\'
13073
13074 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13075 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13076 # is not polluted with repeated "-I."
13077 am__isrc=' -I$(srcdir)'
13078 # test to see if srcdir already configured
13079 if test -f $srcdir/config.status; then
13080 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13081 fi
13082 fi
13083
13084 # test whether we have cygpath
13085 if test -z "$CYGPATH_W"; then
13086 if (cygpath --version) >/dev/null 2>/dev/null; then
13087 CYGPATH_W='cygpath -w'
13088 else
13089 CYGPATH_W=echo
13090 fi
13091 fi
13092
13093
13094 # Define the identity of the package.
13095 PACKAGE='canlock-hp'
13096 VERSION='3.3.1'
13097
13098
13099 cat >>confdefs.h <<_ACEOF
13100 #define PACKAGE "$PACKAGE"
13101 _ACEOF
13102
13103
13104 cat >>confdefs.h <<_ACEOF
13105 #define VERSION "$VERSION"
13106 _ACEOF
13107
13108 # Some tools Automake needs.
13109
13110 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13111
13112
13113 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13114
13115
13116 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13117
13118
13119 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13120
13121
13122 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13123
13124 # For better backward compatibility. To be removed once Automake 1.9.x
13125 # dies out for good. For more background, see:
13126 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13127 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13128 mkdir_p='$(MKDIR_P)'
13129
13130 # We need awk for the "check" target (and possibly the TAP driver). The
13131 # system "awk" is bad on some platforms.
13132 # Always define AMTAR for backward compatibility. Yes, it's still used
13133 # in the wild :-( We should find a proper way to deprecate it ...
13134 AMTAR='$${TAR-tar}'
13135
13136
13137 # We'll loop over all known methods to create a tar archive until one works.
13138 _am_tools='gnutar plaintar pax cpio none'
13139
13140 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
13141 # There is notably a 21 bits limit for the UID and the GID. In fact,
13142 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
13143 # and bug#13588).
13144 am_max_uid=2097151 # 2^21 - 1
13145 am_max_gid=$am_max_uid
13146 # The $UID and $GID variables are not portable, so we need to resort
13147 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
13148 # below are definitely unexpected, so allow the users to see them
13149 # (that is, avoid stderr redirection).
13150 am_uid=`id -u || echo unknown`
13151 am_gid=`id -g || echo unknown`
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
13153 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
13154 if test $am_uid -le $am_max_uid; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13156 $as_echo "yes" >&6; }
13157 else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13160 _am_tools=none
13161 fi
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
13163 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
13164 if test $am_gid -le $am_max_gid; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13166 $as_echo "yes" >&6; }
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13170 _am_tools=none
13171 fi
13172
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
13174 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
13175
13176 # Go ahead even if we have the value already cached. We do so because we
13177 # need to set the values for the 'am__tar' and 'am__untar' variables.
13178 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
13179
13180 for _am_tool in $_am_tools; do
13181 case $_am_tool in
13182 gnutar)
13183 for _am_tar in tar gnutar gtar; do
13184 { echo "$as_me:$LINENO: $_am_tar --version" >&5
13185 ($_am_tar --version) >&5 2>&5
13186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } && break
13189 done
13190 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
13191 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
13192 am__untar="$_am_tar -xf -"
13193 ;;
13194 plaintar)
13195 # Must skip GNU tar: if it does not support --format= it doesn't create
13196 # ustar tarball either.
13197 (tar --version) >/dev/null 2>&1 && continue
13198 am__tar='tar chf - "$$tardir"'
13199 am__tar_='tar chf - "$tardir"'
13200 am__untar='tar xf -'
13201 ;;
13202 pax)
13203 am__tar='pax -L -x ustar -w "$$tardir"'
13204 am__tar_='pax -L -x ustar -w "$tardir"'
13205 am__untar='pax -r'
13206 ;;
13207 cpio)
13208 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
13209 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
13210 am__untar='cpio -i -H ustar -d'
13211 ;;
13212 none)
13213 am__tar=false
13214 am__tar_=false
13215 am__untar=false
13216 ;;
13217 esac
13218
13219 # If the value was cached, stop now. We just wanted to have am__tar
13220 # and am__untar set.
13221 test -n "${am_cv_prog_tar_ustar}" && break
13222
13223 # tar/untar a dummy directory, and stop if the command works.
13224 rm -rf conftest.dir
13225 mkdir conftest.dir
13226 echo GrepMe > conftest.dir/file
13227 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
13228 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }
13232 rm -rf conftest.dir
13233 if test -s conftest.tar; then
13234 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
13235 ($am__untar <conftest.tar) >&5 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }
13239 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
13240 (cat conftest.dir/file) >&5 2>&5
13241 ac_status=$?
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }
13244 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
13245 fi
13246 done
13247 rm -rf conftest.dir
13248
13249 if ${am_cv_prog_tar_ustar+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 am_cv_prog_tar_ustar=$_am_tool
13253 fi
13254
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
13256 $as_echo "$am_cv_prog_tar_ustar" >&6; }
13257
13258
13259
13260
13261
13262 depcc="$CC" am_compiler_list=
13263
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13265 $as_echo_n "checking dependency style of $depcc... " >&6; }
13266 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13270 # We make a subdir and do the tests there. Otherwise we can end up
13271 # making bogus files that we don't know about and never remove. For
13272 # instance it was reported that on HP-UX the gcc test will end up
13273 # making a dummy file named 'D' -- because '-MD' means "put the output
13274 # in D".
13275 rm -rf conftest.dir
13276 mkdir conftest.dir
13277 # Copy depcomp to subdir because otherwise we won't find it if we're
13278 # using a relative directory.
13279 cp "$am_depcomp" conftest.dir
13280 cd conftest.dir
13281 # We will build objects and dependencies in a subdirectory because
13282 # it helps to detect inapplicable dependency modes. For instance
13283 # both Tru64's cc and ICC support -MD to output dependencies as a
13284 # side effect of compilation, but ICC will put the dependencies in
13285 # the current directory while Tru64 will put them in the object
13286 # directory.
13287 mkdir sub
13288
13289 am_cv_CC_dependencies_compiler_type=none
13290 if test "$am_compiler_list" = ""; then
13291 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13292 fi
13293 am__universal=false
13294 case " $depcc " in #(
13295 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13296 esac
13297
13298 for depmode in $am_compiler_list; do
13299 # Setup a source with many dependencies, because some compilers
13300 # like to wrap large dependency lists on column 80 (with \), and
13301 # we should not choose a depcomp mode which is confused by this.
13302 #
13303 # We need to recreate these files for each test, as the compiler may
13304 # overwrite some of them when testing with obscure command lines.
13305 # This happens at least with the AIX C compiler.
13306 : > sub/conftest.c
13307 for i in 1 2 3 4 5 6; do
13308 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13309 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13310 # Solaris 10 /bin/sh.
13311 echo '/* dummy */' > sub/conftst$i.h
13312 done
13313 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13314
13315 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13316 # mode. It turns out that the SunPro C++ compiler does not properly
13317 # handle '-M -o', and we need to detect this. Also, some Intel
13318 # versions had trouble with output in subdirs.
13319 am__obj=sub/conftest.${OBJEXT-o}
13320 am__minus_obj="-o $am__obj"
13321 case $depmode in
13322 gcc)
13323 # This depmode causes a compiler race in universal mode.
13324 test "$am__universal" = false || continue
13325 ;;
13326 nosideeffect)
13327 # After this tag, mechanisms are not by side-effect, so they'll
13328 # only be used when explicitly requested.
13329 if test "x$enable_dependency_tracking" = xyes; then
13330 continue
13331 else
13332 break
13333 fi
13334 ;;
13335 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13336 # This compiler won't grok '-c -o', but also, the minuso test has
13337 # not run yet. These depmodes are late enough in the game, and
13338 # so weak that their functioning should not be impacted.
13339 am__obj=conftest.${OBJEXT-o}
13340 am__minus_obj=
13341 ;;
13342 none) break ;;
13343 esac
13344 if depmode=$depmode \
13345 source=sub/conftest.c object=$am__obj \
13346 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13347 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13348 >/dev/null 2>conftest.err &&
13349 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13350 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13351 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13352 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13353 # icc doesn't choke on unknown options, it will just issue warnings
13354 # or remarks (even with -Werror). So we grep stderr for any message
13355 # that says an option was ignored or not supported.
13356 # When given -MP, icc 7.0 and 7.1 complain thusly:
13357 # icc: Command line warning: ignoring option '-M'; no argument required
13358 # The diagnosis changed in icc 8.0:
13359 # icc: Command line remark: option '-MP' not supported
13360 if (grep 'ignoring option' conftest.err ||
13361 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13362 am_cv_CC_dependencies_compiler_type=$depmode
13363 break
13364 fi
13365 fi
13366 done
13367
13368 cd ..
13369 rm -rf conftest.dir
13370 else
13371 am_cv_CC_dependencies_compiler_type=none
13372 fi
13373
13374 fi
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13376 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13377 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13378
13379 if
13380 test "x$enable_dependency_tracking" != xno \
13381 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13382 am__fastdepCC_TRUE=
13383 am__fastdepCC_FALSE='#'
13384 else
13385 am__fastdepCC_TRUE='#'
13386 am__fastdepCC_FALSE=
13387 fi
13388
13389
13390
13391 # POSIX will say in a future version that running "rm -f" with no argument
13392 # is OK; and we want to be able to make that assumption in our Makefile
13393 # recipes. So use an aggressive probe to check that the usage we want is
13394 # actually supported "in the wild" to an acceptable degree.
13395 # See automake bug#10828.
13396 # To make any issue more visible, cause the running configure to be aborted
13397 # by default if the 'rm' program in use doesn't match our expectations; the
13398 # user can still override this though.
13399 if rm -f && rm -fr && rm -rf; then : OK; else
13400 cat >&2 <<'END'
13401 Oops!
13402
13403 Your 'rm' program seems unable to run without file operands specified
13404 on the command line, even when the '-f' option is present. This is contrary
13405 to the behaviour of most rm programs out there, and not conforming with
13406 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13407
13408 Please tell [email protected] about your system, including the value
13409 of your $PATH and any error possibly output before this message. This
13410 can help us improve future automake versions.
13411
13412 END
13413 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13414 echo 'Configuration will proceed anyway, since you have set the' >&2
13415 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13416 echo >&2
13417 else
13418 cat >&2 <<'END'
13419 Aborting the configuration process, to ensure you take notice of the issue.
13420
13421 You can download and install GNU coreutils to get an 'rm' implementation
13422 that behaves properly: <https://www.gnu.org/software/coreutils/>.
13423
13424 If you want to complete the configuration process using your problematic
13425 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13426 to "yes", and re-run configure.
13427
13428 END
13429 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13430 fi
13431 fi
13432
13433 # Check whether --enable-silent-rules was given.
13434 if test "${enable_silent_rules+set}" = set; then :
13435 enableval=$enable_silent_rules;
13436 fi
13437
13438 case $enable_silent_rules in # (((
13439 yes) AM_DEFAULT_VERBOSITY=0;;
13440 no) AM_DEFAULT_VERBOSITY=1;;
13441 *) AM_DEFAULT_VERBOSITY=0;;
13442 esac
13443 am_make=${MAKE-make}
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13445 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13446 if ${am_cv_make_support_nested_variables+:} false; then :
13447 $as_echo_n "(cached) " >&6
13448 else
13449 if $as_echo 'TRUE=$(BAR$(V))
13450 BAR0=false
13451 BAR1=true
13452 V=1
13453 am__doit:
13454 @$(TRUE)
13455 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13456 am_cv_make_support_nested_variables=yes
13457 else
13458 am_cv_make_support_nested_variables=no
13459 fi
13460 fi
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13462 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13463 if test $am_cv_make_support_nested_variables = yes; then
13464 AM_V='$(V)'
13465 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13466 else
13467 AM_V=$AM_DEFAULT_VERBOSITY
13468 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13469 fi
13470 AM_BACKSLASH='\'
13471
13472
13473 ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile test/Makefile include/Makefile doc/Makefile"
13474
13475
13476 ac_config_files="$ac_config_files src/parser.c"
13477
13478
13479 ac_config_files="$ac_config_files libcanlock-hp-3.pc"
13480
13481
13482
13483
13484 cat >confcache <<\_ACEOF
13485 # This file is a shell script that caches the results of configure
13486 # tests run on this system so they can be shared between configure
13487 # scripts and configure runs, see configure's option --config-cache.
13488 # It is not useful on other systems. If it contains results you don't
13489 # want to keep, you may remove or edit it.
13490 #
13491 # config.status only pays attention to the cache file if you give it
13492 # the --recheck option to rerun configure.
13493 #
13494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13496 # following values.
13497
13498 _ACEOF
13499
13500 # The following way of writing the cache mishandles newlines in values,
13501 # but we know of no workaround that is simple, portable, and efficient.
13502 # So, we kill variables containing newlines.
13503 # Ultrix sh set writes to stderr and can't be redirected directly,
13504 # and sets the high bit in the cache file unless we assign to the vars.
13505 (
13506 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13507 eval ac_val=\$$ac_var
13508 case $ac_val in #(
13509 *${as_nl}*)
13510 case $ac_var in #(
13511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13512 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13513 esac
13514 case $ac_var in #(
13515 _ | IFS | as_nl) ;; #(
13516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13517 *) { eval $ac_var=; unset $ac_var;} ;;
13518 esac ;;
13519 esac
13520 done
13521
13522 (set) 2>&1 |
13523 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13524 *${as_nl}ac_space=\ *)
13525 # `set' does not quote correctly, so add quotes: double-quote
13526 # substitution turns \\\\ into \\, and sed turns \\ into \.
13527 sed -n \
13528 "s/'/'\\\\''/g;
13529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13530 ;; #(
13531 *)
13532 # `set' quotes correctly as required by POSIX, so do not add quotes.
13533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13534 ;;
13535 esac |
13536 sort
13537 ) |
13538 sed '
13539 /^ac_cv_env_/b end
13540 t clear
13541 :clear
13542 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13543 t end
13544 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13545 :end' >>confcache
13546 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13547 if test -w "$cache_file"; then
13548 if test "x$cache_file" != "x/dev/null"; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13550 $as_echo "$as_me: updating cache $cache_file" >&6;}
13551 if test ! -f "$cache_file" || test -h "$cache_file"; then
13552 cat confcache >"$cache_file"
13553 else
13554 case $cache_file in #(
13555 */* | ?:*)
13556 mv -f confcache "$cache_file"$$ &&
13557 mv -f "$cache_file"$$ "$cache_file" ;; #(
13558 *)
13559 mv -f confcache "$cache_file" ;;
13560 esac
13561 fi
13562 fi
13563 else
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13565 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13566 fi
13567 fi
13568 rm -f confcache
13569
13570 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13571 # Let make expand exec_prefix.
13572 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13573
13574 DEFS=-DHAVE_CONFIG_H
13575
13576 ac_libobjs=
13577 ac_ltlibobjs=
13578 U=
13579 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13580 # 1. Remove the extension, and $U if already installed.
13581 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13582 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13583 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13584 # will be set to the directory where LIBOBJS objects are built.
13585 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13586 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13587 done
13588 LIBOBJS=$ac_libobjs
13589
13590 LTLIBOBJS=$ac_ltlibobjs
13591
13592
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13594 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13595 if test -n "$am_sleep_pid"; then
13596 # Hide warnings about reused PIDs.
13597 wait $am_sleep_pid 2>/dev/null
13598 fi
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13600 $as_echo "done" >&6; }
13601 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13602 as_fn_error $? "conditional \"AMDEP\" was never defined.
13603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13604 fi
13605 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13606 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13608 fi
13609 if test -n "$EXEEXT"; then
13610 am__EXEEXT_TRUE=
13611 am__EXEEXT_FALSE='#'
13612 else
13613 am__EXEEXT_TRUE='#'
13614 am__EXEEXT_FALSE=
13615 fi
13616
13617
13618 : "${CONFIG_STATUS=./config.status}"
13619 ac_write_fail=0
13620 ac_clean_files_save=$ac_clean_files
13621 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13623 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13624 as_write_fail=0
13625 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13626 #! $SHELL
13627 # Generated by $as_me.
13628 # Run this file to recreate the current configuration.
13629 # Compiler output produced by configure, useful for debugging
13630 # configure, is in config.log if it exists.
13631
13632 debug=false
13633 ac_cs_recheck=false
13634 ac_cs_silent=false
13635
13636 SHELL=\${CONFIG_SHELL-$SHELL}
13637 export SHELL
13638 _ASEOF
13639 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13640 ## -------------------- ##
13641 ## M4sh Initialization. ##
13642 ## -------------------- ##
13643
13644 # Be more Bourne compatible
13645 DUALCASE=1; export DUALCASE # for MKS sh
13646 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13647 emulate sh
13648 NULLCMD=:
13649 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13650 # is contrary to our usage. Disable this feature.
13651 alias -g '${1+"$@"}'='"$@"'
13652 setopt NO_GLOB_SUBST
13653 else
13654 case `(set -o) 2>/dev/null` in #(
13655 *posix*) :
13656 set -o posix ;; #(
13657 *) :
13658 ;;
13659 esac
13660 fi
13661
13662
13663 as_nl='
13664 '
13665 export as_nl
13666 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13667 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13670 # Prefer a ksh shell builtin over an external printf program on Solaris,
13671 # but without wasting forks for bash or zsh.
13672 if test -z "$BASH_VERSION$ZSH_VERSION" \
13673 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13674 as_echo='print -r --'
13675 as_echo_n='print -rn --'
13676 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13677 as_echo='printf %s\n'
13678 as_echo_n='printf %s'
13679 else
13680 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13681 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13682 as_echo_n='/usr/ucb/echo -n'
13683 else
13684 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13685 as_echo_n_body='eval
13686 arg=$1;
13687 case $arg in #(
13688 *"$as_nl"*)
13689 expr "X$arg" : "X\\(.*\\)$as_nl";
13690 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13691 esac;
13692 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13693 '
13694 export as_echo_n_body
13695 as_echo_n='sh -c $as_echo_n_body as_echo'
13696 fi
13697 export as_echo_body
13698 as_echo='sh -c $as_echo_body as_echo'
13699 fi
13700
13701 # The user is always right.
13702 if test "${PATH_SEPARATOR+set}" != set; then
13703 PATH_SEPARATOR=:
13704 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13705 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13706 PATH_SEPARATOR=';'
13707 }
13708 fi
13709
13710
13711 # IFS
13712 # We need space, tab and new line, in precisely that order. Quoting is
13713 # there to prevent editors from complaining about space-tab.
13714 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13715 # splitting by setting IFS to empty value.)
13716 IFS=" "" $as_nl"
13717
13718 # Find who we are. Look in the path if we contain no directory separator.
13719 as_myself=
13720 case $0 in #((
13721 *[\\/]* ) as_myself=$0 ;;
13722 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $PATH
13724 do
13725 IFS=$as_save_IFS
13726 test -z "$as_dir" && as_dir=.
13727 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13728 done
13729 IFS=$as_save_IFS
13730
13731 ;;
13732 esac
13733 # We did not find ourselves, most probably we were run as `sh COMMAND'
13734 # in which case we are not to be found in the path.
13735 if test "x$as_myself" = x; then
13736 as_myself=$0
13737 fi
13738 if test ! -f "$as_myself"; then
13739 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13740 exit 1
13741 fi
13742
13743 # Unset variables that we do not need and which cause bugs (e.g. in
13744 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13745 # suppresses any "Segmentation fault" message there. '((' could
13746 # trigger a bug in pdksh 5.2.14.
13747 for as_var in BASH_ENV ENV MAIL MAILPATH
13748 do eval test x\${$as_var+set} = xset \
13749 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13750 done
13751 PS1='$ '
13752 PS2='> '
13753 PS4='+ '
13754
13755 # NLS nuisances.
13756 LC_ALL=C
13757 export LC_ALL
13758 LANGUAGE=C
13759 export LANGUAGE
13760
13761 # CDPATH.
13762 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13763
13764
13765 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13766 # ----------------------------------------
13767 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13768 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13769 # script with STATUS, using 1 if that was 0.
13770 as_fn_error ()
13771 {
13772 as_status=$1; test $as_status -eq 0 && as_status=1
13773 if test "$4"; then
13774 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13775 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13776 fi
13777 $as_echo "$as_me: error: $2" >&2
13778 as_fn_exit $as_status
13779 } # as_fn_error
13780
13781
13782 # as_fn_set_status STATUS
13783 # -----------------------
13784 # Set $? to STATUS, without forking.
13785 as_fn_set_status ()
13786 {
13787 return $1
13788 } # as_fn_set_status
13789
13790 # as_fn_exit STATUS
13791 # -----------------
13792 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13793 as_fn_exit ()
13794 {
13795 set +e
13796 as_fn_set_status $1
13797 exit $1
13798 } # as_fn_exit
13799
13800 # as_fn_unset VAR
13801 # ---------------
13802 # Portably unset VAR.
13803 as_fn_unset ()
13804 {
13805 { eval $1=; unset $1;}
13806 }
13807 as_unset=as_fn_unset
13808 # as_fn_append VAR VALUE
13809 # ----------------------
13810 # Append the text in VALUE to the end of the definition contained in VAR. Take
13811 # advantage of any shell optimizations that allow amortized linear growth over
13812 # repeated appends, instead of the typical quadratic growth present in naive
13813 # implementations.
13814 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13815 eval 'as_fn_append ()
13816 {
13817 eval $1+=\$2
13818 }'
13819 else
13820 as_fn_append ()
13821 {
13822 eval $1=\$$1\$2
13823 }
13824 fi # as_fn_append
13825
13826 # as_fn_arith ARG...
13827 # ------------------
13828 # Perform arithmetic evaluation on the ARGs, and store the result in the
13829 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13830 # must be portable across $(()) and expr.
13831 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13832 eval 'as_fn_arith ()
13833 {
13834 as_val=$(( $* ))
13835 }'
13836 else
13837 as_fn_arith ()
13838 {
13839 as_val=`expr "$@" || test $? -eq 1`
13840 }
13841 fi # as_fn_arith
13842
13843
13844 if expr a : '\(a\)' >/dev/null 2>&1 &&
13845 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13846 as_expr=expr
13847 else
13848 as_expr=false
13849 fi
13850
13851 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13852 as_basename=basename
13853 else
13854 as_basename=false
13855 fi
13856
13857 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13858 as_dirname=dirname
13859 else
13860 as_dirname=false
13861 fi
13862
13863 as_me=`$as_basename -- "$0" ||
13864 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13865 X"$0" : 'X\(//\)$' \| \
13866 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13867 $as_echo X/"$0" |
13868 sed '/^.*\/\([^/][^/]*\)\/*$/{
13869 s//\1/
13870 q
13871 }
13872 /^X\/\(\/\/\)$/{
13873 s//\1/
13874 q
13875 }
13876 /^X\/\(\/\).*/{
13877 s//\1/
13878 q
13879 }
13880 s/.*/./; q'`
13881
13882 # Avoid depending upon Character Ranges.
13883 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13884 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13885 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13886 as_cr_digits='0123456789'
13887 as_cr_alnum=$as_cr_Letters$as_cr_digits
13888
13889 ECHO_C= ECHO_N= ECHO_T=
13890 case `echo -n x` in #(((((
13891 -n*)
13892 case `echo 'xy\c'` in
13893 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13894 xy) ECHO_C='\c';;
13895 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13896 ECHO_T=' ';;
13897 esac;;
13898 *)
13899 ECHO_N='-n';;
13900 esac
13901
13902 rm -f conf$$ conf$$.exe conf$$.file
13903 if test -d conf$$.dir; then
13904 rm -f conf$$.dir/conf$$.file
13905 else
13906 rm -f conf$$.dir
13907 mkdir conf$$.dir 2>/dev/null
13908 fi
13909 if (echo >conf$$.file) 2>/dev/null; then
13910 if ln -s conf$$.file conf$$ 2>/dev/null; then
13911 as_ln_s='ln -s'
13912 # ... but there are two gotchas:
13913 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13914 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13915 # In both cases, we have to default to `cp -pR'.
13916 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13917 as_ln_s='cp -pR'
13918 elif ln conf$$.file conf$$ 2>/dev/null; then
13919 as_ln_s=ln
13920 else
13921 as_ln_s='cp -pR'
13922 fi
13923 else
13924 as_ln_s='cp -pR'
13925 fi
13926 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13927 rmdir conf$$.dir 2>/dev/null
13928
13929
13930 # as_fn_mkdir_p
13931 # -------------
13932 # Create "$as_dir" as a directory, including parents if necessary.
13933 as_fn_mkdir_p ()
13934 {
13935
13936 case $as_dir in #(
13937 -*) as_dir=./$as_dir;;
13938 esac
13939 test -d "$as_dir" || eval $as_mkdir_p || {
13940 as_dirs=
13941 while :; do
13942 case $as_dir in #(
13943 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13944 *) as_qdir=$as_dir;;
13945 esac
13946 as_dirs="'$as_qdir' $as_dirs"
13947 as_dir=`$as_dirname -- "$as_dir" ||
13948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13949 X"$as_dir" : 'X\(//\)[^/]' \| \
13950 X"$as_dir" : 'X\(//\)$' \| \
13951 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13952 $as_echo X"$as_dir" |
13953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13954 s//\1/
13955 q
13956 }
13957 /^X\(\/\/\)[^/].*/{
13958 s//\1/
13959 q
13960 }
13961 /^X\(\/\/\)$/{
13962 s//\1/
13963 q
13964 }
13965 /^X\(\/\).*/{
13966 s//\1/
13967 q
13968 }
13969 s/.*/./; q'`
13970 test -d "$as_dir" && break
13971 done
13972 test -z "$as_dirs" || eval "mkdir $as_dirs"
13973 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13974
13975
13976 } # as_fn_mkdir_p
13977 if mkdir -p . 2>/dev/null; then
13978 as_mkdir_p='mkdir -p "$as_dir"'
13979 else
13980 test -d ./-p && rmdir ./-p
13981 as_mkdir_p=false
13982 fi
13983
13984
13985 # as_fn_executable_p FILE
13986 # -----------------------
13987 # Test if FILE is an executable regular file.
13988 as_fn_executable_p ()
13989 {
13990 test -f "$1" && test -x "$1"
13991 } # as_fn_executable_p
13992 as_test_x='test -x'
13993 as_executable_p=as_fn_executable_p
13994
13995 # Sed expression to map a string onto a valid CPP name.
13996 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13997
13998 # Sed expression to map a string onto a valid variable name.
13999 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14000
14001
14002 exec 6>&1
14003 ## ----------------------------------- ##
14004 ## Main body of $CONFIG_STATUS script. ##
14005 ## ----------------------------------- ##
14006 _ASEOF
14007 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14008
14009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010 # Save the log message, to keep $0 and so on meaningful, and to
14011 # report actual input values of CONFIG_FILES etc. instead of their
14012 # values after options handling.
14013 ac_log="
14014 This file was extended by canlock-hp $as_me 3.3.1, which was
14015 generated by GNU Autoconf 2.69. Invocation command line was
14016
14017 CONFIG_FILES = $CONFIG_FILES
14018 CONFIG_HEADERS = $CONFIG_HEADERS
14019 CONFIG_LINKS = $CONFIG_LINKS
14020 CONFIG_COMMANDS = $CONFIG_COMMANDS
14021 $ $0 $@
14022
14023 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14024 "
14025
14026 _ACEOF
14027
14028 case $ac_config_files in *"
14029 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14030 esac
14031
14032 case $ac_config_headers in *"
14033 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14034 esac
14035
14036
14037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14038 # Files that config.status was made for.
14039 config_files="$ac_config_files"
14040 config_headers="$ac_config_headers"
14041 config_commands="$ac_config_commands"
14042
14043 _ACEOF
14044
14045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14046 ac_cs_usage="\
14047 \`$as_me' instantiates files and other configuration actions
14048 from templates according to the current configuration. Unless the files
14049 and actions are specified as TAGs, all are instantiated by default.
14050
14051 Usage: $0 [OPTION]... [TAG]...
14052
14053 -h, --help print this help, then exit
14054 -V, --version print version number and configuration settings, then exit
14055 --config print configuration, then exit
14056 -q, --quiet, --silent
14057 do not print progress messages
14058 -d, --debug don't remove temporary files
14059 --recheck update $as_me by reconfiguring in the same conditions
14060 --file=FILE[:TEMPLATE]
14061 instantiate the configuration file FILE
14062 --header=FILE[:TEMPLATE]
14063 instantiate the configuration header FILE
14064
14065 Configuration files:
14066 $config_files
14067
14068 Configuration headers:
14069 $config_headers
14070
14071 Configuration commands:
14072 $config_commands
14073
14074 Report bugs to <[email protected]>.
14075 canlock-hp home page: <https://micha.freeshell.org/libcanlock>."
14076
14077 _ACEOF
14078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14079 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14080 ac_cs_version="\\
14081 canlock-hp config.status 3.3.1
14082 configured by $0, generated by GNU Autoconf 2.69,
14083 with options \\"\$ac_cs_config\\"
14084
14085 Copyright (C) 2012 Free Software Foundation, Inc.
14086 This config.status script is free software; the Free Software Foundation
14087 gives unlimited permission to copy, distribute and modify it."
14088
14089 ac_pwd='$ac_pwd'
14090 srcdir='$srcdir'
14091 INSTALL='$INSTALL'
14092 MKDIR_P='$MKDIR_P'
14093 AWK='$AWK'
14094 test -n "\$AWK" || AWK=awk
14095 _ACEOF
14096
14097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14098 # The default lists apply if the user does not specify any file.
14099 ac_need_defaults=:
14100 while test $# != 0
14101 do
14102 case $1 in
14103 --*=?*)
14104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14105 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14106 ac_shift=:
14107 ;;
14108 --*=)
14109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14110 ac_optarg=
14111 ac_shift=:
14112 ;;
14113 *)
14114 ac_option=$1
14115 ac_optarg=$2
14116 ac_shift=shift
14117 ;;
14118 esac
14119
14120 case $ac_option in
14121 # Handling of the options.
14122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14123 ac_cs_recheck=: ;;
14124 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14125 $as_echo "$ac_cs_version"; exit ;;
14126 --config | --confi | --conf | --con | --co | --c )
14127 $as_echo "$ac_cs_config"; exit ;;
14128 --debug | --debu | --deb | --de | --d | -d )
14129 debug=: ;;
14130 --file | --fil | --fi | --f )
14131 $ac_shift
14132 case $ac_optarg in
14133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14134 '') as_fn_error $? "missing file argument" ;;
14135 esac
14136 as_fn_append CONFIG_FILES " '$ac_optarg'"
14137 ac_need_defaults=false;;
14138 --header | --heade | --head | --hea )
14139 $ac_shift
14140 case $ac_optarg in
14141 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14142 esac
14143 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14144 ac_need_defaults=false;;
14145 --he | --h)
14146 # Conflict between --help and --header
14147 as_fn_error $? "ambiguous option: \`$1'
14148 Try \`$0 --help' for more information.";;
14149 --help | --hel | -h )
14150 $as_echo "$ac_cs_usage"; exit ;;
14151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14152 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14153 ac_cs_silent=: ;;
14154
14155 # This is an error.
14156 -*) as_fn_error $? "unrecognized option: \`$1'
14157 Try \`$0 --help' for more information." ;;
14158
14159 *) as_fn_append ac_config_targets " $1"
14160 ac_need_defaults=false ;;
14161
14162 esac
14163 shift
14164 done
14165
14166 ac_configure_extra_args=
14167
14168 if $ac_cs_silent; then
14169 exec 6>/dev/null
14170 ac_configure_extra_args="$ac_configure_extra_args --silent"
14171 fi
14172
14173 _ACEOF
14174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14175 if \$ac_cs_recheck; then
14176 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14177 shift
14178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14179 CONFIG_SHELL='$SHELL'
14180 export CONFIG_SHELL
14181 exec "\$@"
14182 fi
14183
14184 _ACEOF
14185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14186 exec 5>>config.log
14187 {
14188 echo
14189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14190 ## Running $as_me. ##
14191 _ASBOX
14192 $as_echo "$ac_log"
14193 } >&5
14194
14195 _ACEOF
14196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14197 #
14198 # INIT-COMMANDS
14199 #
14200
14201
14202 # The HP-UX ksh and POSIX shell print the target directory to stdout
14203 # if CDPATH is set.
14204 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14205
14206 sed_quote_subst='$sed_quote_subst'
14207 double_quote_subst='$double_quote_subst'
14208 delay_variable_subst='$delay_variable_subst'
14209 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14210 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14211 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14212 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14213 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14214 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14215 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14216 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14217 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14218 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14219 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14220 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14221 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14222 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14223 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14224 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14225 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14226 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14227 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14228 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14229 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14230 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14231 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14232 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14233 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14234 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14235 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14236 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14237 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14238 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14239 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14240 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14241 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14242 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14243 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14244 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14245 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14246 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14247 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14248 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14249 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14250 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14251 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14252 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14253 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14254 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14255 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14256 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14257 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14258 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14259 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14260 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14261 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14262 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14263 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14264 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14265 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14266 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14267 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"`'
14268 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14269 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14270 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14271 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14272 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14273 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14274 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14275 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14276 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14277 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14278 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14279 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14280 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14281 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14282 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14283 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14284 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14285 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14286 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14287 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14288 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14289 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14290 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14291 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14292 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14293 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14294 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14295 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14296 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14297 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14298 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14299 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14300 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14301 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14302 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14303 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14304 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14305 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14306 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14307 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14308 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14309 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14310 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14311 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14312 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14313 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14314 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14315 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14316 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14317 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14318 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14319 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14320 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14321 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14322 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14323 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14324 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14325 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14326 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14327 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14328 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14329 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14330 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14331 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14332 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14333 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14334 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14335 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14336 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14337 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14338 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14339 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14340 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14341 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14342 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14343 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14344
14345 LTCC='$LTCC'
14346 LTCFLAGS='$LTCFLAGS'
14347 compiler='$compiler_DEFAULT'
14348
14349 # A function that is used when there is no print builtin or printf.
14350 func_fallback_echo ()
14351 {
14352 eval 'cat <<_LTECHO_EOF
14353 \$1
14354 _LTECHO_EOF'
14355 }
14356
14357 # Quote evaled strings.
14358 for var in SHELL \
14359 ECHO \
14360 PATH_SEPARATOR \
14361 SED \
14362 GREP \
14363 EGREP \
14364 FGREP \
14365 LD \
14366 NM \
14367 LN_S \
14368 lt_SP2NL \
14369 lt_NL2SP \
14370 reload_flag \
14371 OBJDUMP \
14372 deplibs_check_method \
14373 file_magic_cmd \
14374 file_magic_glob \
14375 want_nocaseglob \
14376 DLLTOOL \
14377 sharedlib_from_linklib_cmd \
14378 AR \
14379 AR_FLAGS \
14380 archiver_list_spec \
14381 STRIP \
14382 RANLIB \
14383 CC \
14384 CFLAGS \
14385 compiler \
14386 lt_cv_sys_global_symbol_pipe \
14387 lt_cv_sys_global_symbol_to_cdecl \
14388 lt_cv_sys_global_symbol_to_import \
14389 lt_cv_sys_global_symbol_to_c_name_address \
14390 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14391 lt_cv_nm_interface \
14392 nm_file_list_spec \
14393 lt_cv_truncate_bin \
14394 lt_prog_compiler_no_builtin_flag \
14395 lt_prog_compiler_pic \
14396 lt_prog_compiler_wl \
14397 lt_prog_compiler_static \
14398 lt_cv_prog_compiler_c_o \
14399 need_locks \
14400 MANIFEST_TOOL \
14401 DSYMUTIL \
14402 NMEDIT \
14403 LIPO \
14404 OTOOL \
14405 OTOOL64 \
14406 shrext_cmds \
14407 export_dynamic_flag_spec \
14408 whole_archive_flag_spec \
14409 compiler_needs_object \
14410 with_gnu_ld \
14411 allow_undefined_flag \
14412 no_undefined_flag \
14413 hardcode_libdir_flag_spec \
14414 hardcode_libdir_separator \
14415 exclude_expsyms \
14416 include_expsyms \
14417 file_list_spec \
14418 variables_saved_for_relink \
14419 libname_spec \
14420 library_names_spec \
14421 soname_spec \
14422 install_override_mode \
14423 finish_eval \
14424 old_striplib \
14425 striplib; do
14426 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14427 *[\\\\\\\`\\"\\\$]*)
14428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14429 ;;
14430 *)
14431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14432 ;;
14433 esac
14434 done
14435
14436 # Double-quote double-evaled strings.
14437 for var in reload_cmds \
14438 old_postinstall_cmds \
14439 old_postuninstall_cmds \
14440 old_archive_cmds \
14441 extract_expsyms_cmds \
14442 old_archive_from_new_cmds \
14443 old_archive_from_expsyms_cmds \
14444 archive_cmds \
14445 archive_expsym_cmds \
14446 module_cmds \
14447 module_expsym_cmds \
14448 export_symbols_cmds \
14449 prelink_cmds \
14450 postlink_cmds \
14451 postinstall_cmds \
14452 postuninstall_cmds \
14453 finish_cmds \
14454 sys_lib_search_path_spec \
14455 configure_time_dlsearch_path \
14456 configure_time_lt_sys_library_path; do
14457 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14458 *[\\\\\\\`\\"\\\$]*)
14459 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14460 ;;
14461 *)
14462 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14463 ;;
14464 esac
14465 done
14466
14467 ac_aux_dir='$ac_aux_dir'
14468
14469 # See if we are running on zsh, and set the options that allow our
14470 # commands through without removal of \ escapes INIT.
14471 if test -n "\${ZSH_VERSION+set}"; then
14472 setopt NO_GLOB_SUBST
14473 fi
14474
14475
14476 PACKAGE='$PACKAGE'
14477 VERSION='$VERSION'
14478 RM='$RM'
14479 ofile='$ofile'
14480
14481
14482
14483 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14484
14485 _ACEOF
14486
14487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14488
14489 # Handling of arguments.
14490 for ac_config_target in $ac_config_targets
14491 do
14492 case $ac_config_target in
14493 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14494 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14495 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14496 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14497 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14498 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
14499 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14500 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14501 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14502 "src/parser.c") CONFIG_FILES="$CONFIG_FILES src/parser.c" ;;
14503 "libcanlock-hp-3.pc") CONFIG_FILES="$CONFIG_FILES libcanlock-hp-3.pc" ;;
14504
14505 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14506 esac
14507 done
14508
14509
14510 # If the user did not use the arguments to specify the items to instantiate,
14511 # then the envvar interface is used. Set only those that are not.
14512 # We use the long form for the default assignment because of an extremely
14513 # bizarre bug on SunOS 4.1.3.
14514 if $ac_need_defaults; then
14515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14516 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14517 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14518 fi
14519
14520 # Have a temporary directory for convenience. Make it in the build tree
14521 # simply because there is no reason against having it here, and in addition,
14522 # creating and moving files from /tmp can sometimes cause problems.
14523 # Hook for its removal unless debugging.
14524 # Note that there is a small window in which the directory will not be cleaned:
14525 # after its creation but before its name has been assigned to `$tmp'.
14526 $debug ||
14527 {
14528 tmp= ac_tmp=
14529 trap 'exit_status=$?
14530 : "${ac_tmp:=$tmp}"
14531 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14532 ' 0
14533 trap 'as_fn_exit 1' 1 2 13 15
14534 }
14535 # Create a (secure) tmp directory for tmp files.
14536
14537 {
14538 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14539 test -d "$tmp"
14540 } ||
14541 {
14542 tmp=./conf$$-$RANDOM
14543 (umask 077 && mkdir "$tmp")
14544 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14545 ac_tmp=$tmp
14546
14547 # Set up the scripts for CONFIG_FILES section.
14548 # No need to generate them if there are no CONFIG_FILES.
14549 # This happens for instance with `./config.status config.h'.
14550 if test -n "$CONFIG_FILES"; then
14551
14552
14553 ac_cr=`echo X | tr X '\015'`
14554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14555 # But we know of no other shell where ac_cr would be empty at this
14556 # point, so we can use a bashism as a fallback.
14557 if test "x$ac_cr" = x; then
14558 eval ac_cr=\$\'\\r\'
14559 fi
14560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14562 ac_cs_awk_cr='\\r'
14563 else
14564 ac_cs_awk_cr=$ac_cr
14565 fi
14566
14567 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14568 _ACEOF
14569
14570
14571 {
14572 echo "cat >conf$$subs.awk <<_ACEOF" &&
14573 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14574 echo "_ACEOF"
14575 } >conf$$subs.sh ||
14576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14577 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14578 ac_delim='%!_!# '
14579 for ac_last_try in false false false false false :; do
14580 . ./conf$$subs.sh ||
14581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14582
14583 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14584 if test $ac_delim_n = $ac_delim_num; then
14585 break
14586 elif $ac_last_try; then
14587 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14588 else
14589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14590 fi
14591 done
14592 rm -f conf$$subs.sh
14593
14594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14595 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14596 _ACEOF
14597 sed -n '
14598 h
14599 s/^/S["/; s/!.*/"]=/
14600 p
14601 g
14602 s/^[^!]*!//
14603 :repl
14604 t repl
14605 s/'"$ac_delim"'$//
14606 t delim
14607 :nl
14608 h
14609 s/\(.\{148\}\)..*/\1/
14610 t more1
14611 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14612 p
14613 n
14614 b repl
14615 :more1
14616 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14617 p
14618 g
14619 s/.\{148\}//
14620 t nl
14621 :delim
14622 h
14623 s/\(.\{148\}\)..*/\1/
14624 t more2
14625 s/["\\]/\\&/g; s/^/"/; s/$/"/
14626 p
14627 b
14628 :more2
14629 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14630 p
14631 g
14632 s/.\{148\}//
14633 t delim
14634 ' <conf$$subs.awk | sed '
14635 /^[^""]/{
14636 N
14637 s/\n//
14638 }
14639 ' >>$CONFIG_STATUS || ac_write_fail=1
14640 rm -f conf$$subs.awk
14641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14642 _ACAWK
14643 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14644 for (key in S) S_is_set[key] = 1
14645 FS = ""
14646
14647 }
14648 {
14649 line = $ 0
14650 nfields = split(line, field, "@")
14651 substed = 0
14652 len = length(field[1])
14653 for (i = 2; i < nfields; i++) {
14654 key = field[i]
14655 keylen = length(key)
14656 if (S_is_set[key]) {
14657 value = S[key]
14658 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14659 len += length(value) + length(field[++i])
14660 substed = 1
14661 } else
14662 len += 1 + keylen
14663 }
14664
14665 print line
14666 }
14667
14668 _ACAWK
14669 _ACEOF
14670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14671 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14672 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14673 else
14674 cat
14675 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14676 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14677 _ACEOF
14678
14679 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14680 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14681 # trailing colons and then remove the whole line if VPATH becomes empty
14682 # (actually we leave an empty line to preserve line numbers).
14683 if test "x$srcdir" = x.; then
14684 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14685 h
14686 s///
14687 s/^/:/
14688 s/[ ]*$/:/
14689 s/:\$(srcdir):/:/g
14690 s/:\${srcdir}:/:/g
14691 s/:@srcdir@:/:/g
14692 s/^:*//
14693 s/:*$//
14694 x
14695 s/\(=[ ]*\).*/\1/
14696 G
14697 s/\n//
14698 s/^[^=]*=[ ]*$//
14699 }'
14700 fi
14701
14702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14703 fi # test -n "$CONFIG_FILES"
14704
14705 # Set up the scripts for CONFIG_HEADERS section.
14706 # No need to generate them if there are no CONFIG_HEADERS.
14707 # This happens for instance with `./config.status Makefile'.
14708 if test -n "$CONFIG_HEADERS"; then
14709 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14710 BEGIN {
14711 _ACEOF
14712
14713 # Transform confdefs.h into an awk script `defines.awk', embedded as
14714 # here-document in config.status, that substitutes the proper values into
14715 # config.h.in to produce config.h.
14716
14717 # Create a delimiter string that does not exist in confdefs.h, to ease
14718 # handling of long lines.
14719 ac_delim='%!_!# '
14720 for ac_last_try in false false :; do
14721 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14722 if test -z "$ac_tt"; then
14723 break
14724 elif $ac_last_try; then
14725 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14726 else
14727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14728 fi
14729 done
14730
14731 # For the awk script, D is an array of macro values keyed by name,
14732 # likewise P contains macro parameters if any. Preserve backslash
14733 # newline sequences.
14734
14735 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14736 sed -n '
14737 s/.\{148\}/&'"$ac_delim"'/g
14738 t rset
14739 :rset
14740 s/^[ ]*#[ ]*define[ ][ ]*/ /
14741 t def
14742 d
14743 :def
14744 s/\\$//
14745 t bsnl
14746 s/["\\]/\\&/g
14747 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14748 D["\1"]=" \3"/p
14749 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14750 d
14751 :bsnl
14752 s/["\\]/\\&/g
14753 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14754 D["\1"]=" \3\\\\\\n"\\/p
14755 t cont
14756 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14757 t cont
14758 d
14759 :cont
14760 n
14761 s/.\{148\}/&'"$ac_delim"'/g
14762 t clear
14763 :clear
14764 s/\\$//
14765 t bsnlc
14766 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14767 d
14768 :bsnlc
14769 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14770 b cont
14771 ' <confdefs.h | sed '
14772 s/'"$ac_delim"'/"\\\
14773 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14774
14775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14776 for (key in D) D_is_set[key] = 1
14777 FS = ""
14778 }
14779 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14780 line = \$ 0
14781 split(line, arg, " ")
14782 if (arg[1] == "#") {
14783 defundef = arg[2]
14784 mac1 = arg[3]
14785 } else {
14786 defundef = substr(arg[1], 2)
14787 mac1 = arg[2]
14788 }
14789 split(mac1, mac2, "(") #)
14790 macro = mac2[1]
14791 prefix = substr(line, 1, index(line, defundef) - 1)
14792 if (D_is_set[macro]) {
14793 # Preserve the white space surrounding the "#".
14794 print prefix "define", macro P[macro] D[macro]
14795 next
14796 } else {
14797 # Replace #undef with comments. This is necessary, for example,
14798 # in the case of _POSIX_SOURCE, which is predefined and required
14799 # on some systems where configure will not decide to define it.
14800 if (defundef == "undef") {
14801 print "/*", prefix defundef, macro, "*/"
14802 next
14803 }
14804 }
14805 }
14806 { print }
14807 _ACAWK
14808 _ACEOF
14809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14810 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14811 fi # test -n "$CONFIG_HEADERS"
14812
14813
14814 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14815 shift
14816 for ac_tag
14817 do
14818 case $ac_tag in
14819 :[FHLC]) ac_mode=$ac_tag; continue;;
14820 esac
14821 case $ac_mode$ac_tag in
14822 :[FHL]*:*);;
14823 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14824 :[FH]-) ac_tag=-:-;;
14825 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14826 esac
14827 ac_save_IFS=$IFS
14828 IFS=:
14829 set x $ac_tag
14830 IFS=$ac_save_IFS
14831 shift
14832 ac_file=$1
14833 shift
14834
14835 case $ac_mode in
14836 :L) ac_source=$1;;
14837 :[FH])
14838 ac_file_inputs=
14839 for ac_f
14840 do
14841 case $ac_f in
14842 -) ac_f="$ac_tmp/stdin";;
14843 *) # Look for the file first in the build tree, then in the source tree
14844 # (if the path is not absolute). The absolute path cannot be DOS-style,
14845 # because $ac_f cannot contain `:'.
14846 test -f "$ac_f" ||
14847 case $ac_f in
14848 [\\/$]*) false;;
14849 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14850 esac ||
14851 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14852 esac
14853 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14854 as_fn_append ac_file_inputs " '$ac_f'"
14855 done
14856
14857 # Let's still pretend it is `configure' which instantiates (i.e., don't
14858 # use $as_me), people would be surprised to read:
14859 # /* config.h. Generated by config.status. */
14860 configure_input='Generated from '`
14861 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14862 `' by configure.'
14863 if test x"$ac_file" != x-; then
14864 configure_input="$ac_file. $configure_input"
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14866 $as_echo "$as_me: creating $ac_file" >&6;}
14867 fi
14868 # Neutralize special characters interpreted by sed in replacement strings.
14869 case $configure_input in #(
14870 *\&* | *\|* | *\\* )
14871 ac_sed_conf_input=`$as_echo "$configure_input" |
14872 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14873 *) ac_sed_conf_input=$configure_input;;
14874 esac
14875
14876 case $ac_tag in
14877 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14879 esac
14880 ;;
14881 esac
14882
14883 ac_dir=`$as_dirname -- "$ac_file" ||
14884 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14885 X"$ac_file" : 'X\(//\)[^/]' \| \
14886 X"$ac_file" : 'X\(//\)$' \| \
14887 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14888 $as_echo X"$ac_file" |
14889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14890 s//\1/
14891 q
14892 }
14893 /^X\(\/\/\)[^/].*/{
14894 s//\1/
14895 q
14896 }
14897 /^X\(\/\/\)$/{
14898 s//\1/
14899 q
14900 }
14901 /^X\(\/\).*/{
14902 s//\1/
14903 q
14904 }
14905 s/.*/./; q'`
14906 as_dir="$ac_dir"; as_fn_mkdir_p
14907 ac_builddir=.
14908
14909 case "$ac_dir" in
14910 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14911 *)
14912 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14913 # A ".." for each directory in $ac_dir_suffix.
14914 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14915 case $ac_top_builddir_sub in
14916 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14917 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14918 esac ;;
14919 esac
14920 ac_abs_top_builddir=$ac_pwd
14921 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14922 # for backward compatibility:
14923 ac_top_builddir=$ac_top_build_prefix
14924
14925 case $srcdir in
14926 .) # We are building in place.
14927 ac_srcdir=.
14928 ac_top_srcdir=$ac_top_builddir_sub
14929 ac_abs_top_srcdir=$ac_pwd ;;
14930 [\\/]* | ?:[\\/]* ) # Absolute name.
14931 ac_srcdir=$srcdir$ac_dir_suffix;
14932 ac_top_srcdir=$srcdir
14933 ac_abs_top_srcdir=$srcdir ;;
14934 *) # Relative name.
14935 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14936 ac_top_srcdir=$ac_top_build_prefix$srcdir
14937 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14938 esac
14939 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14940
14941
14942 case $ac_mode in
14943 :F)
14944 #
14945 # CONFIG_FILE
14946 #
14947
14948 case $INSTALL in
14949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14950 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14951 esac
14952 ac_MKDIR_P=$MKDIR_P
14953 case $MKDIR_P in
14954 [\\/$]* | ?:[\\/]* ) ;;
14955 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14956 esac
14957 _ACEOF
14958
14959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14960 # If the template does not know about datarootdir, expand it.
14961 # FIXME: This hack should be removed a few years after 2.60.
14962 ac_datarootdir_hack=; ac_datarootdir_seen=
14963 ac_sed_dataroot='
14964 /datarootdir/ {
14965 p
14966 q
14967 }
14968 /@datadir@/p
14969 /@docdir@/p
14970 /@infodir@/p
14971 /@localedir@/p
14972 /@mandir@/p'
14973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14974 *datarootdir*) ac_datarootdir_seen=yes;;
14975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14978 _ACEOF
14979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14980 ac_datarootdir_hack='
14981 s&@datadir@&$datadir&g
14982 s&@docdir@&$docdir&g
14983 s&@infodir@&$infodir&g
14984 s&@localedir@&$localedir&g
14985 s&@mandir@&$mandir&g
14986 s&\\\${datarootdir}&$datarootdir&g' ;;
14987 esac
14988 _ACEOF
14989
14990 # Neutralize VPATH when `$srcdir' = `.'.
14991 # Shell code in configure.ac might set extrasub.
14992 # FIXME: do we really want to maintain this feature?
14993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14994 ac_sed_extra="$ac_vpsub
14995 $extrasub
14996 _ACEOF
14997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14998 :t
14999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15000 s|@configure_input@|$ac_sed_conf_input|;t t
15001 s&@top_builddir@&$ac_top_builddir_sub&;t t
15002 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15003 s&@srcdir@&$ac_srcdir&;t t
15004 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15005 s&@top_srcdir@&$ac_top_srcdir&;t t
15006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15007 s&@builddir@&$ac_builddir&;t t
15008 s&@abs_builddir@&$ac_abs_builddir&;t t
15009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15010 s&@INSTALL@&$ac_INSTALL&;t t
15011 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15012 $ac_datarootdir_hack
15013 "
15014 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15015 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15016
15017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15018 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15020 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15022 which seems to be undefined. Please make sure it is defined" >&5
15023 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15024 which seems to be undefined. Please make sure it is defined" >&2;}
15025
15026 rm -f "$ac_tmp/stdin"
15027 case $ac_file in
15028 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15029 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15030 esac \
15031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15032 ;;
15033 :H)
15034 #
15035 # CONFIG_HEADER
15036 #
15037 if test x"$ac_file" != x-; then
15038 {
15039 $as_echo "/* $configure_input */" \
15040 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15041 } >"$ac_tmp/config.h" \
15042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15043 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15045 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15046 else
15047 rm -f "$ac_file"
15048 mv "$ac_tmp/config.h" "$ac_file" \
15049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15050 fi
15051 else
15052 $as_echo "/* $configure_input */" \
15053 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15054 || as_fn_error $? "could not create -" "$LINENO" 5
15055 fi
15056 # Compute "$ac_file"'s index in $config_headers.
15057 _am_arg="$ac_file"
15058 _am_stamp_count=1
15059 for _am_header in $config_headers :; do
15060 case $_am_header in
15061 $_am_arg | $_am_arg:* )
15062 break ;;
15063 * )
15064 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15065 esac
15066 done
15067 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15068 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15069 X"$_am_arg" : 'X\(//\)[^/]' \| \
15070 X"$_am_arg" : 'X\(//\)$' \| \
15071 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15072 $as_echo X"$_am_arg" |
15073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15074 s//\1/
15075 q
15076 }
15077 /^X\(\/\/\)[^/].*/{
15078 s//\1/
15079 q
15080 }
15081 /^X\(\/\/\)$/{
15082 s//\1/
15083 q
15084 }
15085 /^X\(\/\).*/{
15086 s//\1/
15087 q
15088 }
15089 s/.*/./; q'`/stamp-h$_am_stamp_count
15090 ;;
15091
15092 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15093 $as_echo "$as_me: executing $ac_file commands" >&6;}
15094 ;;
15095 esac
15096
15097
15098 case $ac_file$ac_mode in
15099 "libtool":C)
15100
15101 # See if we are running on zsh, and set the options that allow our
15102 # commands through without removal of \ escapes.
15103 if test -n "${ZSH_VERSION+set}"; then
15104 setopt NO_GLOB_SUBST
15105 fi
15106
15107 cfgfile=${ofile}T
15108 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15109 $RM "$cfgfile"
15110
15111 cat <<_LT_EOF >> "$cfgfile"
15112 #! $SHELL
15113 # Generated automatically by $as_me ($PACKAGE) $VERSION
15114 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15115 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15116
15117 # Provide generalized library-building support services.
15118 # Written by Gordon Matzigkeit, 1996
15119
15120 # Copyright (C) 2014 Free Software Foundation, Inc.
15121 # This is free software; see the source for copying conditions. There is NO
15122 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15123
15124 # GNU Libtool is free software; you can redistribute it and/or modify
15125 # it under the terms of the GNU General Public License as published by
15126 # the Free Software Foundation; either version 2 of of the License, or
15127 # (at your option) any later version.
15128 #
15129 # As a special exception to the GNU General Public License, if you
15130 # distribute this file as part of a program or library that is built
15131 # using GNU Libtool, you may include this file under the same
15132 # distribution terms that you use for the rest of that program.
15133 #
15134 # GNU Libtool is distributed in the hope that it will be useful, but
15135 # WITHOUT ANY WARRANTY; without even the implied warranty of
15136 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15137 # GNU General Public License for more details.
15138 #
15139 # You should have received a copy of the GNU General Public License
15140 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15141
15142
15143 # The names of the tagged configurations supported by this script.
15144 available_tags=''
15145
15146 # Configured defaults for sys_lib_dlsearch_path munging.
15147 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15148
15149 # ### BEGIN LIBTOOL CONFIG
15150
15151 # Which release of libtool.m4 was used?
15152 macro_version=$macro_version
15153 macro_revision=$macro_revision
15154
15155 # Whether or not to build shared libraries.
15156 build_libtool_libs=$enable_shared
15157
15158 # Whether or not to build static libraries.
15159 build_old_libs=$enable_static
15160
15161 # What type of objects to build.
15162 pic_mode=$pic_mode
15163
15164 # Whether or not to optimize for fast installation.
15165 fast_install=$enable_fast_install
15166
15167 # Shared archive member basename,for filename based shared library versioning on AIX.
15168 shared_archive_member_spec=$shared_archive_member_spec
15169
15170 # Shell to use when invoking shell scripts.
15171 SHELL=$lt_SHELL
15172
15173 # An echo program that protects backslashes.
15174 ECHO=$lt_ECHO
15175
15176 # The PATH separator for the build system.
15177 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15178
15179 # The host system.
15180 host_alias=$host_alias
15181 host=$host
15182 host_os=$host_os
15183
15184 # The build system.
15185 build_alias=$build_alias
15186 build=$build
15187 build_os=$build_os
15188
15189 # A sed program that does not truncate output.
15190 SED=$lt_SED
15191
15192 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15193 Xsed="\$SED -e 1s/^X//"
15194
15195 # A grep program that handles long lines.
15196 GREP=$lt_GREP
15197
15198 # An ERE matcher.
15199 EGREP=$lt_EGREP
15200
15201 # A literal string matcher.
15202 FGREP=$lt_FGREP
15203
15204 # A BSD- or MS-compatible name lister.
15205 NM=$lt_NM
15206
15207 # Whether we need soft or hard links.
15208 LN_S=$lt_LN_S
15209
15210 # What is the maximum length of a command?
15211 max_cmd_len=$max_cmd_len
15212
15213 # Object file suffix (normally "o").
15214 objext=$ac_objext
15215
15216 # Executable file suffix (normally "").
15217 exeext=$exeext
15218
15219 # whether the shell understands "unset".
15220 lt_unset=$lt_unset
15221
15222 # turn spaces into newlines.
15223 SP2NL=$lt_lt_SP2NL
15224
15225 # turn newlines into spaces.
15226 NL2SP=$lt_lt_NL2SP
15227
15228 # convert \$build file names to \$host format.
15229 to_host_file_cmd=$lt_cv_to_host_file_cmd
15230
15231 # convert \$build files to toolchain format.
15232 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15233
15234 # An object symbol dumper.
15235 OBJDUMP=$lt_OBJDUMP
15236
15237 # Method to check whether dependent libraries are shared objects.
15238 deplibs_check_method=$lt_deplibs_check_method
15239
15240 # Command to use when deplibs_check_method = "file_magic".
15241 file_magic_cmd=$lt_file_magic_cmd
15242
15243 # How to find potential files when deplibs_check_method = "file_magic".
15244 file_magic_glob=$lt_file_magic_glob
15245
15246 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15247 want_nocaseglob=$lt_want_nocaseglob
15248
15249 # DLL creation program.
15250 DLLTOOL=$lt_DLLTOOL
15251
15252 # Command to associate shared and link libraries.
15253 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15254
15255 # The archiver.
15256 AR=$lt_AR
15257
15258 # Flags to create an archive.
15259 AR_FLAGS=$lt_AR_FLAGS
15260
15261 # How to feed a file listing to the archiver.
15262 archiver_list_spec=$lt_archiver_list_spec
15263
15264 # A symbol stripping program.
15265 STRIP=$lt_STRIP
15266
15267 # Commands used to install an old-style archive.
15268 RANLIB=$lt_RANLIB
15269 old_postinstall_cmds=$lt_old_postinstall_cmds
15270 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15271
15272 # Whether to use a lock for old archive extraction.
15273 lock_old_archive_extraction=$lock_old_archive_extraction
15274
15275 # A C compiler.
15276 LTCC=$lt_CC
15277
15278 # LTCC compiler flags.
15279 LTCFLAGS=$lt_CFLAGS
15280
15281 # Take the output of nm and produce a listing of raw symbols and C names.
15282 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15283
15284 # Transform the output of nm in a proper C declaration.
15285 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15286
15287 # Transform the output of nm into a list of symbols to manually relocate.
15288 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15289
15290 # Transform the output of nm in a C name address pair.
15291 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15292
15293 # Transform the output of nm in a C name address pair when lib prefix is needed.
15294 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15295
15296 # The name lister interface.
15297 nm_interface=$lt_lt_cv_nm_interface
15298
15299 # Specify filename containing input files for \$NM.
15300 nm_file_list_spec=$lt_nm_file_list_spec
15301
15302 # The root where to search for dependent libraries,and where our libraries should be installed.
15303 lt_sysroot=$lt_sysroot
15304
15305 # Command to truncate a binary pipe.
15306 lt_truncate_bin=$lt_lt_cv_truncate_bin
15307
15308 # The name of the directory that contains temporary libtool files.
15309 objdir=$objdir
15310
15311 # Used to examine libraries when file_magic_cmd begins with "file".
15312 MAGIC_CMD=$MAGIC_CMD
15313
15314 # Must we lock files when doing compilation?
15315 need_locks=$lt_need_locks
15316
15317 # Manifest tool.
15318 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15319
15320 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15321 DSYMUTIL=$lt_DSYMUTIL
15322
15323 # Tool to change global to local symbols on Mac OS X.
15324 NMEDIT=$lt_NMEDIT
15325
15326 # Tool to manipulate fat objects and archives on Mac OS X.
15327 LIPO=$lt_LIPO
15328
15329 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15330 OTOOL=$lt_OTOOL
15331
15332 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15333 OTOOL64=$lt_OTOOL64
15334
15335 # Old archive suffix (normally "a").
15336 libext=$libext
15337
15338 # Shared library suffix (normally ".so").
15339 shrext_cmds=$lt_shrext_cmds
15340
15341 # The commands to extract the exported symbol list from a shared archive.
15342 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15343
15344 # Variables whose values should be saved in libtool wrapper scripts and
15345 # restored at link time.
15346 variables_saved_for_relink=$lt_variables_saved_for_relink
15347
15348 # Do we need the "lib" prefix for modules?
15349 need_lib_prefix=$need_lib_prefix
15350
15351 # Do we need a version for libraries?
15352 need_version=$need_version
15353
15354 # Library versioning type.
15355 version_type=$version_type
15356
15357 # Shared library runtime path variable.
15358 runpath_var=$runpath_var
15359
15360 # Shared library path variable.
15361 shlibpath_var=$shlibpath_var
15362
15363 # Is shlibpath searched before the hard-coded library search path?
15364 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15365
15366 # Format of library name prefix.
15367 libname_spec=$lt_libname_spec
15368
15369 # List of archive names. First name is the real one, the rest are links.
15370 # The last name is the one that the linker finds with -lNAME
15371 library_names_spec=$lt_library_names_spec
15372
15373 # The coded name of the library, if different from the real name.
15374 soname_spec=$lt_soname_spec
15375
15376 # Permission mode override for installation of shared libraries.
15377 install_override_mode=$lt_install_override_mode
15378
15379 # Command to use after installation of a shared archive.
15380 postinstall_cmds=$lt_postinstall_cmds
15381
15382 # Command to use after uninstallation of a shared archive.
15383 postuninstall_cmds=$lt_postuninstall_cmds
15384
15385 # Commands used to finish a libtool library installation in a directory.
15386 finish_cmds=$lt_finish_cmds
15387
15388 # As "finish_cmds", except a single script fragment to be evaled but
15389 # not shown.
15390 finish_eval=$lt_finish_eval
15391
15392 # Whether we should hardcode library paths into libraries.
15393 hardcode_into_libs=$hardcode_into_libs
15394
15395 # Compile-time system search path for libraries.
15396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15397
15398 # Detected run-time system search path for libraries.
15399 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15400
15401 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15402 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15403
15404 # Whether dlopen is supported.
15405 dlopen_support=$enable_dlopen
15406
15407 # Whether dlopen of programs is supported.
15408 dlopen_self=$enable_dlopen_self
15409
15410 # Whether dlopen of statically linked programs is supported.
15411 dlopen_self_static=$enable_dlopen_self_static
15412
15413 # Commands to strip libraries.
15414 old_striplib=$lt_old_striplib
15415 striplib=$lt_striplib
15416
15417
15418 # The linker used to build libraries.
15419 LD=$lt_LD
15420
15421 # How to create reloadable object files.
15422 reload_flag=$lt_reload_flag
15423 reload_cmds=$lt_reload_cmds
15424
15425 # Commands used to build an old-style archive.
15426 old_archive_cmds=$lt_old_archive_cmds
15427
15428 # A language specific compiler.
15429 CC=$lt_compiler
15430
15431 # Is the compiler the GNU compiler?
15432 with_gcc=$GCC
15433
15434 # Compiler flag to turn off builtin functions.
15435 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15436
15437 # Additional compiler flags for building library objects.
15438 pic_flag=$lt_lt_prog_compiler_pic
15439
15440 # How to pass a linker flag through the compiler.
15441 wl=$lt_lt_prog_compiler_wl
15442
15443 # Compiler flag to prevent dynamic linking.
15444 link_static_flag=$lt_lt_prog_compiler_static
15445
15446 # Does compiler simultaneously support -c and -o options?
15447 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15448
15449 # Whether or not to add -lc for building shared libraries.
15450 build_libtool_need_lc=$archive_cmds_need_lc
15451
15452 # Whether or not to disallow shared libs when runtime libs are static.
15453 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15454
15455 # Compiler flag to allow reflexive dlopens.
15456 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15457
15458 # Compiler flag to generate shared objects directly from archives.
15459 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15460
15461 # Whether the compiler copes with passing no objects directly.
15462 compiler_needs_object=$lt_compiler_needs_object
15463
15464 # Create an old-style archive from a shared archive.
15465 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15466
15467 # Create a temporary old-style archive to link instead of a shared archive.
15468 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15469
15470 # Commands used to build a shared archive.
15471 archive_cmds=$lt_archive_cmds
15472 archive_expsym_cmds=$lt_archive_expsym_cmds
15473
15474 # Commands used to build a loadable module if different from building
15475 # a shared archive.
15476 module_cmds=$lt_module_cmds
15477 module_expsym_cmds=$lt_module_expsym_cmds
15478
15479 # Whether we are building with GNU ld or not.
15480 with_gnu_ld=$lt_with_gnu_ld
15481
15482 # Flag that allows shared libraries with undefined symbols to be built.
15483 allow_undefined_flag=$lt_allow_undefined_flag
15484
15485 # Flag that enforces no undefined symbols.
15486 no_undefined_flag=$lt_no_undefined_flag
15487
15488 # Flag to hardcode \$libdir into a binary during linking.
15489 # This must work even if \$libdir does not exist
15490 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15491
15492 # Whether we need a single "-rpath" flag with a separated argument.
15493 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15494
15495 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15496 # DIR into the resulting binary.
15497 hardcode_direct=$hardcode_direct
15498
15499 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15500 # DIR into the resulting binary and the resulting library dependency is
15501 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15502 # library is relocated.
15503 hardcode_direct_absolute=$hardcode_direct_absolute
15504
15505 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15506 # into the resulting binary.
15507 hardcode_minus_L=$hardcode_minus_L
15508
15509 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15510 # into the resulting binary.
15511 hardcode_shlibpath_var=$hardcode_shlibpath_var
15512
15513 # Set to "yes" if building a shared library automatically hardcodes DIR
15514 # into the library and all subsequent libraries and executables linked
15515 # against it.
15516 hardcode_automatic=$hardcode_automatic
15517
15518 # Set to yes if linker adds runtime paths of dependent libraries
15519 # to runtime path list.
15520 inherit_rpath=$inherit_rpath
15521
15522 # Whether libtool must link a program against all its dependency libraries.
15523 link_all_deplibs=$link_all_deplibs
15524
15525 # Set to "yes" if exported symbols are required.
15526 always_export_symbols=$always_export_symbols
15527
15528 # The commands to list exported symbols.
15529 export_symbols_cmds=$lt_export_symbols_cmds
15530
15531 # Symbols that should not be listed in the preloaded symbols.
15532 exclude_expsyms=$lt_exclude_expsyms
15533
15534 # Symbols that must always be exported.
15535 include_expsyms=$lt_include_expsyms
15536
15537 # Commands necessary for linking programs (against libraries) with templates.
15538 prelink_cmds=$lt_prelink_cmds
15539
15540 # Commands necessary for finishing linking programs.
15541 postlink_cmds=$lt_postlink_cmds
15542
15543 # Specify filename containing input files.
15544 file_list_spec=$lt_file_list_spec
15545
15546 # How to hardcode a shared library path into an executable.
15547 hardcode_action=$hardcode_action
15548
15549 # ### END LIBTOOL CONFIG
15550
15551 _LT_EOF
15552
15553 cat <<'_LT_EOF' >> "$cfgfile"
15554
15555 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15556
15557 # func_munge_path_list VARIABLE PATH
15558 # -----------------------------------
15559 # VARIABLE is name of variable containing _space_ separated list of
15560 # directories to be munged by the contents of PATH, which is string
15561 # having a format:
15562 # "DIR[:DIR]:"
15563 # string "DIR[ DIR]" will be prepended to VARIABLE
15564 # ":DIR[:DIR]"
15565 # string "DIR[ DIR]" will be appended to VARIABLE
15566 # "DIRP[:DIRP]::[DIRA:]DIRA"
15567 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15568 # "DIRA[ DIRA]" will be appended to VARIABLE
15569 # "DIR[:DIR]"
15570 # VARIABLE will be replaced by "DIR[ DIR]"
15571 func_munge_path_list ()
15572 {
15573 case x$2 in
15574 x)
15575 ;;
15576 *:)
15577 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15578 ;;
15579 x:*)
15580 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15581 ;;
15582 *::*)
15583 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15584 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15585 ;;
15586 *)
15587 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15588 ;;
15589 esac
15590 }
15591
15592
15593 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15594 func_cc_basename ()
15595 {
15596 for cc_temp in $*""; do
15597 case $cc_temp in
15598 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15599 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15600 \-*) ;;
15601 *) break;;
15602 esac
15603 done
15604 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15605 }
15606
15607
15608 # ### END FUNCTIONS SHARED WITH CONFIGURE
15609
15610 _LT_EOF
15611
15612 case $host_os in
15613 aix3*)
15614 cat <<\_LT_EOF >> "$cfgfile"
15615 # AIX sometimes has problems with the GCC collect2 program. For some
15616 # reason, if we set the COLLECT_NAMES environment variable, the problems
15617 # vanish in a puff of smoke.
15618 if test set != "${COLLECT_NAMES+set}"; then
15619 COLLECT_NAMES=
15620 export COLLECT_NAMES
15621 fi
15622 _LT_EOF
15623 ;;
15624 esac
15625
15626
15627 ltmain=$ac_aux_dir/ltmain.sh
15628
15629
15630 # We use sed instead of cat because bash on DJGPP gets confused if
15631 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15632 # text mode, it properly converts lines to CR/LF. This bash problem
15633 # is reportedly fixed, but why not run on old versions too?
15634 sed '$q' "$ltmain" >> "$cfgfile" \
15635 || (rm -f "$cfgfile"; exit 1)
15636
15637 mv -f "$cfgfile" "$ofile" ||
15638 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15639 chmod +x "$ofile"
15640
15641 ;;
15642 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15643 # Older Autoconf quotes --file arguments for eval, but not when files
15644 # are listed without --file. Let's play safe and only enable the eval
15645 # if we detect the quoting.
15646 # TODO: see whether this extra hack can be removed once we start
15647 # requiring Autoconf 2.70 or later.
15648 case $CONFIG_FILES in #(
15649 *\'*) :
15650 eval set x "$CONFIG_FILES" ;; #(
15651 *) :
15652 set x $CONFIG_FILES ;; #(
15653 *) :
15654 ;;
15655 esac
15656 shift
15657 # Used to flag and report bootstrapping failures.
15658 am_rc=0
15659 for am_mf
15660 do
15661 # Strip MF so we end up with the name of the file.
15662 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15663 # Check whether this is an Automake generated Makefile which includes
15664 # dependency-tracking related rules and includes.
15665 # Grep'ing the whole file directly is not great: AIX grep has a line
15666 # limit of 2048, but all sed's we know have understand at least 4000.
15667 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15668 || continue
15669 am_dirpart=`$as_dirname -- "$am_mf" ||
15670 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15671 X"$am_mf" : 'X\(//\)[^/]' \| \
15672 X"$am_mf" : 'X\(//\)$' \| \
15673 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15674 $as_echo X"$am_mf" |
15675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15676 s//\1/
15677 q
15678 }
15679 /^X\(\/\/\)[^/].*/{
15680 s//\1/
15681 q
15682 }
15683 /^X\(\/\/\)$/{
15684 s//\1/
15685 q
15686 }
15687 /^X\(\/\).*/{
15688 s//\1/
15689 q
15690 }
15691 s/.*/./; q'`
15692 am_filepart=`$as_basename -- "$am_mf" ||
15693 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15694 X"$am_mf" : 'X\(//\)$' \| \
15695 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15696 $as_echo X/"$am_mf" |
15697 sed '/^.*\/\([^/][^/]*\)\/*$/{
15698 s//\1/
15699 q
15700 }
15701 /^X\/\(\/\/\)$/{
15702 s//\1/
15703 q
15704 }
15705 /^X\/\(\/\).*/{
15706 s//\1/
15707 q
15708 }
15709 s/.*/./; q'`
15710 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15711 && sed -e '/# am--include-marker/d' "$am_filepart" \
15712 | $MAKE -f - am--depfiles" >&5
15713 (cd "$am_dirpart" \
15714 && sed -e '/# am--include-marker/d' "$am_filepart" \
15715 | $MAKE -f - am--depfiles) >&5 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } || am_rc=$?
15719 done
15720 if test $am_rc -ne 0; then
15721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15723 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15724 for automatic dependency tracking. Try re-running configure with the
15725 '--disable-dependency-tracking' option to at least be able to build
15726 the package (albeit without support for automatic dependency tracking).
15727 See \`config.log' for more details" "$LINENO" 5; }
15728 fi
15729 { am_dirpart=; unset am_dirpart;}
15730 { am_filepart=; unset am_filepart;}
15731 { am_mf=; unset am_mf;}
15732 { am_rc=; unset am_rc;}
15733 rm -f conftest-deps.mk
15734 }
15735 ;;
15736
15737 esac
15738 done # for ac_tag
15739
15740
15741 as_fn_exit 0
15742 _ACEOF
15743 ac_clean_files=$ac_clean_files_save
15744
15745 test $ac_write_fail = 0 ||
15746 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15747
15748
15749 # configure is writing to config.log, and then calls config.status.
15750 # config.status does its own redirection, appending to config.log.
15751 # Unfortunately, on DOS this fails, as config.log is still kept open
15752 # by configure, so config.status won't be able to write to it; its
15753 # output is simply discarded. So we exec the FD to /dev/null,
15754 # effectively closing config.log, so it can be properly (re)opened and
15755 # appended to by config.status. When coming back to configure, we
15756 # need to make the FD available again.
15757 if test "$no_create" != yes; then
15758 ac_cs_success=:
15759 ac_config_status_args=
15760 test "$silent" = yes &&
15761 ac_config_status_args="$ac_config_status_args --quiet"
15762 exec 5>/dev/null
15763 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15764 exec 5>>config.log
15765 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15766 # would make configure fail if this is the last instruction.
15767 $ac_cs_success || as_fn_exit 1
15768 fi
15769 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15771 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15772 fi
15773
15774
15775