Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libirman 0.5.2.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libirman'
589 PACKAGE_TARNAME='libirman'
590 PACKAGE_VERSION='0.5.2'
591 PACKAGE_STRING='libirman 0.5.2'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="irio.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 BUILD_SWTEST_FALSE
636 BUILD_SWTEST_TRUE
637 BUILD_PLUGIN_FALSE
638 BUILD_PLUGIN_TRUE
639 LIRC_LIBS
640 LIRC_CFLAGS
641 PKG_CONFIG_LIBDIR
642 PKG_CONFIG_PATH
643 PKG_CONFIG
644 LIBOBJS
645 PKGCONFIG
646 CPP
647 LT_SYS_LIBRARY_PATH
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 LN_S
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 EGREP
666 GREP
667 SED
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
676 LIBTOOL
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 AM_BACKSLASH
695 AM_DEFAULT_VERBOSITY
696 AM_DEFAULT_V
697 AM_V
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_silent_rules
763 enable_dependency_tracking
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_aix_soname
769 with_gnu_ld
770 with_sysroot
771 enable_libtool_lock
772 with_plugin
773 enable_swtest
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 LT_SYS_LIBRARY_PATH
784 CPP
785 PKG_CONFIG
786 PKG_CONFIG_PATH
787 PKG_CONFIG_LIBDIR
788 LIRC_CFLAGS
789 LIRC_LIBS'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 ;;
1196
1197 esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1203 fi
1204
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211 fi
1212
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218 do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295 else
1296 ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures libirman 0.5.2 to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/libirman]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1384
1385 cat <<\_ACEOF
1386
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of libirman 0.5.2:";;
1401 esac
1402 cat <<\_ACEOF
1403
1404 Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-silent-rules less verbose build output (undo: "make V=1")
1409 --disable-silent-rules verbose build output (undo: "make V=0")
1410 --enable-dependency-tracking
1411 do not reject slow dependency extractors
1412 --disable-dependency-tracking
1413 speeds up one-time build
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419 --enable-swtest Build software-only library and utils [disabled]
1420
1421 Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1425 both]
1426 --with-aix-soname=aix|svr4|both
1427 shared library versioning (aka "SONAME") variant to
1428 provide on AIX, [default=aix].
1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1430 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1431 compiler's sysroot if not specified).
1432 --with-plugin Build LIRC plugin [guessed]
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 LT_SYS_LIBRARY_PATH
1443 User-defined run-time library search path.
1444 CPP C preprocessor
1445 PKG_CONFIG path to pkg-config utility
1446 PKG_CONFIG_PATH
1447 directories to add to pkg-config's search path
1448 PKG_CONFIG_LIBDIR
1449 path overriding pkg-config's built-in search path
1450 LIRC_CFLAGS C compiler flags for LIRC, overriding pkg-config
1451 LIRC_LIBS linker flags for LIRC, overriding pkg-config
1452
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1455
1456 Report bugs to the package provider.
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 libirman configure 0.5.2
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_check_header_compile LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists and can be compiled using the include files in
1620 # INCLUDES, setting the cache variable VAR accordingly.
1621 ac_fn_c_check_header_compile ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 $as_echo_n "checking for $2... " >&6; }
1626 if eval \${$3+:} false; then :
1627 $as_echo_n "(cached) " >&6
1628 else
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1631 $4
1632 #include <$2>
1633 _ACEOF
1634 if ac_fn_c_try_compile "$LINENO"; then :
1635 eval "$3=yes"
1636 else
1637 eval "$3=no"
1638 fi
1639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 fi
1641 eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646 } # ac_fn_c_check_header_compile
1647
1648 # ac_fn_c_try_cpp LINENO
1649 # ----------------------
1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_cpp ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } > conftest.i && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1682
1683 } # ac_fn_c_try_cpp
1684
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1689 ac_fn_c_try_run ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=$ac_status
1720 fi
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_run
1726
1727 # ac_fn_c_check_func LINENO FUNC VAR
1728 # ----------------------------------
1729 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1730 ac_fn_c_check_func ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1737 else
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1742 #define $2 innocuous_$2
1743
1744 /* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $2 (); below.
1746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747 <limits.h> exists even on freestanding compilers. */
1748
1749 #ifdef __STDC__
1750 # include <limits.h>
1751 #else
1752 # include <assert.h>
1753 #endif
1754
1755 #undef $2
1756
1757 /* Override any GCC internal prototype to avoid an error.
1758 Use char because int might match the return type of a GCC
1759 builtin and then its argument prototype would still apply. */
1760 #ifdef __cplusplus
1761 extern "C"
1762 #endif
1763 char $2 ();
1764 /* The GNU C library defines this for functions which it implements
1765 to always fail with ENOSYS. Some functions are actually named
1766 something starting with __ and the normal name is an alias. */
1767 #if defined __stub_$2 || defined __stub___$2
1768 choke me
1769 #endif
1770
1771 int
1772 main ()
1773 {
1774 return $2 ();
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 if ac_fn_c_try_link "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext \
1785 conftest$ac_exeext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_func
1793
1794 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797 # the include files in INCLUDES and setting the cache variable VAR
1798 # accordingly.
1799 ac_fn_c_check_header_mongrel ()
1800 {
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if eval \${$3+:} false; then :
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807 fi
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 else
1812 # Is the header compilable?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814 $as_echo_n "checking $2 usability... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 $4
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1822 else
1823 ac_header_compiler=no
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827 $as_echo "$ac_header_compiler" >&6; }
1828
1829 # Is the header present?
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831 $as_echo_n "checking $2 presence... " >&6; }
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1838 else
1839 ac_header_preproc=no
1840 fi
1841 rm -f conftest.err conftest.i conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843 $as_echo "$ac_header_preproc" >&6; }
1844
1845 # So? What about this header?
1846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 yes:no: )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ;;
1853 no:yes:* )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 ;;
1865 esac
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if eval \${$3+:} false; then :
1869 $as_echo_n "(cached) " >&6
1870 else
1871 eval "$3=\$ac_header_compiler"
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 fi
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_header_mongrel
1880
1881 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1882 # -------------------------------------------
1883 # Tests whether TYPE exists after having included INCLUDES, setting cache
1884 # variable VAR accordingly.
1885 ac_fn_c_check_type ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 eval "$3=no"
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1896 $4
1897 int
1898 main ()
1899 {
1900 if (sizeof ($2))
1901 return 0;
1902 ;
1903 return 0;
1904 }
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 $4
1910 int
1911 main ()
1912 {
1913 if (sizeof (($2)))
1914 return 0;
1915 ;
1916 return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920
1921 else
1922 eval "$3=yes"
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 fi
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933 } # ac_fn_c_check_type
1934 cat >config.log <<_ACEOF
1935 This file contains any messages produced by compilers while
1936 running configure, to aid debugging if configure makes a mistake.
1937
1938 It was created by libirman $as_me 0.5.2, which was
1939 generated by GNU Autoconf 2.69. Invocation command line was
1940
1941 $ $0 $@
1942
1943 _ACEOF
1944 exec 5>>config.log
1945 {
1946 cat <<_ASUNAME
1947 ## --------- ##
1948 ## Platform. ##
1949 ## --------- ##
1950
1951 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1952 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1953 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1954 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1955 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1956
1957 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1958 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1959
1960 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1961 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1962 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1963 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1964 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1965 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1966 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1967
1968 _ASUNAME
1969
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 $as_echo "PATH: $as_dir"
1976 done
1977 IFS=$as_save_IFS
1978
1979 } >&5
1980
1981 cat >&5 <<_ACEOF
1982
1983
1984 ## ----------- ##
1985 ## Core tests. ##
1986 ## ----------- ##
1987
1988 _ACEOF
1989
1990
1991 # Keep a trace of the command line.
1992 # Strip out --no-create and --no-recursion so they do not pile up.
1993 # Strip out --silent because we don't want to record it for future runs.
1994 # Also quote any args containing shell meta-characters.
1995 # Make two passes to allow for proper duplicate-argument suppression.
1996 ac_configure_args=
1997 ac_configure_args0=
1998 ac_configure_args1=
1999 ac_must_keep_next=false
2000 for ac_pass in 1 2
2001 do
2002 for ac_arg
2003 do
2004 case $ac_arg in
2005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2007 | -silent | --silent | --silen | --sile | --sil)
2008 continue ;;
2009 *\'*)
2010 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2011 esac
2012 case $ac_pass in
2013 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2014 2)
2015 as_fn_append ac_configure_args1 " '$ac_arg'"
2016 if test $ac_must_keep_next = true; then
2017 ac_must_keep_next=false # Got value, back to normal.
2018 else
2019 case $ac_arg in
2020 *=* | --config-cache | -C | -disable-* | --disable-* \
2021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2023 | -with-* | --with-* | -without-* | --without-* | --x)
2024 case "$ac_configure_args0 " in
2025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2026 esac
2027 ;;
2028 -* ) ac_must_keep_next=true ;;
2029 esac
2030 fi
2031 as_fn_append ac_configure_args " '$ac_arg'"
2032 ;;
2033 esac
2034 done
2035 done
2036 { ac_configure_args0=; unset ac_configure_args0;}
2037 { ac_configure_args1=; unset ac_configure_args1;}
2038
2039 # When interrupted or exit'd, cleanup temporary files, and complete
2040 # config.log. We remove comments because anyway the quotes in there
2041 # would cause problems or look ugly.
2042 # WARNING: Use '\'' to represent an apostrophe within the trap.
2043 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2044 trap 'exit_status=$?
2045 # Save into config.log some information that might help in debugging.
2046 {
2047 echo
2048
2049 $as_echo "## ---------------- ##
2050 ## Cache variables. ##
2051 ## ---------------- ##"
2052 echo
2053 # The following way of writing the cache mishandles newlines in values,
2054 (
2055 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2056 eval ac_val=\$$ac_var
2057 case $ac_val in #(
2058 *${as_nl}*)
2059 case $ac_var in #(
2060 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2061 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2062 esac
2063 case $ac_var in #(
2064 _ | IFS | as_nl) ;; #(
2065 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2066 *) { eval $ac_var=; unset $ac_var;} ;;
2067 esac ;;
2068 esac
2069 done
2070 (set) 2>&1 |
2071 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2072 *${as_nl}ac_space=\ *)
2073 sed -n \
2074 "s/'\''/'\''\\\\'\'''\''/g;
2075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2076 ;; #(
2077 *)
2078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2079 ;;
2080 esac |
2081 sort
2082 )
2083 echo
2084
2085 $as_echo "## ----------------- ##
2086 ## Output variables. ##
2087 ## ----------------- ##"
2088 echo
2089 for ac_var in $ac_subst_vars
2090 do
2091 eval ac_val=\$$ac_var
2092 case $ac_val in
2093 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2094 esac
2095 $as_echo "$ac_var='\''$ac_val'\''"
2096 done | sort
2097 echo
2098
2099 if test -n "$ac_subst_files"; then
2100 $as_echo "## ------------------- ##
2101 ## File substitutions. ##
2102 ## ------------------- ##"
2103 echo
2104 for ac_var in $ac_subst_files
2105 do
2106 eval ac_val=\$$ac_var
2107 case $ac_val in
2108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109 esac
2110 $as_echo "$ac_var='\''$ac_val'\''"
2111 done | sort
2112 echo
2113 fi
2114
2115 if test -s confdefs.h; then
2116 $as_echo "## ----------- ##
2117 ## confdefs.h. ##
2118 ## ----------- ##"
2119 echo
2120 cat confdefs.h
2121 echo
2122 fi
2123 test "$ac_signal" != 0 &&
2124 $as_echo "$as_me: caught signal $ac_signal"
2125 $as_echo "$as_me: exit $exit_status"
2126 } >&5
2127 rm -f core *.core core.conftest.* &&
2128 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2129 exit $exit_status
2130 ' 0
2131 for ac_signal in 1 2 13 15; do
2132 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2133 done
2134 ac_signal=0
2135
2136 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2137 rm -f -r conftest* confdefs.h
2138
2139 $as_echo "/* confdefs.h */" > confdefs.h
2140
2141 # Predefined preprocessor variables.
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_NAME "$PACKAGE_NAME"
2145 _ACEOF
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_STRING "$PACKAGE_STRING"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_URL "$PACKAGE_URL"
2165 _ACEOF
2166
2167
2168 # Let the site file select an alternate cache file if it wants to.
2169 # Prefer an explicitly selected file to automatically selected ones.
2170 ac_site_file1=NONE
2171 ac_site_file2=NONE
2172 if test -n "$CONFIG_SITE"; then
2173 # We do not want a PATH search for config.site.
2174 case $CONFIG_SITE in #((
2175 -*) ac_site_file1=./$CONFIG_SITE;;
2176 */*) ac_site_file1=$CONFIG_SITE;;
2177 *) ac_site_file1=./$CONFIG_SITE;;
2178 esac
2179 elif test "x$prefix" != xNONE; then
2180 ac_site_file1=$prefix/share/config.site
2181 ac_site_file2=$prefix/etc/config.site
2182 else
2183 ac_site_file1=$ac_default_prefix/share/config.site
2184 ac_site_file2=$ac_default_prefix/etc/config.site
2185 fi
2186 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2187 do
2188 test "x$ac_site_file" = xNONE && continue
2189 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2191 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2192 sed 's/^/| /' "$ac_site_file" >&5
2193 . "$ac_site_file" \
2194 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2196 as_fn_error $? "failed to load site script $ac_site_file
2197 See \`config.log' for more details" "$LINENO" 5; }
2198 fi
2199 done
2200
2201 if test -r "$cache_file"; then
2202 # Some versions of bash will fail to source /dev/null (special files
2203 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2204 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2206 $as_echo "$as_me: loading cache $cache_file" >&6;}
2207 case $cache_file in
2208 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2209 *) . "./$cache_file";;
2210 esac
2211 fi
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2214 $as_echo "$as_me: creating cache $cache_file" >&6;}
2215 >$cache_file
2216 fi
2217
2218 # Check that the precious variables saved in the cache have kept the same
2219 # value.
2220 ac_cache_corrupted=false
2221 for ac_var in $ac_precious_vars; do
2222 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2223 eval ac_new_set=\$ac_env_${ac_var}_set
2224 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2225 eval ac_new_val=\$ac_env_${ac_var}_value
2226 case $ac_old_set,$ac_new_set in
2227 set,)
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2229 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2230 ac_cache_corrupted=: ;;
2231 ,set)
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2233 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2234 ac_cache_corrupted=: ;;
2235 ,);;
2236 *)
2237 if test "x$ac_old_val" != "x$ac_new_val"; then
2238 # differences in whitespace do not lead to failure.
2239 ac_old_val_w=`echo x $ac_old_val`
2240 ac_new_val_w=`echo x $ac_new_val`
2241 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2243 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2244 ac_cache_corrupted=:
2245 else
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2247 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2248 eval $ac_var=\$ac_old_val
2249 fi
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2251 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2253 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2254 fi;;
2255 esac
2256 # Pass precious variables to config.status.
2257 if test "$ac_new_set" = set; then
2258 case $ac_new_val in
2259 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2260 *) ac_arg=$ac_var=$ac_new_val ;;
2261 esac
2262 case " $ac_configure_args " in
2263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2264 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2265 esac
2266 fi
2267 done
2268 if $ac_cache_corrupted; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2272 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2273 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2274 fi
2275 ## -------------------- ##
2276 ## Main body of script. ##
2277 ## -------------------- ##
2278
2279 ac_ext=c
2280 ac_cpp='$CPP $CPPFLAGS'
2281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284
2285
2286
2287
2288 ac_config_headers="$ac_config_headers config.h"
2289
2290 am__api_version='1.15'
2291
2292 ac_aux_dir=
2293 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2294 if test -f "$ac_dir/install-sh"; then
2295 ac_aux_dir=$ac_dir
2296 ac_install_sh="$ac_aux_dir/install-sh -c"
2297 break
2298 elif test -f "$ac_dir/install.sh"; then
2299 ac_aux_dir=$ac_dir
2300 ac_install_sh="$ac_aux_dir/install.sh -c"
2301 break
2302 elif test -f "$ac_dir/shtool"; then
2303 ac_aux_dir=$ac_dir
2304 ac_install_sh="$ac_aux_dir/shtool install -c"
2305 break
2306 fi
2307 done
2308 if test -z "$ac_aux_dir"; then
2309 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2310 fi
2311
2312 # These three variables are undocumented and unsupported,
2313 # and are intended to be withdrawn in a future Autoconf release.
2314 # They can cause serious problems if a builder's source tree is in a directory
2315 # whose full name contains unusual characters.
2316 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2317 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2318 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2319
2320
2321 # Find a good install program. We prefer a C program (faster),
2322 # so one script is as good as another. But avoid the broken or
2323 # incompatible versions:
2324 # SysV /etc/install, /usr/sbin/install
2325 # SunOS /usr/etc/install
2326 # IRIX /sbin/install
2327 # AIX /bin/install
2328 # AmigaOS /C/install, which installs bootblocks on floppy discs
2329 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2330 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2331 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2332 # OS/2's system install, which has a completely different semantic
2333 # ./install, which can be erroneously created by make from ./install.sh.
2334 # Reject install programs that cannot install multiple files.
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2336 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2337 if test -z "$INSTALL"; then
2338 if ${ac_cv_path_install+:} false; then :
2339 $as_echo_n "(cached) " >&6
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 # Account for people who put trailing slashes in PATH elements.
2347 case $as_dir/ in #((
2348 ./ | .// | /[cC]/* | \
2349 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2350 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2351 /usr/ucb/* ) ;;
2352 *)
2353 # OSF1 and SCO ODT 3.0 have their own names for install.
2354 # Don't use installbsd from OSF since it installs stuff as root
2355 # by default.
2356 for ac_prog in ginstall scoinst install; do
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2359 if test $ac_prog = install &&
2360 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361 # AIX install. It has an incompatible calling convention.
2362 :
2363 elif test $ac_prog = install &&
2364 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365 # program-specific install script used by HP pwplus--don't use.
2366 :
2367 else
2368 rm -rf conftest.one conftest.two conftest.dir
2369 echo one > conftest.one
2370 echo two > conftest.two
2371 mkdir conftest.dir
2372 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2373 test -s conftest.one && test -s conftest.two &&
2374 test -s conftest.dir/conftest.one &&
2375 test -s conftest.dir/conftest.two
2376 then
2377 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2378 break 3
2379 fi
2380 fi
2381 fi
2382 done
2383 done
2384 ;;
2385 esac
2386
2387 done
2388 IFS=$as_save_IFS
2389
2390 rm -rf conftest.one conftest.two conftest.dir
2391
2392 fi
2393 if test "${ac_cv_path_install+set}" = set; then
2394 INSTALL=$ac_cv_path_install
2395 else
2396 # As a last resort, use the slow shell script. Don't cache a
2397 # value for INSTALL within a source directory, because that will
2398 # break other packages using the cache if that directory is
2399 # removed, or if the value is a relative name.
2400 INSTALL=$ac_install_sh
2401 fi
2402 fi
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2404 $as_echo "$INSTALL" >&6; }
2405
2406 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2407 # It thinks the first close brace ends the variable substitution.
2408 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2409
2410 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2411
2412 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2413
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2415 $as_echo_n "checking whether build environment is sane... " >&6; }
2416 # Reject unsafe characters in $srcdir or the absolute working directory
2417 # name. Accept space and tab only in the latter.
2418 am_lf='
2419 '
2420 case `pwd` in
2421 *[\\\"\#\$\&\'\`$am_lf]*)
2422 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2423 esac
2424 case $srcdir in
2425 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2426 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2427 esac
2428
2429 # Do 'set' in a subshell so we don't clobber the current shell's
2430 # arguments. Must try -L first in case configure is actually a
2431 # symlink; some systems play weird games with the mod time of symlinks
2432 # (eg FreeBSD returns the mod time of the symlink's containing
2433 # directory).
2434 if (
2435 am_has_slept=no
2436 for am_try in 1 2; do
2437 echo "timestamp, slept: $am_has_slept" > conftest.file
2438 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2439 if test "$*" = "X"; then
2440 # -L didn't work.
2441 set X `ls -t "$srcdir/configure" conftest.file`
2442 fi
2443 if test "$*" != "X $srcdir/configure conftest.file" \
2444 && test "$*" != "X conftest.file $srcdir/configure"; then
2445
2446 # If neither matched, then we have a broken ls. This can happen
2447 # if, for instance, CONFIG_SHELL is bash and it inherits a
2448 # broken ls alias from the environment. This has actually
2449 # happened. Such a system could not be considered "sane".
2450 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2451 alias in your environment" "$LINENO" 5
2452 fi
2453 if test "$2" = conftest.file || test $am_try -eq 2; then
2454 break
2455 fi
2456 # Just in case.
2457 sleep 1
2458 am_has_slept=yes
2459 done
2460 test "$2" = conftest.file
2461 )
2462 then
2463 # Ok.
2464 :
2465 else
2466 as_fn_error $? "newly created file is older than distributed files!
2467 Check your system clock" "$LINENO" 5
2468 fi
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2470 $as_echo "yes" >&6; }
2471 # If we didn't sleep, we still need to ensure time stamps of config.status and
2472 # generated files are strictly newer.
2473 am_sleep_pid=
2474 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2475 ( sleep 1 ) &
2476 am_sleep_pid=$!
2477 fi
2478
2479 rm -f conftest.file
2480
2481 test "$program_prefix" != NONE &&
2482 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2483 # Use a double $ so make ignores it.
2484 test "$program_suffix" != NONE &&
2485 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2486 # Double any \ or $.
2487 # By default was `s,x,x', remove it if useless.
2488 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2489 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2490
2491 # Expand $ac_aux_dir to an absolute path.
2492 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2493
2494 if test x"${MISSING+set}" != xset; then
2495 case $am_aux_dir in
2496 *\ * | *\ *)
2497 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2498 *)
2499 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2500 esac
2501 fi
2502 # Use eval to expand $SHELL
2503 if eval "$MISSING --is-lightweight"; then
2504 am_missing_run="$MISSING "
2505 else
2506 am_missing_run=
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2508 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2509 fi
2510
2511 if test x"${install_sh+set}" != xset; then
2512 case $am_aux_dir in
2513 *\ * | *\ *)
2514 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2515 *)
2516 install_sh="\${SHELL} $am_aux_dir/install-sh"
2517 esac
2518 fi
2519
2520 # Installed binaries are usually stripped using 'strip' when the user
2521 # run "make install-strip". However 'strip' might not be the right
2522 # tool to use in cross-compilation environments, therefore Automake
2523 # will honor the 'STRIP' environment variable to overrule this program.
2524 if test "$cross_compiling" != no; then
2525 if test -n "$ac_tool_prefix"; then
2526 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}strip; ac_word=$2
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if ${ac_cv_prog_STRIP+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 if test -n "$STRIP"; then
2534 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 STRIP=$ac_cv_prog_STRIP
2554 if test -n "$STRIP"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2556 $as_echo "$STRIP" >&6; }
2557 else
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 $as_echo "no" >&6; }
2560 fi
2561
2562
2563 fi
2564 if test -z "$ac_cv_prog_STRIP"; then
2565 ac_ct_STRIP=$STRIP
2566 # Extract the first word of "strip", so it can be a program name with args.
2567 set dummy strip; ac_word=$2
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 if test -n "$ac_ct_STRIP"; then
2574 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583 ac_cv_prog_ac_ct_STRIP="strip"
2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2586 fi
2587 done
2588 done
2589 IFS=$as_save_IFS
2590
2591 fi
2592 fi
2593 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2594 if test -n "$ac_ct_STRIP"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2596 $as_echo "$ac_ct_STRIP" >&6; }
2597 else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2600 fi
2601
2602 if test "x$ac_ct_STRIP" = x; then
2603 STRIP=":"
2604 else
2605 case $cross_compiling:$ac_tool_warned in
2606 yes:)
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2609 ac_tool_warned=yes ;;
2610 esac
2611 STRIP=$ac_ct_STRIP
2612 fi
2613 else
2614 STRIP="$ac_cv_prog_STRIP"
2615 fi
2616
2617 fi
2618 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2619
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2621 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2622 if test -z "$MKDIR_P"; then
2623 if ${ac_cv_path_mkdir+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2628 do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_prog in mkdir gmkdir; do
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2634 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2635 'mkdir (GNU coreutils) '* | \
2636 'mkdir (coreutils) '* | \
2637 'mkdir (fileutils) '4.1*)
2638 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2639 break 3;;
2640 esac
2641 done
2642 done
2643 done
2644 IFS=$as_save_IFS
2645
2646 fi
2647
2648 test -d ./--version && rmdir ./--version
2649 if test "${ac_cv_path_mkdir+set}" = set; then
2650 MKDIR_P="$ac_cv_path_mkdir -p"
2651 else
2652 # As a last resort, use the slow shell script. Don't cache a
2653 # value for MKDIR_P within a source directory, because that will
2654 # break other packages using the cache if that directory is
2655 # removed, or if the value is a relative name.
2656 MKDIR_P="$ac_install_sh -d"
2657 fi
2658 fi
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2660 $as_echo "$MKDIR_P" >&6; }
2661
2662 for ac_prog in gawk mawk nawk awk
2663 do
2664 # Extract the first word of "$ac_prog", so it can be a program name with args.
2665 set dummy $ac_prog; ac_word=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if ${ac_cv_prog_AWK+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test -n "$AWK"; then
2672 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2673 else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2681 ac_cv_prog_AWK="$ac_prog"
2682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 break 2
2684 fi
2685 done
2686 done
2687 IFS=$as_save_IFS
2688
2689 fi
2690 fi
2691 AWK=$ac_cv_prog_AWK
2692 if test -n "$AWK"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2694 $as_echo "$AWK" >&6; }
2695 else
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2698 fi
2699
2700
2701 test -n "$AWK" && break
2702 done
2703
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2705 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2706 set x ${MAKE-make}
2707 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2708 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 cat >conftest.make <<\_ACEOF
2712 SHELL = /bin/sh
2713 all:
2714 @echo '@@@%%%=$(MAKE)=@@@%%%'
2715 _ACEOF
2716 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2717 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2718 *@@@%%%=?*=@@@%%%*)
2719 eval ac_cv_prog_make_${ac_make}_set=yes;;
2720 *)
2721 eval ac_cv_prog_make_${ac_make}_set=no;;
2722 esac
2723 rm -f conftest.make
2724 fi
2725 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2727 $as_echo "yes" >&6; }
2728 SET_MAKE=
2729 else
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2732 SET_MAKE="MAKE=${MAKE-make}"
2733 fi
2734
2735 rm -rf .tst 2>/dev/null
2736 mkdir .tst 2>/dev/null
2737 if test -d .tst; then
2738 am__leading_dot=.
2739 else
2740 am__leading_dot=_
2741 fi
2742 rmdir .tst 2>/dev/null
2743
2744 # Check whether --enable-silent-rules was given.
2745 if test "${enable_silent_rules+set}" = set; then :
2746 enableval=$enable_silent_rules;
2747 fi
2748
2749 case $enable_silent_rules in # (((
2750 yes) AM_DEFAULT_VERBOSITY=0;;
2751 no) AM_DEFAULT_VERBOSITY=1;;
2752 *) AM_DEFAULT_VERBOSITY=1;;
2753 esac
2754 am_make=${MAKE-make}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2756 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2757 if ${am_cv_make_support_nested_variables+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 if $as_echo 'TRUE=$(BAR$(V))
2761 BAR0=false
2762 BAR1=true
2763 V=1
2764 am__doit:
2765 @$(TRUE)
2766 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2767 am_cv_make_support_nested_variables=yes
2768 else
2769 am_cv_make_support_nested_variables=no
2770 fi
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2773 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2774 if test $am_cv_make_support_nested_variables = yes; then
2775 AM_V='$(V)'
2776 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2777 else
2778 AM_V=$AM_DEFAULT_VERBOSITY
2779 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2780 fi
2781 AM_BACKSLASH='\'
2782
2783 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2784 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2785 # is not polluted with repeated "-I."
2786 am__isrc=' -I$(srcdir)'
2787 # test to see if srcdir already configured
2788 if test -f $srcdir/config.status; then
2789 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2790 fi
2791 fi
2792
2793 # test whether we have cygpath
2794 if test -z "$CYGPATH_W"; then
2795 if (cygpath --version) >/dev/null 2>/dev/null; then
2796 CYGPATH_W='cygpath -w'
2797 else
2798 CYGPATH_W=echo
2799 fi
2800 fi
2801
2802
2803 # Define the identity of the package.
2804 PACKAGE='libirman'
2805 VERSION='0.5.2'
2806
2807
2808 cat >>confdefs.h <<_ACEOF
2809 #define PACKAGE "$PACKAGE"
2810 _ACEOF
2811
2812
2813 cat >>confdefs.h <<_ACEOF
2814 #define VERSION "$VERSION"
2815 _ACEOF
2816
2817 # Some tools Automake needs.
2818
2819 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2820
2821
2822 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2823
2824
2825 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2826
2827
2828 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2829
2830
2831 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2832
2833 # For better backward compatibility. To be removed once Automake 1.9.x
2834 # dies out for good. For more background, see:
2835 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2836 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2837 mkdir_p='$(MKDIR_P)'
2838
2839 # We need awk for the "check" target (and possibly the TAP driver). The
2840 # system "awk" is bad on some platforms.
2841 # Always define AMTAR for backward compatibility. Yes, it's still used
2842 # in the wild :-( We should find a proper way to deprecate it ...
2843 AMTAR='$${TAR-tar}'
2844
2845
2846 # We'll loop over all known methods to create a tar archive until one works.
2847 _am_tools='gnutar pax cpio none'
2848
2849 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2850
2851
2852
2853
2854
2855
2856 # POSIX will say in a future version that running "rm -f" with no argument
2857 # is OK; and we want to be able to make that assumption in our Makefile
2858 # recipes. So use an aggressive probe to check that the usage we want is
2859 # actually supported "in the wild" to an acceptable degree.
2860 # See automake bug#10828.
2861 # To make any issue more visible, cause the running configure to be aborted
2862 # by default if the 'rm' program in use doesn't match our expectations; the
2863 # user can still override this though.
2864 if rm -f && rm -fr && rm -rf; then : OK; else
2865 cat >&2 <<'END'
2866 Oops!
2867
2868 Your 'rm' program seems unable to run without file operands specified
2869 on the command line, even when the '-f' option is present. This is contrary
2870 to the behaviour of most rm programs out there, and not conforming with
2871 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2872
2873 Please tell [email protected] about your system, including the value
2874 of your $PATH and any error possibly output before this message. This
2875 can help us improve future automake versions.
2876
2877 END
2878 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2879 echo 'Configuration will proceed anyway, since you have set the' >&2
2880 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2881 echo >&2
2882 else
2883 cat >&2 <<'END'
2884 Aborting the configuration process, to ensure you take notice of the issue.
2885
2886 You can download and install GNU coreutils to get an 'rm' implementation
2887 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2888
2889 If you want to complete the configuration process using your problematic
2890 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2891 to "yes", and re-run configure.
2892
2893 END
2894 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2895 fi
2896 fi
2897
2898
2899
2900
2901
2902 ac_ext=c
2903 ac_cpp='$CPP $CPPFLAGS'
2904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2907 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2909 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_CC+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 CC=$ac_cv_prog_CC
2936 if test -n "$CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938 $as_echo "$CC" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944
2945 fi
2946 if test -z "$ac_cv_prog_CC"; then
2947 ac_ct_CC=$CC
2948 # Extract the first word of "gcc", so it can be a program name with args.
2949 set dummy gcc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$ac_ct_CC"; then
2956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_ac_ct_CC="gcc"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969 done
2970 done
2971 IFS=$as_save_IFS
2972
2973 fi
2974 fi
2975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2976 if test -n "$ac_ct_CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2978 $as_echo "$ac_ct_CC" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984 if test "x$ac_ct_CC" = x; then
2985 CC=""
2986 else
2987 case $cross_compiling:$ac_tool_warned in
2988 yes:)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991 ac_tool_warned=yes ;;
2992 esac
2993 CC=$ac_ct_CC
2994 fi
2995 else
2996 CC="$ac_cv_prog_CC"
2997 fi
2998
2999 if test -z "$CC"; then
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}cc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_CC="${ac_tool_prefix}cc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022 done
3023 done
3024 IFS=$as_save_IFS
3025
3026 fi
3027 fi
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037
3038 fi
3039 fi
3040 if test -z "$CC"; then
3041 # Extract the first word of "cc", so it can be a program name with args.
3042 set dummy cc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_CC+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 else
3051 ac_prog_rejected=no
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3060 ac_prog_rejected=yes
3061 continue
3062 fi
3063 ac_cv_prog_CC="cc"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067 done
3068 done
3069 IFS=$as_save_IFS
3070
3071 if test $ac_prog_rejected = yes; then
3072 # We found a bogon in the path, so make sure we never use it.
3073 set dummy $ac_cv_prog_CC
3074 shift
3075 if test $# != 0; then
3076 # We chose a different compiler from the bogus one.
3077 # However, it has the same basename, so the bogon will be chosen
3078 # first if we set CC to just the basename; use the full file name.
3079 shift
3080 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3081 fi
3082 fi
3083 fi
3084 fi
3085 CC=$ac_cv_prog_CC
3086 if test -n "$CC"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3088 $as_echo "$CC" >&6; }
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 fi
3093
3094
3095 fi
3096 if test -z "$CC"; then
3097 if test -n "$ac_tool_prefix"; then
3098 for ac_prog in cl.exe
3099 do
3100 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_CC+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121 done
3122 done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 CC=$ac_cv_prog_CC
3128 if test -n "$CC"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130 $as_echo "$CC" >&6; }
3131 else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137 test -n "$CC" && break
3138 done
3139 fi
3140 if test -z "$CC"; then
3141 ac_ct_CC=$CC
3142 for ac_prog in cl.exe
3143 do
3144 # Extract the first word of "$ac_prog", so it can be a program name with args.
3145 set dummy $ac_prog; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test -n "$ac_ct_CC"; then
3152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_ac_ct_CC="$ac_prog"
3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3164 fi
3165 done
3166 done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172 if test -n "$ac_ct_CC"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3174 $as_echo "$ac_ct_CC" >&6; }
3175 else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180
3181 test -n "$ac_ct_CC" && break
3182 done
3183
3184 if test "x$ac_ct_CC" = x; then
3185 CC=""
3186 else
3187 case $cross_compiling:$ac_tool_warned in
3188 yes:)
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191 ac_tool_warned=yes ;;
3192 esac
3193 CC=$ac_ct_CC
3194 fi
3195 fi
3196
3197 fi
3198
3199
3200 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error $? "no acceptable C compiler found in \$PATH
3203 See \`config.log' for more details" "$LINENO" 5; }
3204
3205 # Provide some information about the compiler.
3206 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3207 set X $ac_compile
3208 ac_compiler=$2
3209 for ac_option in --version -v -V -qversion; do
3210 { { ac_try="$ac_compiler $ac_option >&5"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3218 ac_status=$?
3219 if test -s conftest.err; then
3220 sed '10a\
3221 ... rest of stderr output deleted ...
3222 10q' conftest.err >conftest.er1
3223 cat conftest.er1 >&5
3224 fi
3225 rm -f conftest.er1 conftest.err
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }
3228 done
3229
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3232
3233 int
3234 main ()
3235 {
3236
3237 ;
3238 return 0;
3239 }
3240 _ACEOF
3241 ac_clean_files_save=$ac_clean_files
3242 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3243 # Try to create an executable without -o first, disregard a.out.
3244 # It will help us diagnose broken compilers, and finding out an intuition
3245 # of exeext.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3247 $as_echo_n "checking whether the C compiler works... " >&6; }
3248 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3249
3250 # The possible output files:
3251 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3252
3253 ac_rmfiles=
3254 for ac_file in $ac_files
3255 do
3256 case $ac_file in
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3258 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3259 esac
3260 done
3261 rm -f $ac_rmfiles
3262
3263 if { { ac_try="$ac_link_default"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link_default") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3275 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3276 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3277 # so that the user can short-circuit this test for compilers unknown to
3278 # Autoconf.
3279 for ac_file in $ac_files ''
3280 do
3281 test -f "$ac_file" || continue
3282 case $ac_file in
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3284 ;;
3285 [ab].out )
3286 # We found the default executable, but exeext='' is most
3287 # certainly right.
3288 break;;
3289 *.* )
3290 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3291 then :; else
3292 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293 fi
3294 # We set ac_cv_exeext here because the later test for it is not
3295 # safe: cross compilers may not add the suffix if given an `-o'
3296 # argument, so we may need to know it at that point already.
3297 # Even if this section looks crufty: it has the advantage of
3298 # actually working.
3299 break;;
3300 * )
3301 break;;
3302 esac
3303 done
3304 test "$ac_cv_exeext" = no && ac_cv_exeext=
3305
3306 else
3307 ac_file=''
3308 fi
3309 if test -z "$ac_file"; then :
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 as_fn_error 77 "C compiler cannot create executables
3318 See \`config.log' for more details" "$LINENO" 5; }
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321 $as_echo "yes" >&6; }
3322 fi
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3324 $as_echo_n "checking for C compiler default output file name... " >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3326 $as_echo "$ac_file" >&6; }
3327 ac_exeext=$ac_cv_exeext
3328
3329 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3330 ac_clean_files=$ac_clean_files_save
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3332 $as_echo_n "checking for suffix of executables... " >&6; }
3333 if { { ac_try="$ac_link"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_link") 2>&5
3341 ac_status=$?
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }; then :
3344 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3345 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3346 # work properly (i.e., refer to `conftest.exe'), while it won't with
3347 # `rm'.
3348 for ac_file in conftest.exe conftest conftest.*; do
3349 test -f "$ac_file" || continue
3350 case $ac_file in
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 break;;
3354 * ) break;;
3355 esac
3356 done
3357 else
3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3361 See \`config.log' for more details" "$LINENO" 5; }
3362 fi
3363 rm -f conftest conftest$ac_cv_exeext
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3365 $as_echo "$ac_cv_exeext" >&6; }
3366
3367 rm -f conftest.$ac_ext
3368 EXEEXT=$ac_cv_exeext
3369 ac_exeext=$EXEEXT
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372 #include <stdio.h>
3373 int
3374 main ()
3375 {
3376 FILE *f = fopen ("conftest.out", "w");
3377 return ferror (f) || fclose (f) != 0;
3378
3379 ;
3380 return 0;
3381 }
3382 _ACEOF
3383 ac_clean_files="$ac_clean_files conftest.out"
3384 # Check that the compiler produces executables we can run. If not, either
3385 # the compiler is broken, or we cross compile.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3387 $as_echo_n "checking whether we are cross compiling... " >&6; }
3388 if test "$cross_compiling" != yes; then
3389 { { ac_try="$ac_link"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_link") 2>&5
3397 ac_status=$?
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }
3400 if { ac_try='./conftest$ac_cv_exeext'
3401 { { case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_try") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }; }; then
3411 cross_compiling=no
3412 else
3413 if test "$cross_compiling" = maybe; then
3414 cross_compiling=yes
3415 else
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot run C compiled programs.
3419 If you meant to cross compile, use \`--host'.
3420 See \`config.log' for more details" "$LINENO" 5; }
3421 fi
3422 fi
3423 fi
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3425 $as_echo "$cross_compiling" >&6; }
3426
3427 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3428 ac_clean_files=$ac_clean_files_save
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3430 $as_echo_n "checking for suffix of object files... " >&6; }
3431 if ${ac_cv_objext+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436
3437 int
3438 main ()
3439 {
3440
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.o conftest.obj
3446 if { { ac_try="$ac_compile"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_compile") 2>&5
3454 ac_status=$?
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
3457 for ac_file in conftest.o conftest.obj conftest.*; do
3458 test -f "$ac_file" || continue;
3459 case $ac_file in
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3461 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3462 break;;
3463 esac
3464 done
3465 else
3466 $as_echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 as_fn_error $? "cannot compute suffix of object files: cannot compile
3472 See \`config.log' for more details" "$LINENO" 5; }
3473 fi
3474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3477 $as_echo "$ac_cv_objext" >&6; }
3478 OBJEXT=$ac_cv_objext
3479 ac_objext=$OBJEXT
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3481 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3482 if ${ac_cv_c_compiler_gnu+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487
3488 int
3489 main ()
3490 {
3491 #ifndef __GNUC__
3492 choke me
3493 #endif
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_compiler_gnu=yes
3501 else
3502 ac_compiler_gnu=no
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3506
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3509 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3510 if test $ac_compiler_gnu = yes; then
3511 GCC=yes
3512 else
3513 GCC=
3514 fi
3515 ac_test_CFLAGS=${CFLAGS+set}
3516 ac_save_CFLAGS=$CFLAGS
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3518 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3519 if ${ac_cv_prog_cc_g+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 ac_save_c_werror_flag=$ac_c_werror_flag
3523 ac_c_werror_flag=yes
3524 ac_cv_prog_cc_g=no
3525 CFLAGS="-g"
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528
3529 int
3530 main ()
3531 {
3532
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 if ac_fn_c_try_compile "$LINENO"; then :
3538 ac_cv_prog_cc_g=yes
3539 else
3540 CFLAGS=""
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main ()
3546 {
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553
3554 else
3555 ac_c_werror_flag=$ac_save_c_werror_flag
3556 CFLAGS="-g"
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main ()
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_cv_prog_cc_g=yes
3570 fi
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 fi
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 fi
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 ac_c_werror_flag=$ac_save_c_werror_flag
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3579 $as_echo "$ac_cv_prog_cc_g" >&6; }
3580 if test "$ac_test_CFLAGS" = set; then
3581 CFLAGS=$ac_save_CFLAGS
3582 elif test $ac_cv_prog_cc_g = yes; then
3583 if test "$GCC" = yes; then
3584 CFLAGS="-g -O2"
3585 else
3586 CFLAGS="-g"
3587 fi
3588 else
3589 if test "$GCC" = yes; then
3590 CFLAGS="-O2"
3591 else
3592 CFLAGS=
3593 fi
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3596 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3597 if ${ac_cv_prog_cc_c89+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 ac_cv_prog_cc_c89=no
3601 ac_save_CC=$CC
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3604 #include <stdarg.h>
3605 #include <stdio.h>
3606 struct stat;
3607 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3608 struct buf { int x; };
3609 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3610 static char *e (p, i)
3611 char **p;
3612 int i;
3613 {
3614 return p[i];
3615 }
3616 static char *f (char * (*g) (char **, int), char **p, ...)
3617 {
3618 char *s;
3619 va_list v;
3620 va_start (v,p);
3621 s = g (p, va_arg (v,int));
3622 va_end (v);
3623 return s;
3624 }
3625
3626 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3627 function prototypes and stuff, but not '\xHH' hex character constants.
3628 These don't provoke an error unfortunately, instead are silently treated
3629 as 'x'. The following induces an error, until -std is added to get
3630 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3631 array size at least. It's necessary to write '\x00'==0 to get something
3632 that's true only with -std. */
3633 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3634
3635 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3636 inside strings and character constants. */
3637 #define FOO(x) 'x'
3638 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3639
3640 int test (int i, double x);
3641 struct s1 {int (*f) (int a);};
3642 struct s2 {int (*f) (double a);};
3643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3644 int argc;
3645 char **argv;
3646 int
3647 main ()
3648 {
3649 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3650 ;
3651 return 0;
3652 }
3653 _ACEOF
3654 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3655 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3656 do
3657 CC="$ac_save_CC $ac_arg"
3658 if ac_fn_c_try_compile "$LINENO"; then :
3659 ac_cv_prog_cc_c89=$ac_arg
3660 fi
3661 rm -f core conftest.err conftest.$ac_objext
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
3663 done
3664 rm -f conftest.$ac_ext
3665 CC=$ac_save_CC
3666
3667 fi
3668 # AC_CACHE_VAL
3669 case "x$ac_cv_prog_cc_c89" in
3670 x)
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3672 $as_echo "none needed" >&6; } ;;
3673 xno)
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3675 $as_echo "unsupported" >&6; } ;;
3676 *)
3677 CC="$CC $ac_cv_prog_cc_c89"
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3679 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3680 esac
3681 if test "x$ac_cv_prog_cc_c89" != xno; then :
3682
3683 fi
3684
3685 ac_ext=c
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690
3691 ac_ext=c
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3697 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3698 if ${am_cv_prog_cc_c_o+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3703
3704 int
3705 main ()
3706 {
3707
3708 ;
3709 return 0;
3710 }
3711 _ACEOF
3712 # Make sure it works both with $CC and with simple cc.
3713 # Following AC_PROG_CC_C_O, we do the test twice because some
3714 # compilers refuse to overwrite an existing .o file with -o,
3715 # though they will create one.
3716 am_cv_prog_cc_c_o=yes
3717 for am_i in 1 2; do
3718 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3719 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } \
3723 && test -f conftest2.$ac_objext; then
3724 : OK
3725 else
3726 am_cv_prog_cc_c_o=no
3727 break
3728 fi
3729 done
3730 rm -f core conftest*
3731 unset am_i
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3734 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3735 if test "$am_cv_prog_cc_c_o" != yes; then
3736 # Losing compiler, so override with the script.
3737 # FIXME: It is wrong to rewrite CC.
3738 # But if we don't then we get into trouble of one sort or another.
3739 # A longer-term fix would be to have automake use am__CC in this case,
3740 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3741 CC="$am_aux_dir/compile $CC"
3742 fi
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749 DEPDIR="${am__leading_dot}deps"
3750
3751 ac_config_commands="$ac_config_commands depfiles"
3752
3753
3754 am_make=${MAKE-make}
3755 cat > confinc << 'END'
3756 am__doit:
3757 @echo this is the am__doit target
3758 .PHONY: am__doit
3759 END
3760 # If we don't find an include directive, just comment out the code.
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3762 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3763 am__include="#"
3764 am__quote=
3765 _am_result=none
3766 # First try GNU make style include.
3767 echo "include confinc" > confmf
3768 # Ignore all kinds of additional output from 'make'.
3769 case `$am_make -s -f confmf 2> /dev/null` in #(
3770 *the\ am__doit\ target*)
3771 am__include=include
3772 am__quote=
3773 _am_result=GNU
3774 ;;
3775 esac
3776 # Now try BSD make style include.
3777 if test "$am__include" = "#"; then
3778 echo '.include "confinc"' > confmf
3779 case `$am_make -s -f confmf 2> /dev/null` in #(
3780 *the\ am__doit\ target*)
3781 am__include=.include
3782 am__quote="\""
3783 _am_result=BSD
3784 ;;
3785 esac
3786 fi
3787
3788
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3790 $as_echo "$_am_result" >&6; }
3791 rm -f confinc confmf
3792
3793 # Check whether --enable-dependency-tracking was given.
3794 if test "${enable_dependency_tracking+set}" = set; then :
3795 enableval=$enable_dependency_tracking;
3796 fi
3797
3798 if test "x$enable_dependency_tracking" != xno; then
3799 am_depcomp="$ac_aux_dir/depcomp"
3800 AMDEPBACKSLASH='\'
3801 am__nodep='_no'
3802 fi
3803 if test "x$enable_dependency_tracking" != xno; then
3804 AMDEP_TRUE=
3805 AMDEP_FALSE='#'
3806 else
3807 AMDEP_TRUE='#'
3808 AMDEP_FALSE=
3809 fi
3810
3811
3812
3813 depcc="$CC" am_compiler_list=
3814
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3816 $as_echo_n "checking dependency style of $depcc... " >&6; }
3817 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3821 # We make a subdir and do the tests there. Otherwise we can end up
3822 # making bogus files that we don't know about and never remove. For
3823 # instance it was reported that on HP-UX the gcc test will end up
3824 # making a dummy file named 'D' -- because '-MD' means "put the output
3825 # in D".
3826 rm -rf conftest.dir
3827 mkdir conftest.dir
3828 # Copy depcomp to subdir because otherwise we won't find it if we're
3829 # using a relative directory.
3830 cp "$am_depcomp" conftest.dir
3831 cd conftest.dir
3832 # We will build objects and dependencies in a subdirectory because
3833 # it helps to detect inapplicable dependency modes. For instance
3834 # both Tru64's cc and ICC support -MD to output dependencies as a
3835 # side effect of compilation, but ICC will put the dependencies in
3836 # the current directory while Tru64 will put them in the object
3837 # directory.
3838 mkdir sub
3839
3840 am_cv_CC_dependencies_compiler_type=none
3841 if test "$am_compiler_list" = ""; then
3842 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3843 fi
3844 am__universal=false
3845 case " $depcc " in #(
3846 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3847 esac
3848
3849 for depmode in $am_compiler_list; do
3850 # Setup a source with many dependencies, because some compilers
3851 # like to wrap large dependency lists on column 80 (with \), and
3852 # we should not choose a depcomp mode which is confused by this.
3853 #
3854 # We need to recreate these files for each test, as the compiler may
3855 # overwrite some of them when testing with obscure command lines.
3856 # This happens at least with the AIX C compiler.
3857 : > sub/conftest.c
3858 for i in 1 2 3 4 5 6; do
3859 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3860 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3861 # Solaris 10 /bin/sh.
3862 echo '/* dummy */' > sub/conftst$i.h
3863 done
3864 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3865
3866 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3867 # mode. It turns out that the SunPro C++ compiler does not properly
3868 # handle '-M -o', and we need to detect this. Also, some Intel
3869 # versions had trouble with output in subdirs.
3870 am__obj=sub/conftest.${OBJEXT-o}
3871 am__minus_obj="-o $am__obj"
3872 case $depmode in
3873 gcc)
3874 # This depmode causes a compiler race in universal mode.
3875 test "$am__universal" = false || continue
3876 ;;
3877 nosideeffect)
3878 # After this tag, mechanisms are not by side-effect, so they'll
3879 # only be used when explicitly requested.
3880 if test "x$enable_dependency_tracking" = xyes; then
3881 continue
3882 else
3883 break
3884 fi
3885 ;;
3886 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3887 # This compiler won't grok '-c -o', but also, the minuso test has
3888 # not run yet. These depmodes are late enough in the game, and
3889 # so weak that their functioning should not be impacted.
3890 am__obj=conftest.${OBJEXT-o}
3891 am__minus_obj=
3892 ;;
3893 none) break ;;
3894 esac
3895 if depmode=$depmode \
3896 source=sub/conftest.c object=$am__obj \
3897 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3898 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3899 >/dev/null 2>conftest.err &&
3900 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3901 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3902 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3903 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3904 # icc doesn't choke on unknown options, it will just issue warnings
3905 # or remarks (even with -Werror). So we grep stderr for any message
3906 # that says an option was ignored or not supported.
3907 # When given -MP, icc 7.0 and 7.1 complain thusly:
3908 # icc: Command line warning: ignoring option '-M'; no argument required
3909 # The diagnosis changed in icc 8.0:
3910 # icc: Command line remark: option '-MP' not supported
3911 if (grep 'ignoring option' conftest.err ||
3912 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3913 am_cv_CC_dependencies_compiler_type=$depmode
3914 break
3915 fi
3916 fi
3917 done
3918
3919 cd ..
3920 rm -rf conftest.dir
3921 else
3922 am_cv_CC_dependencies_compiler_type=none
3923 fi
3924
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3927 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3928 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3929
3930 if
3931 test "x$enable_dependency_tracking" != xno \
3932 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3933 am__fastdepCC_TRUE=
3934 am__fastdepCC_FALSE='#'
3935 else
3936 am__fastdepCC_TRUE='#'
3937 am__fastdepCC_FALSE=
3938 fi
3939
3940
3941 case `pwd` in
3942 *\ * | *\ *)
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3944 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3945 esac
3946
3947
3948
3949 macro_version='2.4.6'
3950 macro_revision='2.4.6'
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964 ltmain=$ac_aux_dir/ltmain.sh
3965
3966 # Make sure we can run config.sub.
3967 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3968 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3971 $as_echo_n "checking build system type... " >&6; }
3972 if ${ac_cv_build+:} false; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 ac_build_alias=$build_alias
3976 test "x$ac_build_alias" = x &&
3977 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3978 test "x$ac_build_alias" = x &&
3979 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3981 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3982
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3985 $as_echo "$ac_cv_build" >&6; }
3986 case $ac_cv_build in
3987 *-*-*) ;;
3988 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3989 esac
3990 build=$ac_cv_build
3991 ac_save_IFS=$IFS; IFS='-'
3992 set x $ac_cv_build
3993 shift
3994 build_cpu=$1
3995 build_vendor=$2
3996 shift; shift
3997 # Remember, the first character of IFS is used to create $*,
3998 # except with old shells:
3999 build_os=$*
4000 IFS=$ac_save_IFS
4001 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4002
4003
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4005 $as_echo_n "checking host system type... " >&6; }
4006 if ${ac_cv_host+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 if test "x$host_alias" = x; then
4010 ac_cv_host=$ac_cv_build
4011 else
4012 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4013 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4014 fi
4015
4016 fi
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4018 $as_echo "$ac_cv_host" >&6; }
4019 case $ac_cv_host in
4020 *-*-*) ;;
4021 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4022 esac
4023 host=$ac_cv_host
4024 ac_save_IFS=$IFS; IFS='-'
4025 set x $ac_cv_host
4026 shift
4027 host_cpu=$1
4028 host_vendor=$2
4029 shift; shift
4030 # Remember, the first character of IFS is used to create $*,
4031 # except with old shells:
4032 host_os=$*
4033 IFS=$ac_save_IFS
4034 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4035
4036
4037 # Backslashify metacharacters that are still active within
4038 # double-quoted strings.
4039 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4040
4041 # Same as above, but do not quote variable references.
4042 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4043
4044 # Sed substitution to delay expansion of an escaped shell variable in a
4045 # double_quote_subst'ed string.
4046 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4047
4048 # Sed substitution to delay expansion of an escaped single quote.
4049 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4050
4051 # Sed substitution to avoid accidental globbing in evaled expressions
4052 no_glob_subst='s/\*/\\\*/g'
4053
4054 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4055 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4056 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4059 $as_echo_n "checking how to print strings... " >&6; }
4060 # Test print first, because it will be a builtin if present.
4061 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4062 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4063 ECHO='print -r --'
4064 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4065 ECHO='printf %s\n'
4066 else
4067 # Use this function as a fallback that always works.
4068 func_fallback_echo ()
4069 {
4070 eval 'cat <<_LTECHO_EOF
4071 $1
4072 _LTECHO_EOF'
4073 }
4074 ECHO='func_fallback_echo'
4075 fi
4076
4077 # func_echo_all arg...
4078 # Invoke $ECHO with all args, space-separated.
4079 func_echo_all ()
4080 {
4081 $ECHO ""
4082 }
4083
4084 case $ECHO in
4085 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4086 $as_echo "printf" >&6; } ;;
4087 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4088 $as_echo "print -r" >&6; } ;;
4089 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4090 $as_echo "cat" >&6; } ;;
4091 esac
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4107 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4108 if ${ac_cv_path_SED+:} false; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4112 for ac_i in 1 2 3 4 5 6 7; do
4113 ac_script="$ac_script$as_nl$ac_script"
4114 done
4115 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4116 { ac_script=; unset ac_script;}
4117 if test -z "$SED"; then
4118 ac_path_SED_found=false
4119 # Loop through the user's path and test for each of PROGNAME-LIST
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_prog in sed gsed; do
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4128 as_fn_executable_p "$ac_path_SED" || continue
4129 # Check for GNU ac_path_SED and select it if it is found.
4130 # Check for GNU $ac_path_SED
4131 case `"$ac_path_SED" --version 2>&1` in
4132 *GNU*)
4133 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4134 *)
4135 ac_count=0
4136 $as_echo_n 0123456789 >"conftest.in"
4137 while :
4138 do
4139 cat "conftest.in" "conftest.in" >"conftest.tmp"
4140 mv "conftest.tmp" "conftest.in"
4141 cp "conftest.in" "conftest.nl"
4142 $as_echo '' >> "conftest.nl"
4143 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4145 as_fn_arith $ac_count + 1 && ac_count=$as_val
4146 if test $ac_count -gt ${ac_path_SED_max-0}; then
4147 # Best one so far, save it but keep looking for a better one
4148 ac_cv_path_SED="$ac_path_SED"
4149 ac_path_SED_max=$ac_count
4150 fi
4151 # 10*(2^10) chars as input seems more than enough
4152 test $ac_count -gt 10 && break
4153 done
4154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4155 esac
4156
4157 $ac_path_SED_found && break 3
4158 done
4159 done
4160 done
4161 IFS=$as_save_IFS
4162 if test -z "$ac_cv_path_SED"; then
4163 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4164 fi
4165 else
4166 ac_cv_path_SED=$SED
4167 fi
4168
4169 fi
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4171 $as_echo "$ac_cv_path_SED" >&6; }
4172 SED="$ac_cv_path_SED"
4173 rm -f conftest.sed
4174
4175 test -z "$SED" && SED=sed
4176 Xsed="$SED -e 1s/^X//"
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4189 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4190 if ${ac_cv_path_GREP+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 if test -z "$GREP"; then
4194 ac_path_GREP_found=false
4195 # Loop through the user's path and test for each of PROGNAME-LIST
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198 do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_prog in grep ggrep; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4204 as_fn_executable_p "$ac_path_GREP" || continue
4205 # Check for GNU ac_path_GREP and select it if it is found.
4206 # Check for GNU $ac_path_GREP
4207 case `"$ac_path_GREP" --version 2>&1` in
4208 *GNU*)
4209 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4210 *)
4211 ac_count=0
4212 $as_echo_n 0123456789 >"conftest.in"
4213 while :
4214 do
4215 cat "conftest.in" "conftest.in" >"conftest.tmp"
4216 mv "conftest.tmp" "conftest.in"
4217 cp "conftest.in" "conftest.nl"
4218 $as_echo 'GREP' >> "conftest.nl"
4219 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221 as_fn_arith $ac_count + 1 && ac_count=$as_val
4222 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4223 # Best one so far, save it but keep looking for a better one
4224 ac_cv_path_GREP="$ac_path_GREP"
4225 ac_path_GREP_max=$ac_count
4226 fi
4227 # 10*(2^10) chars as input seems more than enough
4228 test $ac_count -gt 10 && break
4229 done
4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231 esac
4232
4233 $ac_path_GREP_found && break 3
4234 done
4235 done
4236 done
4237 IFS=$as_save_IFS
4238 if test -z "$ac_cv_path_GREP"; then
4239 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4240 fi
4241 else
4242 ac_cv_path_GREP=$GREP
4243 fi
4244
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4247 $as_echo "$ac_cv_path_GREP" >&6; }
4248 GREP="$ac_cv_path_GREP"
4249
4250
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4252 $as_echo_n "checking for egrep... " >&6; }
4253 if ${ac_cv_path_EGREP+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4257 then ac_cv_path_EGREP="$GREP -E"
4258 else
4259 if test -z "$EGREP"; then
4260 ac_path_EGREP_found=false
4261 # Loop through the user's path and test for each of PROGNAME-LIST
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4264 do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_prog in egrep; do
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4270 as_fn_executable_p "$ac_path_EGREP" || continue
4271 # Check for GNU ac_path_EGREP and select it if it is found.
4272 # Check for GNU $ac_path_EGREP
4273 case `"$ac_path_EGREP" --version 2>&1` in
4274 *GNU*)
4275 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4276 *)
4277 ac_count=0
4278 $as_echo_n 0123456789 >"conftest.in"
4279 while :
4280 do
4281 cat "conftest.in" "conftest.in" >"conftest.tmp"
4282 mv "conftest.tmp" "conftest.in"
4283 cp "conftest.in" "conftest.nl"
4284 $as_echo 'EGREP' >> "conftest.nl"
4285 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4287 as_fn_arith $ac_count + 1 && ac_count=$as_val
4288 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4289 # Best one so far, save it but keep looking for a better one
4290 ac_cv_path_EGREP="$ac_path_EGREP"
4291 ac_path_EGREP_max=$ac_count
4292 fi
4293 # 10*(2^10) chars as input seems more than enough
4294 test $ac_count -gt 10 && break
4295 done
4296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4297 esac
4298
4299 $ac_path_EGREP_found && break 3
4300 done
4301 done
4302 done
4303 IFS=$as_save_IFS
4304 if test -z "$ac_cv_path_EGREP"; then
4305 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4306 fi
4307 else
4308 ac_cv_path_EGREP=$EGREP
4309 fi
4310
4311 fi
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4314 $as_echo "$ac_cv_path_EGREP" >&6; }
4315 EGREP="$ac_cv_path_EGREP"
4316
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4319 $as_echo_n "checking for fgrep... " >&6; }
4320 if ${ac_cv_path_FGREP+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4324 then ac_cv_path_FGREP="$GREP -F"
4325 else
4326 if test -z "$FGREP"; then
4327 ac_path_FGREP_found=false
4328 # Loop through the user's path and test for each of PROGNAME-LIST
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331 do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_prog in fgrep; do
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4337 as_fn_executable_p "$ac_path_FGREP" || continue
4338 # Check for GNU ac_path_FGREP and select it if it is found.
4339 # Check for GNU $ac_path_FGREP
4340 case `"$ac_path_FGREP" --version 2>&1` in
4341 *GNU*)
4342 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4343 *)
4344 ac_count=0
4345 $as_echo_n 0123456789 >"conftest.in"
4346 while :
4347 do
4348 cat "conftest.in" "conftest.in" >"conftest.tmp"
4349 mv "conftest.tmp" "conftest.in"
4350 cp "conftest.in" "conftest.nl"
4351 $as_echo 'FGREP' >> "conftest.nl"
4352 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354 as_fn_arith $ac_count + 1 && ac_count=$as_val
4355 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4356 # Best one so far, save it but keep looking for a better one
4357 ac_cv_path_FGREP="$ac_path_FGREP"
4358 ac_path_FGREP_max=$ac_count
4359 fi
4360 # 10*(2^10) chars as input seems more than enough
4361 test $ac_count -gt 10 && break
4362 done
4363 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364 esac
4365
4366 $ac_path_FGREP_found && break 3
4367 done
4368 done
4369 done
4370 IFS=$as_save_IFS
4371 if test -z "$ac_cv_path_FGREP"; then
4372 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4373 fi
4374 else
4375 ac_cv_path_FGREP=$FGREP
4376 fi
4377
4378 fi
4379 fi
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4381 $as_echo "$ac_cv_path_FGREP" >&6; }
4382 FGREP="$ac_cv_path_FGREP"
4383
4384
4385 test -z "$GREP" && GREP=grep
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405 # Check whether --with-gnu-ld was given.
4406 if test "${with_gnu_ld+set}" = set; then :
4407 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4408 else
4409 with_gnu_ld=no
4410 fi
4411
4412 ac_prog=ld
4413 if test yes = "$GCC"; then
4414 # Check if gcc -print-prog-name=ld gives a path.
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4416 $as_echo_n "checking for ld used by $CC... " >&6; }
4417 case $host in
4418 *-*-mingw*)
4419 # gcc leaves a trailing carriage return, which upsets mingw
4420 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4421 *)
4422 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4423 esac
4424 case $ac_prog in
4425 # Accept absolute paths.
4426 [\\/]* | ?:[\\/]*)
4427 re_direlt='/[^/][^/]*/\.\./'
4428 # Canonicalize the pathname of ld
4429 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4430 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4431 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4432 done
4433 test -z "$LD" && LD=$ac_prog
4434 ;;
4435 "")
4436 # If it fails, then pretend we aren't using GCC.
4437 ac_prog=ld
4438 ;;
4439 *)
4440 # If it is relative, then search for the first ld in PATH.
4441 with_gnu_ld=unknown
4442 ;;
4443 esac
4444 elif test yes = "$with_gnu_ld"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4446 $as_echo_n "checking for GNU ld... " >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4449 $as_echo_n "checking for non-GNU ld... " >&6; }
4450 fi
4451 if ${lt_cv_path_LD+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -z "$LD"; then
4455 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4456 for ac_dir in $PATH; do
4457 IFS=$lt_save_ifs
4458 test -z "$ac_dir" && ac_dir=.
4459 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4460 lt_cv_path_LD=$ac_dir/$ac_prog
4461 # Check to see if the program is GNU ld. I'd rather use --version,
4462 # but apparently some variants of GNU ld only accept -v.
4463 # Break only if it was the GNU/non-GNU ld that we prefer.
4464 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4465 *GNU* | *'with BFD'*)
4466 test no != "$with_gnu_ld" && break
4467 ;;
4468 *)
4469 test yes != "$with_gnu_ld" && break
4470 ;;
4471 esac
4472 fi
4473 done
4474 IFS=$lt_save_ifs
4475 else
4476 lt_cv_path_LD=$LD # Let the user override the test with a path.
4477 fi
4478 fi
4479
4480 LD=$lt_cv_path_LD
4481 if test -n "$LD"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4483 $as_echo "$LD" >&6; }
4484 else
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4487 fi
4488 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4490 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4491 if ${lt_cv_prog_gnu_ld+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4495 case `$LD -v 2>&1 </dev/null` in
4496 *GNU* | *'with BFD'*)
4497 lt_cv_prog_gnu_ld=yes
4498 ;;
4499 *)
4500 lt_cv_prog_gnu_ld=no
4501 ;;
4502 esac
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4505 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4506 with_gnu_ld=$lt_cv_prog_gnu_ld
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4517 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4518 if ${lt_cv_path_NM+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -n "$NM"; then
4522 # Let the user override the test.
4523 lt_cv_path_NM=$NM
4524 else
4525 lt_nm_to_check=${ac_tool_prefix}nm
4526 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4527 lt_nm_to_check="$lt_nm_to_check nm"
4528 fi
4529 for lt_tmp_nm in $lt_nm_to_check; do
4530 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4531 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4532 IFS=$lt_save_ifs
4533 test -z "$ac_dir" && ac_dir=.
4534 tmp_nm=$ac_dir/$lt_tmp_nm
4535 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4536 # Check to see if the nm accepts a BSD-compat flag.
4537 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4538 # nm: unknown option "B" ignored
4539 # Tru64's nm complains that /dev/null is an invalid object file
4540 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4541 case $build_os in
4542 mingw*) lt_bad_file=conftest.nm/nofile ;;
4543 *) lt_bad_file=/dev/null ;;
4544 esac
4545 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4546 *$lt_bad_file* | *'Invalid file or object type'*)
4547 lt_cv_path_NM="$tmp_nm -B"
4548 break 2
4549 ;;
4550 *)
4551 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4552 */dev/null*)
4553 lt_cv_path_NM="$tmp_nm -p"
4554 break 2
4555 ;;
4556 *)
4557 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4558 continue # so that we can try to find one that supports BSD flags
4559 ;;
4560 esac
4561 ;;
4562 esac
4563 fi
4564 done
4565 IFS=$lt_save_ifs
4566 done
4567 : ${lt_cv_path_NM=no}
4568 fi
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4571 $as_echo "$lt_cv_path_NM" >&6; }
4572 if test no != "$lt_cv_path_NM"; then
4573 NM=$lt_cv_path_NM
4574 else
4575 # Didn't find any BSD compatible name lister, look for dumpbin.
4576 if test -n "$DUMPBIN"; then :
4577 # Let the user override the test.
4578 else
4579 if test -n "$ac_tool_prefix"; then
4580 for ac_prog in dumpbin "link -dump"
4581 do
4582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if ${ac_cv_prog_DUMPBIN+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 if test -n "$DUMPBIN"; then
4590 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603 done
4604 done
4605 IFS=$as_save_IFS
4606
4607 fi
4608 fi
4609 DUMPBIN=$ac_cv_prog_DUMPBIN
4610 if test -n "$DUMPBIN"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4612 $as_echo "$DUMPBIN" >&6; }
4613 else
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4616 fi
4617
4618
4619 test -n "$DUMPBIN" && break
4620 done
4621 fi
4622 if test -z "$DUMPBIN"; then
4623 ac_ct_DUMPBIN=$DUMPBIN
4624 for ac_prog in dumpbin "link -dump"
4625 do
4626 # Extract the first word of "$ac_prog", so it can be a program name with args.
4627 set dummy $ac_prog; ac_word=$2
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4629 $as_echo_n "checking for $ac_word... " >&6; }
4630 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 if test -n "$ac_ct_DUMPBIN"; then
4634 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 break 2
4646 fi
4647 done
4648 done
4649 IFS=$as_save_IFS
4650
4651 fi
4652 fi
4653 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4654 if test -n "$ac_ct_DUMPBIN"; then
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4656 $as_echo "$ac_ct_DUMPBIN" >&6; }
4657 else
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4659 $as_echo "no" >&6; }
4660 fi
4661
4662
4663 test -n "$ac_ct_DUMPBIN" && break
4664 done
4665
4666 if test "x$ac_ct_DUMPBIN" = x; then
4667 DUMPBIN=":"
4668 else
4669 case $cross_compiling:$ac_tool_warned in
4670 yes:)
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4673 ac_tool_warned=yes ;;
4674 esac
4675 DUMPBIN=$ac_ct_DUMPBIN
4676 fi
4677 fi
4678
4679 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4680 *COFF*)
4681 DUMPBIN="$DUMPBIN -symbols -headers"
4682 ;;
4683 *)
4684 DUMPBIN=:
4685 ;;
4686 esac
4687 fi
4688
4689 if test : != "$DUMPBIN"; then
4690 NM=$DUMPBIN
4691 fi
4692 fi
4693 test -z "$NM" && NM=nm
4694
4695
4696
4697
4698
4699
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4701 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4702 if ${lt_cv_nm_interface+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 lt_cv_nm_interface="BSD nm"
4706 echo "int some_variable = 0;" > conftest.$ac_ext
4707 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4708 (eval "$ac_compile" 2>conftest.err)
4709 cat conftest.err >&5
4710 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4711 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4712 cat conftest.err >&5
4713 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4714 cat conftest.out >&5
4715 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4716 lt_cv_nm_interface="MS dumpbin"
4717 fi
4718 rm -f conftest*
4719 fi
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4721 $as_echo "$lt_cv_nm_interface" >&6; }
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4724 $as_echo_n "checking whether ln -s works... " >&6; }
4725 LN_S=$as_ln_s
4726 if test "$LN_S" = "ln -s"; then
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4728 $as_echo "yes" >&6; }
4729 else
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4731 $as_echo "no, using $LN_S" >&6; }
4732 fi
4733
4734 # find the maximum length of command line arguments
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4736 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4737 if ${lt_cv_sys_max_cmd_len+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 i=0
4741 teststring=ABCD
4742
4743 case $build_os in
4744 msdosdjgpp*)
4745 # On DJGPP, this test can blow up pretty badly due to problems in libc
4746 # (any single argument exceeding 2000 bytes causes a buffer overrun
4747 # during glob expansion). Even if it were fixed, the result of this
4748 # check would be larger than it should be.
4749 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4750 ;;
4751
4752 gnu*)
4753 # Under GNU Hurd, this test is not required because there is
4754 # no limit to the length of command line arguments.
4755 # Libtool will interpret -1 as no limit whatsoever
4756 lt_cv_sys_max_cmd_len=-1;
4757 ;;
4758
4759 cygwin* | mingw* | cegcc*)
4760 # On Win9x/ME, this test blows up -- it succeeds, but takes
4761 # about 5 minutes as the teststring grows exponentially.
4762 # Worse, since 9x/ME are not pre-emptively multitasking,
4763 # you end up with a "frozen" computer, even though with patience
4764 # the test eventually succeeds (with a max line length of 256k).
4765 # Instead, let's just punt: use the minimum linelength reported by
4766 # all of the supported platforms: 8192 (on NT/2K/XP).
4767 lt_cv_sys_max_cmd_len=8192;
4768 ;;
4769
4770 mint*)
4771 # On MiNT this can take a long time and run out of memory.
4772 lt_cv_sys_max_cmd_len=8192;
4773 ;;
4774
4775 amigaos*)
4776 # On AmigaOS with pdksh, this test takes hours, literally.
4777 # So we just punt and use a minimum line length of 8192.
4778 lt_cv_sys_max_cmd_len=8192;
4779 ;;
4780
4781 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4782 # This has been around since 386BSD, at least. Likely further.
4783 if test -x /sbin/sysctl; then
4784 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4785 elif test -x /usr/sbin/sysctl; then
4786 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4787 else
4788 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4789 fi
4790 # And add a safety zone
4791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4793 ;;
4794
4795 interix*)
4796 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4797 lt_cv_sys_max_cmd_len=196608
4798 ;;
4799
4800 os2*)
4801 # The test takes a long time on OS/2.
4802 lt_cv_sys_max_cmd_len=8192
4803 ;;
4804
4805 osf*)
4806 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4807 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4808 # nice to cause kernel panics so lets avoid the loop below.
4809 # First set a reasonable default.
4810 lt_cv_sys_max_cmd_len=16384
4811 #
4812 if test -x /sbin/sysconfig; then
4813 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4814 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4815 esac
4816 fi
4817 ;;
4818 sco3.2v5*)
4819 lt_cv_sys_max_cmd_len=102400
4820 ;;
4821 sysv5* | sco5v6* | sysv4.2uw2*)
4822 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4823 if test -n "$kargmax"; then
4824 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4825 else
4826 lt_cv_sys_max_cmd_len=32768
4827 fi
4828 ;;
4829 *)
4830 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4831 if test -n "$lt_cv_sys_max_cmd_len" && \
4832 test undefined != "$lt_cv_sys_max_cmd_len"; then
4833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4835 else
4836 # Make teststring a little bigger before we do anything with it.
4837 # a 1K string should be a reasonable start.
4838 for i in 1 2 3 4 5 6 7 8; do
4839 teststring=$teststring$teststring
4840 done
4841 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4842 # If test is not a shell built-in, we'll probably end up computing a
4843 # maximum length that is only half of the actual maximum length, but
4844 # we can't tell.
4845 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4846 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4847 test 17 != "$i" # 1/2 MB should be enough
4848 do
4849 i=`expr $i + 1`
4850 teststring=$teststring$teststring
4851 done
4852 # Only check the string length outside the loop.
4853 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4854 teststring=
4855 # Add a significant safety factor because C++ compilers can tack on
4856 # massive amounts of additional arguments before passing them to the
4857 # linker. It appears as though 1/2 is a usable value.
4858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4859 fi
4860 ;;
4861 esac
4862
4863 fi
4864
4865 if test -n "$lt_cv_sys_max_cmd_len"; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4867 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4868 else
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4870 $as_echo "none" >&6; }
4871 fi
4872 max_cmd_len=$lt_cv_sys_max_cmd_len
4873
4874
4875
4876
4877
4878
4879 : ${CP="cp -f"}
4880 : ${MV="mv -f"}
4881 : ${RM="rm -f"}
4882
4883 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4884 lt_unset=unset
4885 else
4886 lt_unset=false
4887 fi
4888
4889
4890
4891
4892
4893 # test EBCDIC or ASCII
4894 case `echo X|tr X '\101'` in
4895 A) # ASCII based system
4896 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4897 lt_SP2NL='tr \040 \012'
4898 lt_NL2SP='tr \015\012 \040\040'
4899 ;;
4900 *) # EBCDIC based system
4901 lt_SP2NL='tr \100 \n'
4902 lt_NL2SP='tr \r\n \100\100'
4903 ;;
4904 esac
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4915 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4916 if ${lt_cv_to_host_file_cmd+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 case $host in
4920 *-*-mingw* )
4921 case $build in
4922 *-*-mingw* ) # actually msys
4923 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4924 ;;
4925 *-*-cygwin* )
4926 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4927 ;;
4928 * ) # otherwise, assume *nix
4929 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4930 ;;
4931 esac
4932 ;;
4933 *-*-cygwin* )
4934 case $build in
4935 *-*-mingw* ) # actually msys
4936 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4937 ;;
4938 *-*-cygwin* )
4939 lt_cv_to_host_file_cmd=func_convert_file_noop
4940 ;;
4941 * ) # otherwise, assume *nix
4942 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4943 ;;
4944 esac
4945 ;;
4946 * ) # unhandled hosts (and "normal" native builds)
4947 lt_cv_to_host_file_cmd=func_convert_file_noop
4948 ;;
4949 esac
4950
4951 fi
4952
4953 to_host_file_cmd=$lt_cv_to_host_file_cmd
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4955 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4956
4957
4958
4959
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4962 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4963 if ${lt_cv_to_tool_file_cmd+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 #assume ordinary cross tools, or native build.
4967 lt_cv_to_tool_file_cmd=func_convert_file_noop
4968 case $host in
4969 *-*-mingw* )
4970 case $build in
4971 *-*-mingw* ) # actually msys
4972 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4973 ;;
4974 esac
4975 ;;
4976 esac
4977
4978 fi
4979
4980 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4982 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4983
4984
4985
4986
4987
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4989 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4990 if ${lt_cv_ld_reload_flag+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 lt_cv_ld_reload_flag='-r'
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4996 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4997 reload_flag=$lt_cv_ld_reload_flag
4998 case $reload_flag in
4999 "" | " "*) ;;
5000 *) reload_flag=" $reload_flag" ;;
5001 esac
5002 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5003 case $host_os in
5004 cygwin* | mingw* | pw32* | cegcc*)
5005 if test yes != "$GCC"; then
5006 reload_cmds=false
5007 fi
5008 ;;
5009 darwin*)
5010 if test yes = "$GCC"; then
5011 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5012 else
5013 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5014 fi
5015 ;;
5016 esac
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026 if test -n "$ac_tool_prefix"; then
5027 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5028 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_OBJDUMP+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -n "$OBJDUMP"; then
5035 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5047 fi
5048 done
5049 done
5050 IFS=$as_save_IFS
5051
5052 fi
5053 fi
5054 OBJDUMP=$ac_cv_prog_OBJDUMP
5055 if test -n "$OBJDUMP"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5057 $as_echo "$OBJDUMP" >&6; }
5058 else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 fi
5062
5063
5064 fi
5065 if test -z "$ac_cv_prog_OBJDUMP"; then
5066 ac_ct_OBJDUMP=$OBJDUMP
5067 # Extract the first word of "objdump", so it can be a program name with args.
5068 set dummy objdump; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 if test -n "$ac_ct_OBJDUMP"; then
5075 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5087 fi
5088 done
5089 done
5090 IFS=$as_save_IFS
5091
5092 fi
5093 fi
5094 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5095 if test -n "$ac_ct_OBJDUMP"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5097 $as_echo "$ac_ct_OBJDUMP" >&6; }
5098 else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102
5103 if test "x$ac_ct_OBJDUMP" = x; then
5104 OBJDUMP="false"
5105 else
5106 case $cross_compiling:$ac_tool_warned in
5107 yes:)
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5110 ac_tool_warned=yes ;;
5111 esac
5112 OBJDUMP=$ac_ct_OBJDUMP
5113 fi
5114 else
5115 OBJDUMP="$ac_cv_prog_OBJDUMP"
5116 fi
5117
5118 test -z "$OBJDUMP" && OBJDUMP=objdump
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5129 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5130 if ${lt_cv_deplibs_check_method+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 lt_cv_file_magic_cmd='$MAGIC_CMD'
5134 lt_cv_file_magic_test_file=
5135 lt_cv_deplibs_check_method='unknown'
5136 # Need to set the preceding variable on all platforms that support
5137 # interlibrary dependencies.
5138 # 'none' -- dependencies not supported.
5139 # 'unknown' -- same as none, but documents that we really don't know.
5140 # 'pass_all' -- all dependencies passed with no checks.
5141 # 'test_compile' -- check by making test program.
5142 # 'file_magic [[regex]]' -- check by looking for files in library path
5143 # that responds to the $file_magic_cmd with a given extended regex.
5144 # If you have 'file' or equivalent on your system and you're not sure
5145 # whether 'pass_all' will *always* work, you probably want this one.
5146
5147 case $host_os in
5148 aix[4-9]*)
5149 lt_cv_deplibs_check_method=pass_all
5150 ;;
5151
5152 beos*)
5153 lt_cv_deplibs_check_method=pass_all
5154 ;;
5155
5156 bsdi[45]*)
5157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5158 lt_cv_file_magic_cmd='/usr/bin/file -L'
5159 lt_cv_file_magic_test_file=/shlib/libc.so
5160 ;;
5161
5162 cygwin*)
5163 # func_win32_libid is a shell function defined in ltmain.sh
5164 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5165 lt_cv_file_magic_cmd='func_win32_libid'
5166 ;;
5167
5168 mingw* | pw32*)
5169 # Base MSYS/MinGW do not provide the 'file' command needed by
5170 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5171 # unless we find 'file', for example because we are cross-compiling.
5172 if ( file / ) >/dev/null 2>&1; then
5173 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5174 lt_cv_file_magic_cmd='func_win32_libid'
5175 else
5176 # Keep this pattern in sync with the one in func_win32_libid.
5177 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5178 lt_cv_file_magic_cmd='$OBJDUMP -f'
5179 fi
5180 ;;
5181
5182 cegcc*)
5183 # use the weaker test based on 'objdump'. See mingw*.
5184 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5185 lt_cv_file_magic_cmd='$OBJDUMP -f'
5186 ;;
5187
5188 darwin* | rhapsody*)
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
5191
5192 freebsd* | dragonfly*)
5193 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5194 case $host_cpu in
5195 i*86 )
5196 # Not sure whether the presence of OpenBSD here was a mistake.
5197 # Let's accept both of them until this is cleared up.
5198 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5199 lt_cv_file_magic_cmd=/usr/bin/file
5200 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5201 ;;
5202 esac
5203 else
5204 lt_cv_deplibs_check_method=pass_all
5205 fi
5206 ;;
5207
5208 haiku*)
5209 lt_cv_deplibs_check_method=pass_all
5210 ;;
5211
5212 hpux10.20* | hpux11*)
5213 lt_cv_file_magic_cmd=/usr/bin/file
5214 case $host_cpu in
5215 ia64*)
5216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5217 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5218 ;;
5219 hppa*64*)
5220 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]'
5221 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5222 ;;
5223 *)
5224 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5225 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5226 ;;
5227 esac
5228 ;;
5229
5230 interix[3-9]*)
5231 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5233 ;;
5234
5235 irix5* | irix6* | nonstopux*)
5236 case $LD in
5237 *-32|*"-32 ") libmagic=32-bit;;
5238 *-n32|*"-n32 ") libmagic=N32;;
5239 *-64|*"-64 ") libmagic=64-bit;;
5240 *) libmagic=never-match;;
5241 esac
5242 lt_cv_deplibs_check_method=pass_all
5243 ;;
5244
5245 # This must be glibc/ELF.
5246 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249
5250 netbsd*)
5251 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5253 else
5254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5255 fi
5256 ;;
5257
5258 newos6*)
5259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5260 lt_cv_file_magic_cmd=/usr/bin/file
5261 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5262 ;;
5263
5264 *nto* | *qnx*)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
5267
5268 openbsd* | bitrig*)
5269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5271 else
5272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5273 fi
5274 ;;
5275
5276 osf3* | osf4* | osf5*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279
5280 rdos*)
5281 lt_cv_deplibs_check_method=pass_all
5282 ;;
5283
5284 solaris*)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287
5288 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5289 lt_cv_deplibs_check_method=pass_all
5290 ;;
5291
5292 sysv4 | sysv4.3*)
5293 case $host_vendor in
5294 motorola)
5295 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]'
5296 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5297 ;;
5298 ncr)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
5301 sequent)
5302 lt_cv_file_magic_cmd='/bin/file'
5303 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5304 ;;
5305 sni)
5306 lt_cv_file_magic_cmd='/bin/file'
5307 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5308 lt_cv_file_magic_test_file=/lib/libc.so
5309 ;;
5310 siemens)
5311 lt_cv_deplibs_check_method=pass_all
5312 ;;
5313 pc)
5314 lt_cv_deplibs_check_method=pass_all
5315 ;;
5316 esac
5317 ;;
5318
5319 tpf*)
5320 lt_cv_deplibs_check_method=pass_all
5321 ;;
5322 os2*)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325 esac
5326
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5329 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5330
5331 file_magic_glob=
5332 want_nocaseglob=no
5333 if test "$build" = "$host"; then
5334 case $host_os in
5335 mingw* | pw32*)
5336 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5337 want_nocaseglob=yes
5338 else
5339 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5340 fi
5341 ;;
5342 esac
5343 fi
5344
5345 file_magic_cmd=$lt_cv_file_magic_cmd
5346 deplibs_check_method=$lt_cv_deplibs_check_method
5347 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370 if test -n "$ac_tool_prefix"; then
5371 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5372 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if ${ac_cv_prog_DLLTOOL+:} false; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 if test -n "$DLLTOOL"; then
5379 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5380 else
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5383 do
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5388 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 break 2
5391 fi
5392 done
5393 done
5394 IFS=$as_save_IFS
5395
5396 fi
5397 fi
5398 DLLTOOL=$ac_cv_prog_DLLTOOL
5399 if test -n "$DLLTOOL"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5401 $as_echo "$DLLTOOL" >&6; }
5402 else
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5405 fi
5406
5407
5408 fi
5409 if test -z "$ac_cv_prog_DLLTOOL"; then
5410 ac_ct_DLLTOOL=$DLLTOOL
5411 # Extract the first word of "dlltool", so it can be a program name with args.
5412 set dummy dlltool; ac_word=$2
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 if test -n "$ac_ct_DLLTOOL"; then
5419 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5420 else
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5423 do
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5431 fi
5432 done
5433 done
5434 IFS=$as_save_IFS
5435
5436 fi
5437 fi
5438 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5439 if test -n "$ac_ct_DLLTOOL"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5441 $as_echo "$ac_ct_DLLTOOL" >&6; }
5442 else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5445 fi
5446
5447 if test "x$ac_ct_DLLTOOL" = x; then
5448 DLLTOOL="false"
5449 else
5450 case $cross_compiling:$ac_tool_warned in
5451 yes:)
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5454 ac_tool_warned=yes ;;
5455 esac
5456 DLLTOOL=$ac_ct_DLLTOOL
5457 fi
5458 else
5459 DLLTOOL="$ac_cv_prog_DLLTOOL"
5460 fi
5461
5462 test -z "$DLLTOOL" && DLLTOOL=dlltool
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5474 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5475 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 lt_cv_sharedlib_from_linklib_cmd='unknown'
5479
5480 case $host_os in
5481 cygwin* | mingw* | pw32* | cegcc*)
5482 # two different shell functions defined in ltmain.sh;
5483 # decide which one to use based on capabilities of $DLLTOOL
5484 case `$DLLTOOL --help 2>&1` in
5485 *--identify-strict*)
5486 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5487 ;;
5488 *)
5489 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5490 ;;
5491 esac
5492 ;;
5493 *)
5494 # fallback: assume linklib IS sharedlib
5495 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5496 ;;
5497 esac
5498
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5501 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5502 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5503 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5504
5505
5506
5507
5508
5509
5510
5511
5512 if test -n "$ac_tool_prefix"; then
5513 for ac_prog in ar
5514 do
5515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_AR+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$AR"; then
5523 ac_cv_prog_AR="$AR" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536 done
5537 done
5538 IFS=$as_save_IFS
5539
5540 fi
5541 fi
5542 AR=$ac_cv_prog_AR
5543 if test -n "$AR"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5545 $as_echo "$AR" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551
5552 test -n "$AR" && break
5553 done
5554 fi
5555 if test -z "$AR"; then
5556 ac_ct_AR=$AR
5557 for ac_prog in ar
5558 do
5559 # Extract the first word of "$ac_prog", so it can be a program name with args.
5560 set dummy $ac_prog; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$ac_ct_AR"; then
5567 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576 ac_cv_prog_ac_ct_AR="$ac_prog"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5579 fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5587 if test -n "$ac_ct_AR"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5589 $as_echo "$ac_ct_AR" >&6; }
5590 else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595
5596 test -n "$ac_ct_AR" && break
5597 done
5598
5599 if test "x$ac_ct_AR" = x; then
5600 AR="false"
5601 else
5602 case $cross_compiling:$ac_tool_warned in
5603 yes:)
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5606 ac_tool_warned=yes ;;
5607 esac
5608 AR=$ac_ct_AR
5609 fi
5610 fi
5611
5612 : ${AR=ar}
5613 : ${AR_FLAGS=cru}
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5626 $as_echo_n "checking for archiver @FILE support... " >&6; }
5627 if ${lt_cv_ar_at_file+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 lt_cv_ar_at_file=no
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633
5634 int
5635 main ()
5636 {
5637
5638 ;
5639 return 0;
5640 }
5641 _ACEOF
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643 echo conftest.$ac_objext > conftest.lst
5644 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5646 (eval $lt_ar_try) 2>&5
5647 ac_status=$?
5648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5649 test $ac_status = 0; }
5650 if test 0 -eq "$ac_status"; then
5651 # Ensure the archiver fails upon bogus file names.
5652 rm -f conftest.$ac_objext libconftest.a
5653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5654 (eval $lt_ar_try) 2>&5
5655 ac_status=$?
5656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5657 test $ac_status = 0; }
5658 if test 0 -ne "$ac_status"; then
5659 lt_cv_ar_at_file=@
5660 fi
5661 fi
5662 rm -f conftest.* libconftest.a
5663
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5669 $as_echo "$lt_cv_ar_at_file" >&6; }
5670
5671 if test no = "$lt_cv_ar_at_file"; then
5672 archiver_list_spec=
5673 else
5674 archiver_list_spec=$lt_cv_ar_at_file
5675 fi
5676
5677
5678
5679
5680
5681
5682
5683 if test -n "$ac_tool_prefix"; then
5684 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5685 set dummy ${ac_tool_prefix}strip; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_prog_STRIP+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if test -n "$STRIP"; then
5692 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705 done
5706 done
5707 IFS=$as_save_IFS
5708
5709 fi
5710 fi
5711 STRIP=$ac_cv_prog_STRIP
5712 if test -n "$STRIP"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5714 $as_echo "$STRIP" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 fi
5719
5720
5721 fi
5722 if test -z "$ac_cv_prog_STRIP"; then
5723 ac_ct_STRIP=$STRIP
5724 # Extract the first word of "strip", so it can be a program name with args.
5725 set dummy strip; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -n "$ac_ct_STRIP"; then
5732 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_ac_ct_STRIP="strip"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5744 fi
5745 done
5746 done
5747 IFS=$as_save_IFS
5748
5749 fi
5750 fi
5751 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5752 if test -n "$ac_ct_STRIP"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5754 $as_echo "$ac_ct_STRIP" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759
5760 if test "x$ac_ct_STRIP" = x; then
5761 STRIP=":"
5762 else
5763 case $cross_compiling:$ac_tool_warned in
5764 yes:)
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767 ac_tool_warned=yes ;;
5768 esac
5769 STRIP=$ac_ct_STRIP
5770 fi
5771 else
5772 STRIP="$ac_cv_prog_STRIP"
5773 fi
5774
5775 test -z "$STRIP" && STRIP=:
5776
5777
5778
5779
5780
5781
5782 if test -n "$ac_tool_prefix"; then
5783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if ${ac_cv_prog_RANLIB+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 if test -n "$RANLIB"; then
5791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 break 2
5803 fi
5804 done
5805 done
5806 IFS=$as_save_IFS
5807
5808 fi
5809 fi
5810 RANLIB=$ac_cv_prog_RANLIB
5811 if test -n "$RANLIB"; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5813 $as_echo "$RANLIB" >&6; }
5814 else
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817 fi
5818
5819
5820 fi
5821 if test -z "$ac_cv_prog_RANLIB"; then
5822 ac_ct_RANLIB=$RANLIB
5823 # Extract the first word of "ranlib", so it can be a program name with args.
5824 set dummy ranlib; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 if test -n "$ac_ct_RANLIB"; then
5831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840 ac_cv_prog_ac_ct_RANLIB="ranlib"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844 done
5845 done
5846 IFS=$as_save_IFS
5847
5848 fi
5849 fi
5850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5851 if test -n "$ac_ct_RANLIB"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5853 $as_echo "$ac_ct_RANLIB" >&6; }
5854 else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5857 fi
5858
5859 if test "x$ac_ct_RANLIB" = x; then
5860 RANLIB=":"
5861 else
5862 case $cross_compiling:$ac_tool_warned in
5863 yes:)
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5866 ac_tool_warned=yes ;;
5867 esac
5868 RANLIB=$ac_ct_RANLIB
5869 fi
5870 else
5871 RANLIB="$ac_cv_prog_RANLIB"
5872 fi
5873
5874 test -z "$RANLIB" && RANLIB=:
5875
5876
5877
5878
5879
5880
5881 # Determine commands to create old-style static archives.
5882 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5883 old_postinstall_cmds='chmod 644 $oldlib'
5884 old_postuninstall_cmds=
5885
5886 if test -n "$RANLIB"; then
5887 case $host_os in
5888 bitrig* | openbsd*)
5889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5890 ;;
5891 *)
5892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5893 ;;
5894 esac
5895 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5896 fi
5897
5898 case $host_os in
5899 darwin*)
5900 lock_old_archive_extraction=yes ;;
5901 *)
5902 lock_old_archive_extraction=no ;;
5903 esac
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943 # If no C compiler was specified, use CC.
5944 LTCC=${LTCC-"$CC"}
5945
5946 # If no C compiler flags were specified, use CFLAGS.
5947 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5948
5949 # Allow CC to be a program name with arguments.
5950 compiler=$CC
5951
5952
5953 # Check for command to grab the raw symbol name followed by C symbol from nm.
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5955 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5956 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959
5960 # These are sane defaults that work on at least a few old systems.
5961 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5962
5963 # Character class describing NM global symbol codes.
5964 symcode='[BCDEGRST]'
5965
5966 # Regexp to match symbols that can be accessed directly from C.
5967 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5968
5969 # Define system-specific variables.
5970 case $host_os in
5971 aix*)
5972 symcode='[BCDT]'
5973 ;;
5974 cygwin* | mingw* | pw32* | cegcc*)
5975 symcode='[ABCDGISTW]'
5976 ;;
5977 hpux*)
5978 if test ia64 = "$host_cpu"; then
5979 symcode='[ABCDEGRST]'
5980 fi
5981 ;;
5982 irix* | nonstopux*)
5983 symcode='[BCDEGRST]'
5984 ;;
5985 osf*)
5986 symcode='[BCDEGQRST]'
5987 ;;
5988 solaris*)
5989 symcode='[BDRT]'
5990 ;;
5991 sco3.2v5*)
5992 symcode='[DT]'
5993 ;;
5994 sysv4.2uw2*)
5995 symcode='[DT]'
5996 ;;
5997 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5998 symcode='[ABDT]'
5999 ;;
6000 sysv4)
6001 symcode='[DFNSTU]'
6002 ;;
6003 esac
6004
6005 # If we're using GNU nm, then use its standard symbol codes.
6006 case `$NM -V 2>&1` in
6007 *GNU* | *'with BFD'*)
6008 symcode='[ABCDGIRSTW]' ;;
6009 esac
6010
6011 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6012 # Gets list of data symbols to import.
6013 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6014 # Adjust the below global symbol transforms to fixup imported variables.
6015 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6016 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6017 lt_c_name_lib_hook="\
6018 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6019 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6020 else
6021 # Disable hooks by default.
6022 lt_cv_sys_global_symbol_to_import=
6023 lt_cdecl_hook=
6024 lt_c_name_hook=
6025 lt_c_name_lib_hook=
6026 fi
6027
6028 # Transform an extracted symbol line into a proper C declaration.
6029 # Some systems (esp. on ia64) link data and code symbols differently,
6030 # so use this general approach.
6031 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6032 $lt_cdecl_hook\
6033 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6034 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6035
6036 # Transform an extracted symbol line into symbol name and symbol address
6037 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6038 $lt_c_name_hook\
6039 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6040 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6041
6042 # Transform an extracted symbol line into symbol name with lib prefix and
6043 # symbol address.
6044 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6045 $lt_c_name_lib_hook\
6046 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6047 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6048 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6049
6050 # Handle CRLF in mingw tool chain
6051 opt_cr=
6052 case $build_os in
6053 mingw*)
6054 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6055 ;;
6056 esac
6057
6058 # Try without a prefix underscore, then with it.
6059 for ac_symprfx in "" "_"; do
6060
6061 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6062 symxfrm="\\1 $ac_symprfx\\2 \\2"
6063
6064 # Write the raw and C identifiers.
6065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6066 # Fake it for dumpbin and say T for any non-static function,
6067 # D for any global variable and I for any imported variable.
6068 # Also find C++ and __fastcall symbols from MSVC++,
6069 # which start with @ or ?.
6070 lt_cv_sys_global_symbol_pipe="$AWK '"\
6071 " {last_section=section; section=\$ 3};"\
6072 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6073 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6074 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6075 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6076 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6077 " \$ 0!~/External *\|/{next};"\
6078 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6079 " {if(hide[section]) next};"\
6080 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6081 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6082 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6083 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6084 " ' prfx=^$ac_symprfx"
6085 else
6086 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6087 fi
6088 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6089
6090 # Check to see that the pipe works correctly.
6091 pipe_works=no
6092
6093 rm -f conftest*
6094 cat > conftest.$ac_ext <<_LT_EOF
6095 #ifdef __cplusplus
6096 extern "C" {
6097 #endif
6098 char nm_test_var;
6099 void nm_test_func(void);
6100 void nm_test_func(void){}
6101 #ifdef __cplusplus
6102 }
6103 #endif
6104 int main(){nm_test_var='a';nm_test_func();return(0);}
6105 _LT_EOF
6106
6107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6108 (eval $ac_compile) 2>&5
6109 ac_status=$?
6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111 test $ac_status = 0; }; then
6112 # Now try to grab the symbols.
6113 nlist=conftest.nm
6114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6115 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6116 ac_status=$?
6117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6118 test $ac_status = 0; } && test -s "$nlist"; then
6119 # Try sorting and uniquifying the output.
6120 if sort "$nlist" | uniq > "$nlist"T; then
6121 mv -f "$nlist"T "$nlist"
6122 else
6123 rm -f "$nlist"T
6124 fi
6125
6126 # Make sure that we snagged all the symbols we need.
6127 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6128 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6129 cat <<_LT_EOF > conftest.$ac_ext
6130 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6131 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6132 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6133 relocations are performed -- see ld's documentation on pseudo-relocs. */
6134 # define LT_DLSYM_CONST
6135 #elif defined __osf__
6136 /* This system does not cope well with relocations in const data. */
6137 # define LT_DLSYM_CONST
6138 #else
6139 # define LT_DLSYM_CONST const
6140 #endif
6141
6142 #ifdef __cplusplus
6143 extern "C" {
6144 #endif
6145
6146 _LT_EOF
6147 # Now generate the symbol file.
6148 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6149
6150 cat <<_LT_EOF >> conftest.$ac_ext
6151
6152 /* The mapping between symbol names and symbols. */
6153 LT_DLSYM_CONST struct {
6154 const char *name;
6155 void *address;
6156 }
6157 lt__PROGRAM__LTX_preloaded_symbols[] =
6158 {
6159 { "@PROGRAM@", (void *) 0 },
6160 _LT_EOF
6161 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6162 cat <<\_LT_EOF >> conftest.$ac_ext
6163 {0, (void *) 0}
6164 };
6165
6166 /* This works around a problem in FreeBSD linker */
6167 #ifdef FREEBSD_WORKAROUND
6168 static const void *lt_preloaded_setup() {
6169 return lt__PROGRAM__LTX_preloaded_symbols;
6170 }
6171 #endif
6172
6173 #ifdef __cplusplus
6174 }
6175 #endif
6176 _LT_EOF
6177 # Now try linking the two files.
6178 mv conftest.$ac_objext conftstm.$ac_objext
6179 lt_globsym_save_LIBS=$LIBS
6180 lt_globsym_save_CFLAGS=$CFLAGS
6181 LIBS=conftstm.$ac_objext
6182 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6184 (eval $ac_link) 2>&5
6185 ac_status=$?
6186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6188 pipe_works=yes
6189 fi
6190 LIBS=$lt_globsym_save_LIBS
6191 CFLAGS=$lt_globsym_save_CFLAGS
6192 else
6193 echo "cannot find nm_test_func in $nlist" >&5
6194 fi
6195 else
6196 echo "cannot find nm_test_var in $nlist" >&5
6197 fi
6198 else
6199 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6200 fi
6201 else
6202 echo "$progname: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6204 fi
6205 rm -rf conftest* conftst*
6206
6207 # Do not use the global_symbol_pipe unless it works.
6208 if test yes = "$pipe_works"; then
6209 break
6210 else
6211 lt_cv_sys_global_symbol_pipe=
6212 fi
6213 done
6214
6215 fi
6216
6217 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6218 lt_cv_sys_global_symbol_to_cdecl=
6219 fi
6220 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6222 $as_echo "failed" >&6; }
6223 else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6225 $as_echo "ok" >&6; }
6226 fi
6227
6228 # Response file support.
6229 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6230 nm_file_list_spec='@'
6231 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6232 nm_file_list_spec='@'
6233 fi
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6272 $as_echo_n "checking for sysroot... " >&6; }
6273
6274 # Check whether --with-sysroot was given.
6275 if test "${with_sysroot+set}" = set; then :
6276 withval=$with_sysroot;
6277 else
6278 with_sysroot=no
6279 fi
6280
6281
6282 lt_sysroot=
6283 case $with_sysroot in #(
6284 yes)
6285 if test yes = "$GCC"; then
6286 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6287 fi
6288 ;; #(
6289 /*)
6290 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6291 ;; #(
6292 no|'')
6293 ;; #(
6294 *)
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6296 $as_echo "$with_sysroot" >&6; }
6297 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6298 ;;
6299 esac
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6302 $as_echo "${lt_sysroot:-no}" >&6; }
6303
6304
6305
6306
6307
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6309 $as_echo_n "checking for a working dd... " >&6; }
6310 if ${ac_cv_path_lt_DD+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 printf 0123456789abcdef0123456789abcdef >conftest.i
6314 cat conftest.i conftest.i >conftest2.i
6315 : ${lt_DD:=$DD}
6316 if test -z "$lt_DD"; then
6317 ac_path_lt_DD_found=false
6318 # Loop through the user's path and test for each of PROGNAME-LIST
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_prog in dd; do
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6327 as_fn_executable_p "$ac_path_lt_DD" || continue
6328 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6329 cmp -s conftest.i conftest.out \
6330 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6331 fi
6332 $ac_path_lt_DD_found && break 3
6333 done
6334 done
6335 done
6336 IFS=$as_save_IFS
6337 if test -z "$ac_cv_path_lt_DD"; then
6338 :
6339 fi
6340 else
6341 ac_cv_path_lt_DD=$lt_DD
6342 fi
6343
6344 rm -f conftest.i conftest2.i conftest.out
6345 fi
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6347 $as_echo "$ac_cv_path_lt_DD" >&6; }
6348
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6351 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6352 if ${lt_cv_truncate_bin+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 printf 0123456789abcdef0123456789abcdef >conftest.i
6356 cat conftest.i conftest.i >conftest2.i
6357 lt_cv_truncate_bin=
6358 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6359 cmp -s conftest.i conftest.out \
6360 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6361 fi
6362 rm -f conftest.i conftest2.i conftest.out
6363 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6364 fi
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6366 $as_echo "$lt_cv_truncate_bin" >&6; }
6367
6368
6369
6370
6371
6372
6373
6374 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6375 func_cc_basename ()
6376 {
6377 for cc_temp in $*""; do
6378 case $cc_temp in
6379 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6380 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6381 \-*) ;;
6382 *) break;;
6383 esac
6384 done
6385 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6386 }
6387
6388 # Check whether --enable-libtool-lock was given.
6389 if test "${enable_libtool_lock+set}" = set; then :
6390 enableval=$enable_libtool_lock;
6391 fi
6392
6393 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6394
6395 # Some flags need to be propagated to the compiler or linker for good
6396 # libtool support.
6397 case $host in
6398 ia64-*-hpux*)
6399 # Find out what ABI is being produced by ac_compile, and set mode
6400 # options accordingly.
6401 echo 'int i;' > conftest.$ac_ext
6402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6403 (eval $ac_compile) 2>&5
6404 ac_status=$?
6405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6406 test $ac_status = 0; }; then
6407 case `/usr/bin/file conftest.$ac_objext` in
6408 *ELF-32*)
6409 HPUX_IA64_MODE=32
6410 ;;
6411 *ELF-64*)
6412 HPUX_IA64_MODE=64
6413 ;;
6414 esac
6415 fi
6416 rm -rf conftest*
6417 ;;
6418 *-*-irix6*)
6419 # Find out what ABI is being produced by ac_compile, and set linker
6420 # options accordingly.
6421 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6423 (eval $ac_compile) 2>&5
6424 ac_status=$?
6425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426 test $ac_status = 0; }; then
6427 if test yes = "$lt_cv_prog_gnu_ld"; then
6428 case `/usr/bin/file conftest.$ac_objext` in
6429 *32-bit*)
6430 LD="${LD-ld} -melf32bsmip"
6431 ;;
6432 *N32*)
6433 LD="${LD-ld} -melf32bmipn32"
6434 ;;
6435 *64-bit*)
6436 LD="${LD-ld} -melf64bmip"
6437 ;;
6438 esac
6439 else
6440 case `/usr/bin/file conftest.$ac_objext` in
6441 *32-bit*)
6442 LD="${LD-ld} -32"
6443 ;;
6444 *N32*)
6445 LD="${LD-ld} -n32"
6446 ;;
6447 *64-bit*)
6448 LD="${LD-ld} -64"
6449 ;;
6450 esac
6451 fi
6452 fi
6453 rm -rf conftest*
6454 ;;
6455
6456 mips64*-*linux*)
6457 # Find out what ABI is being produced by ac_compile, and set linker
6458 # options accordingly.
6459 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461 (eval $ac_compile) 2>&5
6462 ac_status=$?
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; }; then
6465 emul=elf
6466 case `/usr/bin/file conftest.$ac_objext` in
6467 *32-bit*)
6468 emul="${emul}32"
6469 ;;
6470 *64-bit*)
6471 emul="${emul}64"
6472 ;;
6473 esac
6474 case `/usr/bin/file conftest.$ac_objext` in
6475 *MSB*)
6476 emul="${emul}btsmip"
6477 ;;
6478 *LSB*)
6479 emul="${emul}ltsmip"
6480 ;;
6481 esac
6482 case `/usr/bin/file conftest.$ac_objext` in
6483 *N32*)
6484 emul="${emul}n32"
6485 ;;
6486 esac
6487 LD="${LD-ld} -m $emul"
6488 fi
6489 rm -rf conftest*
6490 ;;
6491
6492 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6493 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6494 # Find out what ABI is being produced by ac_compile, and set linker
6495 # options accordingly. Note that the listed cases only cover the
6496 # situations where additional linker options are needed (such as when
6497 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6498 # vice versa); the common cases where no linker options are needed do
6499 # not appear in the list.
6500 echo 'int i;' > conftest.$ac_ext
6501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6502 (eval $ac_compile) 2>&5
6503 ac_status=$?
6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505 test $ac_status = 0; }; then
6506 case `/usr/bin/file conftest.o` in
6507 *32-bit*)
6508 case $host in
6509 x86_64-*kfreebsd*-gnu)
6510 LD="${LD-ld} -m elf_i386_fbsd"
6511 ;;
6512 x86_64-*linux*)
6513 case `/usr/bin/file conftest.o` in
6514 *x86-64*)
6515 LD="${LD-ld} -m elf32_x86_64"
6516 ;;
6517 *)
6518 LD="${LD-ld} -m elf_i386"
6519 ;;
6520 esac
6521 ;;
6522 powerpc64le-*linux*)
6523 LD="${LD-ld} -m elf32lppclinux"
6524 ;;
6525 powerpc64-*linux*)
6526 LD="${LD-ld} -m elf32ppclinux"
6527 ;;
6528 s390x-*linux*)
6529 LD="${LD-ld} -m elf_s390"
6530 ;;
6531 sparc64-*linux*)
6532 LD="${LD-ld} -m elf32_sparc"
6533 ;;
6534 esac
6535 ;;
6536 *64-bit*)
6537 case $host in
6538 x86_64-*kfreebsd*-gnu)
6539 LD="${LD-ld} -m elf_x86_64_fbsd"
6540 ;;
6541 x86_64-*linux*)
6542 LD="${LD-ld} -m elf_x86_64"
6543 ;;
6544 powerpcle-*linux*)
6545 LD="${LD-ld} -m elf64lppc"
6546 ;;
6547 powerpc-*linux*)
6548 LD="${LD-ld} -m elf64ppc"
6549 ;;
6550 s390*-*linux*|s390*-*tpf*)
6551 LD="${LD-ld} -m elf64_s390"
6552 ;;
6553 sparc*-*linux*)
6554 LD="${LD-ld} -m elf64_sparc"
6555 ;;
6556 esac
6557 ;;
6558 esac
6559 fi
6560 rm -rf conftest*
6561 ;;
6562
6563 *-*-sco3.2v5*)
6564 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6565 SAVE_CFLAGS=$CFLAGS
6566 CFLAGS="$CFLAGS -belf"
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6568 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6569 if ${lt_cv_cc_needs_belf+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 ac_ext=c
6573 ac_cpp='$CPP $CPPFLAGS'
6574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6577
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580
6581 int
6582 main ()
6583 {
6584
6585 ;
6586 return 0;
6587 }
6588 _ACEOF
6589 if ac_fn_c_try_link "$LINENO"; then :
6590 lt_cv_cc_needs_belf=yes
6591 else
6592 lt_cv_cc_needs_belf=no
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6596 ac_ext=c
6597 ac_cpp='$CPP $CPPFLAGS'
6598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6601
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6604 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6605 if test yes != "$lt_cv_cc_needs_belf"; then
6606 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6607 CFLAGS=$SAVE_CFLAGS
6608 fi
6609 ;;
6610 *-*solaris*)
6611 # Find out what ABI is being produced by ac_compile, and set linker
6612 # options accordingly.
6613 echo 'int i;' > conftest.$ac_ext
6614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6615 (eval $ac_compile) 2>&5
6616 ac_status=$?
6617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6618 test $ac_status = 0; }; then
6619 case `/usr/bin/file conftest.o` in
6620 *64-bit*)
6621 case $lt_cv_prog_gnu_ld in
6622 yes*)
6623 case $host in
6624 i?86-*-solaris*|x86_64-*-solaris*)
6625 LD="${LD-ld} -m elf_x86_64"
6626 ;;
6627 sparc*-*-solaris*)
6628 LD="${LD-ld} -m elf64_sparc"
6629 ;;
6630 esac
6631 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6632 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6633 LD=${LD-ld}_sol2
6634 fi
6635 ;;
6636 *)
6637 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6638 LD="${LD-ld} -64"
6639 fi
6640 ;;
6641 esac
6642 ;;
6643 esac
6644 fi
6645 rm -rf conftest*
6646 ;;
6647 esac
6648
6649 need_locks=$enable_libtool_lock
6650
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}mt; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if test -n "$MANIFEST_TOOL"; then
6660 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6680 if test -n "$MANIFEST_TOOL"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6682 $as_echo "$MANIFEST_TOOL" >&6; }
6683 else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688
6689 fi
6690 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6691 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6692 # Extract the first word of "mt", so it can be a program name with args.
6693 set dummy mt; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 if test -n "$ac_ct_MANIFEST_TOOL"; then
6700 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6720 if test -n "$ac_ct_MANIFEST_TOOL"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6722 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6729 MANIFEST_TOOL=":"
6730 else
6731 case $cross_compiling:$ac_tool_warned in
6732 yes:)
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6735 ac_tool_warned=yes ;;
6736 esac
6737 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6738 fi
6739 else
6740 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6741 fi
6742
6743 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6745 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6746 if ${lt_cv_path_mainfest_tool+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 lt_cv_path_mainfest_tool=no
6750 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6751 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6752 cat conftest.err >&5
6753 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6754 lt_cv_path_mainfest_tool=yes
6755 fi
6756 rm -f conftest*
6757 fi
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6759 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6760 if test yes != "$lt_cv_path_mainfest_tool"; then
6761 MANIFEST_TOOL=:
6762 fi
6763
6764
6765
6766
6767
6768
6769 case $host_os in
6770 rhapsody* | darwin*)
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$DSYMUTIL"; then
6780 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6800 if test -n "$DSYMUTIL"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6802 $as_echo "$DSYMUTIL" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808
6809 fi
6810 if test -z "$ac_cv_prog_DSYMUTIL"; then
6811 ac_ct_DSYMUTIL=$DSYMUTIL
6812 # Extract the first word of "dsymutil", so it can be a program name with args.
6813 set dummy dsymutil; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 if test -n "$ac_ct_DSYMUTIL"; then
6820 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6840 if test -n "$ac_ct_DSYMUTIL"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6842 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848 if test "x$ac_ct_DSYMUTIL" = x; then
6849 DSYMUTIL=":"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857 DSYMUTIL=$ac_ct_DSYMUTIL
6858 fi
6859 else
6860 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6861 fi
6862
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_prog_NMEDIT+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 if test -n "$NMEDIT"; then
6872 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885 done
6886 done
6887 IFS=$as_save_IFS
6888
6889 fi
6890 fi
6891 NMEDIT=$ac_cv_prog_NMEDIT
6892 if test -n "$NMEDIT"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6894 $as_echo "$NMEDIT" >&6; }
6895 else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6898 fi
6899
6900
6901 fi
6902 if test -z "$ac_cv_prog_NMEDIT"; then
6903 ac_ct_NMEDIT=$NMEDIT
6904 # Extract the first word of "nmedit", so it can be a program name with args.
6905 set dummy nmedit; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 if test -n "$ac_ct_NMEDIT"; then
6912 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925 done
6926 done
6927 IFS=$as_save_IFS
6928
6929 fi
6930 fi
6931 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6932 if test -n "$ac_ct_NMEDIT"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6934 $as_echo "$ac_ct_NMEDIT" >&6; }
6935 else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940 if test "x$ac_ct_NMEDIT" = x; then
6941 NMEDIT=":"
6942 else
6943 case $cross_compiling:$ac_tool_warned in
6944 yes:)
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949 NMEDIT=$ac_ct_NMEDIT
6950 fi
6951 else
6952 NMEDIT="$ac_cv_prog_NMEDIT"
6953 fi
6954
6955 if test -n "$ac_tool_prefix"; then
6956 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_LIPO+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$LIPO"; then
6964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981 fi
6982 fi
6983 LIPO=$ac_cv_prog_LIPO
6984 if test -n "$LIPO"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6986 $as_echo "$LIPO" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6990 fi
6991
6992
6993 fi
6994 if test -z "$ac_cv_prog_LIPO"; then
6995 ac_ct_LIPO=$LIPO
6996 # Extract the first word of "lipo", so it can be a program name with args.
6997 set dummy lipo; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$ac_ct_LIPO"; then
7004 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_ac_ct_LIPO="lipo"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7024 if test -n "$ac_ct_LIPO"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7026 $as_echo "$ac_ct_LIPO" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032 if test "x$ac_ct_LIPO" = x; then
7033 LIPO=":"
7034 else
7035 case $cross_compiling:$ac_tool_warned in
7036 yes:)
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7039 ac_tool_warned=yes ;;
7040 esac
7041 LIPO=$ac_ct_LIPO
7042 fi
7043 else
7044 LIPO="$ac_cv_prog_LIPO"
7045 fi
7046
7047 if test -n "$ac_tool_prefix"; then
7048 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7049 set dummy ${ac_tool_prefix}otool; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_OTOOL+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$OTOOL"; then
7056 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 OTOOL=$ac_cv_prog_OTOOL
7076 if test -n "$OTOOL"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7078 $as_echo "$OTOOL" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084
7085 fi
7086 if test -z "$ac_cv_prog_OTOOL"; then
7087 ac_ct_OTOOL=$OTOOL
7088 # Extract the first word of "otool", so it can be a program name with args.
7089 set dummy otool; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 if test -n "$ac_ct_OTOOL"; then
7096 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_ac_ct_OTOOL="otool"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113 fi
7114 fi
7115 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7116 if test -n "$ac_ct_OTOOL"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7118 $as_echo "$ac_ct_OTOOL" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7123
7124 if test "x$ac_ct_OTOOL" = x; then
7125 OTOOL=":"
7126 else
7127 case $cross_compiling:$ac_tool_warned in
7128 yes:)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133 OTOOL=$ac_ct_OTOOL
7134 fi
7135 else
7136 OTOOL="$ac_cv_prog_OTOOL"
7137 fi
7138
7139 if test -n "$ac_tool_prefix"; then
7140 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7141 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if ${ac_cv_prog_OTOOL64+:} false; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 if test -n "$OTOOL64"; then
7148 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161 done
7162 done
7163 IFS=$as_save_IFS
7164
7165 fi
7166 fi
7167 OTOOL64=$ac_cv_prog_OTOOL64
7168 if test -n "$OTOOL64"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7170 $as_echo "$OTOOL64" >&6; }
7171 else
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7174 fi
7175
7176
7177 fi
7178 if test -z "$ac_cv_prog_OTOOL64"; then
7179 ac_ct_OTOOL64=$OTOOL64
7180 # Extract the first word of "otool64", so it can be a program name with args.
7181 set dummy otool64; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 if test -n "$ac_ct_OTOOL64"; then
7188 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_ac_ct_OTOOL64="otool64"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201 done
7202 done
7203 IFS=$as_save_IFS
7204
7205 fi
7206 fi
7207 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7208 if test -n "$ac_ct_OTOOL64"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7210 $as_echo "$ac_ct_OTOOL64" >&6; }
7211 else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7214 fi
7215
7216 if test "x$ac_ct_OTOOL64" = x; then
7217 OTOOL64=":"
7218 else
7219 case $cross_compiling:$ac_tool_warned in
7220 yes:)
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7223 ac_tool_warned=yes ;;
7224 esac
7225 OTOOL64=$ac_ct_OTOOL64
7226 fi
7227 else
7228 OTOOL64="$ac_cv_prog_OTOOL64"
7229 fi
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7258 $as_echo_n "checking for -single_module linker flag... " >&6; }
7259 if ${lt_cv_apple_cc_single_mod+:} false; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 lt_cv_apple_cc_single_mod=no
7263 if test -z "$LT_MULTI_MODULE"; then
7264 # By default we will add the -single_module flag. You can override
7265 # by either setting the environment variable LT_MULTI_MODULE
7266 # non-empty at configure time, or by adding -multi_module to the
7267 # link flags.
7268 rm -rf libconftest.dylib*
7269 echo "int foo(void){return 1;}" > conftest.c
7270 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7271 -dynamiclib -Wl,-single_module conftest.c" >&5
7272 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7273 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7274 _lt_result=$?
7275 # If there is a non-empty error log, and "single_module"
7276 # appears in it, assume the flag caused a linker warning
7277 if test -s conftest.err && $GREP single_module conftest.err; then
7278 cat conftest.err >&5
7279 # Otherwise, if the output was created with a 0 exit code from
7280 # the compiler, it worked.
7281 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7282 lt_cv_apple_cc_single_mod=yes
7283 else
7284 cat conftest.err >&5
7285 fi
7286 rm -rf libconftest.dylib*
7287 rm -f conftest.*
7288 fi
7289 fi
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7291 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7292
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7294 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7295 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 lt_cv_ld_exported_symbols_list=no
7299 save_LDFLAGS=$LDFLAGS
7300 echo "_main" > conftest.sym
7301 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304
7305 int
7306 main ()
7307 {
7308
7309 ;
7310 return 0;
7311 }
7312 _ACEOF
7313 if ac_fn_c_try_link "$LINENO"; then :
7314 lt_cv_ld_exported_symbols_list=yes
7315 else
7316 lt_cv_ld_exported_symbols_list=no
7317 fi
7318 rm -f core conftest.err conftest.$ac_objext \
7319 conftest$ac_exeext conftest.$ac_ext
7320 LDFLAGS=$save_LDFLAGS
7321
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7324 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7327 $as_echo_n "checking for -force_load linker flag... " >&6; }
7328 if ${lt_cv_ld_force_load+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 lt_cv_ld_force_load=no
7332 cat > conftest.c << _LT_EOF
7333 int forced_loaded() { return 2;}
7334 _LT_EOF
7335 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7336 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7337 echo "$AR cru libconftest.a conftest.o" >&5
7338 $AR cru libconftest.a conftest.o 2>&5
7339 echo "$RANLIB libconftest.a" >&5
7340 $RANLIB libconftest.a 2>&5
7341 cat > conftest.c << _LT_EOF
7342 int main() { return 0;}
7343 _LT_EOF
7344 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7345 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7346 _lt_result=$?
7347 if test -s conftest.err && $GREP force_load conftest.err; then
7348 cat conftest.err >&5
7349 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7350 lt_cv_ld_force_load=yes
7351 else
7352 cat conftest.err >&5
7353 fi
7354 rm -f conftest.err libconftest.a conftest conftest.c
7355 rm -rf conftest.dSYM
7356
7357 fi
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7359 $as_echo "$lt_cv_ld_force_load" >&6; }
7360 case $host_os in
7361 rhapsody* | darwin1.[012])
7362 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7363 darwin1.*)
7364 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7365 darwin*) # darwin 5.x on
7366 # if running on 10.5 or later, the deployment target defaults
7367 # to the OS version, if on x86, and 10.4, the deployment
7368 # target defaults to 10.4. Don't you love it?
7369 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7370 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7371 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7372 10.[012][,.]*)
7373 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7374 10.*)
7375 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7376 esac
7377 ;;
7378 esac
7379 if test yes = "$lt_cv_apple_cc_single_mod"; then
7380 _lt_dar_single_mod='$single_module'
7381 fi
7382 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7383 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7384 else
7385 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7386 fi
7387 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7388 _lt_dsymutil='~$DSYMUTIL $lib || :'
7389 else
7390 _lt_dsymutil=
7391 fi
7392 ;;
7393 esac
7394
7395 # func_munge_path_list VARIABLE PATH
7396 # -----------------------------------
7397 # VARIABLE is name of variable containing _space_ separated list of
7398 # directories to be munged by the contents of PATH, which is string
7399 # having a format:
7400 # "DIR[:DIR]:"
7401 # string "DIR[ DIR]" will be prepended to VARIABLE
7402 # ":DIR[:DIR]"
7403 # string "DIR[ DIR]" will be appended to VARIABLE
7404 # "DIRP[:DIRP]::[DIRA:]DIRA"
7405 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7406 # "DIRA[ DIRA]" will be appended to VARIABLE
7407 # "DIR[:DIR]"
7408 # VARIABLE will be replaced by "DIR[ DIR]"
7409 func_munge_path_list ()
7410 {
7411 case x$2 in
7412 x)
7413 ;;
7414 *:)
7415 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7416 ;;
7417 x:*)
7418 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7419 ;;
7420 *::*)
7421 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7422 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7423 ;;
7424 *)
7425 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7426 ;;
7427 esac
7428 }
7429
7430 ac_ext=c
7431 ac_cpp='$CPP $CPPFLAGS'
7432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7436 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7437 # On Suns, sometimes $CPP names a directory.
7438 if test -n "$CPP" && test -d "$CPP"; then
7439 CPP=
7440 fi
7441 if test -z "$CPP"; then
7442 if ${ac_cv_prog_CPP+:} false; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445 # Double quotes because CPP needs to be expanded
7446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7447 do
7448 ac_preproc_ok=false
7449 for ac_c_preproc_warn_flag in '' yes
7450 do
7451 # Use a header file that comes with gcc, so configuring glibc
7452 # with a fresh cross-compiler works.
7453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7454 # <limits.h> exists even on freestanding compilers.
7455 # On the NeXT, cc -E runs the code through the compiler's parser,
7456 # not just through cpp. "Syntax error" is here to catch this case.
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 #ifdef __STDC__
7460 # include <limits.h>
7461 #else
7462 # include <assert.h>
7463 #endif
7464 Syntax error
7465 _ACEOF
7466 if ac_fn_c_try_cpp "$LINENO"; then :
7467
7468 else
7469 # Broken: fails on valid input.
7470 continue
7471 fi
7472 rm -f conftest.err conftest.i conftest.$ac_ext
7473
7474 # OK, works on sane cases. Now check whether nonexistent headers
7475 # can be detected and how.
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7478 #include <ac_nonexistent.h>
7479 _ACEOF
7480 if ac_fn_c_try_cpp "$LINENO"; then :
7481 # Broken: success on invalid input.
7482 continue
7483 else
7484 # Passes both tests.
7485 ac_preproc_ok=:
7486 break
7487 fi
7488 rm -f conftest.err conftest.i conftest.$ac_ext
7489
7490 done
7491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7492 rm -f conftest.i conftest.err conftest.$ac_ext
7493 if $ac_preproc_ok; then :
7494 break
7495 fi
7496
7497 done
7498 ac_cv_prog_CPP=$CPP
7499
7500 fi
7501 CPP=$ac_cv_prog_CPP
7502 else
7503 ac_cv_prog_CPP=$CPP
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7506 $as_echo "$CPP" >&6; }
7507 ac_preproc_ok=false
7508 for ac_c_preproc_warn_flag in '' yes
7509 do
7510 # Use a header file that comes with gcc, so configuring glibc
7511 # with a fresh cross-compiler works.
7512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513 # <limits.h> exists even on freestanding compilers.
7514 # On the NeXT, cc -E runs the code through the compiler's parser,
7515 # not just through cpp. "Syntax error" is here to catch this case.
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 #ifdef __STDC__
7519 # include <limits.h>
7520 #else
7521 # include <assert.h>
7522 #endif
7523 Syntax error
7524 _ACEOF
7525 if ac_fn_c_try_cpp "$LINENO"; then :
7526
7527 else
7528 # Broken: fails on valid input.
7529 continue
7530 fi
7531 rm -f conftest.err conftest.i conftest.$ac_ext
7532
7533 # OK, works on sane cases. Now check whether nonexistent headers
7534 # can be detected and how.
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537 #include <ac_nonexistent.h>
7538 _ACEOF
7539 if ac_fn_c_try_cpp "$LINENO"; then :
7540 # Broken: success on invalid input.
7541 continue
7542 else
7543 # Passes both tests.
7544 ac_preproc_ok=:
7545 break
7546 fi
7547 rm -f conftest.err conftest.i conftest.$ac_ext
7548
7549 done
7550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7551 rm -f conftest.i conftest.err conftest.$ac_ext
7552 if $ac_preproc_ok; then :
7553
7554 else
7555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7557 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7558 See \`config.log' for more details" "$LINENO" 5; }
7559 fi
7560
7561 ac_ext=c
7562 ac_cpp='$CPP $CPPFLAGS'
7563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7566
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7569 $as_echo_n "checking for ANSI C header files... " >&6; }
7570 if ${ac_cv_header_stdc+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575 #include <stdlib.h>
7576 #include <stdarg.h>
7577 #include <string.h>
7578 #include <float.h>
7579
7580 int
7581 main ()
7582 {
7583
7584 ;
7585 return 0;
7586 }
7587 _ACEOF
7588 if ac_fn_c_try_compile "$LINENO"; then :
7589 ac_cv_header_stdc=yes
7590 else
7591 ac_cv_header_stdc=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594
7595 if test $ac_cv_header_stdc = yes; then
7596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7599 #include <string.h>
7600
7601 _ACEOF
7602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7603 $EGREP "memchr" >/dev/null 2>&1; then :
7604
7605 else
7606 ac_cv_header_stdc=no
7607 fi
7608 rm -f conftest*
7609
7610 fi
7611
7612 if test $ac_cv_header_stdc = yes; then
7613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7616 #include <stdlib.h>
7617
7618 _ACEOF
7619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7620 $EGREP "free" >/dev/null 2>&1; then :
7621
7622 else
7623 ac_cv_header_stdc=no
7624 fi
7625 rm -f conftest*
7626
7627 fi
7628
7629 if test $ac_cv_header_stdc = yes; then
7630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7631 if test "$cross_compiling" = yes; then :
7632 :
7633 else
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 #include <ctype.h>
7637 #include <stdlib.h>
7638 #if ((' ' & 0x0FF) == 0x020)
7639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7641 #else
7642 # define ISLOWER(c) \
7643 (('a' <= (c) && (c) <= 'i') \
7644 || ('j' <= (c) && (c) <= 'r') \
7645 || ('s' <= (c) && (c) <= 'z'))
7646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7647 #endif
7648
7649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7650 int
7651 main ()
7652 {
7653 int i;
7654 for (i = 0; i < 256; i++)
7655 if (XOR (islower (i), ISLOWER (i))
7656 || toupper (i) != TOUPPER (i))
7657 return 2;
7658 return 0;
7659 }
7660 _ACEOF
7661 if ac_fn_c_try_run "$LINENO"; then :
7662
7663 else
7664 ac_cv_header_stdc=no
7665 fi
7666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7667 conftest.$ac_objext conftest.beam conftest.$ac_ext
7668 fi
7669
7670 fi
7671 fi
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7673 $as_echo "$ac_cv_header_stdc" >&6; }
7674 if test $ac_cv_header_stdc = yes; then
7675
7676 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7677
7678 fi
7679
7680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7681 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7682 inttypes.h stdint.h unistd.h
7683 do :
7684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7685 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7686 "
7687 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7688 cat >>confdefs.h <<_ACEOF
7689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7690 _ACEOF
7691
7692 fi
7693
7694 done
7695
7696
7697 for ac_header in dlfcn.h
7698 do :
7699 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7700 "
7701 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7702 cat >>confdefs.h <<_ACEOF
7703 #define HAVE_DLFCN_H 1
7704 _ACEOF
7705
7706 fi
7707
7708 done
7709
7710
7711
7712
7713
7714 # Set options
7715
7716
7717
7718 enable_dlopen=no
7719
7720
7721 enable_win32_dll=no
7722
7723
7724 # Check whether --enable-shared was given.
7725 if test "${enable_shared+set}" = set; then :
7726 enableval=$enable_shared; p=${PACKAGE-default}
7727 case $enableval in
7728 yes) enable_shared=yes ;;
7729 no) enable_shared=no ;;
7730 *)
7731 enable_shared=no
7732 # Look at the argument we got. We use all the common list separators.
7733 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7734 for pkg in $enableval; do
7735 IFS=$lt_save_ifs
7736 if test "X$pkg" = "X$p"; then
7737 enable_shared=yes
7738 fi
7739 done
7740 IFS=$lt_save_ifs
7741 ;;
7742 esac
7743 else
7744 enable_shared=yes
7745 fi
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755 # Check whether --enable-static was given.
7756 if test "${enable_static+set}" = set; then :
7757 enableval=$enable_static; p=${PACKAGE-default}
7758 case $enableval in
7759 yes) enable_static=yes ;;
7760 no) enable_static=no ;;
7761 *)
7762 enable_static=no
7763 # Look at the argument we got. We use all the common list separators.
7764 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7765 for pkg in $enableval; do
7766 IFS=$lt_save_ifs
7767 if test "X$pkg" = "X$p"; then
7768 enable_static=yes
7769 fi
7770 done
7771 IFS=$lt_save_ifs
7772 ;;
7773 esac
7774 else
7775 enable_static=yes
7776 fi
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787 # Check whether --with-pic was given.
7788 if test "${with_pic+set}" = set; then :
7789 withval=$with_pic; lt_p=${PACKAGE-default}
7790 case $withval in
7791 yes|no) pic_mode=$withval ;;
7792 *)
7793 pic_mode=default
7794 # Look at the argument we got. We use all the common list separators.
7795 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7796 for lt_pkg in $withval; do
7797 IFS=$lt_save_ifs
7798 if test "X$lt_pkg" = "X$lt_p"; then
7799 pic_mode=yes
7800 fi
7801 done
7802 IFS=$lt_save_ifs
7803 ;;
7804 esac
7805 else
7806 pic_mode=default
7807 fi
7808
7809
7810
7811
7812
7813
7814
7815
7816 # Check whether --enable-fast-install was given.
7817 if test "${enable_fast_install+set}" = set; then :
7818 enableval=$enable_fast_install; p=${PACKAGE-default}
7819 case $enableval in
7820 yes) enable_fast_install=yes ;;
7821 no) enable_fast_install=no ;;
7822 *)
7823 enable_fast_install=no
7824 # Look at the argument we got. We use all the common list separators.
7825 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7826 for pkg in $enableval; do
7827 IFS=$lt_save_ifs
7828 if test "X$pkg" = "X$p"; then
7829 enable_fast_install=yes
7830 fi
7831 done
7832 IFS=$lt_save_ifs
7833 ;;
7834 esac
7835 else
7836 enable_fast_install=yes
7837 fi
7838
7839
7840
7841
7842
7843
7844
7845
7846 shared_archive_member_spec=
7847 case $host,$enable_shared in
7848 power*-*-aix[5-9]*,yes)
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7850 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7851
7852 # Check whether --with-aix-soname was given.
7853 if test "${with_aix_soname+set}" = set; then :
7854 withval=$with_aix_soname; case $withval in
7855 aix|svr4|both)
7856 ;;
7857 *)
7858 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7859 ;;
7860 esac
7861 lt_cv_with_aix_soname=$with_aix_soname
7862 else
7863 if ${lt_cv_with_aix_soname+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 lt_cv_with_aix_soname=aix
7867 fi
7868
7869 with_aix_soname=$lt_cv_with_aix_soname
7870 fi
7871
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7873 $as_echo "$with_aix_soname" >&6; }
7874 if test aix != "$with_aix_soname"; then
7875 # For the AIX way of multilib, we name the shared archive member
7876 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7877 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7878 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7879 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7880 if test 64 = "${OBJECT_MODE-32}"; then
7881 shared_archive_member_spec=shr_64
7882 else
7883 shared_archive_member_spec=shr
7884 fi
7885 fi
7886 ;;
7887 *)
7888 with_aix_soname=aix
7889 ;;
7890 esac
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901 # This can be used to rebuild libtool when needed
7902 LIBTOOL_DEPS=$ltmain
7903
7904 # Always use our own libtool.
7905 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936 test -z "$LN_S" && LN_S="ln -s"
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951 if test -n "${ZSH_VERSION+set}"; then
7952 setopt NO_GLOB_SUBST
7953 fi
7954
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7956 $as_echo_n "checking for objdir... " >&6; }
7957 if ${lt_cv_objdir+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 rm -f .libs 2>/dev/null
7961 mkdir .libs 2>/dev/null
7962 if test -d .libs; then
7963 lt_cv_objdir=.libs
7964 else
7965 # MS-DOS does not allow filenames that begin with a dot.
7966 lt_cv_objdir=_libs
7967 fi
7968 rmdir .libs 2>/dev/null
7969 fi
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7971 $as_echo "$lt_cv_objdir" >&6; }
7972 objdir=$lt_cv_objdir
7973
7974
7975
7976
7977
7978 cat >>confdefs.h <<_ACEOF
7979 #define LT_OBJDIR "$lt_cv_objdir/"
7980 _ACEOF
7981
7982
7983
7984
7985 case $host_os in
7986 aix3*)
7987 # AIX sometimes has problems with the GCC collect2 program. For some
7988 # reason, if we set the COLLECT_NAMES environment variable, the problems
7989 # vanish in a puff of smoke.
7990 if test set != "${COLLECT_NAMES+set}"; then
7991 COLLECT_NAMES=
7992 export COLLECT_NAMES
7993 fi
7994 ;;
7995 esac
7996
7997 # Global variables:
7998 ofile=libtool
7999 can_build_shared=yes
8000
8001 # All known linkers require a '.a' archive for static linking (except MSVC,
8002 # which needs '.lib').
8003 libext=a
8004
8005 with_gnu_ld=$lt_cv_prog_gnu_ld
8006
8007 old_CC=$CC
8008 old_CFLAGS=$CFLAGS
8009
8010 # Set sane defaults for various variables
8011 test -z "$CC" && CC=cc
8012 test -z "$LTCC" && LTCC=$CC
8013 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8014 test -z "$LD" && LD=ld
8015 test -z "$ac_objext" && ac_objext=o
8016
8017 func_cc_basename $compiler
8018 cc_basename=$func_cc_basename_result
8019
8020
8021 # Only perform the check for file, if the check method requires it
8022 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8023 case $deplibs_check_method in
8024 file_magic*)
8025 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8027 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8028 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 case $MAGIC_CMD in
8032 [\\/*] | ?:[\\/]*)
8033 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8034 ;;
8035 *)
8036 lt_save_MAGIC_CMD=$MAGIC_CMD
8037 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8038 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8039 for ac_dir in $ac_dummy; do
8040 IFS=$lt_save_ifs
8041 test -z "$ac_dir" && ac_dir=.
8042 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8043 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8044 if test -n "$file_magic_test_file"; then
8045 case $deplibs_check_method in
8046 "file_magic "*)
8047 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8048 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8049 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8050 $EGREP "$file_magic_regex" > /dev/null; then
8051 :
8052 else
8053 cat <<_LT_EOF 1>&2
8054
8055 *** Warning: the command libtool uses to detect shared libraries,
8056 *** $file_magic_cmd, produces output that libtool cannot recognize.
8057 *** The result is that libtool may fail to recognize shared libraries
8058 *** as such. This will affect the creation of libtool libraries that
8059 *** depend on shared libraries, but programs linked with such libtool
8060 *** libraries will work regardless of this problem. Nevertheless, you
8061 *** may want to report the problem to your system manager and/or to
8062 *** [email protected]
8063
8064 _LT_EOF
8065 fi ;;
8066 esac
8067 fi
8068 break
8069 fi
8070 done
8071 IFS=$lt_save_ifs
8072 MAGIC_CMD=$lt_save_MAGIC_CMD
8073 ;;
8074 esac
8075 fi
8076
8077 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8078 if test -n "$MAGIC_CMD"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8080 $as_echo "$MAGIC_CMD" >&6; }
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8084 fi
8085
8086
8087
8088
8089
8090 if test -z "$lt_cv_path_MAGIC_CMD"; then
8091 if test -n "$ac_tool_prefix"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8093 $as_echo_n "checking for file... " >&6; }
8094 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 case $MAGIC_CMD in
8098 [\\/*] | ?:[\\/]*)
8099 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8100 ;;
8101 *)
8102 lt_save_MAGIC_CMD=$MAGIC_CMD
8103 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8104 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8105 for ac_dir in $ac_dummy; do
8106 IFS=$lt_save_ifs
8107 test -z "$ac_dir" && ac_dir=.
8108 if test -f "$ac_dir/file"; then
8109 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8110 if test -n "$file_magic_test_file"; then
8111 case $deplibs_check_method in
8112 "file_magic "*)
8113 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8114 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8115 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8116 $EGREP "$file_magic_regex" > /dev/null; then
8117 :
8118 else
8119 cat <<_LT_EOF 1>&2
8120
8121 *** Warning: the command libtool uses to detect shared libraries,
8122 *** $file_magic_cmd, produces output that libtool cannot recognize.
8123 *** The result is that libtool may fail to recognize shared libraries
8124 *** as such. This will affect the creation of libtool libraries that
8125 *** depend on shared libraries, but programs linked with such libtool
8126 *** libraries will work regardless of this problem. Nevertheless, you
8127 *** may want to report the problem to your system manager and/or to
8128 *** [email protected]
8129
8130 _LT_EOF
8131 fi ;;
8132 esac
8133 fi
8134 break
8135 fi
8136 done
8137 IFS=$lt_save_ifs
8138 MAGIC_CMD=$lt_save_MAGIC_CMD
8139 ;;
8140 esac
8141 fi
8142
8143 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8144 if test -n "$MAGIC_CMD"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8146 $as_echo "$MAGIC_CMD" >&6; }
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8150 fi
8151
8152
8153 else
8154 MAGIC_CMD=:
8155 fi
8156 fi
8157
8158 fi
8159 ;;
8160 esac
8161
8162 # Use C for the default configuration in the libtool script
8163
8164 lt_save_CC=$CC
8165 ac_ext=c
8166 ac_cpp='$CPP $CPPFLAGS'
8167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8170
8171
8172 # Source file extension for C test sources.
8173 ac_ext=c
8174
8175 # Object file extension for compiled C test sources.
8176 objext=o
8177 objext=$objext
8178
8179 # Code to be used in simple compile tests
8180 lt_simple_compile_test_code="int some_variable = 0;"
8181
8182 # Code to be used in simple link tests
8183 lt_simple_link_test_code='int main(){return(0);}'
8184
8185
8186
8187
8188
8189
8190
8191 # If no C compiler was specified, use CC.
8192 LTCC=${LTCC-"$CC"}
8193
8194 # If no C compiler flags were specified, use CFLAGS.
8195 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8196
8197 # Allow CC to be a program name with arguments.
8198 compiler=$CC
8199
8200 # Save the default compiler, since it gets overwritten when the other
8201 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8202 compiler_DEFAULT=$CC
8203
8204 # save warnings/boilerplate of simple test code
8205 ac_outfile=conftest.$ac_objext
8206 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8207 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8208 _lt_compiler_boilerplate=`cat conftest.err`
8209 $RM conftest*
8210
8211 ac_outfile=conftest.$ac_objext
8212 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8213 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8214 _lt_linker_boilerplate=`cat conftest.err`
8215 $RM -r conftest*
8216
8217
8218 ## CAVEAT EMPTOR:
8219 ## There is no encapsulation within the following macros, do not change
8220 ## the running order or otherwise move them around unless you know exactly
8221 ## what you are doing...
8222 if test -n "$compiler"; then
8223
8224 lt_prog_compiler_no_builtin_flag=
8225
8226 if test yes = "$GCC"; then
8227 case $cc_basename in
8228 nvcc*)
8229 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8230 *)
8231 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8232 esac
8233
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8235 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8236 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 lt_cv_prog_compiler_rtti_exceptions=no
8240 ac_outfile=conftest.$ac_objext
8241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8242 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8243 # Insert the option either (1) after the last *FLAGS variable, or
8244 # (2) before a word containing "conftest.", or (3) at the end.
8245 # Note that $ac_compile itself does not contain backslashes and begins
8246 # with a dollar sign (not a hyphen), so the echo should work correctly.
8247 # The option is referenced via a variable to avoid confusing sed.
8248 lt_compile=`echo "$ac_compile" | $SED \
8249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8251 -e 's:$: $lt_compiler_flag:'`
8252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8253 (eval "$lt_compile" 2>conftest.err)
8254 ac_status=$?
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 if (exit $ac_status) && test -s "$ac_outfile"; then
8258 # The compiler can only warn and ignore the option if not recognized
8259 # So say no if there are warnings other than the usual output.
8260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8263 lt_cv_prog_compiler_rtti_exceptions=yes
8264 fi
8265 fi
8266 $RM conftest*
8267
8268 fi
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8270 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8271
8272 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8273 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8274 else
8275 :
8276 fi
8277
8278 fi
8279
8280
8281
8282
8283
8284
8285 lt_prog_compiler_wl=
8286 lt_prog_compiler_pic=
8287 lt_prog_compiler_static=
8288
8289
8290 if test yes = "$GCC"; then
8291 lt_prog_compiler_wl='-Wl,'
8292 lt_prog_compiler_static='-static'
8293
8294 case $host_os in
8295 aix*)
8296 # All AIX code is PIC.
8297 if test ia64 = "$host_cpu"; then
8298 # AIX 5 now supports IA64 processor
8299 lt_prog_compiler_static='-Bstatic'
8300 fi
8301 lt_prog_compiler_pic='-fPIC'
8302 ;;
8303
8304 amigaos*)
8305 case $host_cpu in
8306 powerpc)
8307 # see comment about AmigaOS4 .so support
8308 lt_prog_compiler_pic='-fPIC'
8309 ;;
8310 m68k)
8311 # FIXME: we need at least 68020 code to build shared libraries, but
8312 # adding the '-m68020' flag to GCC prevents building anything better,
8313 # like '-m68040'.
8314 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8315 ;;
8316 esac
8317 ;;
8318
8319 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8320 # PIC is the default for these OSes.
8321 ;;
8322
8323 mingw* | cygwin* | pw32* | os2* | cegcc*)
8324 # This hack is so that the source file can tell whether it is being
8325 # built for inclusion in a dll (and should export symbols for example).
8326 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8327 # (--disable-auto-import) libraries
8328 lt_prog_compiler_pic='-DDLL_EXPORT'
8329 case $host_os in
8330 os2*)
8331 lt_prog_compiler_static='$wl-static'
8332 ;;
8333 esac
8334 ;;
8335
8336 darwin* | rhapsody*)
8337 # PIC is the default on this platform
8338 # Common symbols not allowed in MH_DYLIB files
8339 lt_prog_compiler_pic='-fno-common'
8340 ;;
8341
8342 haiku*)
8343 # PIC is the default for Haiku.
8344 # The "-static" flag exists, but is broken.
8345 lt_prog_compiler_static=
8346 ;;
8347
8348 hpux*)
8349 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8350 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8351 # sets the default TLS model and affects inlining.
8352 case $host_cpu in
8353 hppa*64*)
8354 # +Z the default
8355 ;;
8356 *)
8357 lt_prog_compiler_pic='-fPIC'
8358 ;;
8359 esac
8360 ;;
8361
8362 interix[3-9]*)
8363 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8364 # Instead, we relocate shared libraries at runtime.
8365 ;;
8366
8367 msdosdjgpp*)
8368 # Just because we use GCC doesn't mean we suddenly get shared libraries
8369 # on systems that don't support them.
8370 lt_prog_compiler_can_build_shared=no
8371 enable_shared=no
8372 ;;
8373
8374 *nto* | *qnx*)
8375 # QNX uses GNU C++, but need to define -shared option too, otherwise
8376 # it will coredump.
8377 lt_prog_compiler_pic='-fPIC -shared'
8378 ;;
8379
8380 sysv4*MP*)
8381 if test -d /usr/nec; then
8382 lt_prog_compiler_pic=-Kconform_pic
8383 fi
8384 ;;
8385
8386 *)
8387 lt_prog_compiler_pic='-fPIC'
8388 ;;
8389 esac
8390
8391 case $cc_basename in
8392 nvcc*) # Cuda Compiler Driver 2.2
8393 lt_prog_compiler_wl='-Xlinker '
8394 if test -n "$lt_prog_compiler_pic"; then
8395 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8396 fi
8397 ;;
8398 esac
8399 else
8400 # PORTME Check for flag to pass linker flags through the system compiler.
8401 case $host_os in
8402 aix*)
8403 lt_prog_compiler_wl='-Wl,'
8404 if test ia64 = "$host_cpu"; then
8405 # AIX 5 now supports IA64 processor
8406 lt_prog_compiler_static='-Bstatic'
8407 else
8408 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8409 fi
8410 ;;
8411
8412 darwin* | rhapsody*)
8413 # PIC is the default on this platform
8414 # Common symbols not allowed in MH_DYLIB files
8415 lt_prog_compiler_pic='-fno-common'
8416 case $cc_basename in
8417 nagfor*)
8418 # NAG Fortran compiler
8419 lt_prog_compiler_wl='-Wl,-Wl,,'
8420 lt_prog_compiler_pic='-PIC'
8421 lt_prog_compiler_static='-Bstatic'
8422 ;;
8423 esac
8424 ;;
8425
8426 mingw* | cygwin* | pw32* | os2* | cegcc*)
8427 # This hack is so that the source file can tell whether it is being
8428 # built for inclusion in a dll (and should export symbols for example).
8429 lt_prog_compiler_pic='-DDLL_EXPORT'
8430 case $host_os in
8431 os2*)
8432 lt_prog_compiler_static='$wl-static'
8433 ;;
8434 esac
8435 ;;
8436
8437 hpux9* | hpux10* | hpux11*)
8438 lt_prog_compiler_wl='-Wl,'
8439 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8440 # not for PA HP-UX.
8441 case $host_cpu in
8442 hppa*64*|ia64*)
8443 # +Z the default
8444 ;;
8445 *)
8446 lt_prog_compiler_pic='+Z'
8447 ;;
8448 esac
8449 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8450 lt_prog_compiler_static='$wl-a ${wl}archive'
8451 ;;
8452
8453 irix5* | irix6* | nonstopux*)
8454 lt_prog_compiler_wl='-Wl,'
8455 # PIC (with -KPIC) is the default.
8456 lt_prog_compiler_static='-non_shared'
8457 ;;
8458
8459 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8460 case $cc_basename in
8461 # old Intel for x86_64, which still supported -KPIC.
8462 ecc*)
8463 lt_prog_compiler_wl='-Wl,'
8464 lt_prog_compiler_pic='-KPIC'
8465 lt_prog_compiler_static='-static'
8466 ;;
8467 # icc used to be incompatible with GCC.
8468 # ICC 10 doesn't accept -KPIC any more.
8469 icc* | ifort*)
8470 lt_prog_compiler_wl='-Wl,'
8471 lt_prog_compiler_pic='-fPIC'
8472 lt_prog_compiler_static='-static'
8473 ;;
8474 # Lahey Fortran 8.1.
8475 lf95*)
8476 lt_prog_compiler_wl='-Wl,'
8477 lt_prog_compiler_pic='--shared'
8478 lt_prog_compiler_static='--static'
8479 ;;
8480 nagfor*)
8481 # NAG Fortran compiler
8482 lt_prog_compiler_wl='-Wl,-Wl,,'
8483 lt_prog_compiler_pic='-PIC'
8484 lt_prog_compiler_static='-Bstatic'
8485 ;;
8486 tcc*)
8487 # Fabrice Bellard et al's Tiny C Compiler
8488 lt_prog_compiler_wl='-Wl,'
8489 lt_prog_compiler_pic='-fPIC'
8490 lt_prog_compiler_static='-static'
8491 ;;
8492 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8493 # Portland Group compilers (*not* the Pentium gcc compiler,
8494 # which looks to be a dead project)
8495 lt_prog_compiler_wl='-Wl,'
8496 lt_prog_compiler_pic='-fpic'
8497 lt_prog_compiler_static='-Bstatic'
8498 ;;
8499 ccc*)
8500 lt_prog_compiler_wl='-Wl,'
8501 # All Alpha code is PIC.
8502 lt_prog_compiler_static='-non_shared'
8503 ;;
8504 xl* | bgxl* | bgf* | mpixl*)
8505 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_pic='-qpic'
8508 lt_prog_compiler_static='-qstaticlink'
8509 ;;
8510 *)
8511 case `$CC -V 2>&1 | sed 5q` in
8512 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8513 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8514 lt_prog_compiler_pic='-KPIC'
8515 lt_prog_compiler_static='-Bstatic'
8516 lt_prog_compiler_wl=''
8517 ;;
8518 *Sun\ F* | *Sun*Fortran*)
8519 lt_prog_compiler_pic='-KPIC'
8520 lt_prog_compiler_static='-Bstatic'
8521 lt_prog_compiler_wl='-Qoption ld '
8522 ;;
8523 *Sun\ C*)
8524 # Sun C 5.9
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-Bstatic'
8527 lt_prog_compiler_wl='-Wl,'
8528 ;;
8529 *Intel*\ [CF]*Compiler*)
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_pic='-fPIC'
8532 lt_prog_compiler_static='-static'
8533 ;;
8534 *Portland\ Group*)
8535 lt_prog_compiler_wl='-Wl,'
8536 lt_prog_compiler_pic='-fpic'
8537 lt_prog_compiler_static='-Bstatic'
8538 ;;
8539 esac
8540 ;;
8541 esac
8542 ;;
8543
8544 newsos6)
8545 lt_prog_compiler_pic='-KPIC'
8546 lt_prog_compiler_static='-Bstatic'
8547 ;;
8548
8549 *nto* | *qnx*)
8550 # QNX uses GNU C++, but need to define -shared option too, otherwise
8551 # it will coredump.
8552 lt_prog_compiler_pic='-fPIC -shared'
8553 ;;
8554
8555 osf3* | osf4* | osf5*)
8556 lt_prog_compiler_wl='-Wl,'
8557 # All OSF/1 code is PIC.
8558 lt_prog_compiler_static='-non_shared'
8559 ;;
8560
8561 rdos*)
8562 lt_prog_compiler_static='-non_shared'
8563 ;;
8564
8565 solaris*)
8566 lt_prog_compiler_pic='-KPIC'
8567 lt_prog_compiler_static='-Bstatic'
8568 case $cc_basename in
8569 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8570 lt_prog_compiler_wl='-Qoption ld ';;
8571 *)
8572 lt_prog_compiler_wl='-Wl,';;
8573 esac
8574 ;;
8575
8576 sunos4*)
8577 lt_prog_compiler_wl='-Qoption ld '
8578 lt_prog_compiler_pic='-PIC'
8579 lt_prog_compiler_static='-Bstatic'
8580 ;;
8581
8582 sysv4 | sysv4.2uw2* | sysv4.3*)
8583 lt_prog_compiler_wl='-Wl,'
8584 lt_prog_compiler_pic='-KPIC'
8585 lt_prog_compiler_static='-Bstatic'
8586 ;;
8587
8588 sysv4*MP*)
8589 if test -d /usr/nec; then
8590 lt_prog_compiler_pic='-Kconform_pic'
8591 lt_prog_compiler_static='-Bstatic'
8592 fi
8593 ;;
8594
8595 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_pic='-KPIC'
8598 lt_prog_compiler_static='-Bstatic'
8599 ;;
8600
8601 unicos*)
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_can_build_shared=no
8604 ;;
8605
8606 uts4*)
8607 lt_prog_compiler_pic='-pic'
8608 lt_prog_compiler_static='-Bstatic'
8609 ;;
8610
8611 *)
8612 lt_prog_compiler_can_build_shared=no
8613 ;;
8614 esac
8615 fi
8616
8617 case $host_os in
8618 # For platforms that do not support PIC, -DPIC is meaningless:
8619 *djgpp*)
8620 lt_prog_compiler_pic=
8621 ;;
8622 *)
8623 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8624 ;;
8625 esac
8626
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8628 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8629 if ${lt_cv_prog_compiler_pic+:} false; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8633 fi
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8635 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8636 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8637
8638 #
8639 # Check to make sure the PIC flag actually works.
8640 #
8641 if test -n "$lt_prog_compiler_pic"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8643 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8644 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 lt_cv_prog_compiler_pic_works=no
8648 ac_outfile=conftest.$ac_objext
8649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8650 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8651 # Insert the option either (1) after the last *FLAGS variable, or
8652 # (2) before a word containing "conftest.", or (3) at the end.
8653 # Note that $ac_compile itself does not contain backslashes and begins
8654 # with a dollar sign (not a hyphen), so the echo should work correctly.
8655 # The option is referenced via a variable to avoid confusing sed.
8656 lt_compile=`echo "$ac_compile" | $SED \
8657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8659 -e 's:$: $lt_compiler_flag:'`
8660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8661 (eval "$lt_compile" 2>conftest.err)
8662 ac_status=$?
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 if (exit $ac_status) && test -s "$ac_outfile"; then
8666 # The compiler can only warn and ignore the option if not recognized
8667 # So say no if there are warnings other than the usual output.
8668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8671 lt_cv_prog_compiler_pic_works=yes
8672 fi
8673 fi
8674 $RM conftest*
8675
8676 fi
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8678 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8679
8680 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8681 case $lt_prog_compiler_pic in
8682 "" | " "*) ;;
8683 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8684 esac
8685 else
8686 lt_prog_compiler_pic=
8687 lt_prog_compiler_can_build_shared=no
8688 fi
8689
8690 fi
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702 #
8703 # Check to make sure the static flag actually works.
8704 #
8705 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8707 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8708 if ${lt_cv_prog_compiler_static_works+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 lt_cv_prog_compiler_static_works=no
8712 save_LDFLAGS=$LDFLAGS
8713 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8714 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8716 # The linker can only warn and ignore the option if not recognized
8717 # So say no if there are warnings
8718 if test -s conftest.err; then
8719 # Append any errors to the config.log.
8720 cat conftest.err 1>&5
8721 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8723 if diff conftest.exp conftest.er2 >/dev/null; then
8724 lt_cv_prog_compiler_static_works=yes
8725 fi
8726 else
8727 lt_cv_prog_compiler_static_works=yes
8728 fi
8729 fi
8730 $RM -r conftest*
8731 LDFLAGS=$save_LDFLAGS
8732
8733 fi
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8735 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8736
8737 if test yes = "$lt_cv_prog_compiler_static_works"; then
8738 :
8739 else
8740 lt_prog_compiler_static=
8741 fi
8742
8743
8744
8745
8746
8747
8748
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8750 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8751 if ${lt_cv_prog_compiler_c_o+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 lt_cv_prog_compiler_c_o=no
8755 $RM -r conftest 2>/dev/null
8756 mkdir conftest
8757 cd conftest
8758 mkdir out
8759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8760
8761 lt_compiler_flag="-o out/conftest2.$ac_objext"
8762 # Insert the option either (1) after the last *FLAGS variable, or
8763 # (2) before a word containing "conftest.", or (3) at the end.
8764 # Note that $ac_compile itself does not contain backslashes and begins
8765 # with a dollar sign (not a hyphen), so the echo should work correctly.
8766 lt_compile=`echo "$ac_compile" | $SED \
8767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8769 -e 's:$: $lt_compiler_flag:'`
8770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8771 (eval "$lt_compile" 2>out/conftest.err)
8772 ac_status=$?
8773 cat out/conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8776 then
8777 # The compiler can only warn and ignore the option if not recognized
8778 # So say no if there are warnings
8779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8782 lt_cv_prog_compiler_c_o=yes
8783 fi
8784 fi
8785 chmod u+w . 2>&5
8786 $RM conftest*
8787 # SGI C++ compiler will create directory out/ii_files/ for
8788 # template instantiation
8789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8790 $RM out/* && rmdir out
8791 cd ..
8792 $RM -r conftest
8793 $RM conftest*
8794
8795 fi
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8797 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8798
8799
8800
8801
8802
8803
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8805 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8806 if ${lt_cv_prog_compiler_c_o+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 lt_cv_prog_compiler_c_o=no
8810 $RM -r conftest 2>/dev/null
8811 mkdir conftest
8812 cd conftest
8813 mkdir out
8814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8815
8816 lt_compiler_flag="-o out/conftest2.$ac_objext"
8817 # Insert the option either (1) after the last *FLAGS variable, or
8818 # (2) before a word containing "conftest.", or (3) at the end.
8819 # Note that $ac_compile itself does not contain backslashes and begins
8820 # with a dollar sign (not a hyphen), so the echo should work correctly.
8821 lt_compile=`echo "$ac_compile" | $SED \
8822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8824 -e 's:$: $lt_compiler_flag:'`
8825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8826 (eval "$lt_compile" 2>out/conftest.err)
8827 ac_status=$?
8828 cat out/conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8831 then
8832 # The compiler can only warn and ignore the option if not recognized
8833 # So say no if there are warnings
8834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8835 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8836 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8837 lt_cv_prog_compiler_c_o=yes
8838 fi
8839 fi
8840 chmod u+w . 2>&5
8841 $RM conftest*
8842 # SGI C++ compiler will create directory out/ii_files/ for
8843 # template instantiation
8844 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8845 $RM out/* && rmdir out
8846 cd ..
8847 $RM -r conftest
8848 $RM conftest*
8849
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8852 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8853
8854
8855
8856
8857 hard_links=nottested
8858 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8859 # do not overwrite the value of need_locks provided by the user
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8861 $as_echo_n "checking if we can lock with hard links... " >&6; }
8862 hard_links=yes
8863 $RM conftest*
8864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8865 touch conftest.a
8866 ln conftest.a conftest.b 2>&5 || hard_links=no
8867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8869 $as_echo "$hard_links" >&6; }
8870 if test no = "$hard_links"; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8872 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8873 need_locks=warn
8874 fi
8875 else
8876 need_locks=no
8877 fi
8878
8879
8880
8881
8882
8883
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8885 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8886
8887 runpath_var=
8888 allow_undefined_flag=
8889 always_export_symbols=no
8890 archive_cmds=
8891 archive_expsym_cmds=
8892 compiler_needs_object=no
8893 enable_shared_with_static_runtimes=no
8894 export_dynamic_flag_spec=
8895 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8896 hardcode_automatic=no
8897 hardcode_direct=no
8898 hardcode_direct_absolute=no
8899 hardcode_libdir_flag_spec=
8900 hardcode_libdir_separator=
8901 hardcode_minus_L=no
8902 hardcode_shlibpath_var=unsupported
8903 inherit_rpath=no
8904 link_all_deplibs=unknown
8905 module_cmds=
8906 module_expsym_cmds=
8907 old_archive_from_new_cmds=
8908 old_archive_from_expsyms_cmds=
8909 thread_safe_flag_spec=
8910 whole_archive_flag_spec=
8911 # include_expsyms should be a list of space-separated symbols to be *always*
8912 # included in the symbol list
8913 include_expsyms=
8914 # exclude_expsyms can be an extended regexp of symbols to exclude
8915 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8916 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8917 # as well as any symbol that contains 'd'.
8918 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8919 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8920 # platforms (ab)use it in PIC code, but their linkers get confused if
8921 # the symbol is explicitly referenced. Since portable code cannot
8922 # rely on this symbol name, it's probably fine to never include it in
8923 # preloaded symbol tables.
8924 # Exclude shared library initialization/finalization symbols.
8925 extract_expsyms_cmds=
8926
8927 case $host_os in
8928 cygwin* | mingw* | pw32* | cegcc*)
8929 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8930 # When not using gcc, we currently assume that we are using
8931 # Microsoft Visual C++.
8932 if test yes != "$GCC"; then
8933 with_gnu_ld=no
8934 fi
8935 ;;
8936 interix*)
8937 # we just hope/assume this is gcc and not c89 (= MSVC++)
8938 with_gnu_ld=yes
8939 ;;
8940 openbsd* | bitrig*)
8941 with_gnu_ld=no
8942 ;;
8943 esac
8944
8945 ld_shlibs=yes
8946
8947 # On some targets, GNU ld is compatible enough with the native linker
8948 # that we're better off using the native interface for both.
8949 lt_use_gnu_ld_interface=no
8950 if test yes = "$with_gnu_ld"; then
8951 case $host_os in
8952 aix*)
8953 # The AIX port of GNU ld has always aspired to compatibility
8954 # with the native linker. However, as the warning in the GNU ld
8955 # block says, versions before 2.19.5* couldn't really create working
8956 # shared libraries, regardless of the interface used.
8957 case `$LD -v 2>&1` in
8958 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8959 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8960 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8961 *)
8962 lt_use_gnu_ld_interface=yes
8963 ;;
8964 esac
8965 ;;
8966 *)
8967 lt_use_gnu_ld_interface=yes
8968 ;;
8969 esac
8970 fi
8971
8972 if test yes = "$lt_use_gnu_ld_interface"; then
8973 # If archive_cmds runs LD, not CC, wlarc should be empty
8974 wlarc='$wl'
8975
8976 # Set some defaults for GNU ld with shared library support. These
8977 # are reset later if shared libraries are not supported. Putting them
8978 # here allows them to be overridden if necessary.
8979 runpath_var=LD_RUN_PATH
8980 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8981 export_dynamic_flag_spec='$wl--export-dynamic'
8982 # ancient GNU ld didn't support --whole-archive et. al.
8983 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8984 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8985 else
8986 whole_archive_flag_spec=
8987 fi
8988 supports_anon_versioning=no
8989 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8990 *GNU\ gold*) supports_anon_versioning=yes ;;
8991 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8992 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8993 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8994 *\ 2.11.*) ;; # other 2.11 versions
8995 *) supports_anon_versioning=yes ;;
8996 esac
8997
8998 # See if GNU ld supports shared libraries.
8999 case $host_os in
9000 aix[3-9]*)
9001 # On AIX/PPC, the GNU linker is very broken
9002 if test ia64 != "$host_cpu"; then
9003 ld_shlibs=no
9004 cat <<_LT_EOF 1>&2
9005
9006 *** Warning: the GNU linker, at least up to release 2.19, is reported
9007 *** to be unable to reliably create shared libraries on AIX.
9008 *** Therefore, libtool is disabling shared libraries support. If you
9009 *** really care for shared libraries, you may want to install binutils
9010 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9011 *** You will then need to restart the configuration process.
9012
9013 _LT_EOF
9014 fi
9015 ;;
9016
9017 amigaos*)
9018 case $host_cpu in
9019 powerpc)
9020 # see comment about AmigaOS4 .so support
9021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9022 archive_expsym_cmds=''
9023 ;;
9024 m68k)
9025 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)'
9026 hardcode_libdir_flag_spec='-L$libdir'
9027 hardcode_minus_L=yes
9028 ;;
9029 esac
9030 ;;
9031
9032 beos*)
9033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9034 allow_undefined_flag=unsupported
9035 # Joseph Beckenbach <[email protected]> says some releases of gcc
9036 # support --undefined. This deserves some investigation. FIXME
9037 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9038 else
9039 ld_shlibs=no
9040 fi
9041 ;;
9042
9043 cygwin* | mingw* | pw32* | cegcc*)
9044 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9045 # as there is no search path for DLLs.
9046 hardcode_libdir_flag_spec='-L$libdir'
9047 export_dynamic_flag_spec='$wl--export-all-symbols'
9048 allow_undefined_flag=unsupported
9049 always_export_symbols=no
9050 enable_shared_with_static_runtimes=yes
9051 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'
9052 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9053
9054 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9056 # If the export-symbols file already is a .def file, use it as
9057 # is; otherwise, prepend EXPORTS...
9058 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9059 cp $export_symbols $output_objdir/$soname.def;
9060 else
9061 echo EXPORTS > $output_objdir/$soname.def;
9062 cat $export_symbols >> $output_objdir/$soname.def;
9063 fi~
9064 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9065 else
9066 ld_shlibs=no
9067 fi
9068 ;;
9069
9070 haiku*)
9071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9072 link_all_deplibs=yes
9073 ;;
9074
9075 os2*)
9076 hardcode_libdir_flag_spec='-L$libdir'
9077 hardcode_minus_L=yes
9078 allow_undefined_flag=unsupported
9079 shrext_cmds=.dll
9080 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9081 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9082 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9083 $ECHO EXPORTS >> $output_objdir/$libname.def~
9084 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9085 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9086 emximp -o $lib $output_objdir/$libname.def'
9087 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9088 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9089 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9090 $ECHO EXPORTS >> $output_objdir/$libname.def~
9091 prefix_cmds="$SED"~
9092 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9093 prefix_cmds="$prefix_cmds -e 1d";
9094 fi~
9095 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9096 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9097 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9098 emximp -o $lib $output_objdir/$libname.def'
9099 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9100 enable_shared_with_static_runtimes=yes
9101 ;;
9102
9103 interix[3-9]*)
9104 hardcode_direct=no
9105 hardcode_shlibpath_var=no
9106 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9107 export_dynamic_flag_spec='$wl-E'
9108 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9109 # Instead, shared libraries are loaded at an image base (0x10000000 by
9110 # default) and relocated if they conflict, which is a slow very memory
9111 # consuming and fragmenting process. To avoid this, we pick a random,
9112 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9113 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9114 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9115 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'
9116 ;;
9117
9118 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9119 tmp_diet=no
9120 if test linux-dietlibc = "$host_os"; then
9121 case $cc_basename in
9122 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9123 esac
9124 fi
9125 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9126 && test no = "$tmp_diet"
9127 then
9128 tmp_addflag=' $pic_flag'
9129 tmp_sharedflag='-shared'
9130 case $cc_basename,$host_cpu in
9131 pgcc*) # Portland Group C compiler
9132 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'
9133 tmp_addflag=' $pic_flag'
9134 ;;
9135 pgf77* | pgf90* | pgf95* | pgfortran*)
9136 # Portland Group f77 and f90 compilers
9137 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'
9138 tmp_addflag=' $pic_flag -Mnomain' ;;
9139 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9140 tmp_addflag=' -i_dynamic' ;;
9141 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9142 tmp_addflag=' -i_dynamic -nofor_main' ;;
9143 ifc* | ifort*) # Intel Fortran compiler
9144 tmp_addflag=' -nofor_main' ;;
9145 lf95*) # Lahey Fortran 8.1
9146 whole_archive_flag_spec=
9147 tmp_sharedflag='--shared' ;;
9148 nagfor*) # NAGFOR 5.3
9149 tmp_sharedflag='-Wl,-shared' ;;
9150 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9151 tmp_sharedflag='-qmkshrobj'
9152 tmp_addflag= ;;
9153 nvcc*) # Cuda Compiler Driver 2.2
9154 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'
9155 compiler_needs_object=yes
9156 ;;
9157 esac
9158 case `$CC -V 2>&1 | sed 5q` in
9159 *Sun\ C*) # Sun C 5.9
9160 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'
9161 compiler_needs_object=yes
9162 tmp_sharedflag='-G' ;;
9163 *Sun\ F*) # Sun Fortran 8.3
9164 tmp_sharedflag='-G' ;;
9165 esac
9166 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9167
9168 if test yes = "$supports_anon_versioning"; then
9169 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9170 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9171 echo "local: *; };" >> $output_objdir/$libname.ver~
9172 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9173 fi
9174
9175 case $cc_basename in
9176 tcc*)
9177 export_dynamic_flag_spec='-rdynamic'
9178 ;;
9179 xlf* | bgf* | bgxlf* | mpixlf*)
9180 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9181 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9182 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9183 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9184 if test yes = "$supports_anon_versioning"; then
9185 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9186 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9187 echo "local: *; };" >> $output_objdir/$libname.ver~
9188 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9189 fi
9190 ;;
9191 esac
9192 else
9193 ld_shlibs=no
9194 fi
9195 ;;
9196
9197 netbsd*)
9198 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9199 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9200 wlarc=
9201 else
9202 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9203 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9204 fi
9205 ;;
9206
9207 solaris*)
9208 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9209 ld_shlibs=no
9210 cat <<_LT_EOF 1>&2
9211
9212 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9213 *** create shared libraries on Solaris systems. Therefore, libtool
9214 *** is disabling shared libraries support. We urge you to upgrade GNU
9215 *** binutils to release 2.9.1 or newer. Another option is to modify
9216 *** your PATH or compiler configuration so that the native linker is
9217 *** used, and then restart.
9218
9219 _LT_EOF
9220 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9221 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9222 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9223 else
9224 ld_shlibs=no
9225 fi
9226 ;;
9227
9228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9229 case `$LD -v 2>&1` in
9230 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9231 ld_shlibs=no
9232 cat <<_LT_EOF 1>&2
9233
9234 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9235 *** reliably create shared libraries on SCO systems. Therefore, libtool
9236 *** is disabling shared libraries support. We urge you to upgrade GNU
9237 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9238 *** your PATH or compiler configuration so that the native linker is
9239 *** used, and then restart.
9240
9241 _LT_EOF
9242 ;;
9243 *)
9244 # For security reasons, it is highly recommended that you always
9245 # use absolute paths for naming shared libraries, and exclude the
9246 # DT_RUNPATH tag from executables and libraries. But doing so
9247 # requires that you compile everything twice, which is a pain.
9248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9252 else
9253 ld_shlibs=no
9254 fi
9255 ;;
9256 esac
9257 ;;
9258
9259 sunos4*)
9260 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9261 wlarc=
9262 hardcode_direct=yes
9263 hardcode_shlibpath_var=no
9264 ;;
9265
9266 *)
9267 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9268 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9269 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9270 else
9271 ld_shlibs=no
9272 fi
9273 ;;
9274 esac
9275
9276 if test no = "$ld_shlibs"; then
9277 runpath_var=
9278 hardcode_libdir_flag_spec=
9279 export_dynamic_flag_spec=
9280 whole_archive_flag_spec=
9281 fi
9282 else
9283 # PORTME fill in a description of your system's linker (not GNU ld)
9284 case $host_os in
9285 aix3*)
9286 allow_undefined_flag=unsupported
9287 always_export_symbols=yes
9288 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'
9289 # Note: this linker hardcodes the directories in LIBPATH if there
9290 # are no directories specified by -L.
9291 hardcode_minus_L=yes
9292 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9293 # Neither direct hardcoding nor static linking is supported with a
9294 # broken collect2.
9295 hardcode_direct=unsupported
9296 fi
9297 ;;
9298
9299 aix[4-9]*)
9300 if test ia64 = "$host_cpu"; then
9301 # On IA64, the linker does run time linking by default, so we don't
9302 # have to do anything special.
9303 aix_use_runtimelinking=no
9304 exp_sym_flag='-Bexport'
9305 no_entry_flag=
9306 else
9307 # If we're using GNU nm, then we don't want the "-C" option.
9308 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9309 # Without the "-l" option, or with the "-B" option, AIX nm treats
9310 # weak defined symbols like other global defined symbols, whereas
9311 # GNU nm marks them as "W".
9312 # While the 'weak' keyword is ignored in the Export File, we need
9313 # it in the Import File for the 'aix-soname' feature, so we have
9314 # to replace the "-B" option with "-P" for AIX nm.
9315 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9316 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'
9317 else
9318 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'
9319 fi
9320 aix_use_runtimelinking=no
9321
9322 # Test if we are trying to use run time linking or normal
9323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9324 # have runtime linking enabled, and use it for executables.
9325 # For shared libraries, we enable/disable runtime linking
9326 # depending on the kind of the shared library created -
9327 # when "with_aix_soname,aix_use_runtimelinking" is:
9328 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9329 # "aix,yes" lib.so shared, rtl:yes, for executables
9330 # lib.a static archive
9331 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9332 # lib.a(lib.so.V) shared, rtl:no, for executables
9333 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9334 # lib.a(lib.so.V) shared, rtl:no
9335 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9336 # lib.a static archive
9337 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9338 for ld_flag in $LDFLAGS; do
9339 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9340 aix_use_runtimelinking=yes
9341 break
9342 fi
9343 done
9344 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9345 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9346 # so we don't have lib.a shared libs to link our executables.
9347 # We have to force runtime linking in this case.
9348 aix_use_runtimelinking=yes
9349 LDFLAGS="$LDFLAGS -Wl,-brtl"
9350 fi
9351 ;;
9352 esac
9353
9354 exp_sym_flag='-bexport'
9355 no_entry_flag='-bnoentry'
9356 fi
9357
9358 # When large executables or shared objects are built, AIX ld can
9359 # have problems creating the table of contents. If linking a library
9360 # or program results in "error TOC overflow" add -mminimal-toc to
9361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9363
9364 archive_cmds=''
9365 hardcode_direct=yes
9366 hardcode_direct_absolute=yes
9367 hardcode_libdir_separator=':'
9368 link_all_deplibs=yes
9369 file_list_spec='$wl-f,'
9370 case $with_aix_soname,$aix_use_runtimelinking in
9371 aix,*) ;; # traditional, no import file
9372 svr4,* | *,yes) # use import file
9373 # The Import File defines what to hardcode.
9374 hardcode_direct=no
9375 hardcode_direct_absolute=no
9376 ;;
9377 esac
9378
9379 if test yes = "$GCC"; then
9380 case $host_os in aix4.[012]|aix4.[012].*)
9381 # We only want to do this on AIX 4.2 and lower, the check
9382 # below for broken collect2 doesn't work under 4.3+
9383 collect2name=`$CC -print-prog-name=collect2`
9384 if test -f "$collect2name" &&
9385 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9386 then
9387 # We have reworked collect2
9388 :
9389 else
9390 # We have old collect2
9391 hardcode_direct=unsupported
9392 # It fails to find uninstalled libraries when the uninstalled
9393 # path is not listed in the libpath. Setting hardcode_minus_L
9394 # to unsupported forces relinking
9395 hardcode_minus_L=yes
9396 hardcode_libdir_flag_spec='-L$libdir'
9397 hardcode_libdir_separator=
9398 fi
9399 ;;
9400 esac
9401 shared_flag='-shared'
9402 if test yes = "$aix_use_runtimelinking"; then
9403 shared_flag="$shared_flag "'$wl-G'
9404 fi
9405 # Need to ensure runtime linking is disabled for the traditional
9406 # shared library, or the linker may eventually find shared libraries
9407 # /with/ Import File - we do not want to mix them.
9408 shared_flag_aix='-shared'
9409 shared_flag_svr4='-shared $wl-G'
9410 else
9411 # not using gcc
9412 if test ia64 = "$host_cpu"; then
9413 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9414 # chokes on -Wl,-G. The following line is correct:
9415 shared_flag='-G'
9416 else
9417 if test yes = "$aix_use_runtimelinking"; then
9418 shared_flag='$wl-G'
9419 else
9420 shared_flag='$wl-bM:SRE'
9421 fi
9422 shared_flag_aix='$wl-bM:SRE'
9423 shared_flag_svr4='$wl-G'
9424 fi
9425 fi
9426
9427 export_dynamic_flag_spec='$wl-bexpall'
9428 # It seems that -bexpall does not export symbols beginning with
9429 # underscore (_), so it is better to generate a list of symbols to export.
9430 always_export_symbols=yes
9431 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9432 # Warning - without using the other runtime loading flags (-brtl),
9433 # -berok will link without error, but may produce a broken library.
9434 allow_undefined_flag='-berok'
9435 # Determine the default libpath from the value encoded in an
9436 # empty executable.
9437 if test set = "${lt_cv_aix_libpath+set}"; then
9438 aix_libpath=$lt_cv_aix_libpath
9439 else
9440 if ${lt_cv_aix_libpath_+:} false; then :
9441 $as_echo_n "(cached) " >&6
9442 else
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9445
9446 int
9447 main ()
9448 {
9449
9450 ;
9451 return 0;
9452 }
9453 _ACEOF
9454 if ac_fn_c_try_link "$LINENO"; then :
9455
9456 lt_aix_libpath_sed='
9457 /Import File Strings/,/^$/ {
9458 /^0/ {
9459 s/^0 *\([^ ]*\) *$/\1/
9460 p
9461 }
9462 }'
9463 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9464 # Check for a 64-bit object if we didn't find anything.
9465 if test -z "$lt_cv_aix_libpath_"; then
9466 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9467 fi
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext conftest.$ac_ext
9471 if test -z "$lt_cv_aix_libpath_"; then
9472 lt_cv_aix_libpath_=/usr/lib:/lib
9473 fi
9474
9475 fi
9476
9477 aix_libpath=$lt_cv_aix_libpath_
9478 fi
9479
9480 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9481 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
9482 else
9483 if test ia64 = "$host_cpu"; then
9484 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9485 allow_undefined_flag="-z nodefs"
9486 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"
9487 else
9488 # Determine the default libpath from the value encoded in an
9489 # empty executable.
9490 if test set = "${lt_cv_aix_libpath+set}"; then
9491 aix_libpath=$lt_cv_aix_libpath
9492 else
9493 if ${lt_cv_aix_libpath_+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498
9499 int
9500 main ()
9501 {
9502
9503 ;
9504 return 0;
9505 }
9506 _ACEOF
9507 if ac_fn_c_try_link "$LINENO"; then :
9508
9509 lt_aix_libpath_sed='
9510 /Import File Strings/,/^$/ {
9511 /^0/ {
9512 s/^0 *\([^ ]*\) *$/\1/
9513 p
9514 }
9515 }'
9516 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9517 # Check for a 64-bit object if we didn't find anything.
9518 if test -z "$lt_cv_aix_libpath_"; then
9519 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9520 fi
9521 fi
9522 rm -f core conftest.err conftest.$ac_objext \
9523 conftest$ac_exeext conftest.$ac_ext
9524 if test -z "$lt_cv_aix_libpath_"; then
9525 lt_cv_aix_libpath_=/usr/lib:/lib
9526 fi
9527
9528 fi
9529
9530 aix_libpath=$lt_cv_aix_libpath_
9531 fi
9532
9533 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9534 # Warning - without using the other run time loading flags,
9535 # -berok will link without error, but may produce a broken library.
9536 no_undefined_flag=' $wl-bernotok'
9537 allow_undefined_flag=' $wl-berok'
9538 if test yes = "$with_gnu_ld"; then
9539 # We only use this code for GNU lds that support --whole-archive.
9540 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9541 else
9542 # Exported symbols can be pulled into shared objects from archives
9543 whole_archive_flag_spec='$convenience'
9544 fi
9545 archive_cmds_need_lc=yes
9546 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9547 # -brtl affects multiple linker settings, -berok does not and is overridden later
9548 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9549 if test svr4 != "$with_aix_soname"; then
9550 # This is similar to how AIX traditionally builds its shared libraries.
9551 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'
9552 fi
9553 if test aix != "$with_aix_soname"; then
9554 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'
9555 else
9556 # used by -dlpreopen to get the symbols
9557 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9558 fi
9559 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9560 fi
9561 fi
9562 ;;
9563
9564 amigaos*)
9565 case $host_cpu in
9566 powerpc)
9567 # see comment about AmigaOS4 .so support
9568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9569 archive_expsym_cmds=''
9570 ;;
9571 m68k)
9572 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)'
9573 hardcode_libdir_flag_spec='-L$libdir'
9574 hardcode_minus_L=yes
9575 ;;
9576 esac
9577 ;;
9578
9579 bsdi[45]*)
9580 export_dynamic_flag_spec=-rdynamic
9581 ;;
9582
9583 cygwin* | mingw* | pw32* | cegcc*)
9584 # When not using gcc, we currently assume that we are using
9585 # Microsoft Visual C++.
9586 # hardcode_libdir_flag_spec is actually meaningless, as there is
9587 # no search path for DLLs.
9588 case $cc_basename in
9589 cl*)
9590 # Native MSVC
9591 hardcode_libdir_flag_spec=' '
9592 allow_undefined_flag=unsupported
9593 always_export_symbols=yes
9594 file_list_spec='@'
9595 # Tell ltmain to make .lib files, not .a files.
9596 libext=lib
9597 # Tell ltmain to make .dll files, not .so files.
9598 shrext_cmds=.dll
9599 # FIXME: Setting linknames here is a bad hack.
9600 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9601 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9602 cp "$export_symbols" "$output_objdir/$soname.def";
9603 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9604 else
9605 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9606 fi~
9607 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9608 linknames='
9609 # The linker will not automatically build a static lib if we build a DLL.
9610 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9611 enable_shared_with_static_runtimes=yes
9612 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9613 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9614 # Don't use ranlib
9615 old_postinstall_cmds='chmod 644 $oldlib'
9616 postlink_cmds='lt_outputfile="@OUTPUT@"~
9617 lt_tool_outputfile="@TOOL_OUTPUT@"~
9618 case $lt_outputfile in
9619 *.exe|*.EXE) ;;
9620 *)
9621 lt_outputfile=$lt_outputfile.exe
9622 lt_tool_outputfile=$lt_tool_outputfile.exe
9623 ;;
9624 esac~
9625 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9626 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9627 $RM "$lt_outputfile.manifest";
9628 fi'
9629 ;;
9630 *)
9631 # Assume MSVC wrapper
9632 hardcode_libdir_flag_spec=' '
9633 allow_undefined_flag=unsupported
9634 # Tell ltmain to make .lib files, not .a files.
9635 libext=lib
9636 # Tell ltmain to make .dll files, not .so files.
9637 shrext_cmds=.dll
9638 # FIXME: Setting linknames here is a bad hack.
9639 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9640 # The linker will automatically build a .lib file if we build a DLL.
9641 old_archive_from_new_cmds='true'
9642 # FIXME: Should let the user specify the lib program.
9643 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9644 enable_shared_with_static_runtimes=yes
9645 ;;
9646 esac
9647 ;;
9648
9649 darwin* | rhapsody*)
9650
9651
9652 archive_cmds_need_lc=no
9653 hardcode_direct=no
9654 hardcode_automatic=yes
9655 hardcode_shlibpath_var=unsupported
9656 if test yes = "$lt_cv_ld_force_load"; then
9657 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\"`'
9658
9659 else
9660 whole_archive_flag_spec=''
9661 fi
9662 link_all_deplibs=yes
9663 allow_undefined_flag=$_lt_dar_allow_undefined
9664 case $cc_basename in
9665 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9666 *) _lt_dar_can_shared=$GCC ;;
9667 esac
9668 if test yes = "$_lt_dar_can_shared"; then
9669 output_verbose_link_cmd=func_echo_all
9670 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9671 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9672 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"
9673 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"
9674
9675 else
9676 ld_shlibs=no
9677 fi
9678
9679 ;;
9680
9681 dgux*)
9682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683 hardcode_libdir_flag_spec='-L$libdir'
9684 hardcode_shlibpath_var=no
9685 ;;
9686
9687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9688 # support. Future versions do this automatically, but an explicit c++rt0.o
9689 # does not break anything, and helps significantly (at the cost of a little
9690 # extra space).
9691 freebsd2.2*)
9692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9693 hardcode_libdir_flag_spec='-R$libdir'
9694 hardcode_direct=yes
9695 hardcode_shlibpath_var=no
9696 ;;
9697
9698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9699 freebsd2.*)
9700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9701 hardcode_direct=yes
9702 hardcode_minus_L=yes
9703 hardcode_shlibpath_var=no
9704 ;;
9705
9706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9707 freebsd* | dragonfly*)
9708 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9709 hardcode_libdir_flag_spec='-R$libdir'
9710 hardcode_direct=yes
9711 hardcode_shlibpath_var=no
9712 ;;
9713
9714 hpux9*)
9715 if test yes = "$GCC"; then
9716 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'
9717 else
9718 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'
9719 fi
9720 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9721 hardcode_libdir_separator=:
9722 hardcode_direct=yes
9723
9724 # hardcode_minus_L: Not really in the search PATH,
9725 # but as the default location of the library.
9726 hardcode_minus_L=yes
9727 export_dynamic_flag_spec='$wl-E'
9728 ;;
9729
9730 hpux10*)
9731 if test yes,no = "$GCC,$with_gnu_ld"; then
9732 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9733 else
9734 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9735 fi
9736 if test no = "$with_gnu_ld"; then
9737 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9738 hardcode_libdir_separator=:
9739 hardcode_direct=yes
9740 hardcode_direct_absolute=yes
9741 export_dynamic_flag_spec='$wl-E'
9742 # hardcode_minus_L: Not really in the search PATH,
9743 # but as the default location of the library.
9744 hardcode_minus_L=yes
9745 fi
9746 ;;
9747
9748 hpux11*)
9749 if test yes,no = "$GCC,$with_gnu_ld"; then
9750 case $host_cpu in
9751 hppa*64*)
9752 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 ;;
9754 ia64*)
9755 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9756 ;;
9757 *)
9758 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9759 ;;
9760 esac
9761 else
9762 case $host_cpu in
9763 hppa*64*)
9764 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 ;;
9766 ia64*)
9767 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9768 ;;
9769 *)
9770
9771 # Older versions of the 11.00 compiler do not understand -b yet
9772 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9774 $as_echo_n "checking if $CC understands -b... " >&6; }
9775 if ${lt_cv_prog_compiler__b+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 lt_cv_prog_compiler__b=no
9779 save_LDFLAGS=$LDFLAGS
9780 LDFLAGS="$LDFLAGS -b"
9781 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9783 # The linker can only warn and ignore the option if not recognized
9784 # So say no if there are warnings
9785 if test -s conftest.err; then
9786 # Append any errors to the config.log.
9787 cat conftest.err 1>&5
9788 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9790 if diff conftest.exp conftest.er2 >/dev/null; then
9791 lt_cv_prog_compiler__b=yes
9792 fi
9793 else
9794 lt_cv_prog_compiler__b=yes
9795 fi
9796 fi
9797 $RM -r conftest*
9798 LDFLAGS=$save_LDFLAGS
9799
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9802 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9803
9804 if test yes = "$lt_cv_prog_compiler__b"; then
9805 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9806 else
9807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9808 fi
9809
9810 ;;
9811 esac
9812 fi
9813 if test no = "$with_gnu_ld"; then
9814 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9815 hardcode_libdir_separator=:
9816
9817 case $host_cpu in
9818 hppa*64*|ia64*)
9819 hardcode_direct=no
9820 hardcode_shlibpath_var=no
9821 ;;
9822 *)
9823 hardcode_direct=yes
9824 hardcode_direct_absolute=yes
9825 export_dynamic_flag_spec='$wl-E'
9826
9827 # hardcode_minus_L: Not really in the search PATH,
9828 # but as the default location of the library.
9829 hardcode_minus_L=yes
9830 ;;
9831 esac
9832 fi
9833 ;;
9834
9835 irix5* | irix6* | nonstopux*)
9836 if test yes = "$GCC"; then
9837 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'
9838 # Try to use the -exported_symbol ld option, if it does not
9839 # work, assume that -exports_file does not work either and
9840 # implicitly export all symbols.
9841 # This should be the same for all languages, so no per-tag cache variable.
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9843 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9844 if ${lt_cv_irix_exported_symbol+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 save_LDFLAGS=$LDFLAGS
9848 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9851 int foo (void) { return 0; }
9852 _ACEOF
9853 if ac_fn_c_try_link "$LINENO"; then :
9854 lt_cv_irix_exported_symbol=yes
9855 else
9856 lt_cv_irix_exported_symbol=no
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860 LDFLAGS=$save_LDFLAGS
9861 fi
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9863 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9864 if test yes = "$lt_cv_irix_exported_symbol"; then
9865 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'
9866 fi
9867 else
9868 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'
9869 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'
9870 fi
9871 archive_cmds_need_lc='no'
9872 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9873 hardcode_libdir_separator=:
9874 inherit_rpath=yes
9875 link_all_deplibs=yes
9876 ;;
9877
9878 linux*)
9879 case $cc_basename in
9880 tcc*)
9881 # Fabrice Bellard et al's Tiny C Compiler
9882 ld_shlibs=yes
9883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9884 ;;
9885 esac
9886 ;;
9887
9888 netbsd*)
9889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9891 else
9892 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9893 fi
9894 hardcode_libdir_flag_spec='-R$libdir'
9895 hardcode_direct=yes
9896 hardcode_shlibpath_var=no
9897 ;;
9898
9899 newsos6)
9900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9901 hardcode_direct=yes
9902 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9903 hardcode_libdir_separator=:
9904 hardcode_shlibpath_var=no
9905 ;;
9906
9907 *nto* | *qnx*)
9908 ;;
9909
9910 openbsd* | bitrig*)
9911 if test -f /usr/libexec/ld.so; then
9912 hardcode_direct=yes
9913 hardcode_shlibpath_var=no
9914 hardcode_direct_absolute=yes
9915 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9916 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9918 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9919 export_dynamic_flag_spec='$wl-E'
9920 else
9921 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9922 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9923 fi
9924 else
9925 ld_shlibs=no
9926 fi
9927 ;;
9928
9929 os2*)
9930 hardcode_libdir_flag_spec='-L$libdir'
9931 hardcode_minus_L=yes
9932 allow_undefined_flag=unsupported
9933 shrext_cmds=.dll
9934 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9935 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9936 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9937 $ECHO EXPORTS >> $output_objdir/$libname.def~
9938 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9939 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9940 emximp -o $lib $output_objdir/$libname.def'
9941 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9942 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9943 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9944 $ECHO EXPORTS >> $output_objdir/$libname.def~
9945 prefix_cmds="$SED"~
9946 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9947 prefix_cmds="$prefix_cmds -e 1d";
9948 fi~
9949 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9950 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9951 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9952 emximp -o $lib $output_objdir/$libname.def'
9953 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9954 enable_shared_with_static_runtimes=yes
9955 ;;
9956
9957 osf3*)
9958 if test yes = "$GCC"; then
9959 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9960 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'
9961 else
9962 allow_undefined_flag=' -expect_unresolved \*'
9963 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'
9964 fi
9965 archive_cmds_need_lc='no'
9966 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9967 hardcode_libdir_separator=:
9968 ;;
9969
9970 osf4* | osf5*) # as osf3* with the addition of -msym flag
9971 if test yes = "$GCC"; then
9972 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9973 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'
9974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9975 else
9976 allow_undefined_flag=' -expect_unresolved \*'
9977 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'
9978 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~
9979 $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'
9980
9981 # Both c and cxx compiler support -rpath directly
9982 hardcode_libdir_flag_spec='-rpath $libdir'
9983 fi
9984 archive_cmds_need_lc='no'
9985 hardcode_libdir_separator=:
9986 ;;
9987
9988 solaris*)
9989 no_undefined_flag=' -z defs'
9990 if test yes = "$GCC"; then
9991 wlarc='$wl'
9992 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9994 $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'
9995 else
9996 case `$CC -V 2>&1` in
9997 *"Compilers 5.0"*)
9998 wlarc=''
9999 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10001 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10002 ;;
10003 *)
10004 wlarc='$wl'
10005 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10007 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10008 ;;
10009 esac
10010 fi
10011 hardcode_libdir_flag_spec='-R$libdir'
10012 hardcode_shlibpath_var=no
10013 case $host_os in
10014 solaris2.[0-5] | solaris2.[0-5].*) ;;
10015 *)
10016 # The compiler driver will combine and reorder linker options,
10017 # but understands '-z linker_flag'. GCC discards it without '$wl',
10018 # but is careful enough not to reorder.
10019 # Supported since Solaris 2.6 (maybe 2.5.1?)
10020 if test yes = "$GCC"; then
10021 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10022 else
10023 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10024 fi
10025 ;;
10026 esac
10027 link_all_deplibs=yes
10028 ;;
10029
10030 sunos4*)
10031 if test sequent = "$host_vendor"; then
10032 # Use $CC to link under sequent, because it throws in some extra .o
10033 # files that make .init and .fini sections work.
10034 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10035 else
10036 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10037 fi
10038 hardcode_libdir_flag_spec='-L$libdir'
10039 hardcode_direct=yes
10040 hardcode_minus_L=yes
10041 hardcode_shlibpath_var=no
10042 ;;
10043
10044 sysv4)
10045 case $host_vendor in
10046 sni)
10047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10048 hardcode_direct=yes # is this really true???
10049 ;;
10050 siemens)
10051 ## LD is ld it makes a PLAMLIB
10052 ## CC just makes a GrossModule.
10053 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10054 reload_cmds='$CC -r -o $output$reload_objs'
10055 hardcode_direct=no
10056 ;;
10057 motorola)
10058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10060 ;;
10061 esac
10062 runpath_var='LD_RUN_PATH'
10063 hardcode_shlibpath_var=no
10064 ;;
10065
10066 sysv4.3*)
10067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_shlibpath_var=no
10069 export_dynamic_flag_spec='-Bexport'
10070 ;;
10071
10072 sysv4*MP*)
10073 if test -d /usr/nec; then
10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075 hardcode_shlibpath_var=no
10076 runpath_var=LD_RUN_PATH
10077 hardcode_runpath_var=yes
10078 ld_shlibs=yes
10079 fi
10080 ;;
10081
10082 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10083 no_undefined_flag='$wl-z,text'
10084 archive_cmds_need_lc=no
10085 hardcode_shlibpath_var=no
10086 runpath_var='LD_RUN_PATH'
10087
10088 if test yes = "$GCC"; then
10089 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 else
10092 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 fi
10095 ;;
10096
10097 sysv5* | sco3.2v5* | sco5v6*)
10098 # Note: We CANNOT use -z defs as we might desire, because we do not
10099 # link with -lc, and that would cause any symbols used from libc to
10100 # always be unresolved, which means just about no library would
10101 # ever link correctly. If we're not using GNU ld we use -z text
10102 # though, which does catch some bad symbols but isn't as heavy-handed
10103 # as -z defs.
10104 no_undefined_flag='$wl-z,text'
10105 allow_undefined_flag='$wl-z,nodefs'
10106 archive_cmds_need_lc=no
10107 hardcode_shlibpath_var=no
10108 hardcode_libdir_flag_spec='$wl-R,$libdir'
10109 hardcode_libdir_separator=':'
10110 link_all_deplibs=yes
10111 export_dynamic_flag_spec='$wl-Bexport'
10112 runpath_var='LD_RUN_PATH'
10113
10114 if test yes = "$GCC"; then
10115 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 else
10118 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 fi
10121 ;;
10122
10123 uts4*)
10124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10125 hardcode_libdir_flag_spec='-L$libdir'
10126 hardcode_shlibpath_var=no
10127 ;;
10128
10129 *)
10130 ld_shlibs=no
10131 ;;
10132 esac
10133
10134 if test sni = "$host_vendor"; then
10135 case $host in
10136 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10137 export_dynamic_flag_spec='$wl-Blargedynsym'
10138 ;;
10139 esac
10140 fi
10141 fi
10142
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10144 $as_echo "$ld_shlibs" >&6; }
10145 test no = "$ld_shlibs" && can_build_shared=no
10146
10147 with_gnu_ld=$with_gnu_ld
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163 #
10164 # Do we need to explicitly link libc?
10165 #
10166 case "x$archive_cmds_need_lc" in
10167 x|xyes)
10168 # Assume -lc should be added
10169 archive_cmds_need_lc=yes
10170
10171 if test yes,yes = "$GCC,$enable_shared"; then
10172 case $archive_cmds in
10173 *'~'*)
10174 # FIXME: we may have to deal with multi-command sequences.
10175 ;;
10176 '$CC '*)
10177 # Test whether the compiler implicitly links with -lc since on some
10178 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10179 # to ld, don't add -lc before -lgcc.
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10181 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10182 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 $RM conftest*
10186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10187
10188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10189 (eval $ac_compile) 2>&5
10190 ac_status=$?
10191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10192 test $ac_status = 0; } 2>conftest.err; then
10193 soname=conftest
10194 lib=conftest
10195 libobjs=conftest.$ac_objext
10196 deplibs=
10197 wl=$lt_prog_compiler_wl
10198 pic_flag=$lt_prog_compiler_pic
10199 compiler_flags=-v
10200 linker_flags=-v
10201 verstring=
10202 output_objdir=.
10203 libname=conftest
10204 lt_save_allow_undefined_flag=$allow_undefined_flag
10205 allow_undefined_flag=
10206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10207 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10208 ac_status=$?
10209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10210 test $ac_status = 0; }
10211 then
10212 lt_cv_archive_cmds_need_lc=no
10213 else
10214 lt_cv_archive_cmds_need_lc=yes
10215 fi
10216 allow_undefined_flag=$lt_save_allow_undefined_flag
10217 else
10218 cat conftest.err 1>&5
10219 fi
10220 $RM conftest*
10221
10222 fi
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10224 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10225 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10226 ;;
10227 esac
10228 fi
10229 ;;
10230 esac
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
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10384 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10385
10386 if test yes = "$GCC"; then
10387 case $host_os in
10388 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10389 *) lt_awk_arg='/^libraries:/' ;;
10390 esac
10391 case $host_os in
10392 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10393 *) lt_sed_strip_eq='s|=/|/|g' ;;
10394 esac
10395 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10396 case $lt_search_path_spec in
10397 *\;*)
10398 # if the path contains ";" then we assume it to be the separator
10399 # otherwise default to the standard path separator (i.e. ":") - it is
10400 # assumed that no part of a normal pathname contains ";" but that should
10401 # okay in the real world where ";" in dirpaths is itself problematic.
10402 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10403 ;;
10404 *)
10405 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10406 ;;
10407 esac
10408 # Ok, now we have the path, separated by spaces, we can step through it
10409 # and add multilib dir if necessary...
10410 lt_tmp_lt_search_path_spec=
10411 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10412 # ...but if some path component already ends with the multilib dir we assume
10413 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10414 case "$lt_multi_os_dir; $lt_search_path_spec " in
10415 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10416 lt_multi_os_dir=
10417 ;;
10418 esac
10419 for lt_sys_path in $lt_search_path_spec; do
10420 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10421 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10422 elif test -n "$lt_multi_os_dir"; then
10423 test -d "$lt_sys_path" && \
10424 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10425 fi
10426 done
10427 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10428 BEGIN {RS = " "; FS = "/|\n";} {
10429 lt_foo = "";
10430 lt_count = 0;
10431 for (lt_i = NF; lt_i > 0; lt_i--) {
10432 if ($lt_i != "" && $lt_i != ".") {
10433 if ($lt_i == "..") {
10434 lt_count++;
10435 } else {
10436 if (lt_count == 0) {
10437 lt_foo = "/" $lt_i lt_foo;
10438 } else {
10439 lt_count--;
10440 }
10441 }
10442 }
10443 }
10444 if (lt_foo != "") { lt_freq[lt_foo]++; }
10445 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10446 }'`
10447 # AWK program above erroneously prepends '/' to C:/dos/paths
10448 # for these hosts.
10449 case $host_os in
10450 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10451 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10452 esac
10453 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10454 else
10455 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10456 fi
10457 library_names_spec=
10458 libname_spec='lib$name'
10459 soname_spec=
10460 shrext_cmds=.so
10461 postinstall_cmds=
10462 postuninstall_cmds=
10463 finish_cmds=
10464 finish_eval=
10465 shlibpath_var=
10466 shlibpath_overrides_runpath=unknown
10467 version_type=none
10468 dynamic_linker="$host_os ld.so"
10469 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10470 need_lib_prefix=unknown
10471 hardcode_into_libs=no
10472
10473 # when you set need_version to no, make sure it does not cause -set_version
10474 # flags to be left without arguments
10475 need_version=unknown
10476
10477
10478
10479 case $host_os in
10480 aix3*)
10481 version_type=linux # correct to gnu/linux during the next big refactor
10482 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10483 shlibpath_var=LIBPATH
10484
10485 # AIX 3 has no versioning support, so we append a major version to the name.
10486 soname_spec='$libname$release$shared_ext$major'
10487 ;;
10488
10489 aix[4-9]*)
10490 version_type=linux # correct to gnu/linux during the next big refactor
10491 need_lib_prefix=no
10492 need_version=no
10493 hardcode_into_libs=yes
10494 if test ia64 = "$host_cpu"; then
10495 # AIX 5 supports IA64
10496 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 else
10499 # With GCC up to 2.95.x, collect2 would create an import file
10500 # for dependence libraries. The import file would start with
10501 # the line '#! .'. This would cause the generated library to
10502 # depend on '.', always an invalid library. This was fixed in
10503 # development snapshots of GCC prior to 3.0.
10504 case $host_os in
10505 aix4 | aix4.[01] | aix4.[01].*)
10506 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10507 echo ' yes '
10508 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10509 :
10510 else
10511 can_build_shared=no
10512 fi
10513 ;;
10514 esac
10515 # Using Import Files as archive members, it is possible to support
10516 # filename-based versioning of shared library archives on AIX. While
10517 # this would work for both with and without runtime linking, it will
10518 # prevent static linking of such archives. So we do filename-based
10519 # shared library versioning with .so extension only, which is used
10520 # when both runtime linking and shared linking is enabled.
10521 # Unfortunately, runtime linking may impact performance, so we do
10522 # not want this to be the default eventually. Also, we use the
10523 # versioned .so libs for executables only if there is the -brtl
10524 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10525 # To allow for filename-based versioning support, we need to create
10526 # libNAME.so.V as an archive file, containing:
10527 # *) an Import File, referring to the versioned filename of the
10528 # archive as well as the shared archive member, telling the
10529 # bitwidth (32 or 64) of that shared object, and providing the
10530 # list of exported symbols of that shared object, eventually
10531 # decorated with the 'weak' keyword
10532 # *) the shared object with the F_LOADONLY flag set, to really avoid
10533 # it being seen by the linker.
10534 # At run time we better use the real file rather than another symlink,
10535 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10536
10537 case $with_aix_soname,$aix_use_runtimelinking in
10538 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10539 # soname into executable. Probably we can add versioning support to
10540 # collect2, so additional links can be useful in future.
10541 aix,yes) # traditional libtool
10542 dynamic_linker='AIX unversionable lib.so'
10543 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10544 # instead of lib<name>.a to let people know that these are not
10545 # typical AIX shared libraries.
10546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10547 ;;
10548 aix,no) # traditional AIX only
10549 dynamic_linker='AIX lib.a(lib.so.V)'
10550 # We preserve .a as extension for shared libraries through AIX4.2
10551 # and later when we are not doing run time linking.
10552 library_names_spec='$libname$release.a $libname.a'
10553 soname_spec='$libname$release$shared_ext$major'
10554 ;;
10555 svr4,*) # full svr4 only
10556 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10557 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10558 # We do not specify a path in Import Files, so LIBPATH fires.
10559 shlibpath_overrides_runpath=yes
10560 ;;
10561 *,yes) # both, prefer svr4
10562 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10563 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10564 # unpreferred sharedlib libNAME.a needs extra handling
10565 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"'
10566 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"'
10567 # We do not specify a path in Import Files, so LIBPATH fires.
10568 shlibpath_overrides_runpath=yes
10569 ;;
10570 *,no) # both, prefer aix
10571 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10572 library_names_spec='$libname$release.a $libname.a'
10573 soname_spec='$libname$release$shared_ext$major'
10574 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10575 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)'
10576 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"'
10577 ;;
10578 esac
10579 shlibpath_var=LIBPATH
10580 fi
10581 ;;
10582
10583 amigaos*)
10584 case $host_cpu in
10585 powerpc)
10586 # Since July 2007 AmigaOS4 officially supports .so libraries.
10587 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10589 ;;
10590 m68k)
10591 library_names_spec='$libname.ixlibrary $libname.a'
10592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10593 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'
10594 ;;
10595 esac
10596 ;;
10597
10598 beos*)
10599 library_names_spec='$libname$shared_ext'
10600 dynamic_linker="$host_os ld.so"
10601 shlibpath_var=LIBRARY_PATH
10602 ;;
10603
10604 bsdi[45]*)
10605 version_type=linux # correct to gnu/linux during the next big refactor
10606 need_version=no
10607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10608 soname_spec='$libname$release$shared_ext$major'
10609 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10612 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10613 # the default ld.so.conf also contains /usr/contrib/lib and
10614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10615 # libtool to hard-code these into programs
10616 ;;
10617
10618 cygwin* | mingw* | pw32* | cegcc*)
10619 version_type=windows
10620 shrext_cmds=.dll
10621 need_version=no
10622 need_lib_prefix=no
10623
10624 case $GCC,$cc_basename in
10625 yes,*)
10626 # gcc
10627 library_names_spec='$libname.dll.a'
10628 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10629 postinstall_cmds='base_file=`basename \$file`~
10630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10631 dldir=$destdir/`dirname \$dlpath`~
10632 test -d \$dldir || mkdir -p \$dldir~
10633 $install_prog $dir/$dlname \$dldir/$dlname~
10634 chmod a+x \$dldir/$dlname~
10635 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10636 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10637 fi'
10638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10639 dlpath=$dir/\$dldll~
10640 $RM \$dlpath'
10641 shlibpath_overrides_runpath=yes
10642
10643 case $host_os in
10644 cygwin*)
10645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10646 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10647
10648 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10649 ;;
10650 mingw* | cegcc*)
10651 # MinGW DLLs use traditional 'lib' prefix
10652 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10653 ;;
10654 pw32*)
10655 # pw32 DLLs use 'pw' prefix rather than 'lib'
10656 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10657 ;;
10658 esac
10659 dynamic_linker='Win32 ld.exe'
10660 ;;
10661
10662 *,cl*)
10663 # Native MSVC
10664 libname_spec='$name'
10665 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10666 library_names_spec='$libname.dll.lib'
10667
10668 case $build_os in
10669 mingw*)
10670 sys_lib_search_path_spec=
10671 lt_save_ifs=$IFS
10672 IFS=';'
10673 for lt_path in $LIB
10674 do
10675 IFS=$lt_save_ifs
10676 # Let DOS variable expansion print the short 8.3 style file name.
10677 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10678 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10679 done
10680 IFS=$lt_save_ifs
10681 # Convert to MSYS style.
10682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10683 ;;
10684 cygwin*)
10685 # Convert to unix form, then to dos form, then back to unix form
10686 # but this time dos style (no spaces!) so that the unix form looks
10687 # like /cygdrive/c/PROGRA~1:/cygdr...
10688 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10689 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10690 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10691 ;;
10692 *)
10693 sys_lib_search_path_spec=$LIB
10694 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10695 # It is most probably a Windows format PATH.
10696 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10697 else
10698 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10699 fi
10700 # FIXME: find the short name or the path components, as spaces are
10701 # common. (e.g. "Program Files" -> "PROGRA~1")
10702 ;;
10703 esac
10704
10705 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10706 postinstall_cmds='base_file=`basename \$file`~
10707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10708 dldir=$destdir/`dirname \$dlpath`~
10709 test -d \$dldir || mkdir -p \$dldir~
10710 $install_prog $dir/$dlname \$dldir/$dlname'
10711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10712 dlpath=$dir/\$dldll~
10713 $RM \$dlpath'
10714 shlibpath_overrides_runpath=yes
10715 dynamic_linker='Win32 link.exe'
10716 ;;
10717
10718 *)
10719 # Assume MSVC wrapper
10720 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10721 dynamic_linker='Win32 ld.exe'
10722 ;;
10723 esac
10724 # FIXME: first we should search . and the directory the executable is in
10725 shlibpath_var=PATH
10726 ;;
10727
10728 darwin* | rhapsody*)
10729 dynamic_linker="$host_os dyld"
10730 version_type=darwin
10731 need_lib_prefix=no
10732 need_version=no
10733 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10734 soname_spec='$libname$release$major$shared_ext'
10735 shlibpath_overrides_runpath=yes
10736 shlibpath_var=DYLD_LIBRARY_PATH
10737 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10738
10739 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10740 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10741 ;;
10742
10743 dgux*)
10744 version_type=linux # correct to gnu/linux during the next big refactor
10745 need_lib_prefix=no
10746 need_version=no
10747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10748 soname_spec='$libname$release$shared_ext$major'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 ;;
10751
10752 freebsd* | dragonfly*)
10753 # DragonFly does not have aout. When/if they implement a new
10754 # versioning mechanism, adjust this.
10755 if test -x /usr/bin/objformat; then
10756 objformat=`/usr/bin/objformat`
10757 else
10758 case $host_os in
10759 freebsd[23].*) objformat=aout ;;
10760 *) objformat=elf ;;
10761 esac
10762 fi
10763 version_type=freebsd-$objformat
10764 case $version_type in
10765 freebsd-elf*)
10766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10767 soname_spec='$libname$release$shared_ext$major'
10768 need_version=no
10769 need_lib_prefix=no
10770 ;;
10771 freebsd-*)
10772 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10773 need_version=yes
10774 ;;
10775 esac
10776 shlibpath_var=LD_LIBRARY_PATH
10777 case $host_os in
10778 freebsd2.*)
10779 shlibpath_overrides_runpath=yes
10780 ;;
10781 freebsd3.[01]* | freebsdelf3.[01]*)
10782 shlibpath_overrides_runpath=yes
10783 hardcode_into_libs=yes
10784 ;;
10785 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10786 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10787 shlibpath_overrides_runpath=no
10788 hardcode_into_libs=yes
10789 ;;
10790 *) # from 4.6 on, and DragonFly
10791 shlibpath_overrides_runpath=yes
10792 hardcode_into_libs=yes
10793 ;;
10794 esac
10795 ;;
10796
10797 haiku*)
10798 version_type=linux # correct to gnu/linux during the next big refactor
10799 need_lib_prefix=no
10800 need_version=no
10801 dynamic_linker="$host_os runtime_loader"
10802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10803 soname_spec='$libname$release$shared_ext$major'
10804 shlibpath_var=LIBRARY_PATH
10805 shlibpath_overrides_runpath=no
10806 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10807 hardcode_into_libs=yes
10808 ;;
10809
10810 hpux9* | hpux10* | hpux11*)
10811 # Give a soname corresponding to the major version so that dld.sl refuses to
10812 # link against other versions.
10813 version_type=sunos
10814 need_lib_prefix=no
10815 need_version=no
10816 case $host_cpu in
10817 ia64*)
10818 shrext_cmds='.so'
10819 hardcode_into_libs=yes
10820 dynamic_linker="$host_os dld.so"
10821 shlibpath_var=LD_LIBRARY_PATH
10822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10824 soname_spec='$libname$release$shared_ext$major'
10825 if test 32 = "$HPUX_IA64_MODE"; then
10826 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10827 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10828 else
10829 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10830 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10831 fi
10832 ;;
10833 hppa*64*)
10834 shrext_cmds='.sl'
10835 hardcode_into_libs=yes
10836 dynamic_linker="$host_os dld.sl"
10837 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10838 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10840 soname_spec='$libname$release$shared_ext$major'
10841 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10843 ;;
10844 *)
10845 shrext_cmds='.sl'
10846 dynamic_linker="$host_os dld.sl"
10847 shlibpath_var=SHLIB_PATH
10848 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10850 soname_spec='$libname$release$shared_ext$major'
10851 ;;
10852 esac
10853 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10854 postinstall_cmds='chmod 555 $lib'
10855 # or fails outright, so override atomically:
10856 install_override_mode=555
10857 ;;
10858
10859 interix[3-9]*)
10860 version_type=linux # correct to gnu/linux during the next big refactor
10861 need_lib_prefix=no
10862 need_version=no
10863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10864 soname_spec='$libname$release$shared_ext$major'
10865 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10866 shlibpath_var=LD_LIBRARY_PATH
10867 shlibpath_overrides_runpath=no
10868 hardcode_into_libs=yes
10869 ;;
10870
10871 irix5* | irix6* | nonstopux*)
10872 case $host_os in
10873 nonstopux*) version_type=nonstopux ;;
10874 *)
10875 if test yes = "$lt_cv_prog_gnu_ld"; then
10876 version_type=linux # correct to gnu/linux during the next big refactor
10877 else
10878 version_type=irix
10879 fi ;;
10880 esac
10881 need_lib_prefix=no
10882 need_version=no
10883 soname_spec='$libname$release$shared_ext$major'
10884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10885 case $host_os in
10886 irix5* | nonstopux*)
10887 libsuff= shlibsuff=
10888 ;;
10889 *)
10890 case $LD in # libtool.m4 will add one of these switches to LD
10891 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10892 libsuff= shlibsuff= libmagic=32-bit;;
10893 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10894 libsuff=32 shlibsuff=N32 libmagic=N32;;
10895 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10896 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10897 *) libsuff= shlibsuff= libmagic=never-match;;
10898 esac
10899 ;;
10900 esac
10901 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10902 shlibpath_overrides_runpath=no
10903 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10904 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10905 hardcode_into_libs=yes
10906 ;;
10907
10908 # No shared lib support for Linux oldld, aout, or coff.
10909 linux*oldld* | linux*aout* | linux*coff*)
10910 dynamic_linker=no
10911 ;;
10912
10913 linux*android*)
10914 version_type=none # Android doesn't support versioned libraries.
10915 need_lib_prefix=no
10916 need_version=no
10917 library_names_spec='$libname$release$shared_ext'
10918 soname_spec='$libname$release$shared_ext'
10919 finish_cmds=
10920 shlibpath_var=LD_LIBRARY_PATH
10921 shlibpath_overrides_runpath=yes
10922
10923 # This implies no fast_install, which is unacceptable.
10924 # Some rework will be needed to allow for fast_install
10925 # before this can be enabled.
10926 hardcode_into_libs=yes
10927
10928 dynamic_linker='Android linker'
10929 # Don't embed -rpath directories since the linker doesn't support them.
10930 hardcode_libdir_flag_spec='-L$libdir'
10931 ;;
10932
10933 # This must be glibc/ELF.
10934 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10935 version_type=linux # correct to gnu/linux during the next big refactor
10936 need_lib_prefix=no
10937 need_version=no
10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10939 soname_spec='$libname$release$shared_ext$major'
10940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 shlibpath_overrides_runpath=no
10943
10944 # Some binutils ld are patched to set DT_RUNPATH
10945 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 lt_cv_shlibpath_overrides_runpath=no
10949 save_LDFLAGS=$LDFLAGS
10950 save_libdir=$libdir
10951 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10952 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955
10956 int
10957 main ()
10958 {
10959
10960 ;
10961 return 0;
10962 }
10963 _ACEOF
10964 if ac_fn_c_try_link "$LINENO"; then :
10965 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10966 lt_cv_shlibpath_overrides_runpath=yes
10967 fi
10968 fi
10969 rm -f core conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10971 LDFLAGS=$save_LDFLAGS
10972 libdir=$save_libdir
10973
10974 fi
10975
10976 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10977
10978 # This implies no fast_install, which is unacceptable.
10979 # Some rework will be needed to allow for fast_install
10980 # before this can be enabled.
10981 hardcode_into_libs=yes
10982
10983 # Add ABI-specific directories to the system library path.
10984 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10985
10986 # Ideally, we could use ldconfig to report *all* directores which are
10987 # searched for libraries, however this is still not possible. Aside from not
10988 # being certain /sbin/ldconfig is available, command
10989 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10990 # even though it is searched at run-time. Try to do the best guess by
10991 # appending ld.so.conf contents (and includes) to the search path.
10992 if test -f /etc/ld.so.conf; then
10993 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' ' '`
10994 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10995 fi
10996
10997 # We used to test for /lib/ld.so.1 and disable shared libraries on
10998 # powerpc, because MkLinux only supported shared libraries with the
10999 # GNU dynamic linker. Since this was broken with cross compilers,
11000 # most powerpc-linux boxes support dynamic linking these days and
11001 # people can always --disable-shared, the test was removed, and we
11002 # assume the GNU/Linux dynamic linker is in use.
11003 dynamic_linker='GNU/Linux ld.so'
11004 ;;
11005
11006 netbsd*)
11007 version_type=sunos
11008 need_lib_prefix=no
11009 need_version=no
11010 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11011 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11013 dynamic_linker='NetBSD (a.out) ld.so'
11014 else
11015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11016 soname_spec='$libname$release$shared_ext$major'
11017 dynamic_linker='NetBSD ld.elf_so'
11018 fi
11019 shlibpath_var=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath=yes
11021 hardcode_into_libs=yes
11022 ;;
11023
11024 newsos6)
11025 version_type=linux # correct to gnu/linux during the next big refactor
11026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 shlibpath_overrides_runpath=yes
11029 ;;
11030
11031 *nto* | *qnx*)
11032 version_type=qnx
11033 need_lib_prefix=no
11034 need_version=no
11035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11036 soname_spec='$libname$release$shared_ext$major'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=no
11039 hardcode_into_libs=yes
11040 dynamic_linker='ldqnx.so'
11041 ;;
11042
11043 openbsd* | bitrig*)
11044 version_type=sunos
11045 sys_lib_dlsearch_path_spec=/usr/lib
11046 need_lib_prefix=no
11047 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11048 need_version=no
11049 else
11050 need_version=yes
11051 fi
11052 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 shlibpath_overrides_runpath=yes
11056 ;;
11057
11058 os2*)
11059 libname_spec='$name'
11060 version_type=windows
11061 shrext_cmds=.dll
11062 need_version=no
11063 need_lib_prefix=no
11064 # OS/2 can only load a DLL with a base name of 8 characters or less.
11065 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11066 v=$($ECHO $release$versuffix | tr -d .-);
11067 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11068 $ECHO $n$v`$shared_ext'
11069 library_names_spec='${libname}_dll.$libext'
11070 dynamic_linker='OS/2 ld.exe'
11071 shlibpath_var=BEGINLIBPATH
11072 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11074 postinstall_cmds='base_file=`basename \$file`~
11075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11076 dldir=$destdir/`dirname \$dlpath`~
11077 test -d \$dldir || mkdir -p \$dldir~
11078 $install_prog $dir/$dlname \$dldir/$dlname~
11079 chmod a+x \$dldir/$dlname~
11080 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11081 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11082 fi'
11083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11084 dlpath=$dir/\$dldll~
11085 $RM \$dlpath'
11086 ;;
11087
11088 osf3* | osf4* | osf5*)
11089 version_type=osf
11090 need_lib_prefix=no
11091 need_version=no
11092 soname_spec='$libname$release$shared_ext$major'
11093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11097 ;;
11098
11099 rdos*)
11100 dynamic_linker=no
11101 ;;
11102
11103 solaris*)
11104 version_type=linux # correct to gnu/linux during the next big refactor
11105 need_lib_prefix=no
11106 need_version=no
11107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11108 soname_spec='$libname$release$shared_ext$major'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath=yes
11111 hardcode_into_libs=yes
11112 # ldd complains unless libraries are executable
11113 postinstall_cmds='chmod +x $lib'
11114 ;;
11115
11116 sunos4*)
11117 version_type=sunos
11118 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11119 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=yes
11122 if test yes = "$with_gnu_ld"; then
11123 need_lib_prefix=no
11124 fi
11125 need_version=yes
11126 ;;
11127
11128 sysv4 | sysv4.3*)
11129 version_type=linux # correct to gnu/linux during the next big refactor
11130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11131 soname_spec='$libname$release$shared_ext$major'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 case $host_vendor in
11134 sni)
11135 shlibpath_overrides_runpath=no
11136 need_lib_prefix=no
11137 runpath_var=LD_RUN_PATH
11138 ;;
11139 siemens)
11140 need_lib_prefix=no
11141 ;;
11142 motorola)
11143 need_lib_prefix=no
11144 need_version=no
11145 shlibpath_overrides_runpath=no
11146 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11147 ;;
11148 esac
11149 ;;
11150
11151 sysv4*MP*)
11152 if test -d /usr/nec; then
11153 version_type=linux # correct to gnu/linux during the next big refactor
11154 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11155 soname_spec='$libname$shared_ext.$major'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 fi
11158 ;;
11159
11160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11161 version_type=sco
11162 need_lib_prefix=no
11163 need_version=no
11164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11165 soname_spec='$libname$release$shared_ext$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=yes
11168 hardcode_into_libs=yes
11169 if test yes = "$with_gnu_ld"; then
11170 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11171 else
11172 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11173 case $host_os in
11174 sco3.2v5*)
11175 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11176 ;;
11177 esac
11178 fi
11179 sys_lib_dlsearch_path_spec='/usr/lib'
11180 ;;
11181
11182 tpf*)
11183 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11184 version_type=linux # correct to gnu/linux during the next big refactor
11185 need_lib_prefix=no
11186 need_version=no
11187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=no
11190 hardcode_into_libs=yes
11191 ;;
11192
11193 uts4*)
11194 version_type=linux # correct to gnu/linux during the next big refactor
11195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11196 soname_spec='$libname$release$shared_ext$major'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 ;;
11199
11200 *)
11201 dynamic_linker=no
11202 ;;
11203 esac
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11205 $as_echo "$dynamic_linker" >&6; }
11206 test no = "$dynamic_linker" && can_build_shared=no
11207
11208 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11209 if test yes = "$GCC"; then
11210 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11211 fi
11212
11213 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11214 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11215 fi
11216
11217 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11218 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11219 fi
11220
11221 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11222 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11223
11224 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11225 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11226
11227 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11228 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11327 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11328 hardcode_action=
11329 if test -n "$hardcode_libdir_flag_spec" ||
11330 test -n "$runpath_var" ||
11331 test yes = "$hardcode_automatic"; then
11332
11333 # We can hardcode non-existent directories.
11334 if test no != "$hardcode_direct" &&
11335 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11336 # have to relink, otherwise we might link with an installed library
11337 # when we should be linking with a yet-to-be-installed one
11338 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11339 test no != "$hardcode_minus_L"; then
11340 # Linking always hardcodes the temporary library directory.
11341 hardcode_action=relink
11342 else
11343 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11344 hardcode_action=immediate
11345 fi
11346 else
11347 # We cannot hardcode anything, or else we can only hardcode existing
11348 # directories.
11349 hardcode_action=unsupported
11350 fi
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11352 $as_echo "$hardcode_action" >&6; }
11353
11354 if test relink = "$hardcode_action" ||
11355 test yes = "$inherit_rpath"; then
11356 # Fast installation is not supported
11357 enable_fast_install=no
11358 elif test yes = "$shlibpath_overrides_runpath" ||
11359 test no = "$enable_shared"; then
11360 # Fast installation is not necessary
11361 enable_fast_install=needless
11362 fi
11363
11364
11365
11366
11367
11368
11369 if test yes != "$enable_dlopen"; then
11370 enable_dlopen=unknown
11371 enable_dlopen_self=unknown
11372 enable_dlopen_self_static=unknown
11373 else
11374 lt_cv_dlopen=no
11375 lt_cv_dlopen_libs=
11376
11377 case $host_os in
11378 beos*)
11379 lt_cv_dlopen=load_add_on
11380 lt_cv_dlopen_libs=
11381 lt_cv_dlopen_self=yes
11382 ;;
11383
11384 mingw* | pw32* | cegcc*)
11385 lt_cv_dlopen=LoadLibrary
11386 lt_cv_dlopen_libs=
11387 ;;
11388
11389 cygwin*)
11390 lt_cv_dlopen=dlopen
11391 lt_cv_dlopen_libs=
11392 ;;
11393
11394 darwin*)
11395 # if libdl is installed we need to link against it
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11397 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11398 if ${ac_cv_lib_dl_dlopen+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 ac_check_lib_save_LIBS=$LIBS
11402 LIBS="-ldl $LIBS"
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11405
11406 /* Override any GCC internal prototype to avoid an error.
11407 Use char because int might match the return type of a GCC
11408 builtin and then its argument prototype would still apply. */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char dlopen ();
11413 int
11414 main ()
11415 {
11416 return dlopen ();
11417 ;
11418 return 0;
11419 }
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11422 ac_cv_lib_dl_dlopen=yes
11423 else
11424 ac_cv_lib_dl_dlopen=no
11425 fi
11426 rm -f core conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11428 LIBS=$ac_check_lib_save_LIBS
11429 fi
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11431 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11432 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11433 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11434 else
11435
11436 lt_cv_dlopen=dyld
11437 lt_cv_dlopen_libs=
11438 lt_cv_dlopen_self=yes
11439
11440 fi
11441
11442 ;;
11443
11444 tpf*)
11445 # Don't try to run any link tests for TPF. We know it's impossible
11446 # because TPF is a cross-compiler, and we know how we open DSOs.
11447 lt_cv_dlopen=dlopen
11448 lt_cv_dlopen_libs=
11449 lt_cv_dlopen_self=no
11450 ;;
11451
11452 *)
11453 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11454 if test "x$ac_cv_func_shl_load" = xyes; then :
11455 lt_cv_dlopen=shl_load
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11458 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11459 if ${ac_cv_lib_dld_shl_load+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 ac_check_lib_save_LIBS=$LIBS
11463 LIBS="-ldld $LIBS"
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char shl_load ();
11474 int
11475 main ()
11476 {
11477 return shl_load ();
11478 ;
11479 return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483 ac_cv_lib_dld_shl_load=yes
11484 else
11485 ac_cv_lib_dld_shl_load=no
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext \
11488 conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11492 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11493 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11494 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11495 else
11496 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11497 if test "x$ac_cv_func_dlopen" = xyes; then :
11498 lt_cv_dlopen=dlopen
11499 else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11501 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11502 if ${ac_cv_lib_dl_dlopen+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 ac_check_lib_save_LIBS=$LIBS
11506 LIBS="-ldl $LIBS"
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11509
11510 /* Override any GCC internal prototype to avoid an error.
11511 Use char because int might match the return type of a GCC
11512 builtin and then its argument prototype would still apply. */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 char dlopen ();
11517 int
11518 main ()
11519 {
11520 return dlopen ();
11521 ;
11522 return 0;
11523 }
11524 _ACEOF
11525 if ac_fn_c_try_link "$LINENO"; then :
11526 ac_cv_lib_dl_dlopen=yes
11527 else
11528 ac_cv_lib_dl_dlopen=no
11529 fi
11530 rm -f core conftest.err conftest.$ac_objext \
11531 conftest$ac_exeext conftest.$ac_ext
11532 LIBS=$ac_check_lib_save_LIBS
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11535 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11536 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11537 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11538 else
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11540 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11541 if ${ac_cv_lib_svld_dlopen+:} false; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-lsvld $LIBS"
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11548
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char dlopen ();
11556 int
11557 main ()
11558 {
11559 return dlopen ();
11560 ;
11561 return 0;
11562 }
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565 ac_cv_lib_svld_dlopen=yes
11566 else
11567 ac_cv_lib_svld_dlopen=no
11568 fi
11569 rm -f core conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_lib_save_LIBS
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11574 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11575 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11576 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11577 else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11579 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11580 if ${ac_cv_lib_dld_dld_link+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 ac_check_lib_save_LIBS=$LIBS
11584 LIBS="-ldld $LIBS"
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11587
11588 /* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
11591 #ifdef __cplusplus
11592 extern "C"
11593 #endif
11594 char dld_link ();
11595 int
11596 main ()
11597 {
11598 return dld_link ();
11599 ;
11600 return 0;
11601 }
11602 _ACEOF
11603 if ac_fn_c_try_link "$LINENO"; then :
11604 ac_cv_lib_dld_dld_link=yes
11605 else
11606 ac_cv_lib_dld_dld_link=no
11607 fi
11608 rm -f core conftest.err conftest.$ac_objext \
11609 conftest$ac_exeext conftest.$ac_ext
11610 LIBS=$ac_check_lib_save_LIBS
11611 fi
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11613 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11614 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11615 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11616 fi
11617
11618
11619 fi
11620
11621
11622 fi
11623
11624
11625 fi
11626
11627
11628 fi
11629
11630
11631 fi
11632
11633 ;;
11634 esac
11635
11636 if test no = "$lt_cv_dlopen"; then
11637 enable_dlopen=no
11638 else
11639 enable_dlopen=yes
11640 fi
11641
11642 case $lt_cv_dlopen in
11643 dlopen)
11644 save_CPPFLAGS=$CPPFLAGS
11645 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11646
11647 save_LDFLAGS=$LDFLAGS
11648 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11649
11650 save_LIBS=$LIBS
11651 LIBS="$lt_cv_dlopen_libs $LIBS"
11652
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11654 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11655 if ${lt_cv_dlopen_self+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 if test yes = "$cross_compiling"; then :
11659 lt_cv_dlopen_self=cross
11660 else
11661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11662 lt_status=$lt_dlunknown
11663 cat > conftest.$ac_ext <<_LT_EOF
11664 #line $LINENO "configure"
11665 #include "confdefs.h"
11666
11667 #if HAVE_DLFCN_H
11668 #include <dlfcn.h>
11669 #endif
11670
11671 #include <stdio.h>
11672
11673 #ifdef RTLD_GLOBAL
11674 # define LT_DLGLOBAL RTLD_GLOBAL
11675 #else
11676 # ifdef DL_GLOBAL
11677 # define LT_DLGLOBAL DL_GLOBAL
11678 # else
11679 # define LT_DLGLOBAL 0
11680 # endif
11681 #endif
11682
11683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11684 find out it does not work in some platform. */
11685 #ifndef LT_DLLAZY_OR_NOW
11686 # ifdef RTLD_LAZY
11687 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11688 # else
11689 # ifdef DL_LAZY
11690 # define LT_DLLAZY_OR_NOW DL_LAZY
11691 # else
11692 # ifdef RTLD_NOW
11693 # define LT_DLLAZY_OR_NOW RTLD_NOW
11694 # else
11695 # ifdef DL_NOW
11696 # define LT_DLLAZY_OR_NOW DL_NOW
11697 # else
11698 # define LT_DLLAZY_OR_NOW 0
11699 # endif
11700 # endif
11701 # endif
11702 # endif
11703 #endif
11704
11705 /* When -fvisibility=hidden is used, assume the code has been annotated
11706 correspondingly for the symbols needed. */
11707 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11708 int fnord () __attribute__((visibility("default")));
11709 #endif
11710
11711 int fnord () { return 42; }
11712 int main ()
11713 {
11714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11715 int status = $lt_dlunknown;
11716
11717 if (self)
11718 {
11719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11720 else
11721 {
11722 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11723 else puts (dlerror ());
11724 }
11725 /* dlclose (self); */
11726 }
11727 else
11728 puts (dlerror ());
11729
11730 return status;
11731 }
11732 _LT_EOF
11733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11734 (eval $ac_link) 2>&5
11735 ac_status=$?
11736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11737 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11738 (./conftest; exit; ) >&5 2>/dev/null
11739 lt_status=$?
11740 case x$lt_status in
11741 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11742 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11743 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11744 esac
11745 else :
11746 # compilation failed
11747 lt_cv_dlopen_self=no
11748 fi
11749 fi
11750 rm -fr conftest*
11751
11752
11753 fi
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11755 $as_echo "$lt_cv_dlopen_self" >&6; }
11756
11757 if test yes = "$lt_cv_dlopen_self"; then
11758 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11760 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11761 if ${lt_cv_dlopen_self_static+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763 else
11764 if test yes = "$cross_compiling"; then :
11765 lt_cv_dlopen_self_static=cross
11766 else
11767 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11768 lt_status=$lt_dlunknown
11769 cat > conftest.$ac_ext <<_LT_EOF
11770 #line $LINENO "configure"
11771 #include "confdefs.h"
11772
11773 #if HAVE_DLFCN_H
11774 #include <dlfcn.h>
11775 #endif
11776
11777 #include <stdio.h>
11778
11779 #ifdef RTLD_GLOBAL
11780 # define LT_DLGLOBAL RTLD_GLOBAL
11781 #else
11782 # ifdef DL_GLOBAL
11783 # define LT_DLGLOBAL DL_GLOBAL
11784 # else
11785 # define LT_DLGLOBAL 0
11786 # endif
11787 #endif
11788
11789 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11790 find out it does not work in some platform. */
11791 #ifndef LT_DLLAZY_OR_NOW
11792 # ifdef RTLD_LAZY
11793 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11794 # else
11795 # ifdef DL_LAZY
11796 # define LT_DLLAZY_OR_NOW DL_LAZY
11797 # else
11798 # ifdef RTLD_NOW
11799 # define LT_DLLAZY_OR_NOW RTLD_NOW
11800 # else
11801 # ifdef DL_NOW
11802 # define LT_DLLAZY_OR_NOW DL_NOW
11803 # else
11804 # define LT_DLLAZY_OR_NOW 0
11805 # endif
11806 # endif
11807 # endif
11808 # endif
11809 #endif
11810
11811 /* When -fvisibility=hidden is used, assume the code has been annotated
11812 correspondingly for the symbols needed. */
11813 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11814 int fnord () __attribute__((visibility("default")));
11815 #endif
11816
11817 int fnord () { return 42; }
11818 int main ()
11819 {
11820 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11821 int status = $lt_dlunknown;
11822
11823 if (self)
11824 {
11825 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11826 else
11827 {
11828 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11829 else puts (dlerror ());
11830 }
11831 /* dlclose (self); */
11832 }
11833 else
11834 puts (dlerror ());
11835
11836 return status;
11837 }
11838 _LT_EOF
11839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11840 (eval $ac_link) 2>&5
11841 ac_status=$?
11842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11843 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11844 (./conftest; exit; ) >&5 2>/dev/null
11845 lt_status=$?
11846 case x$lt_status in
11847 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11848 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11849 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11850 esac
11851 else :
11852 # compilation failed
11853 lt_cv_dlopen_self_static=no
11854 fi
11855 fi
11856 rm -fr conftest*
11857
11858
11859 fi
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11861 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11862 fi
11863
11864 CPPFLAGS=$save_CPPFLAGS
11865 LDFLAGS=$save_LDFLAGS
11866 LIBS=$save_LIBS
11867 ;;
11868 esac
11869
11870 case $lt_cv_dlopen_self in
11871 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11872 *) enable_dlopen_self=unknown ;;
11873 esac
11874
11875 case $lt_cv_dlopen_self_static in
11876 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11877 *) enable_dlopen_self_static=unknown ;;
11878 esac
11879 fi
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897 striplib=
11898 old_striplib=
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11900 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11901 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11902 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11903 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11905 $as_echo "yes" >&6; }
11906 else
11907 # FIXME - insert some real tests, host_os isn't really good enough
11908 case $host_os in
11909 darwin*)
11910 if test -n "$STRIP"; then
11911 striplib="$STRIP -x"
11912 old_striplib="$STRIP -S"
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11914 $as_echo "yes" >&6; }
11915 else
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917 $as_echo "no" >&6; }
11918 fi
11919 ;;
11920 *)
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11923 ;;
11924 esac
11925 fi
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938 # Report what library types will actually be built
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11940 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11942 $as_echo "$can_build_shared" >&6; }
11943
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11945 $as_echo_n "checking whether to build shared libraries... " >&6; }
11946 test no = "$can_build_shared" && enable_shared=no
11947
11948 # On AIX, shared libraries and static libraries use the same namespace, and
11949 # are all built from PIC.
11950 case $host_os in
11951 aix3*)
11952 test yes = "$enable_shared" && enable_static=no
11953 if test -n "$RANLIB"; then
11954 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11955 postinstall_cmds='$RANLIB $lib'
11956 fi
11957 ;;
11958
11959 aix[4-9]*)
11960 if test ia64 != "$host_cpu"; then
11961 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11962 yes,aix,yes) ;; # shared object as lib.so file only
11963 yes,svr4,*) ;; # shared object as lib.so archive member only
11964 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11965 esac
11966 fi
11967 ;;
11968 esac
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11970 $as_echo "$enable_shared" >&6; }
11971
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11973 $as_echo_n "checking whether to build static libraries... " >&6; }
11974 # Make sure either enable_shared or enable_static is yes.
11975 test yes = "$enable_shared" || enable_static=yes
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11977 $as_echo "$enable_static" >&6; }
11978
11979
11980
11981
11982 fi
11983 ac_ext=c
11984 ac_cpp='$CPP $CPPFLAGS'
11985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11988
11989 CC=$lt_save_CC
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005 ac_config_commands="$ac_config_commands libtool"
12006
12007
12008
12009
12010 # Only expand once:
12011
12012
12013 # Extract the first word of "pkg-config", so it can be a program name with args.
12014 set dummy pkg-config; ac_word=$2
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016 $as_echo_n "checking for $ac_word... " >&6; }
12017 if ${ac_cv_prog_PKGCONFIG+:} false; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 if test -n "$PKGCONFIG"; then
12021 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
12022 else
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12025 do
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12030 ac_cv_prog_PKGCONFIG="yes"
12031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 break 2
12033 fi
12034 done
12035 done
12036 IFS=$as_save_IFS
12037
12038 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
12039 fi
12040 fi
12041 PKGCONFIG=$ac_cv_prog_PKGCONFIG
12042 if test -n "$PKGCONFIG"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
12044 $as_echo "$PKGCONFIG" >&6; }
12045 else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12048 fi
12049
12050
12051 if test x$PKGCONFIG = xno; then
12052 as_fn_error $? "Required program pkg-config is missing" "$LINENO" 5
12053 fi
12054
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12056 $as_echo_n "checking for ANSI C header files... " >&6; }
12057 if ${ac_cv_header_stdc+:} false; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12062 #include <stdlib.h>
12063 #include <stdarg.h>
12064 #include <string.h>
12065 #include <float.h>
12066
12067 int
12068 main ()
12069 {
12070
12071 ;
12072 return 0;
12073 }
12074 _ACEOF
12075 if ac_fn_c_try_compile "$LINENO"; then :
12076 ac_cv_header_stdc=yes
12077 else
12078 ac_cv_header_stdc=no
12079 fi
12080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081
12082 if test $ac_cv_header_stdc = yes; then
12083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086 #include <string.h>
12087
12088 _ACEOF
12089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12090 $EGREP "memchr" >/dev/null 2>&1; then :
12091
12092 else
12093 ac_cv_header_stdc=no
12094 fi
12095 rm -f conftest*
12096
12097 fi
12098
12099 if test $ac_cv_header_stdc = yes; then
12100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102 /* end confdefs.h. */
12103 #include <stdlib.h>
12104
12105 _ACEOF
12106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12107 $EGREP "free" >/dev/null 2>&1; then :
12108
12109 else
12110 ac_cv_header_stdc=no
12111 fi
12112 rm -f conftest*
12113
12114 fi
12115
12116 if test $ac_cv_header_stdc = yes; then
12117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12118 if test "$cross_compiling" = yes; then :
12119 :
12120 else
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12123 #include <ctype.h>
12124 #include <stdlib.h>
12125 #if ((' ' & 0x0FF) == 0x020)
12126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12128 #else
12129 # define ISLOWER(c) \
12130 (('a' <= (c) && (c) <= 'i') \
12131 || ('j' <= (c) && (c) <= 'r') \
12132 || ('s' <= (c) && (c) <= 'z'))
12133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12134 #endif
12135
12136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12137 int
12138 main ()
12139 {
12140 int i;
12141 for (i = 0; i < 256; i++)
12142 if (XOR (islower (i), ISLOWER (i))
12143 || toupper (i) != TOUPPER (i))
12144 return 2;
12145 return 0;
12146 }
12147 _ACEOF
12148 if ac_fn_c_try_run "$LINENO"; then :
12149
12150 else
12151 ac_cv_header_stdc=no
12152 fi
12153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12154 conftest.$ac_objext conftest.beam conftest.$ac_ext
12155 fi
12156
12157 fi
12158 fi
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12160 $as_echo "$ac_cv_header_stdc" >&6; }
12161 if test $ac_cv_header_stdc = yes; then
12162
12163 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12164
12165 fi
12166
12167 for ac_header in fcntl.h sys/time.h unistd.h termios.h memory.hi sys/file.h
12168 do :
12169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12172 cat >>confdefs.h <<_ACEOF
12173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12174 _ACEOF
12175
12176 fi
12177
12178 done
12179
12180
12181 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12182 if test "x$ac_cv_type_pid_t" = xyes; then :
12183
12184 else
12185
12186 cat >>confdefs.h <<_ACEOF
12187 #define pid_t int
12188 _ACEOF
12189
12190 fi
12191
12192 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12193 if test "x$ac_cv_type_size_t" = xyes; then :
12194
12195 else
12196
12197 cat >>confdefs.h <<_ACEOF
12198 #define size_t unsigned int
12199 _ACEOF
12200
12201 fi
12202
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12204 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12205 if ${ac_cv_header_time+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12210 #include <sys/types.h>
12211 #include <sys/time.h>
12212 #include <time.h>
12213
12214 int
12215 main ()
12216 {
12217 if ((struct tm *) 0)
12218 return 0;
12219 ;
12220 return 0;
12221 }
12222 _ACEOF
12223 if ac_fn_c_try_compile "$LINENO"; then :
12224 ac_cv_header_time=yes
12225 else
12226 ac_cv_header_time=no
12227 fi
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229 fi
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12231 $as_echo "$ac_cv_header_time" >&6; }
12232 if test $ac_cv_header_time = yes; then
12233
12234 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12235
12236 fi
12237
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12239 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12240 if ${ac_cv_c_const+:} false; then :
12241 $as_echo_n "(cached) " >&6
12242 else
12243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12245
12246 int
12247 main ()
12248 {
12249
12250 #ifndef __cplusplus
12251 /* Ultrix mips cc rejects this sort of thing. */
12252 typedef int charset[2];
12253 const charset cs = { 0, 0 };
12254 /* SunOS 4.1.1 cc rejects this. */
12255 char const *const *pcpcc;
12256 char **ppc;
12257 /* NEC SVR4.0.2 mips cc rejects this. */
12258 struct point {int x, y;};
12259 static struct point const zero = {0,0};
12260 /* AIX XL C 1.02.0.0 rejects this.
12261 It does not let you subtract one const X* pointer from another in
12262 an arm of an if-expression whose if-part is not a constant
12263 expression */
12264 const char *g = "string";
12265 pcpcc = &g + (g ? g-g : 0);
12266 /* HPUX 7.0 cc rejects these. */
12267 ++pcpcc;
12268 ppc = (char**) pcpcc;
12269 pcpcc = (char const *const *) ppc;
12270 { /* SCO 3.2v4 cc rejects this sort of thing. */
12271 char tx;
12272 char *t = &tx;
12273 char const *s = 0 ? (char *) 0 : (char const *) 0;
12274
12275 *t++ = 0;
12276 if (s) return 0;
12277 }
12278 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12279 int x[] = {25, 17};
12280 const int *foo = &x[0];
12281 ++foo;
12282 }
12283 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12284 typedef const int *iptr;
12285 iptr p = 0;
12286 ++p;
12287 }
12288 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12289 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12290 struct s { int j; const int *ap[3]; } bx;
12291 struct s *b = &bx; b->j = 5;
12292 }
12293 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12294 const int foo = 10;
12295 if (!foo) return 0;
12296 }
12297 return !cs[0] && !zero.x;
12298 #endif
12299
12300 ;
12301 return 0;
12302 }
12303 _ACEOF
12304 if ac_fn_c_try_compile "$LINENO"; then :
12305 ac_cv_c_const=yes
12306 else
12307 ac_cv_c_const=no
12308 fi
12309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12310 fi
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12312 $as_echo "$ac_cv_c_const" >&6; }
12313 if test $ac_cv_c_const = no; then
12314
12315 $as_echo "#define const /**/" >>confdefs.h
12316
12317 fi
12318
12319
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
12321 $as_echo_n "checking for working memcmp... " >&6; }
12322 if ${ac_cv_func_memcmp_working+:} false; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 if test "$cross_compiling" = yes; then :
12326 ac_cv_func_memcmp_working=no
12327 else
12328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330 $ac_includes_default
12331 int
12332 main ()
12333 {
12334
12335 /* Some versions of memcmp are not 8-bit clean. */
12336 char c0 = '\100', c1 = '\200', c2 = '\201';
12337 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12338 return 1;
12339
12340 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12341 or more and with at least one buffer not starting on a 4-byte boundary.
12342 William Lewis provided this test program. */
12343 {
12344 char foo[21];
12345 char bar[21];
12346 int i;
12347 for (i = 0; i < 4; i++)
12348 {
12349 char *a = foo + i;
12350 char *b = bar + i;
12351 strcpy (a, "--------01111111");
12352 strcpy (b, "--------10000000");
12353 if (memcmp (a, b, 16) >= 0)
12354 return 1;
12355 }
12356 return 0;
12357 }
12358
12359 ;
12360 return 0;
12361 }
12362 _ACEOF
12363 if ac_fn_c_try_run "$LINENO"; then :
12364 ac_cv_func_memcmp_working=yes
12365 else
12366 ac_cv_func_memcmp_working=no
12367 fi
12368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12369 conftest.$ac_objext conftest.beam conftest.$ac_ext
12370 fi
12371
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
12374 $as_echo "$ac_cv_func_memcmp_working" >&6; }
12375 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12376 *" memcmp.$ac_objext "* ) ;;
12377 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12378 ;;
12379 esac
12380
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12383 $as_echo_n "checking return type of signal handlers... " >&6; }
12384 if ${ac_cv_type_signal+:} false; then :
12385 $as_echo_n "(cached) " >&6
12386 else
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12389 #include <sys/types.h>
12390 #include <signal.h>
12391
12392 int
12393 main ()
12394 {
12395 return *(signal (0, 0)) (0) == 1;
12396 ;
12397 return 0;
12398 }
12399 _ACEOF
12400 if ac_fn_c_try_compile "$LINENO"; then :
12401 ac_cv_type_signal=int
12402 else
12403 ac_cv_type_signal=void
12404 fi
12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12408 $as_echo "$ac_cv_type_signal" >&6; }
12409
12410 cat >>confdefs.h <<_ACEOF
12411 #define RETSIGTYPE $ac_cv_type_signal
12412 _ACEOF
12413
12414
12415 for ac_func in vprintf
12416 do :
12417 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12418 if test "x$ac_cv_func_vprintf" = xyes; then :
12419 cat >>confdefs.h <<_ACEOF
12420 #define HAVE_VPRINTF 1
12421 _ACEOF
12422
12423 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12424 if test "x$ac_cv_func__doprnt" = xyes; then :
12425
12426 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12427
12428 fi
12429
12430 fi
12431 done
12432
12433
12434 for ac_func in mkfifo select strcspn strerror strspn
12435 do :
12436 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12437 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12438 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12439 cat >>confdefs.h <<_ACEOF
12440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12441 _ACEOF
12442
12443 fi
12444 done
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12455 if test -n "$ac_tool_prefix"; then
12456 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12457 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459 $as_echo_n "checking for $ac_word... " >&6; }
12460 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 case $PKG_CONFIG in
12464 [\\/]* | ?:[\\/]*)
12465 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12466 ;;
12467 *)
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12470 do
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12475 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 break 2
12478 fi
12479 done
12480 done
12481 IFS=$as_save_IFS
12482
12483 ;;
12484 esac
12485 fi
12486 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12487 if test -n "$PKG_CONFIG"; then
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12489 $as_echo "$PKG_CONFIG" >&6; }
12490 else
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 $as_echo "no" >&6; }
12493 fi
12494
12495
12496 fi
12497 if test -z "$ac_cv_path_PKG_CONFIG"; then
12498 ac_pt_PKG_CONFIG=$PKG_CONFIG
12499 # Extract the first word of "pkg-config", so it can be a program name with args.
12500 set dummy pkg-config; ac_word=$2
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502 $as_echo_n "checking for $ac_word... " >&6; }
12503 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12504 $as_echo_n "(cached) " >&6
12505 else
12506 case $ac_pt_PKG_CONFIG in
12507 [\\/]* | ?:[\\/]*)
12508 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12509 ;;
12510 *)
12511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512 for as_dir in $PATH
12513 do
12514 IFS=$as_save_IFS
12515 test -z "$as_dir" && as_dir=.
12516 for ac_exec_ext in '' $ac_executable_extensions; do
12517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12518 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12520 break 2
12521 fi
12522 done
12523 done
12524 IFS=$as_save_IFS
12525
12526 ;;
12527 esac
12528 fi
12529 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12530 if test -n "$ac_pt_PKG_CONFIG"; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12532 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12533 else
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12535 $as_echo "no" >&6; }
12536 fi
12537
12538 if test "x$ac_pt_PKG_CONFIG" = x; then
12539 PKG_CONFIG=""
12540 else
12541 case $cross_compiling:$ac_tool_warned in
12542 yes:)
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12545 ac_tool_warned=yes ;;
12546 esac
12547 PKG_CONFIG=$ac_pt_PKG_CONFIG
12548 fi
12549 else
12550 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12551 fi
12552
12553 fi
12554 if test -n "$PKG_CONFIG"; then
12555 _pkg_min_version=0.9.0
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12557 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12558 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12560 $as_echo "yes" >&6; }
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 $as_echo "no" >&6; }
12564 PKG_CONFIG=""
12565 fi
12566 fi
12567
12568 pkg_failed=no
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIRC" >&5
12570 $as_echo_n "checking for LIRC... " >&6; }
12571
12572 if test -n "$LIRC_CFLAGS"; then
12573 pkg_cv_LIRC_CFLAGS="$LIRC_CFLAGS"
12574 elif test -n "$PKG_CONFIG"; then
12575 if test -n "$PKG_CONFIG" && \
12576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lirc-driver > 0.9.3\""; } >&5
12577 ($PKG_CONFIG --exists --print-errors "lirc-driver > 0.9.3") 2>&5
12578 ac_status=$?
12579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12580 test $ac_status = 0; }; then
12581 pkg_cv_LIRC_CFLAGS=`$PKG_CONFIG --cflags "lirc-driver > 0.9.3" 2>/dev/null`
12582 test "x$?" != "x0" && pkg_failed=yes
12583 else
12584 pkg_failed=yes
12585 fi
12586 else
12587 pkg_failed=untried
12588 fi
12589 if test -n "$LIRC_LIBS"; then
12590 pkg_cv_LIRC_LIBS="$LIRC_LIBS"
12591 elif test -n "$PKG_CONFIG"; then
12592 if test -n "$PKG_CONFIG" && \
12593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lirc-driver > 0.9.3\""; } >&5
12594 ($PKG_CONFIG --exists --print-errors "lirc-driver > 0.9.3") 2>&5
12595 ac_status=$?
12596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597 test $ac_status = 0; }; then
12598 pkg_cv_LIRC_LIBS=`$PKG_CONFIG --libs "lirc-driver > 0.9.3" 2>/dev/null`
12599 test "x$?" != "x0" && pkg_failed=yes
12600 else
12601 pkg_failed=yes
12602 fi
12603 else
12604 pkg_failed=untried
12605 fi
12606
12607
12608
12609 if test $pkg_failed = yes; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12612
12613 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12614 _pkg_short_errors_supported=yes
12615 else
12616 _pkg_short_errors_supported=no
12617 fi
12618 if test $_pkg_short_errors_supported = yes; then
12619 LIRC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lirc-driver > 0.9.3" 2>&1`
12620 else
12621 LIRC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lirc-driver > 0.9.3" 2>&1`
12622 fi
12623 # Put the nasty error message in config.log where it belongs
12624 echo "$LIRC_PKG_ERRORS" >&5
12625
12626 build_plugin="no"
12627 elif test $pkg_failed = untried; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12630 build_plugin="no"
12631 else
12632 LIRC_CFLAGS=$pkg_cv_LIRC_CFLAGS
12633 LIRC_LIBS=$pkg_cv_LIRC_LIBS
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12635 $as_echo "yes" >&6; }
12636 build_plugin="yes"
12637 fi
12638
12639 # Check whether --with-plugin was given.
12640 if test "${with_plugin+set}" = set; then :
12641 withval=$with_plugin;
12642 else
12643 with_plugin=$build_plugin
12644 fi
12645
12646 if test x$with_plugin = xno; then
12647 if false; then
12648 BUILD_PLUGIN_TRUE=
12649 BUILD_PLUGIN_FALSE='#'
12650 else
12651 BUILD_PLUGIN_TRUE='#'
12652 BUILD_PLUGIN_FALSE=
12653 fi
12654
12655 elif test x$build_plugin = xyes; then
12656 if true; then
12657 BUILD_PLUGIN_TRUE=
12658 BUILD_PLUGIN_FALSE='#'
12659 else
12660 BUILD_PLUGIN_TRUE='#'
12661 BUILD_PLUGIN_FALSE=
12662 fi
12663
12664 else
12665 as_fn_error $? "plugin requested, but suitable LIRC >= 0.9.3 not available" "$LINENO" 5
12666 fi
12667
12668 # Check whether --enable-swtest was given.
12669 if test "${enable_swtest+set}" = set; then :
12670 enableval=$enable_swtest; install_swtest="${enableval}"
12671 else
12672 install_swtest="no"
12673 fi
12674
12675 if test x$install_swtest = xyes; then
12676 BUILD_SWTEST_TRUE=
12677 BUILD_SWTEST_FALSE='#'
12678 else
12679 BUILD_SWTEST_TRUE='#'
12680 BUILD_SWTEST_FALSE=
12681 fi
12682
12683
12684
12685 $as_echo_n BUILD_PLUGIN:
12686 if test -z $BUILD_PLUGIN_TRUE; then :
12687 $as_echo yes
12688 else
12689 $as_echo no
12690 fi
12691
12692 $as_echo_n BUILD_SWTEST:
12693 if test -z $BUILD_SWTEST_TRUE; then :
12694 $as_echo yes
12695 else
12696 $as_echo no
12697 fi
12698
12699 ac_config_files="$ac_config_files Makefile libirman.pc"
12700
12701 cat >confcache <<\_ACEOF
12702 # This file is a shell script that caches the results of configure
12703 # tests run on this system so they can be shared between configure
12704 # scripts and configure runs, see configure's option --config-cache.
12705 # It is not useful on other systems. If it contains results you don't
12706 # want to keep, you may remove or edit it.
12707 #
12708 # config.status only pays attention to the cache file if you give it
12709 # the --recheck option to rerun configure.
12710 #
12711 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12712 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12713 # following values.
12714
12715 _ACEOF
12716
12717 # The following way of writing the cache mishandles newlines in values,
12718 # but we know of no workaround that is simple, portable, and efficient.
12719 # So, we kill variables containing newlines.
12720 # Ultrix sh set writes to stderr and can't be redirected directly,
12721 # and sets the high bit in the cache file unless we assign to the vars.
12722 (
12723 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12724 eval ac_val=\$$ac_var
12725 case $ac_val in #(
12726 *${as_nl}*)
12727 case $ac_var in #(
12728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12730 esac
12731 case $ac_var in #(
12732 _ | IFS | as_nl) ;; #(
12733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12734 *) { eval $ac_var=; unset $ac_var;} ;;
12735 esac ;;
12736 esac
12737 done
12738
12739 (set) 2>&1 |
12740 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12741 *${as_nl}ac_space=\ *)
12742 # `set' does not quote correctly, so add quotes: double-quote
12743 # substitution turns \\\\ into \\, and sed turns \\ into \.
12744 sed -n \
12745 "s/'/'\\\\''/g;
12746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12747 ;; #(
12748 *)
12749 # `set' quotes correctly as required by POSIX, so do not add quotes.
12750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12751 ;;
12752 esac |
12753 sort
12754 ) |
12755 sed '
12756 /^ac_cv_env_/b end
12757 t clear
12758 :clear
12759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12760 t end
12761 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12762 :end' >>confcache
12763 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12764 if test -w "$cache_file"; then
12765 if test "x$cache_file" != "x/dev/null"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12767 $as_echo "$as_me: updating cache $cache_file" >&6;}
12768 if test ! -f "$cache_file" || test -h "$cache_file"; then
12769 cat confcache >"$cache_file"
12770 else
12771 case $cache_file in #(
12772 */* | ?:*)
12773 mv -f confcache "$cache_file"$$ &&
12774 mv -f "$cache_file"$$ "$cache_file" ;; #(
12775 *)
12776 mv -f confcache "$cache_file" ;;
12777 esac
12778 fi
12779 fi
12780 else
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12782 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12783 fi
12784 fi
12785 rm -f confcache
12786
12787 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12788 # Let make expand exec_prefix.
12789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12790
12791 DEFS=-DHAVE_CONFIG_H
12792
12793 ac_libobjs=
12794 ac_ltlibobjs=
12795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12796 # 1. Remove the extension, and $U if already installed.
12797 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12798 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12799 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12800 # will be set to the directory where LIBOBJS objects are built.
12801 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12802 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12803 done
12804 LIBOBJS=$ac_libobjs
12805
12806 LTLIBOBJS=$ac_ltlibobjs
12807
12808
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12810 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12811 if test -n "$am_sleep_pid"; then
12812 # Hide warnings about reused PIDs.
12813 wait $am_sleep_pid 2>/dev/null
12814 fi
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12816 $as_echo "done" >&6; }
12817 if test -n "$EXEEXT"; then
12818 am__EXEEXT_TRUE=
12819 am__EXEEXT_FALSE='#'
12820 else
12821 am__EXEEXT_TRUE='#'
12822 am__EXEEXT_FALSE=
12823 fi
12824
12825 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12826 as_fn_error $? "conditional \"AMDEP\" was never defined.
12827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12828 fi
12829 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12830 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12832 fi
12833 if test -z "${BUILD_PLUGIN_TRUE}" && test -z "${BUILD_PLUGIN_FALSE}"; then
12834 as_fn_error $? "conditional \"BUILD_PLUGIN\" was never defined.
12835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12836 fi
12837 if test -z "${BUILD_PLUGIN_TRUE}" && test -z "${BUILD_PLUGIN_FALSE}"; then
12838 as_fn_error $? "conditional \"BUILD_PLUGIN\" was never defined.
12839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12840 fi
12841 if test -z "${BUILD_SWTEST_TRUE}" && test -z "${BUILD_SWTEST_FALSE}"; then
12842 as_fn_error $? "conditional \"BUILD_SWTEST\" was never defined.
12843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12844 fi
12845
12846 : "${CONFIG_STATUS=./config.status}"
12847 ac_write_fail=0
12848 ac_clean_files_save=$ac_clean_files
12849 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12851 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12852 as_write_fail=0
12853 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12854 #! $SHELL
12855 # Generated by $as_me.
12856 # Run this file to recreate the current configuration.
12857 # Compiler output produced by configure, useful for debugging
12858 # configure, is in config.log if it exists.
12859
12860 debug=false
12861 ac_cs_recheck=false
12862 ac_cs_silent=false
12863
12864 SHELL=\${CONFIG_SHELL-$SHELL}
12865 export SHELL
12866 _ASEOF
12867 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12868 ## -------------------- ##
12869 ## M4sh Initialization. ##
12870 ## -------------------- ##
12871
12872 # Be more Bourne compatible
12873 DUALCASE=1; export DUALCASE # for MKS sh
12874 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12875 emulate sh
12876 NULLCMD=:
12877 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12878 # is contrary to our usage. Disable this feature.
12879 alias -g '${1+"$@"}'='"$@"'
12880 setopt NO_GLOB_SUBST
12881 else
12882 case `(set -o) 2>/dev/null` in #(
12883 *posix*) :
12884 set -o posix ;; #(
12885 *) :
12886 ;;
12887 esac
12888 fi
12889
12890
12891 as_nl='
12892 '
12893 export as_nl
12894 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12895 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12896 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12897 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12898 # Prefer a ksh shell builtin over an external printf program on Solaris,
12899 # but without wasting forks for bash or zsh.
12900 if test -z "$BASH_VERSION$ZSH_VERSION" \
12901 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12902 as_echo='print -r --'
12903 as_echo_n='print -rn --'
12904 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12905 as_echo='printf %s\n'
12906 as_echo_n='printf %s'
12907 else
12908 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12909 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12910 as_echo_n='/usr/ucb/echo -n'
12911 else
12912 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12913 as_echo_n_body='eval
12914 arg=$1;
12915 case $arg in #(
12916 *"$as_nl"*)
12917 expr "X$arg" : "X\\(.*\\)$as_nl";
12918 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12919 esac;
12920 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12921 '
12922 export as_echo_n_body
12923 as_echo_n='sh -c $as_echo_n_body as_echo'
12924 fi
12925 export as_echo_body
12926 as_echo='sh -c $as_echo_body as_echo'
12927 fi
12928
12929 # The user is always right.
12930 if test "${PATH_SEPARATOR+set}" != set; then
12931 PATH_SEPARATOR=:
12932 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12933 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12934 PATH_SEPARATOR=';'
12935 }
12936 fi
12937
12938
12939 # IFS
12940 # We need space, tab and new line, in precisely that order. Quoting is
12941 # there to prevent editors from complaining about space-tab.
12942 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12943 # splitting by setting IFS to empty value.)
12944 IFS=" "" $as_nl"
12945
12946 # Find who we are. Look in the path if we contain no directory separator.
12947 as_myself=
12948 case $0 in #((
12949 *[\\/]* ) as_myself=$0 ;;
12950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12952 do
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
12955 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12956 done
12957 IFS=$as_save_IFS
12958
12959 ;;
12960 esac
12961 # We did not find ourselves, most probably we were run as `sh COMMAND'
12962 # in which case we are not to be found in the path.
12963 if test "x$as_myself" = x; then
12964 as_myself=$0
12965 fi
12966 if test ! -f "$as_myself"; then
12967 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12968 exit 1
12969 fi
12970
12971 # Unset variables that we do not need and which cause bugs (e.g. in
12972 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12973 # suppresses any "Segmentation fault" message there. '((' could
12974 # trigger a bug in pdksh 5.2.14.
12975 for as_var in BASH_ENV ENV MAIL MAILPATH
12976 do eval test x\${$as_var+set} = xset \
12977 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12978 done
12979 PS1='$ '
12980 PS2='> '
12981 PS4='+ '
12982
12983 # NLS nuisances.
12984 LC_ALL=C
12985 export LC_ALL
12986 LANGUAGE=C
12987 export LANGUAGE
12988
12989 # CDPATH.
12990 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12991
12992
12993 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12994 # ----------------------------------------
12995 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12996 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12997 # script with STATUS, using 1 if that was 0.
12998 as_fn_error ()
12999 {
13000 as_status=$1; test $as_status -eq 0 && as_status=1
13001 if test "$4"; then
13002 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13003 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13004 fi
13005 $as_echo "$as_me: error: $2" >&2
13006 as_fn_exit $as_status
13007 } # as_fn_error
13008
13009
13010 # as_fn_set_status STATUS
13011 # -----------------------
13012 # Set $? to STATUS, without forking.
13013 as_fn_set_status ()
13014 {
13015 return $1
13016 } # as_fn_set_status
13017
13018 # as_fn_exit STATUS
13019 # -----------------
13020 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13021 as_fn_exit ()
13022 {
13023 set +e
13024 as_fn_set_status $1
13025 exit $1
13026 } # as_fn_exit
13027
13028 # as_fn_unset VAR
13029 # ---------------
13030 # Portably unset VAR.
13031 as_fn_unset ()
13032 {
13033 { eval $1=; unset $1;}
13034 }
13035 as_unset=as_fn_unset
13036 # as_fn_append VAR VALUE
13037 # ----------------------
13038 # Append the text in VALUE to the end of the definition contained in VAR. Take
13039 # advantage of any shell optimizations that allow amortized linear growth over
13040 # repeated appends, instead of the typical quadratic growth present in naive
13041 # implementations.
13042 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13043 eval 'as_fn_append ()
13044 {
13045 eval $1+=\$2
13046 }'
13047 else
13048 as_fn_append ()
13049 {
13050 eval $1=\$$1\$2
13051 }
13052 fi # as_fn_append
13053
13054 # as_fn_arith ARG...
13055 # ------------------
13056 # Perform arithmetic evaluation on the ARGs, and store the result in the
13057 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13058 # must be portable across $(()) and expr.
13059 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13060 eval 'as_fn_arith ()
13061 {
13062 as_val=$(( $* ))
13063 }'
13064 else
13065 as_fn_arith ()
13066 {
13067 as_val=`expr "$@" || test $? -eq 1`
13068 }
13069 fi # as_fn_arith
13070
13071
13072 if expr a : '\(a\)' >/dev/null 2>&1 &&
13073 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13074 as_expr=expr
13075 else
13076 as_expr=false
13077 fi
13078
13079 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13080 as_basename=basename
13081 else
13082 as_basename=false
13083 fi
13084
13085 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13086 as_dirname=dirname
13087 else
13088 as_dirname=false
13089 fi
13090
13091 as_me=`$as_basename -- "$0" ||
13092 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13093 X"$0" : 'X\(//\)$' \| \
13094 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13095 $as_echo X/"$0" |
13096 sed '/^.*\/\([^/][^/]*\)\/*$/{
13097 s//\1/
13098 q
13099 }
13100 /^X\/\(\/\/\)$/{
13101 s//\1/
13102 q
13103 }
13104 /^X\/\(\/\).*/{
13105 s//\1/
13106 q
13107 }
13108 s/.*/./; q'`
13109
13110 # Avoid depending upon Character Ranges.
13111 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13112 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13113 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13114 as_cr_digits='0123456789'
13115 as_cr_alnum=$as_cr_Letters$as_cr_digits
13116
13117 ECHO_C= ECHO_N= ECHO_T=
13118 case `echo -n x` in #(((((
13119 -n*)
13120 case `echo 'xy\c'` in
13121 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13122 xy) ECHO_C='\c';;
13123 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13124 ECHO_T=' ';;
13125 esac;;
13126 *)
13127 ECHO_N='-n';;
13128 esac
13129
13130 rm -f conf$$ conf$$.exe conf$$.file
13131 if test -d conf$$.dir; then
13132 rm -f conf$$.dir/conf$$.file
13133 else
13134 rm -f conf$$.dir
13135 mkdir conf$$.dir 2>/dev/null
13136 fi
13137 if (echo >conf$$.file) 2>/dev/null; then
13138 if ln -s conf$$.file conf$$ 2>/dev/null; then
13139 as_ln_s='ln -s'
13140 # ... but there are two gotchas:
13141 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13142 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13143 # In both cases, we have to default to `cp -pR'.
13144 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13145 as_ln_s='cp -pR'
13146 elif ln conf$$.file conf$$ 2>/dev/null; then
13147 as_ln_s=ln
13148 else
13149 as_ln_s='cp -pR'
13150 fi
13151 else
13152 as_ln_s='cp -pR'
13153 fi
13154 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13155 rmdir conf$$.dir 2>/dev/null
13156
13157
13158 # as_fn_mkdir_p
13159 # -------------
13160 # Create "$as_dir" as a directory, including parents if necessary.
13161 as_fn_mkdir_p ()
13162 {
13163
13164 case $as_dir in #(
13165 -*) as_dir=./$as_dir;;
13166 esac
13167 test -d "$as_dir" || eval $as_mkdir_p || {
13168 as_dirs=
13169 while :; do
13170 case $as_dir in #(
13171 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13172 *) as_qdir=$as_dir;;
13173 esac
13174 as_dirs="'$as_qdir' $as_dirs"
13175 as_dir=`$as_dirname -- "$as_dir" ||
13176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13177 X"$as_dir" : 'X\(//\)[^/]' \| \
13178 X"$as_dir" : 'X\(//\)$' \| \
13179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13180 $as_echo X"$as_dir" |
13181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13182 s//\1/
13183 q
13184 }
13185 /^X\(\/\/\)[^/].*/{
13186 s//\1/
13187 q
13188 }
13189 /^X\(\/\/\)$/{
13190 s//\1/
13191 q
13192 }
13193 /^X\(\/\).*/{
13194 s//\1/
13195 q
13196 }
13197 s/.*/./; q'`
13198 test -d "$as_dir" && break
13199 done
13200 test -z "$as_dirs" || eval "mkdir $as_dirs"
13201 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13202
13203
13204 } # as_fn_mkdir_p
13205 if mkdir -p . 2>/dev/null; then
13206 as_mkdir_p='mkdir -p "$as_dir"'
13207 else
13208 test -d ./-p && rmdir ./-p
13209 as_mkdir_p=false
13210 fi
13211
13212
13213 # as_fn_executable_p FILE
13214 # -----------------------
13215 # Test if FILE is an executable regular file.
13216 as_fn_executable_p ()
13217 {
13218 test -f "$1" && test -x "$1"
13219 } # as_fn_executable_p
13220 as_test_x='test -x'
13221 as_executable_p=as_fn_executable_p
13222
13223 # Sed expression to map a string onto a valid CPP name.
13224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13225
13226 # Sed expression to map a string onto a valid variable name.
13227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13228
13229
13230 exec 6>&1
13231 ## ----------------------------------- ##
13232 ## Main body of $CONFIG_STATUS script. ##
13233 ## ----------------------------------- ##
13234 _ASEOF
13235 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13236
13237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13238 # Save the log message, to keep $0 and so on meaningful, and to
13239 # report actual input values of CONFIG_FILES etc. instead of their
13240 # values after options handling.
13241 ac_log="
13242 This file was extended by libirman $as_me 0.5.2, which was
13243 generated by GNU Autoconf 2.69. Invocation command line was
13244
13245 CONFIG_FILES = $CONFIG_FILES
13246 CONFIG_HEADERS = $CONFIG_HEADERS
13247 CONFIG_LINKS = $CONFIG_LINKS
13248 CONFIG_COMMANDS = $CONFIG_COMMANDS
13249 $ $0 $@
13250
13251 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13252 "
13253
13254 _ACEOF
13255
13256 case $ac_config_files in *"
13257 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13258 esac
13259
13260 case $ac_config_headers in *"
13261 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13262 esac
13263
13264
13265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13266 # Files that config.status was made for.
13267 config_files="$ac_config_files"
13268 config_headers="$ac_config_headers"
13269 config_commands="$ac_config_commands"
13270
13271 _ACEOF
13272
13273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13274 ac_cs_usage="\
13275 \`$as_me' instantiates files and other configuration actions
13276 from templates according to the current configuration. Unless the files
13277 and actions are specified as TAGs, all are instantiated by default.
13278
13279 Usage: $0 [OPTION]... [TAG]...
13280
13281 -h, --help print this help, then exit
13282 -V, --version print version number and configuration settings, then exit
13283 --config print configuration, then exit
13284 -q, --quiet, --silent
13285 do not print progress messages
13286 -d, --debug don't remove temporary files
13287 --recheck update $as_me by reconfiguring in the same conditions
13288 --file=FILE[:TEMPLATE]
13289 instantiate the configuration file FILE
13290 --header=FILE[:TEMPLATE]
13291 instantiate the configuration header FILE
13292
13293 Configuration files:
13294 $config_files
13295
13296 Configuration headers:
13297 $config_headers
13298
13299 Configuration commands:
13300 $config_commands
13301
13302 Report bugs to the package provider."
13303
13304 _ACEOF
13305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13306 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13307 ac_cs_version="\\
13308 libirman config.status 0.5.2
13309 configured by $0, generated by GNU Autoconf 2.69,
13310 with options \\"\$ac_cs_config\\"
13311
13312 Copyright (C) 2012 Free Software Foundation, Inc.
13313 This config.status script is free software; the Free Software Foundation
13314 gives unlimited permission to copy, distribute and modify it."
13315
13316 ac_pwd='$ac_pwd'
13317 srcdir='$srcdir'
13318 INSTALL='$INSTALL'
13319 MKDIR_P='$MKDIR_P'
13320 AWK='$AWK'
13321 test -n "\$AWK" || AWK=awk
13322 _ACEOF
13323
13324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13325 # The default lists apply if the user does not specify any file.
13326 ac_need_defaults=:
13327 while test $# != 0
13328 do
13329 case $1 in
13330 --*=?*)
13331 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13332 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13333 ac_shift=:
13334 ;;
13335 --*=)
13336 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13337 ac_optarg=
13338 ac_shift=:
13339 ;;
13340 *)
13341 ac_option=$1
13342 ac_optarg=$2
13343 ac_shift=shift
13344 ;;
13345 esac
13346
13347 case $ac_option in
13348 # Handling of the options.
13349 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13350 ac_cs_recheck=: ;;
13351 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13352 $as_echo "$ac_cs_version"; exit ;;
13353 --config | --confi | --conf | --con | --co | --c )
13354 $as_echo "$ac_cs_config"; exit ;;
13355 --debug | --debu | --deb | --de | --d | -d )
13356 debug=: ;;
13357 --file | --fil | --fi | --f )
13358 $ac_shift
13359 case $ac_optarg in
13360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13361 '') as_fn_error $? "missing file argument" ;;
13362 esac
13363 as_fn_append CONFIG_FILES " '$ac_optarg'"
13364 ac_need_defaults=false;;
13365 --header | --heade | --head | --hea )
13366 $ac_shift
13367 case $ac_optarg in
13368 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13369 esac
13370 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13371 ac_need_defaults=false;;
13372 --he | --h)
13373 # Conflict between --help and --header
13374 as_fn_error $? "ambiguous option: \`$1'
13375 Try \`$0 --help' for more information.";;
13376 --help | --hel | -h )
13377 $as_echo "$ac_cs_usage"; exit ;;
13378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13379 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13380 ac_cs_silent=: ;;
13381
13382 # This is an error.
13383 -*) as_fn_error $? "unrecognized option: \`$1'
13384 Try \`$0 --help' for more information." ;;
13385
13386 *) as_fn_append ac_config_targets " $1"
13387 ac_need_defaults=false ;;
13388
13389 esac
13390 shift
13391 done
13392
13393 ac_configure_extra_args=
13394
13395 if $ac_cs_silent; then
13396 exec 6>/dev/null
13397 ac_configure_extra_args="$ac_configure_extra_args --silent"
13398 fi
13399
13400 _ACEOF
13401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13402 if \$ac_cs_recheck; then
13403 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13404 shift
13405 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13406 CONFIG_SHELL='$SHELL'
13407 export CONFIG_SHELL
13408 exec "\$@"
13409 fi
13410
13411 _ACEOF
13412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13413 exec 5>>config.log
13414 {
13415 echo
13416 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13417 ## Running $as_me. ##
13418 _ASBOX
13419 $as_echo "$ac_log"
13420 } >&5
13421
13422 _ACEOF
13423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13424 #
13425 # INIT-COMMANDS
13426 #
13427 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13428
13429
13430 # The HP-UX ksh and POSIX shell print the target directory to stdout
13431 # if CDPATH is set.
13432 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13433
13434 sed_quote_subst='$sed_quote_subst'
13435 double_quote_subst='$double_quote_subst'
13436 delay_variable_subst='$delay_variable_subst'
13437 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13438 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13439 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13440 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13441 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13442 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13443 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13444 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13445 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13446 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13447 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13448 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13449 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13450 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13451 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13452 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13453 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13454 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13455 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13456 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13457 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13458 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13459 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13460 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13461 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13462 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13463 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13464 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13465 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13466 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13467 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13468 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13469 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13470 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13471 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13472 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13473 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13474 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13475 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13476 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13477 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13478 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13479 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13480 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13481 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13482 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13483 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13484 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13485 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13486 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13487 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13488 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13489 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13490 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13491 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13492 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13493 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13494 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13495 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"`'
13496 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13497 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13498 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13499 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13500 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13501 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13502 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13503 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13504 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13505 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13506 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13507 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13508 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13509 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13510 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13511 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13512 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13513 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13514 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13515 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13516 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13517 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13518 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13519 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13520 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13521 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13522 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13523 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13524 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13525 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13526 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13527 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13528 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13529 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13530 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13531 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13532 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13533 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13534 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13535 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13536 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13537 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13538 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13539 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13540 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13541 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13542 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13543 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13544 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13545 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13546 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13547 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13548 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13549 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13550 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13551 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13552 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13553 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13554 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13555 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13556 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13557 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13558 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13559 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13560 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13561 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13562 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13563 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13564 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13565 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13566 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13567 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13568 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13569 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13570 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13571 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13572
13573 LTCC='$LTCC'
13574 LTCFLAGS='$LTCFLAGS'
13575 compiler='$compiler_DEFAULT'
13576
13577 # A function that is used when there is no print builtin or printf.
13578 func_fallback_echo ()
13579 {
13580 eval 'cat <<_LTECHO_EOF
13581 \$1
13582 _LTECHO_EOF'
13583 }
13584
13585 # Quote evaled strings.
13586 for var in SHELL \
13587 ECHO \
13588 PATH_SEPARATOR \
13589 SED \
13590 GREP \
13591 EGREP \
13592 FGREP \
13593 LD \
13594 NM \
13595 LN_S \
13596 lt_SP2NL \
13597 lt_NL2SP \
13598 reload_flag \
13599 OBJDUMP \
13600 deplibs_check_method \
13601 file_magic_cmd \
13602 file_magic_glob \
13603 want_nocaseglob \
13604 DLLTOOL \
13605 sharedlib_from_linklib_cmd \
13606 AR \
13607 AR_FLAGS \
13608 archiver_list_spec \
13609 STRIP \
13610 RANLIB \
13611 CC \
13612 CFLAGS \
13613 compiler \
13614 lt_cv_sys_global_symbol_pipe \
13615 lt_cv_sys_global_symbol_to_cdecl \
13616 lt_cv_sys_global_symbol_to_import \
13617 lt_cv_sys_global_symbol_to_c_name_address \
13618 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13619 lt_cv_nm_interface \
13620 nm_file_list_spec \
13621 lt_cv_truncate_bin \
13622 lt_prog_compiler_no_builtin_flag \
13623 lt_prog_compiler_pic \
13624 lt_prog_compiler_wl \
13625 lt_prog_compiler_static \
13626 lt_cv_prog_compiler_c_o \
13627 need_locks \
13628 MANIFEST_TOOL \
13629 DSYMUTIL \
13630 NMEDIT \
13631 LIPO \
13632 OTOOL \
13633 OTOOL64 \
13634 shrext_cmds \
13635 export_dynamic_flag_spec \
13636 whole_archive_flag_spec \
13637 compiler_needs_object \
13638 with_gnu_ld \
13639 allow_undefined_flag \
13640 no_undefined_flag \
13641 hardcode_libdir_flag_spec \
13642 hardcode_libdir_separator \
13643 exclude_expsyms \
13644 include_expsyms \
13645 file_list_spec \
13646 variables_saved_for_relink \
13647 libname_spec \
13648 library_names_spec \
13649 soname_spec \
13650 install_override_mode \
13651 finish_eval \
13652 old_striplib \
13653 striplib; do
13654 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13655 *[\\\\\\\`\\"\\\$]*)
13656 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13657 ;;
13658 *)
13659 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13660 ;;
13661 esac
13662 done
13663
13664 # Double-quote double-evaled strings.
13665 for var in reload_cmds \
13666 old_postinstall_cmds \
13667 old_postuninstall_cmds \
13668 old_archive_cmds \
13669 extract_expsyms_cmds \
13670 old_archive_from_new_cmds \
13671 old_archive_from_expsyms_cmds \
13672 archive_cmds \
13673 archive_expsym_cmds \
13674 module_cmds \
13675 module_expsym_cmds \
13676 export_symbols_cmds \
13677 prelink_cmds \
13678 postlink_cmds \
13679 postinstall_cmds \
13680 postuninstall_cmds \
13681 finish_cmds \
13682 sys_lib_search_path_spec \
13683 configure_time_dlsearch_path \
13684 configure_time_lt_sys_library_path; do
13685 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13686 *[\\\\\\\`\\"\\\$]*)
13687 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13688 ;;
13689 *)
13690 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13691 ;;
13692 esac
13693 done
13694
13695 ac_aux_dir='$ac_aux_dir'
13696
13697 # See if we are running on zsh, and set the options that allow our
13698 # commands through without removal of \ escapes INIT.
13699 if test -n "\${ZSH_VERSION+set}"; then
13700 setopt NO_GLOB_SUBST
13701 fi
13702
13703
13704 PACKAGE='$PACKAGE'
13705 VERSION='$VERSION'
13706 RM='$RM'
13707 ofile='$ofile'
13708
13709
13710
13711
13712 _ACEOF
13713
13714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715
13716 # Handling of arguments.
13717 for ac_config_target in $ac_config_targets
13718 do
13719 case $ac_config_target in
13720 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13721 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13722 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13723 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13724 "libirman.pc") CONFIG_FILES="$CONFIG_FILES libirman.pc" ;;
13725
13726 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13727 esac
13728 done
13729
13730
13731 # If the user did not use the arguments to specify the items to instantiate,
13732 # then the envvar interface is used. Set only those that are not.
13733 # We use the long form for the default assignment because of an extremely
13734 # bizarre bug on SunOS 4.1.3.
13735 if $ac_need_defaults; then
13736 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13737 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13738 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13739 fi
13740
13741 # Have a temporary directory for convenience. Make it in the build tree
13742 # simply because there is no reason against having it here, and in addition,
13743 # creating and moving files from /tmp can sometimes cause problems.
13744 # Hook for its removal unless debugging.
13745 # Note that there is a small window in which the directory will not be cleaned:
13746 # after its creation but before its name has been assigned to `$tmp'.
13747 $debug ||
13748 {
13749 tmp= ac_tmp=
13750 trap 'exit_status=$?
13751 : "${ac_tmp:=$tmp}"
13752 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13753 ' 0
13754 trap 'as_fn_exit 1' 1 2 13 15
13755 }
13756 # Create a (secure) tmp directory for tmp files.
13757
13758 {
13759 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13760 test -d "$tmp"
13761 } ||
13762 {
13763 tmp=./conf$$-$RANDOM
13764 (umask 077 && mkdir "$tmp")
13765 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13766 ac_tmp=$tmp
13767
13768 # Set up the scripts for CONFIG_FILES section.
13769 # No need to generate them if there are no CONFIG_FILES.
13770 # This happens for instance with `./config.status config.h'.
13771 if test -n "$CONFIG_FILES"; then
13772
13773
13774 ac_cr=`echo X | tr X '\015'`
13775 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13776 # But we know of no other shell where ac_cr would be empty at this
13777 # point, so we can use a bashism as a fallback.
13778 if test "x$ac_cr" = x; then
13779 eval ac_cr=\$\'\\r\'
13780 fi
13781 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13782 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13783 ac_cs_awk_cr='\\r'
13784 else
13785 ac_cs_awk_cr=$ac_cr
13786 fi
13787
13788 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13789 _ACEOF
13790
13791
13792 {
13793 echo "cat >conf$$subs.awk <<_ACEOF" &&
13794 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13795 echo "_ACEOF"
13796 } >conf$$subs.sh ||
13797 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13798 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13799 ac_delim='%!_!# '
13800 for ac_last_try in false false false false false :; do
13801 . ./conf$$subs.sh ||
13802 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13803
13804 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13805 if test $ac_delim_n = $ac_delim_num; then
13806 break
13807 elif $ac_last_try; then
13808 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13809 else
13810 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13811 fi
13812 done
13813 rm -f conf$$subs.sh
13814
13815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13816 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13817 _ACEOF
13818 sed -n '
13819 h
13820 s/^/S["/; s/!.*/"]=/
13821 p
13822 g
13823 s/^[^!]*!//
13824 :repl
13825 t repl
13826 s/'"$ac_delim"'$//
13827 t delim
13828 :nl
13829 h
13830 s/\(.\{148\}\)..*/\1/
13831 t more1
13832 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13833 p
13834 n
13835 b repl
13836 :more1
13837 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13838 p
13839 g
13840 s/.\{148\}//
13841 t nl
13842 :delim
13843 h
13844 s/\(.\{148\}\)..*/\1/
13845 t more2
13846 s/["\\]/\\&/g; s/^/"/; s/$/"/
13847 p
13848 b
13849 :more2
13850 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13851 p
13852 g
13853 s/.\{148\}//
13854 t delim
13855 ' <conf$$subs.awk | sed '
13856 /^[^""]/{
13857 N
13858 s/\n//
13859 }
13860 ' >>$CONFIG_STATUS || ac_write_fail=1
13861 rm -f conf$$subs.awk
13862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13863 _ACAWK
13864 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13865 for (key in S) S_is_set[key] = 1
13866 FS = ""
13867
13868 }
13869 {
13870 line = $ 0
13871 nfields = split(line, field, "@")
13872 substed = 0
13873 len = length(field[1])
13874 for (i = 2; i < nfields; i++) {
13875 key = field[i]
13876 keylen = length(key)
13877 if (S_is_set[key]) {
13878 value = S[key]
13879 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13880 len += length(value) + length(field[++i])
13881 substed = 1
13882 } else
13883 len += 1 + keylen
13884 }
13885
13886 print line
13887 }
13888
13889 _ACAWK
13890 _ACEOF
13891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13892 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13893 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13894 else
13895 cat
13896 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13897 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13898 _ACEOF
13899
13900 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13901 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13902 # trailing colons and then remove the whole line if VPATH becomes empty
13903 # (actually we leave an empty line to preserve line numbers).
13904 if test "x$srcdir" = x.; then
13905 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13906 h
13907 s///
13908 s/^/:/
13909 s/[ ]*$/:/
13910 s/:\$(srcdir):/:/g
13911 s/:\${srcdir}:/:/g
13912 s/:@srcdir@:/:/g
13913 s/^:*//
13914 s/:*$//
13915 x
13916 s/\(=[ ]*\).*/\1/
13917 G
13918 s/\n//
13919 s/^[^=]*=[ ]*$//
13920 }'
13921 fi
13922
13923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13924 fi # test -n "$CONFIG_FILES"
13925
13926 # Set up the scripts for CONFIG_HEADERS section.
13927 # No need to generate them if there are no CONFIG_HEADERS.
13928 # This happens for instance with `./config.status Makefile'.
13929 if test -n "$CONFIG_HEADERS"; then
13930 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13931 BEGIN {
13932 _ACEOF
13933
13934 # Transform confdefs.h into an awk script `defines.awk', embedded as
13935 # here-document in config.status, that substitutes the proper values into
13936 # config.h.in to produce config.h.
13937
13938 # Create a delimiter string that does not exist in confdefs.h, to ease
13939 # handling of long lines.
13940 ac_delim='%!_!# '
13941 for ac_last_try in false false :; do
13942 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13943 if test -z "$ac_tt"; then
13944 break
13945 elif $ac_last_try; then
13946 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13947 else
13948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13949 fi
13950 done
13951
13952 # For the awk script, D is an array of macro values keyed by name,
13953 # likewise P contains macro parameters if any. Preserve backslash
13954 # newline sequences.
13955
13956 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13957 sed -n '
13958 s/.\{148\}/&'"$ac_delim"'/g
13959 t rset
13960 :rset
13961 s/^[ ]*#[ ]*define[ ][ ]*/ /
13962 t def
13963 d
13964 :def
13965 s/\\$//
13966 t bsnl
13967 s/["\\]/\\&/g
13968 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13969 D["\1"]=" \3"/p
13970 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13971 d
13972 :bsnl
13973 s/["\\]/\\&/g
13974 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13975 D["\1"]=" \3\\\\\\n"\\/p
13976 t cont
13977 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13978 t cont
13979 d
13980 :cont
13981 n
13982 s/.\{148\}/&'"$ac_delim"'/g
13983 t clear
13984 :clear
13985 s/\\$//
13986 t bsnlc
13987 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13988 d
13989 :bsnlc
13990 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13991 b cont
13992 ' <confdefs.h | sed '
13993 s/'"$ac_delim"'/"\\\
13994 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13995
13996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13997 for (key in D) D_is_set[key] = 1
13998 FS = ""
13999 }
14000 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14001 line = \$ 0
14002 split(line, arg, " ")
14003 if (arg[1] == "#") {
14004 defundef = arg[2]
14005 mac1 = arg[3]
14006 } else {
14007 defundef = substr(arg[1], 2)
14008 mac1 = arg[2]
14009 }
14010 split(mac1, mac2, "(") #)
14011 macro = mac2[1]
14012 prefix = substr(line, 1, index(line, defundef) - 1)
14013 if (D_is_set[macro]) {
14014 # Preserve the white space surrounding the "#".
14015 print prefix "define", macro P[macro] D[macro]
14016 next
14017 } else {
14018 # Replace #undef with comments. This is necessary, for example,
14019 # in the case of _POSIX_SOURCE, which is predefined and required
14020 # on some systems where configure will not decide to define it.
14021 if (defundef == "undef") {
14022 print "/*", prefix defundef, macro, "*/"
14023 next
14024 }
14025 }
14026 }
14027 { print }
14028 _ACAWK
14029 _ACEOF
14030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14031 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14032 fi # test -n "$CONFIG_HEADERS"
14033
14034
14035 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14036 shift
14037 for ac_tag
14038 do
14039 case $ac_tag in
14040 :[FHLC]) ac_mode=$ac_tag; continue;;
14041 esac
14042 case $ac_mode$ac_tag in
14043 :[FHL]*:*);;
14044 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14045 :[FH]-) ac_tag=-:-;;
14046 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14047 esac
14048 ac_save_IFS=$IFS
14049 IFS=:
14050 set x $ac_tag
14051 IFS=$ac_save_IFS
14052 shift
14053 ac_file=$1
14054 shift
14055
14056 case $ac_mode in
14057 :L) ac_source=$1;;
14058 :[FH])
14059 ac_file_inputs=
14060 for ac_f
14061 do
14062 case $ac_f in
14063 -) ac_f="$ac_tmp/stdin";;
14064 *) # Look for the file first in the build tree, then in the source tree
14065 # (if the path is not absolute). The absolute path cannot be DOS-style,
14066 # because $ac_f cannot contain `:'.
14067 test -f "$ac_f" ||
14068 case $ac_f in
14069 [\\/$]*) false;;
14070 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14071 esac ||
14072 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14073 esac
14074 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14075 as_fn_append ac_file_inputs " '$ac_f'"
14076 done
14077
14078 # Let's still pretend it is `configure' which instantiates (i.e., don't
14079 # use $as_me), people would be surprised to read:
14080 # /* config.h. Generated by config.status. */
14081 configure_input='Generated from '`
14082 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14083 `' by configure.'
14084 if test x"$ac_file" != x-; then
14085 configure_input="$ac_file. $configure_input"
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14087 $as_echo "$as_me: creating $ac_file" >&6;}
14088 fi
14089 # Neutralize special characters interpreted by sed in replacement strings.
14090 case $configure_input in #(
14091 *\&* | *\|* | *\\* )
14092 ac_sed_conf_input=`$as_echo "$configure_input" |
14093 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14094 *) ac_sed_conf_input=$configure_input;;
14095 esac
14096
14097 case $ac_tag in
14098 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14099 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14100 esac
14101 ;;
14102 esac
14103
14104 ac_dir=`$as_dirname -- "$ac_file" ||
14105 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14106 X"$ac_file" : 'X\(//\)[^/]' \| \
14107 X"$ac_file" : 'X\(//\)$' \| \
14108 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14109 $as_echo X"$ac_file" |
14110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14111 s//\1/
14112 q
14113 }
14114 /^X\(\/\/\)[^/].*/{
14115 s//\1/
14116 q
14117 }
14118 /^X\(\/\/\)$/{
14119 s//\1/
14120 q
14121 }
14122 /^X\(\/\).*/{
14123 s//\1/
14124 q
14125 }
14126 s/.*/./; q'`
14127 as_dir="$ac_dir"; as_fn_mkdir_p
14128 ac_builddir=.
14129
14130 case "$ac_dir" in
14131 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14132 *)
14133 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14134 # A ".." for each directory in $ac_dir_suffix.
14135 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14136 case $ac_top_builddir_sub in
14137 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14138 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14139 esac ;;
14140 esac
14141 ac_abs_top_builddir=$ac_pwd
14142 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14143 # for backward compatibility:
14144 ac_top_builddir=$ac_top_build_prefix
14145
14146 case $srcdir in
14147 .) # We are building in place.
14148 ac_srcdir=.
14149 ac_top_srcdir=$ac_top_builddir_sub
14150 ac_abs_top_srcdir=$ac_pwd ;;
14151 [\\/]* | ?:[\\/]* ) # Absolute name.
14152 ac_srcdir=$srcdir$ac_dir_suffix;
14153 ac_top_srcdir=$srcdir
14154 ac_abs_top_srcdir=$srcdir ;;
14155 *) # Relative name.
14156 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14157 ac_top_srcdir=$ac_top_build_prefix$srcdir
14158 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14159 esac
14160 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14161
14162
14163 case $ac_mode in
14164 :F)
14165 #
14166 # CONFIG_FILE
14167 #
14168
14169 case $INSTALL in
14170 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14171 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14172 esac
14173 ac_MKDIR_P=$MKDIR_P
14174 case $MKDIR_P in
14175 [\\/$]* | ?:[\\/]* ) ;;
14176 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14177 esac
14178 _ACEOF
14179
14180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14181 # If the template does not know about datarootdir, expand it.
14182 # FIXME: This hack should be removed a few years after 2.60.
14183 ac_datarootdir_hack=; ac_datarootdir_seen=
14184 ac_sed_dataroot='
14185 /datarootdir/ {
14186 p
14187 q
14188 }
14189 /@datadir@/p
14190 /@docdir@/p
14191 /@infodir@/p
14192 /@localedir@/p
14193 /@mandir@/p'
14194 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14195 *datarootdir*) ac_datarootdir_seen=yes;;
14196 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14198 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14199 _ACEOF
14200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14201 ac_datarootdir_hack='
14202 s&@datadir@&$datadir&g
14203 s&@docdir@&$docdir&g
14204 s&@infodir@&$infodir&g
14205 s&@localedir@&$localedir&g
14206 s&@mandir@&$mandir&g
14207 s&\\\${datarootdir}&$datarootdir&g' ;;
14208 esac
14209 _ACEOF
14210
14211 # Neutralize VPATH when `$srcdir' = `.'.
14212 # Shell code in configure.ac might set extrasub.
14213 # FIXME: do we really want to maintain this feature?
14214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14215 ac_sed_extra="$ac_vpsub
14216 $extrasub
14217 _ACEOF
14218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14219 :t
14220 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14221 s|@configure_input@|$ac_sed_conf_input|;t t
14222 s&@top_builddir@&$ac_top_builddir_sub&;t t
14223 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14224 s&@srcdir@&$ac_srcdir&;t t
14225 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14226 s&@top_srcdir@&$ac_top_srcdir&;t t
14227 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14228 s&@builddir@&$ac_builddir&;t t
14229 s&@abs_builddir@&$ac_abs_builddir&;t t
14230 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14231 s&@INSTALL@&$ac_INSTALL&;t t
14232 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14233 $ac_datarootdir_hack
14234 "
14235 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14236 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14237
14238 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14239 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14240 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14241 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14243 which seems to be undefined. Please make sure it is defined" >&5
14244 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14245 which seems to be undefined. Please make sure it is defined" >&2;}
14246
14247 rm -f "$ac_tmp/stdin"
14248 case $ac_file in
14249 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14250 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14251 esac \
14252 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14253 ;;
14254 :H)
14255 #
14256 # CONFIG_HEADER
14257 #
14258 if test x"$ac_file" != x-; then
14259 {
14260 $as_echo "/* $configure_input */" \
14261 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14262 } >"$ac_tmp/config.h" \
14263 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14264 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14266 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14267 else
14268 rm -f "$ac_file"
14269 mv "$ac_tmp/config.h" "$ac_file" \
14270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14271 fi
14272 else
14273 $as_echo "/* $configure_input */" \
14274 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14275 || as_fn_error $? "could not create -" "$LINENO" 5
14276 fi
14277 # Compute "$ac_file"'s index in $config_headers.
14278 _am_arg="$ac_file"
14279 _am_stamp_count=1
14280 for _am_header in $config_headers :; do
14281 case $_am_header in
14282 $_am_arg | $_am_arg:* )
14283 break ;;
14284 * )
14285 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14286 esac
14287 done
14288 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14289 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14290 X"$_am_arg" : 'X\(//\)[^/]' \| \
14291 X"$_am_arg" : 'X\(//\)$' \| \
14292 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14293 $as_echo X"$_am_arg" |
14294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14295 s//\1/
14296 q
14297 }
14298 /^X\(\/\/\)[^/].*/{
14299 s//\1/
14300 q
14301 }
14302 /^X\(\/\/\)$/{
14303 s//\1/
14304 q
14305 }
14306 /^X\(\/\).*/{
14307 s//\1/
14308 q
14309 }
14310 s/.*/./; q'`/stamp-h$_am_stamp_count
14311 ;;
14312
14313 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14314 $as_echo "$as_me: executing $ac_file commands" >&6;}
14315 ;;
14316 esac
14317
14318
14319 case $ac_file$ac_mode in
14320 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14321 # Older Autoconf quotes --file arguments for eval, but not when files
14322 # are listed without --file. Let's play safe and only enable the eval
14323 # if we detect the quoting.
14324 case $CONFIG_FILES in
14325 *\'*) eval set x "$CONFIG_FILES" ;;
14326 *) set x $CONFIG_FILES ;;
14327 esac
14328 shift
14329 for mf
14330 do
14331 # Strip MF so we end up with the name of the file.
14332 mf=`echo "$mf" | sed -e 's/:.*$//'`
14333 # Check whether this is an Automake generated Makefile or not.
14334 # We used to match only the files named 'Makefile.in', but
14335 # some people rename them; so instead we look at the file content.
14336 # Grep'ing the first line is not enough: some people post-process
14337 # each Makefile.in and add a new line on top of each file to say so.
14338 # Grep'ing the whole file is not good either: AIX grep has a line
14339 # limit of 2048, but all sed's we know have understand at least 4000.
14340 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14341 dirpart=`$as_dirname -- "$mf" ||
14342 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14343 X"$mf" : 'X\(//\)[^/]' \| \
14344 X"$mf" : 'X\(//\)$' \| \
14345 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14346 $as_echo X"$mf" |
14347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14348 s//\1/
14349 q
14350 }
14351 /^X\(\/\/\)[^/].*/{
14352 s//\1/
14353 q
14354 }
14355 /^X\(\/\/\)$/{
14356 s//\1/
14357 q
14358 }
14359 /^X\(\/\).*/{
14360 s//\1/
14361 q
14362 }
14363 s/.*/./; q'`
14364 else
14365 continue
14366 fi
14367 # Extract the definition of DEPDIR, am__include, and am__quote
14368 # from the Makefile without running 'make'.
14369 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14370 test -z "$DEPDIR" && continue
14371 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14372 test -z "$am__include" && continue
14373 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14374 # Find all dependency output files, they are included files with
14375 # $(DEPDIR) in their names. We invoke sed twice because it is the
14376 # simplest approach to changing $(DEPDIR) to its actual value in the
14377 # expansion.
14378 for file in `sed -n "
14379 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14380 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14381 # Make sure the directory exists.
14382 test -f "$dirpart/$file" && continue
14383 fdir=`$as_dirname -- "$file" ||
14384 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14385 X"$file" : 'X\(//\)[^/]' \| \
14386 X"$file" : 'X\(//\)$' \| \
14387 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14388 $as_echo X"$file" |
14389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14390 s//\1/
14391 q
14392 }
14393 /^X\(\/\/\)[^/].*/{
14394 s//\1/
14395 q
14396 }
14397 /^X\(\/\/\)$/{
14398 s//\1/
14399 q
14400 }
14401 /^X\(\/\).*/{
14402 s//\1/
14403 q
14404 }
14405 s/.*/./; q'`
14406 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14407 # echo "creating $dirpart/$file"
14408 echo '# dummy' > "$dirpart/$file"
14409 done
14410 done
14411 }
14412 ;;
14413 "libtool":C)
14414
14415 # See if we are running on zsh, and set the options that allow our
14416 # commands through without removal of \ escapes.
14417 if test -n "${ZSH_VERSION+set}"; then
14418 setopt NO_GLOB_SUBST
14419 fi
14420
14421 cfgfile=${ofile}T
14422 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14423 $RM "$cfgfile"
14424
14425 cat <<_LT_EOF >> "$cfgfile"
14426 #! $SHELL
14427 # Generated automatically by $as_me ($PACKAGE) $VERSION
14428 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14429 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14430
14431 # Provide generalized library-building support services.
14432 # Written by Gordon Matzigkeit, 1996
14433
14434 # Copyright (C) 2014 Free Software Foundation, Inc.
14435 # This is free software; see the source for copying conditions. There is NO
14436 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14437
14438 # GNU Libtool is free software; you can redistribute it and/or modify
14439 # it under the terms of the GNU General Public License as published by
14440 # the Free Software Foundation; either version 2 of of the License, or
14441 # (at your option) any later version.
14442 #
14443 # As a special exception to the GNU General Public License, if you
14444 # distribute this file as part of a program or library that is built
14445 # using GNU Libtool, you may include this file under the same
14446 # distribution terms that you use for the rest of that program.
14447 #
14448 # GNU Libtool is distributed in the hope that it will be useful, but
14449 # WITHOUT ANY WARRANTY; without even the implied warranty of
14450 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14451 # GNU General Public License for more details.
14452 #
14453 # You should have received a copy of the GNU General Public License
14454 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14455
14456
14457 # The names of the tagged configurations supported by this script.
14458 available_tags=''
14459
14460 # Configured defaults for sys_lib_dlsearch_path munging.
14461 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14462
14463 # ### BEGIN LIBTOOL CONFIG
14464
14465 # Which release of libtool.m4 was used?
14466 macro_version=$macro_version
14467 macro_revision=$macro_revision
14468
14469 # Whether or not to build shared libraries.
14470 build_libtool_libs=$enable_shared
14471
14472 # Whether or not to build static libraries.
14473 build_old_libs=$enable_static
14474
14475 # What type of objects to build.
14476 pic_mode=$pic_mode
14477
14478 # Whether or not to optimize for fast installation.
14479 fast_install=$enable_fast_install
14480
14481 # Shared archive member basename,for filename based shared library versioning on AIX.
14482 shared_archive_member_spec=$shared_archive_member_spec
14483
14484 # Shell to use when invoking shell scripts.
14485 SHELL=$lt_SHELL
14486
14487 # An echo program that protects backslashes.
14488 ECHO=$lt_ECHO
14489
14490 # The PATH separator for the build system.
14491 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14492
14493 # The host system.
14494 host_alias=$host_alias
14495 host=$host
14496 host_os=$host_os
14497
14498 # The build system.
14499 build_alias=$build_alias
14500 build=$build
14501 build_os=$build_os
14502
14503 # A sed program that does not truncate output.
14504 SED=$lt_SED
14505
14506 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14507 Xsed="\$SED -e 1s/^X//"
14508
14509 # A grep program that handles long lines.
14510 GREP=$lt_GREP
14511
14512 # An ERE matcher.
14513 EGREP=$lt_EGREP
14514
14515 # A literal string matcher.
14516 FGREP=$lt_FGREP
14517
14518 # A BSD- or MS-compatible name lister.
14519 NM=$lt_NM
14520
14521 # Whether we need soft or hard links.
14522 LN_S=$lt_LN_S
14523
14524 # What is the maximum length of a command?
14525 max_cmd_len=$max_cmd_len
14526
14527 # Object file suffix (normally "o").
14528 objext=$ac_objext
14529
14530 # Executable file suffix (normally "").
14531 exeext=$exeext
14532
14533 # whether the shell understands "unset".
14534 lt_unset=$lt_unset
14535
14536 # turn spaces into newlines.
14537 SP2NL=$lt_lt_SP2NL
14538
14539 # turn newlines into spaces.
14540 NL2SP=$lt_lt_NL2SP
14541
14542 # convert \$build file names to \$host format.
14543 to_host_file_cmd=$lt_cv_to_host_file_cmd
14544
14545 # convert \$build files to toolchain format.
14546 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14547
14548 # An object symbol dumper.
14549 OBJDUMP=$lt_OBJDUMP
14550
14551 # Method to check whether dependent libraries are shared objects.
14552 deplibs_check_method=$lt_deplibs_check_method
14553
14554 # Command to use when deplibs_check_method = "file_magic".
14555 file_magic_cmd=$lt_file_magic_cmd
14556
14557 # How to find potential files when deplibs_check_method = "file_magic".
14558 file_magic_glob=$lt_file_magic_glob
14559
14560 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14561 want_nocaseglob=$lt_want_nocaseglob
14562
14563 # DLL creation program.
14564 DLLTOOL=$lt_DLLTOOL
14565
14566 # Command to associate shared and link libraries.
14567 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14568
14569 # The archiver.
14570 AR=$lt_AR
14571
14572 # Flags to create an archive.
14573 AR_FLAGS=$lt_AR_FLAGS
14574
14575 # How to feed a file listing to the archiver.
14576 archiver_list_spec=$lt_archiver_list_spec
14577
14578 # A symbol stripping program.
14579 STRIP=$lt_STRIP
14580
14581 # Commands used to install an old-style archive.
14582 RANLIB=$lt_RANLIB
14583 old_postinstall_cmds=$lt_old_postinstall_cmds
14584 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14585
14586 # Whether to use a lock for old archive extraction.
14587 lock_old_archive_extraction=$lock_old_archive_extraction
14588
14589 # A C compiler.
14590 LTCC=$lt_CC
14591
14592 # LTCC compiler flags.
14593 LTCFLAGS=$lt_CFLAGS
14594
14595 # Take the output of nm and produce a listing of raw symbols and C names.
14596 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14597
14598 # Transform the output of nm in a proper C declaration.
14599 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14600
14601 # Transform the output of nm into a list of symbols to manually relocate.
14602 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14603
14604 # Transform the output of nm in a C name address pair.
14605 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14606
14607 # Transform the output of nm in a C name address pair when lib prefix is needed.
14608 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14609
14610 # The name lister interface.
14611 nm_interface=$lt_lt_cv_nm_interface
14612
14613 # Specify filename containing input files for \$NM.
14614 nm_file_list_spec=$lt_nm_file_list_spec
14615
14616 # The root where to search for dependent libraries,and where our libraries should be installed.
14617 lt_sysroot=$lt_sysroot
14618
14619 # Command to truncate a binary pipe.
14620 lt_truncate_bin=$lt_lt_cv_truncate_bin
14621
14622 # The name of the directory that contains temporary libtool files.
14623 objdir=$objdir
14624
14625 # Used to examine libraries when file_magic_cmd begins with "file".
14626 MAGIC_CMD=$MAGIC_CMD
14627
14628 # Must we lock files when doing compilation?
14629 need_locks=$lt_need_locks
14630
14631 # Manifest tool.
14632 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14633
14634 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14635 DSYMUTIL=$lt_DSYMUTIL
14636
14637 # Tool to change global to local symbols on Mac OS X.
14638 NMEDIT=$lt_NMEDIT
14639
14640 # Tool to manipulate fat objects and archives on Mac OS X.
14641 LIPO=$lt_LIPO
14642
14643 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14644 OTOOL=$lt_OTOOL
14645
14646 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14647 OTOOL64=$lt_OTOOL64
14648
14649 # Old archive suffix (normally "a").
14650 libext=$libext
14651
14652 # Shared library suffix (normally ".so").
14653 shrext_cmds=$lt_shrext_cmds
14654
14655 # The commands to extract the exported symbol list from a shared archive.
14656 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14657
14658 # Variables whose values should be saved in libtool wrapper scripts and
14659 # restored at link time.
14660 variables_saved_for_relink=$lt_variables_saved_for_relink
14661
14662 # Do we need the "lib" prefix for modules?
14663 need_lib_prefix=$need_lib_prefix
14664
14665 # Do we need a version for libraries?
14666 need_version=$need_version
14667
14668 # Library versioning type.
14669 version_type=$version_type
14670
14671 # Shared library runtime path variable.
14672 runpath_var=$runpath_var
14673
14674 # Shared library path variable.
14675 shlibpath_var=$shlibpath_var
14676
14677 # Is shlibpath searched before the hard-coded library search path?
14678 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14679
14680 # Format of library name prefix.
14681 libname_spec=$lt_libname_spec
14682
14683 # List of archive names. First name is the real one, the rest are links.
14684 # The last name is the one that the linker finds with -lNAME
14685 library_names_spec=$lt_library_names_spec
14686
14687 # The coded name of the library, if different from the real name.
14688 soname_spec=$lt_soname_spec
14689
14690 # Permission mode override for installation of shared libraries.
14691 install_override_mode=$lt_install_override_mode
14692
14693 # Command to use after installation of a shared archive.
14694 postinstall_cmds=$lt_postinstall_cmds
14695
14696 # Command to use after uninstallation of a shared archive.
14697 postuninstall_cmds=$lt_postuninstall_cmds
14698
14699 # Commands used to finish a libtool library installation in a directory.
14700 finish_cmds=$lt_finish_cmds
14701
14702 # As "finish_cmds", except a single script fragment to be evaled but
14703 # not shown.
14704 finish_eval=$lt_finish_eval
14705
14706 # Whether we should hardcode library paths into libraries.
14707 hardcode_into_libs=$hardcode_into_libs
14708
14709 # Compile-time system search path for libraries.
14710 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14711
14712 # Detected run-time system search path for libraries.
14713 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14714
14715 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14716 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14717
14718 # Whether dlopen is supported.
14719 dlopen_support=$enable_dlopen
14720
14721 # Whether dlopen of programs is supported.
14722 dlopen_self=$enable_dlopen_self
14723
14724 # Whether dlopen of statically linked programs is supported.
14725 dlopen_self_static=$enable_dlopen_self_static
14726
14727 # Commands to strip libraries.
14728 old_striplib=$lt_old_striplib
14729 striplib=$lt_striplib
14730
14731
14732 # The linker used to build libraries.
14733 LD=$lt_LD
14734
14735 # How to create reloadable object files.
14736 reload_flag=$lt_reload_flag
14737 reload_cmds=$lt_reload_cmds
14738
14739 # Commands used to build an old-style archive.
14740 old_archive_cmds=$lt_old_archive_cmds
14741
14742 # A language specific compiler.
14743 CC=$lt_compiler
14744
14745 # Is the compiler the GNU compiler?
14746 with_gcc=$GCC
14747
14748 # Compiler flag to turn off builtin functions.
14749 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14750
14751 # Additional compiler flags for building library objects.
14752 pic_flag=$lt_lt_prog_compiler_pic
14753
14754 # How to pass a linker flag through the compiler.
14755 wl=$lt_lt_prog_compiler_wl
14756
14757 # Compiler flag to prevent dynamic linking.
14758 link_static_flag=$lt_lt_prog_compiler_static
14759
14760 # Does compiler simultaneously support -c and -o options?
14761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14762
14763 # Whether or not to add -lc for building shared libraries.
14764 build_libtool_need_lc=$archive_cmds_need_lc
14765
14766 # Whether or not to disallow shared libs when runtime libs are static.
14767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14768
14769 # Compiler flag to allow reflexive dlopens.
14770 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14771
14772 # Compiler flag to generate shared objects directly from archives.
14773 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14774
14775 # Whether the compiler copes with passing no objects directly.
14776 compiler_needs_object=$lt_compiler_needs_object
14777
14778 # Create an old-style archive from a shared archive.
14779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14780
14781 # Create a temporary old-style archive to link instead of a shared archive.
14782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14783
14784 # Commands used to build a shared archive.
14785 archive_cmds=$lt_archive_cmds
14786 archive_expsym_cmds=$lt_archive_expsym_cmds
14787
14788 # Commands used to build a loadable module if different from building
14789 # a shared archive.
14790 module_cmds=$lt_module_cmds
14791 module_expsym_cmds=$lt_module_expsym_cmds
14792
14793 # Whether we are building with GNU ld or not.
14794 with_gnu_ld=$lt_with_gnu_ld
14795
14796 # Flag that allows shared libraries with undefined symbols to be built.
14797 allow_undefined_flag=$lt_allow_undefined_flag
14798
14799 # Flag that enforces no undefined symbols.
14800 no_undefined_flag=$lt_no_undefined_flag
14801
14802 # Flag to hardcode \$libdir into a binary during linking.
14803 # This must work even if \$libdir does not exist
14804 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14805
14806 # Whether we need a single "-rpath" flag with a separated argument.
14807 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14808
14809 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14810 # DIR into the resulting binary.
14811 hardcode_direct=$hardcode_direct
14812
14813 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14814 # DIR into the resulting binary and the resulting library dependency is
14815 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14816 # library is relocated.
14817 hardcode_direct_absolute=$hardcode_direct_absolute
14818
14819 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14820 # into the resulting binary.
14821 hardcode_minus_L=$hardcode_minus_L
14822
14823 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14824 # into the resulting binary.
14825 hardcode_shlibpath_var=$hardcode_shlibpath_var
14826
14827 # Set to "yes" if building a shared library automatically hardcodes DIR
14828 # into the library and all subsequent libraries and executables linked
14829 # against it.
14830 hardcode_automatic=$hardcode_automatic
14831
14832 # Set to yes if linker adds runtime paths of dependent libraries
14833 # to runtime path list.
14834 inherit_rpath=$inherit_rpath
14835
14836 # Whether libtool must link a program against all its dependency libraries.
14837 link_all_deplibs=$link_all_deplibs
14838
14839 # Set to "yes" if exported symbols are required.
14840 always_export_symbols=$always_export_symbols
14841
14842 # The commands to list exported symbols.
14843 export_symbols_cmds=$lt_export_symbols_cmds
14844
14845 # Symbols that should not be listed in the preloaded symbols.
14846 exclude_expsyms=$lt_exclude_expsyms
14847
14848 # Symbols that must always be exported.
14849 include_expsyms=$lt_include_expsyms
14850
14851 # Commands necessary for linking programs (against libraries) with templates.
14852 prelink_cmds=$lt_prelink_cmds
14853
14854 # Commands necessary for finishing linking programs.
14855 postlink_cmds=$lt_postlink_cmds
14856
14857 # Specify filename containing input files.
14858 file_list_spec=$lt_file_list_spec
14859
14860 # How to hardcode a shared library path into an executable.
14861 hardcode_action=$hardcode_action
14862
14863 # ### END LIBTOOL CONFIG
14864
14865 _LT_EOF
14866
14867 cat <<'_LT_EOF' >> "$cfgfile"
14868
14869 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14870
14871 # func_munge_path_list VARIABLE PATH
14872 # -----------------------------------
14873 # VARIABLE is name of variable containing _space_ separated list of
14874 # directories to be munged by the contents of PATH, which is string
14875 # having a format:
14876 # "DIR[:DIR]:"
14877 # string "DIR[ DIR]" will be prepended to VARIABLE
14878 # ":DIR[:DIR]"
14879 # string "DIR[ DIR]" will be appended to VARIABLE
14880 # "DIRP[:DIRP]::[DIRA:]DIRA"
14881 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14882 # "DIRA[ DIRA]" will be appended to VARIABLE
14883 # "DIR[:DIR]"
14884 # VARIABLE will be replaced by "DIR[ DIR]"
14885 func_munge_path_list ()
14886 {
14887 case x$2 in
14888 x)
14889 ;;
14890 *:)
14891 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14892 ;;
14893 x:*)
14894 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14895 ;;
14896 *::*)
14897 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14898 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14899 ;;
14900 *)
14901 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14902 ;;
14903 esac
14904 }
14905
14906
14907 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14908 func_cc_basename ()
14909 {
14910 for cc_temp in $*""; do
14911 case $cc_temp in
14912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14914 \-*) ;;
14915 *) break;;
14916 esac
14917 done
14918 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14919 }
14920
14921
14922 # ### END FUNCTIONS SHARED WITH CONFIGURE
14923
14924 _LT_EOF
14925
14926 case $host_os in
14927 aix3*)
14928 cat <<\_LT_EOF >> "$cfgfile"
14929 # AIX sometimes has problems with the GCC collect2 program. For some
14930 # reason, if we set the COLLECT_NAMES environment variable, the problems
14931 # vanish in a puff of smoke.
14932 if test set != "${COLLECT_NAMES+set}"; then
14933 COLLECT_NAMES=
14934 export COLLECT_NAMES
14935 fi
14936 _LT_EOF
14937 ;;
14938 esac
14939
14940
14941 ltmain=$ac_aux_dir/ltmain.sh
14942
14943
14944 # We use sed instead of cat because bash on DJGPP gets confused if
14945 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14946 # text mode, it properly converts lines to CR/LF. This bash problem
14947 # is reportedly fixed, but why not run on old versions too?
14948 sed '$q' "$ltmain" >> "$cfgfile" \
14949 || (rm -f "$cfgfile"; exit 1)
14950
14951 mv -f "$cfgfile" "$ofile" ||
14952 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14953 chmod +x "$ofile"
14954
14955 ;;
14956
14957 esac
14958 done # for ac_tag
14959
14960
14961 as_fn_exit 0
14962 _ACEOF
14963 ac_clean_files=$ac_clean_files_save
14964
14965 test $ac_write_fail = 0 ||
14966 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14967
14968
14969 # configure is writing to config.log, and then calls config.status.
14970 # config.status does its own redirection, appending to config.log.
14971 # Unfortunately, on DOS this fails, as config.log is still kept open
14972 # by configure, so config.status won't be able to write to it; its
14973 # output is simply discarded. So we exec the FD to /dev/null,
14974 # effectively closing config.log, so it can be properly (re)opened and
14975 # appended to by config.status. When coming back to configure, we
14976 # need to make the FD available again.
14977 if test "$no_create" != yes; then
14978 ac_cs_success=:
14979 ac_config_status_args=
14980 test "$silent" = yes &&
14981 ac_config_status_args="$ac_config_status_args --quiet"
14982 exec 5>/dev/null
14983 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14984 exec 5>>config.log
14985 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14986 # would make configure fail if this is the last instruction.
14987 $ac_cs_success || as_fn_exit 1
14988 fi
14989 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14991 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14992 fi
14993