Debian Codegraph @

configure

raw ◀ ▶
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
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=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="INSTALL"
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 LIBOBJS
636 LIBOOP_LIBS
637 READLINE_LIBS
638 WWW_LIBS
639 WWW_INCLUDES
640 ADNS_LIBS
641 TCL_LIBS
642 TCL_INCLUDES
643 GLIB_LIBS
644 GLIB_INCLUDES
645 PROG_WWW_CONFIG
646 GLIB2_LIBS
647 GLIB2_CFLAGS
648 PKG_CONFIG_LIBDIR
649 PKG_CONFIG_PATH
650 PKG_CONFIG
651 PROG_GLIB_CONFIG
652 PROG_LDCONFIG
653 CPP
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 MANIFEST_TOOL
660 RANLIB
661 ac_ct_AR
662 AR
663 DLLTOOL
664 OBJDUMP
665 LN_S
666 NM
667 ac_ct_DUMPBIN
668 DUMPBIN
669 LD
670 FGREP
671 EGREP
672 GREP
673 SED
674 am__fastdepCC_FALSE
675 am__fastdepCC_TRUE
676 CCDEPMODE
677 am__nodep
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 LIBTOOL
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 AM_BACKSLASH
701 AM_DEFAULT_VERBOSITY
702 AM_DEFAULT_V
703 AM_V
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
709 AWK
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 target_alias
728 host_alias
729 build_alias
730 LIBS
731 ECHO_T
732 ECHO_N
733 ECHO_C
734 DEFS
735 mandir
736 localedir
737 libdir
738 psdir
739 pdfdir
740 dvidir
741 htmldir
742 infodir
743 docdir
744 oldincludedir
745 includedir
746 localstatedir
747 sharedstatedir
748 sysconfdir
749 datadir
750 datarootdir
751 libexecdir
752 sbindir
753 bindir
754 program_transform_name
755 prefix
756 exec_prefix
757 PACKAGE_URL
758 PACKAGE_BUGREPORT
759 PACKAGE_STRING
760 PACKAGE_VERSION
761 PACKAGE_TARNAME
762 PACKAGE_NAME
763 PATH_SEPARATOR
764 SHELL'
765 ac_subst_files=''
766 ac_user_opts='
767 enable_option_checking
768 enable_silent_rules
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 enable_dependency_tracking
774 with_gnu_ld
775 with_sysroot
776 enable_libtool_lock
777 with_adns
778 with_readline
779 with_glib
780 with_tcl
781 with_libwww
782 '
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP
792 PKG_CONFIG
793 PKG_CONFIG_PATH
794 PKG_CONFIG_LIBDIR
795 GLIB2_CFLAGS
796 GLIB2_LIBS'
797
798
799 # Initialize some variables set by options.
800 ac_init_help=
801 ac_init_version=false
802 ac_unrecognized_opts=
803 ac_unrecognized_sep=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
820
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE}'
838 infodir='${datarootdir}/info'
839 htmldir='${docdir}'
840 dvidir='${docdir}'
841 pdfdir='${docdir}'
842 psdir='${docdir}'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
846
847 ac_prev=
848 ac_dashdash=
849 for ac_option
850 do
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
854 ac_prev=
855 continue
856 fi
857
858 case $ac_option in
859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 *=) ac_optarg= ;;
861 *) ac_optarg=yes ;;
862 esac
863
864 # Accept the important Cygnus configure options, so we can diagnose typos.
865
866 case $ac_dashdash$ac_option in
867 --)
868 ac_dashdash=yes ;;
869
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 ac_prev=bindir ;;
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873 bindir=$ac_optarg ;;
874
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
879
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
886
887 --config-cache | -C)
888 cache_file=config.cache ;;
889
890 -datadir | --datadir | --datadi | --datad)
891 ac_prev=datadir ;;
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
894
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
901
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911 "enable_$ac_useropt"
912 "*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=no ;;
917
918 -docdir | --docdir | --docdi | --doc | --do)
919 ac_prev=docdir ;;
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921 docdir=$ac_optarg ;;
922
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 ac_prev=dvidir ;;
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926 dvidir=$ac_optarg ;;
927
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=\$ac_optarg ;;
943
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
952
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
955 with_gas=yes ;;
956
957 -help | --help | --hel | --he | -h)
958 ac_init_help=long ;;
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
963
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
968
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 ac_prev=htmldir ;;
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 | --ht=*)
973 htmldir=$ac_optarg ;;
974
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
981
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 ac_prev=infodir ;;
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
986
987 -libdir | --libdir | --libdi | --libd)
988 ac_prev=libdir ;;
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 libdir=$ac_optarg ;;
991
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
998
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1003
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1010
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 ac_prev=mandir ;;
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1015
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1018 with_fp=no ;;
1019
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1022 no_create=yes ;;
1023
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 no_recursion=yes ;;
1027
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1036
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 ac_prev=prefix ;;
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1041
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1048
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1055
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1072
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 ac_prev=pdfdir ;;
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1077
1078 -psdir | --psdir | --psdi | --psd | --ps)
1079 ac_prev=psdir ;;
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 psdir=$ac_optarg ;;
1082
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 silent=yes ;;
1086
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 ac_prev=sbindir ;;
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 | --sbi=* | --sb=*)
1091 sbindir=$ac_optarg ;;
1092
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1096 | --sha | --sh)
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 | --sha=* | --sh=*)
1102 sharedstatedir=$ac_optarg ;;
1103
1104 -site | --site | --sit)
1105 ac_prev=site ;;
1106 -site=* | --site=* | --sit=*)
1107 site=$ac_optarg ;;
1108
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 ac_prev=srcdir ;;
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1113
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1120
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1125
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127 verbose=yes ;;
1128
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1131
1132 -with-* | --with-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=\$ac_optarg ;;
1147
1148 -without-* | --without-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=no ;;
1163
1164 --x)
1165 # Obsolete; use --with-x.
1166 with_x=yes ;;
1167
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1174
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1181
1182 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information"
1184 ;;
1185
1186 *=*)
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192 esac
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1195
1196 *)
1197 # FIXME: should be removed in autoconf 3.0.
1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202 ;;
1203
1204 esac
1205 done
1206
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 as_fn_error $? "missing argument to $ac_option"
1210 fi
1211
1212 if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1214 no) ;;
1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217 esac
1218 fi
1219
1220 # Check all directory arguments for consistency.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1225 do
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1228 case $ac_val in
1229 */ )
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1232 esac
1233 # Be sure to have absolute directory names.
1234 case $ac_val in
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237 esac
1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239 done
1240
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1244 build=$build_alias
1245 host=$host_alias
1246 target=$target_alias
1247
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
1252 elif test "x$build_alias" != "x$host_alias"; then
1253 cross_compiling=yes
1254 fi
1255 fi
1256
1257 ac_tool_prefix=
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260 test "$silent" = yes && exec 6>/dev/null
1261
1262
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error $? "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error $? "pwd does not report name of working directory"
1269
1270
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)[^/].*/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\).*/{
1294 s//\1/
1295 q
1296 }
1297 s/.*/./; q'`
1298 srcdir=$ac_confdir
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 srcdir=..
1301 fi
1302 else
1303 ac_srcdir_defaulted=no
1304 fi
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308 fi
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 ac_abs_confdir=`(
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312 pwd)`
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 srcdir=.
1316 fi
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1320 case $srcdir in
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 esac
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 done
1329
1330 #
1331 # Report the --help message.
1332 #
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1336 cat <<_ACEOF
1337 \`configure' configures this package to adapt to many kinds of systems.
1338
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1343
1344 Defaults for the options are specified in brackets.
1345
1346 Configuration:
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking ...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 [PREFIX]
1362
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1367
1368 For better control, use the options below.
1369
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1390 _ACEOF
1391
1392 cat <<\_ACEOF
1393
1394 Program names:
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398
1399 System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 _ACEOF
1403 fi
1404
1405 if test -n "$ac_init_help"; then
1406
1407 cat <<\_ACEOF
1408
1409 Optional Features:
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-silent-rules less verbose build output (undo: "make V=1")
1414 --disable-silent-rules verbose build output (undo: "make V=0")
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --enable-dependency-tracking
1420 do not reject slow dependency extractors
1421 --disable-dependency-tracking
1422 speeds up one-time build
1423 --disable-libtool-lock avoid locking (might break parallel builds)
1424
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1429 both]
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-sysroot=DIR Search for dependent libraries within DIR
1432 (or the compiler's sysroot if not specified).
1433 --without-adns disable ADNS adapter
1434 --without-readline disable readline adapter
1435 --without-glib disable GLib adapter
1436 --without-tcl disable Tcl/Tk adapter
1437 --with-libwww build libwww adapter
1438
1439 Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1447 CPP C preprocessor
1448 PKG_CONFIG path to pkg-config utility
1449 PKG_CONFIG_PATH
1450 directories to add to pkg-config's search path
1451 PKG_CONFIG_LIBDIR
1452 path overriding pkg-config's built-in search path
1453 GLIB2_CFLAGS
1454 C compiler flags for GLIB2, overriding pkg-config
1455 GLIB2_LIBS linker flags for GLIB2, overriding pkg-config
1456
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1459
1460 Report bugs to the package provider.
1461 _ACEOF
1462 ac_status=$?
1463 fi
1464
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
1471 ac_builddir=.
1472
1473 case "$ac_dir" in
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *)
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483 esac
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1488
1489 case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 esac
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done
1518 fi
1519
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1522 cat <<\_ACEOF
1523 configure
1524 generated by GNU Autoconf 2.69
1525
1526 Copyright (C) 2012 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1529 _ACEOF
1530 exit
1531 fi
1532
1533 ## ------------------------ ##
1534 ## Autoconf initialization. ##
1535 ## ------------------------ ##
1536
1537 # ac_fn_c_try_compile LINENO
1538 # --------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569 fi
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1572
1573 } # ac_fn_c_try_compile
1574
1575 # ac_fn_c_try_link LINENO
1576 # -----------------------
1577 # Try to link conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_link ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext conftest$ac_exeext
1582 if { { ac_try="$ac_link"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest$ac_exeext && {
1601 test "$cross_compiling" = yes ||
1602 test -x conftest$ac_exeext
1603 }; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610 fi
1611 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1612 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1613 # interfere with the next link command; also delete a directory that is
1614 # left behind by Apple's compiler. We do this before executing the actions.
1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_link
1620
1621 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1622 # -------------------------------------------------------
1623 # Tests whether HEADER exists and can be compiled using the include files in
1624 # INCLUDES, setting the cache variable VAR accordingly.
1625 ac_fn_c_check_header_compile ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 $as_echo_n "checking for $2... " >&6; }
1630 if eval \${$3+:} false; then :
1631 $as_echo_n "(cached) " >&6
1632 else
1633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634 /* end confdefs.h. */
1635 $4
1636 #include <$2>
1637 _ACEOF
1638 if ac_fn_c_try_compile "$LINENO"; then :
1639 eval "$3=yes"
1640 else
1641 eval "$3=no"
1642 fi
1643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644 fi
1645 eval ac_res=\$$3
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 $as_echo "$ac_res" >&6; }
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1650 } # ac_fn_c_check_header_compile
1651
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_cpp ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_cpp conftest.$ac_ext"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } > conftest.i && {
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 }; then :
1677 ac_retval=0
1678 else
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=1
1683 fi
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_cpp
1688
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=$ac_status
1724 fi
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_run
1730
1731 # ac_fn_c_check_func LINENO FUNC VAR
1732 # ----------------------------------
1733 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1734 ac_fn_c_check_func ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1744 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1746 #define $2 innocuous_$2
1747
1748 /* System header to define __stub macros and hopefully few prototypes,
1749 which can conflict with char $2 (); below.
1750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1751 <limits.h> exists even on freestanding compilers. */
1752
1753 #ifdef __STDC__
1754 # include <limits.h>
1755 #else
1756 # include <assert.h>
1757 #endif
1758
1759 #undef $2
1760
1761 /* Override any GCC internal prototype to avoid an error.
1762 Use char because int might match the return type of a GCC
1763 builtin and then its argument prototype would still apply. */
1764 #ifdef __cplusplus
1765 extern "C"
1766 #endif
1767 char $2 ();
1768 /* The GNU C library defines this for functions which it implements
1769 to always fail with ENOSYS. Some functions are actually named
1770 something starting with __ and the normal name is an alias. */
1771 #if defined __stub_$2 || defined __stub___$2
1772 choke me
1773 #endif
1774
1775 int
1776 main ()
1777 {
1778 return $2 ();
1779 ;
1780 return 0;
1781 }
1782 _ACEOF
1783 if ac_fn_c_try_link "$LINENO"; then :
1784 eval "$3=yes"
1785 else
1786 eval "$3=no"
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext \
1789 conftest$ac_exeext conftest.$ac_ext
1790 fi
1791 eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_func
1797
1798 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1801 # the include files in INCLUDES and setting the cache variable VAR
1802 # accordingly.
1803 ac_fn_c_check_header_mongrel ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if eval \${$3+:} false; then :
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1811 fi
1812 eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 else
1816 # Is the header compilable?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1818 $as_echo_n "checking $2 usability... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 $4
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 ac_header_compiler=yes
1826 else
1827 ac_header_compiler=no
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1831 $as_echo "$ac_header_compiler" >&6; }
1832
1833 # Is the header present?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1835 $as_echo_n "checking $2 presence... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_cpp "$LINENO"; then :
1841 ac_header_preproc=yes
1842 else
1843 ac_header_preproc=no
1844 fi
1845 rm -f conftest.err conftest.i conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1847 $as_echo "$ac_header_preproc" >&6; }
1848
1849 # So? What about this header?
1850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1851 yes:no: )
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1853 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1856 ;;
1857 no:yes:* )
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1859 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1861 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1863 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1865 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868 ;;
1869 esac
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 eval "$3=\$ac_header_compiler"
1876 fi
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 fi
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883 } # ac_fn_c_check_header_mongrel
1884 cat >config.log <<_ACEOF
1885 This file contains any messages produced by compilers while
1886 running configure, to aid debugging if configure makes a mistake.
1887
1888 It was created by $as_me, which was
1889 generated by GNU Autoconf 2.69. Invocation command line was
1890
1891 $ $0 $@
1892
1893 _ACEOF
1894 exec 5>>config.log
1895 {
1896 cat <<_ASUNAME
1897 ## --------- ##
1898 ## Platform. ##
1899 ## --------- ##
1900
1901 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1902 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1903 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1904 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1905 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1906
1907 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1908 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1909
1910 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1911 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1912 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1913 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1914 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1915 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1916 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1917
1918 _ASUNAME
1919
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 $as_echo "PATH: $as_dir"
1926 done
1927 IFS=$as_save_IFS
1928
1929 } >&5
1930
1931 cat >&5 <<_ACEOF
1932
1933
1934 ## ----------- ##
1935 ## Core tests. ##
1936 ## ----------- ##
1937
1938 _ACEOF
1939
1940
1941 # Keep a trace of the command line.
1942 # Strip out --no-create and --no-recursion so they do not pile up.
1943 # Strip out --silent because we don't want to record it for future runs.
1944 # Also quote any args containing shell meta-characters.
1945 # Make two passes to allow for proper duplicate-argument suppression.
1946 ac_configure_args=
1947 ac_configure_args0=
1948 ac_configure_args1=
1949 ac_must_keep_next=false
1950 for ac_pass in 1 2
1951 do
1952 for ac_arg
1953 do
1954 case $ac_arg in
1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1957 | -silent | --silent | --silen | --sile | --sil)
1958 continue ;;
1959 *\'*)
1960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1961 esac
1962 case $ac_pass in
1963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1964 2)
1965 as_fn_append ac_configure_args1 " '$ac_arg'"
1966 if test $ac_must_keep_next = true; then
1967 ac_must_keep_next=false # Got value, back to normal.
1968 else
1969 case $ac_arg in
1970 *=* | --config-cache | -C | -disable-* | --disable-* \
1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1973 | -with-* | --with-* | -without-* | --without-* | --x)
1974 case "$ac_configure_args0 " in
1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1976 esac
1977 ;;
1978 -* ) ac_must_keep_next=true ;;
1979 esac
1980 fi
1981 as_fn_append ac_configure_args " '$ac_arg'"
1982 ;;
1983 esac
1984 done
1985 done
1986 { ac_configure_args0=; unset ac_configure_args0;}
1987 { ac_configure_args1=; unset ac_configure_args1;}
1988
1989 # When interrupted or exit'd, cleanup temporary files, and complete
1990 # config.log. We remove comments because anyway the quotes in there
1991 # would cause problems or look ugly.
1992 # WARNING: Use '\'' to represent an apostrophe within the trap.
1993 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1994 trap 'exit_status=$?
1995 # Save into config.log some information that might help in debugging.
1996 {
1997 echo
1998
1999 $as_echo "## ---------------- ##
2000 ## Cache variables. ##
2001 ## ---------------- ##"
2002 echo
2003 # The following way of writing the cache mishandles newlines in values,
2004 (
2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006 eval ac_val=\$$ac_var
2007 case $ac_val in #(
2008 *${as_nl}*)
2009 case $ac_var in #(
2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012 esac
2013 case $ac_var in #(
2014 _ | IFS | as_nl) ;; #(
2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016 *) { eval $ac_var=; unset $ac_var;} ;;
2017 esac ;;
2018 esac
2019 done
2020 (set) 2>&1 |
2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022 *${as_nl}ac_space=\ *)
2023 sed -n \
2024 "s/'\''/'\''\\\\'\'''\''/g;
2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026 ;; #(
2027 *)
2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029 ;;
2030 esac |
2031 sort
2032 )
2033 echo
2034
2035 $as_echo "## ----------------- ##
2036 ## Output variables. ##
2037 ## ----------------- ##"
2038 echo
2039 for ac_var in $ac_subst_vars
2040 do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 esac
2045 $as_echo "$ac_var='\''$ac_val'\''"
2046 done | sort
2047 echo
2048
2049 if test -n "$ac_subst_files"; then
2050 $as_echo "## ------------------- ##
2051 ## File substitutions. ##
2052 ## ------------------- ##"
2053 echo
2054 for ac_var in $ac_subst_files
2055 do
2056 eval ac_val=\$$ac_var
2057 case $ac_val in
2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059 esac
2060 $as_echo "$ac_var='\''$ac_val'\''"
2061 done | sort
2062 echo
2063 fi
2064
2065 if test -s confdefs.h; then
2066 $as_echo "## ----------- ##
2067 ## confdefs.h. ##
2068 ## ----------- ##"
2069 echo
2070 cat confdefs.h
2071 echo
2072 fi
2073 test "$ac_signal" != 0 &&
2074 $as_echo "$as_me: caught signal $ac_signal"
2075 $as_echo "$as_me: exit $exit_status"
2076 } >&5
2077 rm -f core *.core core.conftest.* &&
2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2079 exit $exit_status
2080 ' 0
2081 for ac_signal in 1 2 13 15; do
2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2083 done
2084 ac_signal=0
2085
2086 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2087 rm -f -r conftest* confdefs.h
2088
2089 $as_echo "/* confdefs.h */" > confdefs.h
2090
2091 # Predefined preprocessor variables.
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_NAME "$PACKAGE_NAME"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_STRING "$PACKAGE_STRING"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_URL "$PACKAGE_URL"
2115 _ACEOF
2116
2117
2118 # Let the site file select an alternate cache file if it wants to.
2119 # Prefer an explicitly selected file to automatically selected ones.
2120 ac_site_file1=NONE
2121 ac_site_file2=NONE
2122 if test -n "$CONFIG_SITE"; then
2123 # We do not want a PATH search for config.site.
2124 case $CONFIG_SITE in #((
2125 -*) ac_site_file1=./$CONFIG_SITE;;
2126 */*) ac_site_file1=$CONFIG_SITE;;
2127 *) ac_site_file1=./$CONFIG_SITE;;
2128 esac
2129 elif test "x$prefix" != xNONE; then
2130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
2132 else
2133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
2135 fi
2136 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137 do
2138 test "x$ac_site_file" = xNONE && continue
2139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142 sed 's/^/| /' "$ac_site_file" >&5
2143 . "$ac_site_file" \
2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146 as_fn_error $? "failed to load site script $ac_site_file
2147 See \`config.log' for more details" "$LINENO" 5; }
2148 fi
2149 done
2150
2151 if test -r "$cache_file"; then
2152 # Some versions of bash will fail to source /dev/null (special files
2153 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2156 $as_echo "$as_me: loading cache $cache_file" >&6;}
2157 case $cache_file in
2158 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2159 *) . "./$cache_file";;
2160 esac
2161 fi
2162 else
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2164 $as_echo "$as_me: creating cache $cache_file" >&6;}
2165 >$cache_file
2166 fi
2167
2168 # Check that the precious variables saved in the cache have kept the same
2169 # value.
2170 ac_cache_corrupted=false
2171 for ac_var in $ac_precious_vars; do
2172 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2173 eval ac_new_set=\$ac_env_${ac_var}_set
2174 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2175 eval ac_new_val=\$ac_env_${ac_var}_value
2176 case $ac_old_set,$ac_new_set in
2177 set,)
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2181 ,set)
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2183 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2184 ac_cache_corrupted=: ;;
2185 ,);;
2186 *)
2187 if test "x$ac_old_val" != "x$ac_new_val"; then
2188 # differences in whitespace do not lead to failure.
2189 ac_old_val_w=`echo x $ac_old_val`
2190 ac_new_val_w=`echo x $ac_new_val`
2191 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2193 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2194 ac_cache_corrupted=:
2195 else
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2197 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2198 eval $ac_var=\$ac_old_val
2199 fi
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2201 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2203 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2204 fi;;
2205 esac
2206 # Pass precious variables to config.status.
2207 if test "$ac_new_set" = set; then
2208 case $ac_new_val in
2209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2210 *) ac_arg=$ac_var=$ac_new_val ;;
2211 esac
2212 case " $ac_configure_args " in
2213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2214 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2215 esac
2216 fi
2217 done
2218 if $ac_cache_corrupted; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2222 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2223 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2224 fi
2225 ## -------------------- ##
2226 ## Main body of script. ##
2227 ## -------------------- ##
2228
2229 ac_ext=c
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235
2236 am__api_version='1.14'
2237
2238 ac_aux_dir=
2239 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2240 if test -f "$ac_dir/install-sh"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/install-sh -c"
2243 break
2244 elif test -f "$ac_dir/install.sh"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/install.sh -c"
2247 break
2248 elif test -f "$ac_dir/shtool"; then
2249 ac_aux_dir=$ac_dir
2250 ac_install_sh="$ac_aux_dir/shtool install -c"
2251 break
2252 fi
2253 done
2254 if test -z "$ac_aux_dir"; then
2255 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2256 fi
2257
2258 # These three variables are undocumented and unsupported,
2259 # and are intended to be withdrawn in a future Autoconf release.
2260 # They can cause serious problems if a builder's source tree is in a directory
2261 # whose full name contains unusual characters.
2262 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2263 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2264 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2265
2266
2267 # Find a good install program. We prefer a C program (faster),
2268 # so one script is as good as another. But avoid the broken or
2269 # incompatible versions:
2270 # SysV /etc/install, /usr/sbin/install
2271 # SunOS /usr/etc/install
2272 # IRIX /sbin/install
2273 # AIX /bin/install
2274 # AmigaOS /C/install, which installs bootblocks on floppy discs
2275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2278 # OS/2's system install, which has a completely different semantic
2279 # ./install, which can be erroneously created by make from ./install.sh.
2280 # Reject install programs that cannot install multiple files.
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2282 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2283 if test -z "$INSTALL"; then
2284 if ${ac_cv_path_install+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 # Account for people who put trailing slashes in PATH elements.
2293 case $as_dir/ in #((
2294 ./ | .// | /[cC]/* | \
2295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2297 /usr/ucb/* ) ;;
2298 *)
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2301 # by default.
2302 for ac_prog in ginstall scoinst install; do
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2305 if test $ac_prog = install &&
2306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307 # AIX install. It has an incompatible calling convention.
2308 :
2309 elif test $ac_prog = install &&
2310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # program-specific install script used by HP pwplus--don't use.
2312 :
2313 else
2314 rm -rf conftest.one conftest.two conftest.dir
2315 echo one > conftest.one
2316 echo two > conftest.two
2317 mkdir conftest.dir
2318 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2319 test -s conftest.one && test -s conftest.two &&
2320 test -s conftest.dir/conftest.one &&
2321 test -s conftest.dir/conftest.two
2322 then
2323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2324 break 3
2325 fi
2326 fi
2327 fi
2328 done
2329 done
2330 ;;
2331 esac
2332
2333 done
2334 IFS=$as_save_IFS
2335
2336 rm -rf conftest.one conftest.two conftest.dir
2337
2338 fi
2339 if test "${ac_cv_path_install+set}" = set; then
2340 INSTALL=$ac_cv_path_install
2341 else
2342 # As a last resort, use the slow shell script. Don't cache a
2343 # value for INSTALL within a source directory, because that will
2344 # break other packages using the cache if that directory is
2345 # removed, or if the value is a relative name.
2346 INSTALL=$ac_install_sh
2347 fi
2348 fi
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2350 $as_echo "$INSTALL" >&6; }
2351
2352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2353 # It thinks the first close brace ends the variable substitution.
2354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
2356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
2358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2361 $as_echo_n "checking whether build environment is sane... " >&6; }
2362 # Reject unsafe characters in $srcdir or the absolute working directory
2363 # name. Accept space and tab only in the latter.
2364 am_lf='
2365 '
2366 case `pwd` in
2367 *[\\\"\#\$\&\'\`$am_lf]*)
2368 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2369 esac
2370 case $srcdir in
2371 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2372 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2373 esac
2374
2375 # Do 'set' in a subshell so we don't clobber the current shell's
2376 # arguments. Must try -L first in case configure is actually a
2377 # symlink; some systems play weird games with the mod time of symlinks
2378 # (eg FreeBSD returns the mod time of the symlink's containing
2379 # directory).
2380 if (
2381 am_has_slept=no
2382 for am_try in 1 2; do
2383 echo "timestamp, slept: $am_has_slept" > conftest.file
2384 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2385 if test "$*" = "X"; then
2386 # -L didn't work.
2387 set X `ls -t "$srcdir/configure" conftest.file`
2388 fi
2389 if test "$*" != "X $srcdir/configure conftest.file" \
2390 && test "$*" != "X conftest.file $srcdir/configure"; then
2391
2392 # If neither matched, then we have a broken ls. This can happen
2393 # if, for instance, CONFIG_SHELL is bash and it inherits a
2394 # broken ls alias from the environment. This has actually
2395 # happened. Such a system could not be considered "sane".
2396 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2397 alias in your environment" "$LINENO" 5
2398 fi
2399 if test "$2" = conftest.file || test $am_try -eq 2; then
2400 break
2401 fi
2402 # Just in case.
2403 sleep 1
2404 am_has_slept=yes
2405 done
2406 test "$2" = conftest.file
2407 )
2408 then
2409 # Ok.
2410 :
2411 else
2412 as_fn_error $? "newly created file is older than distributed files!
2413 Check your system clock" "$LINENO" 5
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2416 $as_echo "yes" >&6; }
2417 # If we didn't sleep, we still need to ensure time stamps of config.status and
2418 # generated files are strictly newer.
2419 am_sleep_pid=
2420 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2421 ( sleep 1 ) &
2422 am_sleep_pid=$!
2423 fi
2424
2425 rm -f conftest.file
2426
2427 test "$program_prefix" != NONE &&
2428 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2429 # Use a double $ so make ignores it.
2430 test "$program_suffix" != NONE &&
2431 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432 # Double any \ or $.
2433 # By default was `s,x,x', remove it if useless.
2434 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2436
2437 # Expand $ac_aux_dir to an absolute path.
2438 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2439
2440 if test x"${MISSING+set}" != xset; then
2441 case $am_aux_dir in
2442 *\ * | *\ *)
2443 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2444 *)
2445 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2446 esac
2447 fi
2448 # Use eval to expand $SHELL
2449 if eval "$MISSING --is-lightweight"; then
2450 am_missing_run="$MISSING "
2451 else
2452 am_missing_run=
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2454 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2455 fi
2456
2457 if test x"${install_sh}" != xset; then
2458 case $am_aux_dir in
2459 *\ * | *\ *)
2460 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2461 *)
2462 install_sh="\${SHELL} $am_aux_dir/install-sh"
2463 esac
2464 fi
2465
2466 # Installed binaries are usually stripped using 'strip' when the user
2467 # run "make install-strip". However 'strip' might not be the right
2468 # tool to use in cross-compilation environments, therefore Automake
2469 # will honor the 'STRIP' environment variable to overrule this program.
2470 if test "$cross_compiling" != no; then
2471 if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}strip; ac_word=$2
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475 $as_echo_n "checking for $ac_word... " >&6; }
2476 if ${ac_cv_prog_STRIP+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 if test -n "$STRIP"; then
2480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 break 2
2492 fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 STRIP=$ac_cv_prog_STRIP
2500 if test -n "$STRIP"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2502 $as_echo "$STRIP" >&6; }
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505 $as_echo "no" >&6; }
2506 fi
2507
2508
2509 fi
2510 if test -z "$ac_cv_prog_STRIP"; then
2511 ac_ct_STRIP=$STRIP
2512 # Extract the first word of "strip", so it can be a program name with args.
2513 set dummy strip; ac_word=$2
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515 $as_echo_n "checking for $ac_word... " >&6; }
2516 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 if test -n "$ac_ct_STRIP"; then
2520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_ac_ct_STRIP="strip"
2530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2532 fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540 if test -n "$ac_ct_STRIP"; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2542 $as_echo "$ac_ct_STRIP" >&6; }
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545 $as_echo "no" >&6; }
2546 fi
2547
2548 if test "x$ac_ct_STRIP" = x; then
2549 STRIP=":"
2550 else
2551 case $cross_compiling:$ac_tool_warned in
2552 yes:)
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555 ac_tool_warned=yes ;;
2556 esac
2557 STRIP=$ac_ct_STRIP
2558 fi
2559 else
2560 STRIP="$ac_cv_prog_STRIP"
2561 fi
2562
2563 fi
2564 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2567 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2568 if test -z "$MKDIR_P"; then
2569 if ${ac_cv_path_mkdir+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_prog in mkdir gmkdir; do
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2580 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2581 'mkdir (GNU coreutils) '* | \
2582 'mkdir (coreutils) '* | \
2583 'mkdir (fileutils) '4.1*)
2584 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2585 break 3;;
2586 esac
2587 done
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593
2594 test -d ./--version && rmdir ./--version
2595 if test "${ac_cv_path_mkdir+set}" = set; then
2596 MKDIR_P="$ac_cv_path_mkdir -p"
2597 else
2598 # As a last resort, use the slow shell script. Don't cache a
2599 # value for MKDIR_P within a source directory, because that will
2600 # break other packages using the cache if that directory is
2601 # removed, or if the value is a relative name.
2602 MKDIR_P="$ac_install_sh -d"
2603 fi
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2606 $as_echo "$MKDIR_P" >&6; }
2607
2608 for ac_prog in gawk mawk nawk awk
2609 do
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if ${ac_cv_prog_AWK+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$AWK"; then
2618 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_AWK="$ac_prog"
2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 AWK=$ac_cv_prog_AWK
2638 if test -n "$AWK"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2640 $as_echo "$AWK" >&6; }
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2644 fi
2645
2646
2647 test -n "$AWK" && break
2648 done
2649
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2651 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2652 set x ${MAKE-make}
2653 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2654 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 cat >conftest.make <<\_ACEOF
2658 SHELL = /bin/sh
2659 all:
2660 @echo '@@@%%%=$(MAKE)=@@@%%%'
2661 _ACEOF
2662 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2664 *@@@%%%=?*=@@@%%%*)
2665 eval ac_cv_prog_make_${ac_make}_set=yes;;
2666 *)
2667 eval ac_cv_prog_make_${ac_make}_set=no;;
2668 esac
2669 rm -f conftest.make
2670 fi
2671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 SET_MAKE=
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 SET_MAKE="MAKE=${MAKE-make}"
2679 fi
2680
2681 rm -rf .tst 2>/dev/null
2682 mkdir .tst 2>/dev/null
2683 if test -d .tst; then
2684 am__leading_dot=.
2685 else
2686 am__leading_dot=_
2687 fi
2688 rmdir .tst 2>/dev/null
2689
2690 # Check whether --enable-silent-rules was given.
2691 if test "${enable_silent_rules+set}" = set; then :
2692 enableval=$enable_silent_rules;
2693 fi
2694
2695 case $enable_silent_rules in # (((
2696 yes) AM_DEFAULT_VERBOSITY=0;;
2697 no) AM_DEFAULT_VERBOSITY=1;;
2698 *) AM_DEFAULT_VERBOSITY=1;;
2699 esac
2700 am_make=${MAKE-make}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2702 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2703 if ${am_cv_make_support_nested_variables+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if $as_echo 'TRUE=$(BAR$(V))
2707 BAR0=false
2708 BAR1=true
2709 V=1
2710 am__doit:
2711 @$(TRUE)
2712 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2713 am_cv_make_support_nested_variables=yes
2714 else
2715 am_cv_make_support_nested_variables=no
2716 fi
2717 fi
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2719 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2720 if test $am_cv_make_support_nested_variables = yes; then
2721 AM_V='$(V)'
2722 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2723 else
2724 AM_V=$AM_DEFAULT_VERBOSITY
2725 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2726 fi
2727 AM_BACKSLASH='\'
2728
2729 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2730 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2731 # is not polluted with repeated "-I."
2732 am__isrc=' -I$(srcdir)'
2733 # test to see if srcdir already configured
2734 if test -f $srcdir/config.status; then
2735 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2736 fi
2737 fi
2738
2739 # test whether we have cygpath
2740 if test -z "$CYGPATH_W"; then
2741 if (cygpath --version) >/dev/null 2>/dev/null; then
2742 CYGPATH_W='cygpath -w'
2743 else
2744 CYGPATH_W=echo
2745 fi
2746 fi
2747
2748
2749 # Define the identity of the package.
2750
2751 PACKAGE=liboop
2752 VERSION=1.0.1
2753
2754
2755 cat >>confdefs.h <<_ACEOF
2756 #define PACKAGE "$PACKAGE"
2757 _ACEOF
2758
2759
2760 cat >>confdefs.h <<_ACEOF
2761 #define VERSION "$VERSION"
2762 _ACEOF
2763
2764 # Some tools Automake needs.
2765
2766 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2767
2768
2769 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2770
2771
2772 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2773
2774
2775 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2776
2777
2778 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2779
2780 # For better backward compatibility. To be removed once Automake 1.9.x
2781 # dies out for good. For more background, see:
2782 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2783 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2784 mkdir_p='$(MKDIR_P)'
2785
2786 # We need awk for the "check" target. The system "awk" is bad on
2787 # some platforms.
2788 # Always define AMTAR for backward compatibility. Yes, it's still used
2789 # in the wild :-( We should find a proper way to deprecate it ...
2790 AMTAR='$${TAR-tar}'
2791
2792
2793 # We'll loop over all known methods to create a tar archive until one works.
2794 _am_tools='gnutar pax cpio none'
2795
2796 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2797
2798
2799
2800
2801
2802
2803 # POSIX will say in a future version that running "rm -f" with no argument
2804 # is OK; and we want to be able to make that assumption in our Makefile
2805 # recipes. So use an aggressive probe to check that the usage we want is
2806 # actually supported "in the wild" to an acceptable degree.
2807 # See automake bug#10828.
2808 # To make any issue more visible, cause the running configure to be aborted
2809 # by default if the 'rm' program in use doesn't match our expectations; the
2810 # user can still override this though.
2811 if rm -f && rm -fr && rm -rf; then : OK; else
2812 cat >&2 <<'END'
2813 Oops!
2814
2815 Your 'rm' program seems unable to run without file operands specified
2816 on the command line, even when the '-f' option is present. This is contrary
2817 to the behaviour of most rm programs out there, and not conforming with
2818 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2819
2820 Please tell [email protected] about your system, including the value
2821 of your $PATH and any error possibly output before this message. This
2822 can help us improve future automake versions.
2823
2824 END
2825 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2826 echo 'Configuration will proceed anyway, since you have set the' >&2
2827 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2828 echo >&2
2829 else
2830 cat >&2 <<'END'
2831 Aborting the configuration process, to ensure you take notice of the issue.
2832
2833 You can download and install GNU coreutils to get an 'rm' implementation
2834 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2835
2836 If you want to complete the configuration process using your problematic
2837 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2838 to "yes", and re-run configure.
2839
2840 END
2841 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2842 fi
2843 fi
2844
2845 # Make sure we can run config.sub.
2846 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2847 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2848
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2850 $as_echo_n "checking build system type... " >&6; }
2851 if ${ac_cv_build+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 ac_build_alias=$build_alias
2855 test "x$ac_build_alias" = x &&
2856 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2857 test "x$ac_build_alias" = x &&
2858 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2859 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2860 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2861
2862 fi
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2864 $as_echo "$ac_cv_build" >&6; }
2865 case $ac_cv_build in
2866 *-*-*) ;;
2867 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2868 esac
2869 build=$ac_cv_build
2870 ac_save_IFS=$IFS; IFS='-'
2871 set x $ac_cv_build
2872 shift
2873 build_cpu=$1
2874 build_vendor=$2
2875 shift; shift
2876 # Remember, the first character of IFS is used to create $*,
2877 # except with old shells:
2878 build_os=$*
2879 IFS=$ac_save_IFS
2880 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2881
2882
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2884 $as_echo_n "checking host system type... " >&6; }
2885 if ${ac_cv_host+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test "x$host_alias" = x; then
2889 ac_cv_host=$ac_cv_build
2890 else
2891 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2892 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2893 fi
2894
2895 fi
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2897 $as_echo "$ac_cv_host" >&6; }
2898 case $ac_cv_host in
2899 *-*-*) ;;
2900 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2901 esac
2902 host=$ac_cv_host
2903 ac_save_IFS=$IFS; IFS='-'
2904 set x $ac_cv_host
2905 shift
2906 host_cpu=$1
2907 host_vendor=$2
2908 shift; shift
2909 # Remember, the first character of IFS is used to create $*,
2910 # except with old shells:
2911 host_os=$*
2912 IFS=$ac_save_IFS
2913 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2914
2915
2916 case `pwd` in
2917 *\ * | *\ *)
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2919 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2920 esac
2921
2922
2923
2924 macro_version='2.4.2'
2925 macro_revision='1.3337'
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939 ltmain="$ac_aux_dir/ltmain.sh"
2940
2941 # Backslashify metacharacters that are still active within
2942 # double-quoted strings.
2943 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2944
2945 # Same as above, but do not quote variable references.
2946 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2947
2948 # Sed substitution to delay expansion of an escaped shell variable in a
2949 # double_quote_subst'ed string.
2950 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2951
2952 # Sed substitution to delay expansion of an escaped single quote.
2953 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2954
2955 # Sed substitution to avoid accidental globbing in evaled expressions
2956 no_glob_subst='s/\*/\\\*/g'
2957
2958 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2959 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2960 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2963 $as_echo_n "checking how to print strings... " >&6; }
2964 # Test print first, because it will be a builtin if present.
2965 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2966 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2967 ECHO='print -r --'
2968 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2969 ECHO='printf %s\n'
2970 else
2971 # Use this function as a fallback that always works.
2972 func_fallback_echo ()
2973 {
2974 eval 'cat <<_LTECHO_EOF
2975 $1
2976 _LTECHO_EOF'
2977 }
2978 ECHO='func_fallback_echo'
2979 fi
2980
2981 # func_echo_all arg...
2982 # Invoke $ECHO with all args, space-separated.
2983 func_echo_all ()
2984 {
2985 $ECHO ""
2986 }
2987
2988 case "$ECHO" in
2989 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2990 $as_echo "printf" >&6; } ;;
2991 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2992 $as_echo "print -r" >&6; } ;;
2993 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2994 $as_echo "cat" >&6; } ;;
2995 esac
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010 DEPDIR="${am__leading_dot}deps"
3011
3012 ac_config_commands="$ac_config_commands depfiles"
3013
3014
3015 am_make=${MAKE-make}
3016 cat > confinc << 'END'
3017 am__doit:
3018 @echo this is the am__doit target
3019 .PHONY: am__doit
3020 END
3021 # If we don't find an include directive, just comment out the code.
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3023 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3024 am__include="#"
3025 am__quote=
3026 _am_result=none
3027 # First try GNU make style include.
3028 echo "include confinc" > confmf
3029 # Ignore all kinds of additional output from 'make'.
3030 case `$am_make -s -f confmf 2> /dev/null` in #(
3031 *the\ am__doit\ target*)
3032 am__include=include
3033 am__quote=
3034 _am_result=GNU
3035 ;;
3036 esac
3037 # Now try BSD make style include.
3038 if test "$am__include" = "#"; then
3039 echo '.include "confinc"' > confmf
3040 case `$am_make -s -f confmf 2> /dev/null` in #(
3041 *the\ am__doit\ target*)
3042 am__include=.include
3043 am__quote="\""
3044 _am_result=BSD
3045 ;;
3046 esac
3047 fi
3048
3049
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3051 $as_echo "$_am_result" >&6; }
3052 rm -f confinc confmf
3053
3054 # Check whether --enable-dependency-tracking was given.
3055 if test "${enable_dependency_tracking+set}" = set; then :
3056 enableval=$enable_dependency_tracking;
3057 fi
3058
3059 if test "x$enable_dependency_tracking" != xno; then
3060 am_depcomp="$ac_aux_dir/depcomp"
3061 AMDEPBACKSLASH='\'
3062 am__nodep='_no'
3063 fi
3064 if test "x$enable_dependency_tracking" != xno; then
3065 AMDEP_TRUE=
3066 AMDEP_FALSE='#'
3067 else
3068 AMDEP_TRUE='#'
3069 AMDEP_FALSE=
3070 fi
3071
3072
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078 if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3080 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_CC+:} false; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100 done
3101 done
3102 IFS=$as_save_IFS
3103
3104 fi
3105 fi
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115
3116 fi
3117 if test -z "$ac_cv_prog_CC"; then
3118 ac_ct_CC=$CC
3119 # Extract the first word of "gcc", so it can be a program name with args.
3120 set dummy gcc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$ac_ct_CC"; then
3127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_ac_ct_CC="gcc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3147 if test -n "$ac_ct_CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3149 $as_echo "$ac_ct_CC" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155 if test "x$ac_ct_CC" = x; then
3156 CC=""
3157 else
3158 case $cross_compiling:$ac_tool_warned in
3159 yes:)
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3162 ac_tool_warned=yes ;;
3163 esac
3164 CC=$ac_ct_CC
3165 fi
3166 else
3167 CC="$ac_cv_prog_CC"
3168 fi
3169
3170 if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}cc; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_CC+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$CC"; then
3180 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_CC="${ac_tool_prefix}cc"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3192 fi
3193 done
3194 done
3195 IFS=$as_save_IFS
3196
3197 fi
3198 fi
3199 CC=$ac_cv_prog_CC
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 fi
3207
3208
3209 fi
3210 fi
3211 if test -z "$CC"; then
3212 # Extract the first word of "cc", so it can be a program name with args.
3213 set dummy cc; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_CC+:} false; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 if test -n "$CC"; then
3220 ac_cv_prog_CC="$CC" # Let the user override the test.
3221 else
3222 ac_prog_rejected=no
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3231 ac_prog_rejected=yes
3232 continue
3233 fi
3234 ac_cv_prog_CC="cc"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3237 fi
3238 done
3239 done
3240 IFS=$as_save_IFS
3241
3242 if test $ac_prog_rejected = yes; then
3243 # We found a bogon in the path, so make sure we never use it.
3244 set dummy $ac_cv_prog_CC
3245 shift
3246 if test $# != 0; then
3247 # We chose a different compiler from the bogus one.
3248 # However, it has the same basename, so the bogon will be chosen
3249 # first if we set CC to just the basename; use the full file name.
3250 shift
3251 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3252 fi
3253 fi
3254 fi
3255 fi
3256 CC=$ac_cv_prog_CC
3257 if test -n "$CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 $as_echo "$CC" >&6; }
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 fi
3264
3265
3266 fi
3267 if test -z "$CC"; then
3268 if test -n "$ac_tool_prefix"; then
3269 for ac_prog in cl.exe
3270 do
3271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292 done
3293 done
3294 IFS=$as_save_IFS
3295
3296 fi
3297 fi
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 fi
3306
3307
3308 test -n "$CC" && break
3309 done
3310 fi
3311 if test -z "$CC"; then
3312 ac_ct_CC=$CC
3313 for ac_prog in cl.exe
3314 do
3315 # Extract the first word of "$ac_prog", so it can be a program name with args.
3316 set dummy $ac_prog; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if test -n "$ac_ct_CC"; then
3323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_CC="$ac_prog"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336 done
3337 done
3338 IFS=$as_save_IFS
3339
3340 fi
3341 fi
3342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3343 if test -n "$ac_ct_CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3345 $as_echo "$ac_ct_CC" >&6; }
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 fi
3350
3351
3352 test -n "$ac_ct_CC" && break
3353 done
3354
3355 if test "x$ac_ct_CC" = x; then
3356 CC=""
3357 else
3358 case $cross_compiling:$ac_tool_warned in
3359 yes:)
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3362 ac_tool_warned=yes ;;
3363 esac
3364 CC=$ac_ct_CC
3365 fi
3366 fi
3367
3368 fi
3369
3370
3371 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "no acceptable C compiler found in \$PATH
3374 See \`config.log' for more details" "$LINENO" 5; }
3375
3376 # Provide some information about the compiler.
3377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3378 set X $ac_compile
3379 ac_compiler=$2
3380 for ac_option in --version -v -V -qversion; do
3381 { { ac_try="$ac_compiler $ac_option >&5"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3389 ac_status=$?
3390 if test -s conftest.err; then
3391 sed '10a\
3392 ... rest of stderr output deleted ...
3393 10q' conftest.err >conftest.er1
3394 cat conftest.er1 >&5
3395 fi
3396 rm -f conftest.er1 conftest.err
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }
3399 done
3400
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3403
3404 int
3405 main ()
3406 {
3407
3408 ;
3409 return 0;
3410 }
3411 _ACEOF
3412 ac_clean_files_save=$ac_clean_files
3413 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3414 # Try to create an executable without -o first, disregard a.out.
3415 # It will help us diagnose broken compilers, and finding out an intuition
3416 # of exeext.
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3418 $as_echo_n "checking whether the C compiler works... " >&6; }
3419 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3420
3421 # The possible output files:
3422 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3423
3424 ac_rmfiles=
3425 for ac_file in $ac_files
3426 do
3427 case $ac_file in
3428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3429 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3430 esac
3431 done
3432 rm -f $ac_rmfiles
3433
3434 if { { ac_try="$ac_link_default"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441 (eval "$ac_link_default") 2>&5
3442 ac_status=$?
3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; then :
3445 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3446 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3447 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3448 # so that the user can short-circuit this test for compilers unknown to
3449 # Autoconf.
3450 for ac_file in $ac_files ''
3451 do
3452 test -f "$ac_file" || continue
3453 case $ac_file in
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3455 ;;
3456 [ab].out )
3457 # We found the default executable, but exeext='' is most
3458 # certainly right.
3459 break;;
3460 *.* )
3461 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3462 then :; else
3463 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464 fi
3465 # We set ac_cv_exeext here because the later test for it is not
3466 # safe: cross compilers may not add the suffix if given an `-o'
3467 # argument, so we may need to know it at that point already.
3468 # Even if this section looks crufty: it has the advantage of
3469 # actually working.
3470 break;;
3471 * )
3472 break;;
3473 esac
3474 done
3475 test "$ac_cv_exeext" = no && ac_cv_exeext=
3476
3477 else
3478 ac_file=''
3479 fi
3480 if test -z "$ac_file"; then :
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 $as_echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error 77 "C compiler cannot create executables
3489 See \`config.log' for more details" "$LINENO" 5; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3492 $as_echo "yes" >&6; }
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3495 $as_echo_n "checking for C compiler default output file name... " >&6; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3497 $as_echo "$ac_file" >&6; }
3498 ac_exeext=$ac_cv_exeext
3499
3500 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3501 ac_clean_files=$ac_clean_files_save
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3503 $as_echo_n "checking for suffix of executables... " >&6; }
3504 if { { ac_try="$ac_link"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_link") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3516 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3517 # work properly (i.e., refer to `conftest.exe'), while it won't with
3518 # `rm'.
3519 for ac_file in conftest.exe conftest conftest.*; do
3520 test -f "$ac_file" || continue
3521 case $ac_file in
3522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3523 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524 break;;
3525 * ) break;;
3526 esac
3527 done
3528 else
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3532 See \`config.log' for more details" "$LINENO" 5; }
3533 fi
3534 rm -f conftest conftest$ac_cv_exeext
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3536 $as_echo "$ac_cv_exeext" >&6; }
3537
3538 rm -f conftest.$ac_ext
3539 EXEEXT=$ac_cv_exeext
3540 ac_exeext=$EXEEXT
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543 #include <stdio.h>
3544 int
3545 main ()
3546 {
3547 FILE *f = fopen ("conftest.out", "w");
3548 return ferror (f) || fclose (f) != 0;
3549
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 ac_clean_files="$ac_clean_files conftest.out"
3555 # Check that the compiler produces executables we can run. If not, either
3556 # the compiler is broken, or we cross compile.
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3558 $as_echo_n "checking whether we are cross compiling... " >&6; }
3559 if test "$cross_compiling" != yes; then
3560 { { ac_try="$ac_link"
3561 case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564 esac
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567 (eval "$ac_link") 2>&5
3568 ac_status=$?
3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570 test $ac_status = 0; }
3571 if { ac_try='./conftest$ac_cv_exeext'
3572 { { case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_try") 2>&5
3579 ac_status=$?
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; }; then
3582 cross_compiling=no
3583 else
3584 if test "$cross_compiling" = maybe; then
3585 cross_compiling=yes
3586 else
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "cannot run C compiled programs.
3590 If you meant to cross compile, use \`--host'.
3591 See \`config.log' for more details" "$LINENO" 5; }
3592 fi
3593 fi
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3596 $as_echo "$cross_compiling" >&6; }
3597
3598 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3599 ac_clean_files=$ac_clean_files_save
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3601 $as_echo_n "checking for suffix of object files... " >&6; }
3602 if ${ac_cv_objext+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3607
3608 int
3609 main ()
3610 {
3611
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.o conftest.obj
3617 if { { ac_try="$ac_compile"
3618 case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_compile") 2>&5
3625 ac_status=$?
3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627 test $ac_status = 0; }; then :
3628 for ac_file in conftest.o conftest.obj conftest.*; do
3629 test -f "$ac_file" || continue;
3630 case $ac_file in
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3632 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3633 break;;
3634 esac
3635 done
3636 else
3637 $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error $? "cannot compute suffix of object files: cannot compile
3643 See \`config.log' for more details" "$LINENO" 5; }
3644 fi
3645 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3648 $as_echo "$ac_cv_objext" >&6; }
3649 OBJEXT=$ac_cv_objext
3650 ac_objext=$OBJEXT
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3652 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3653 if ${ac_cv_c_compiler_gnu+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658
3659 int
3660 main ()
3661 {
3662 #ifndef __GNUC__
3663 choke me
3664 #endif
3665
3666 ;
3667 return 0;
3668 }
3669 _ACEOF
3670 if ac_fn_c_try_compile "$LINENO"; then :
3671 ac_compiler_gnu=yes
3672 else
3673 ac_compiler_gnu=no
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3677
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3680 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3681 if test $ac_compiler_gnu = yes; then
3682 GCC=yes
3683 else
3684 GCC=
3685 fi
3686 ac_test_CFLAGS=${CFLAGS+set}
3687 ac_save_CFLAGS=$CFLAGS
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3689 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3690 if ${ac_cv_prog_cc_g+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 ac_save_c_werror_flag=$ac_c_werror_flag
3694 ac_c_werror_flag=yes
3695 ac_cv_prog_cc_g=no
3696 CFLAGS="-g"
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699
3700 int
3701 main ()
3702 {
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 if ac_fn_c_try_compile "$LINENO"; then :
3709 ac_cv_prog_cc_g=yes
3710 else
3711 CFLAGS=""
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3714
3715 int
3716 main ()
3717 {
3718
3719 ;
3720 return 0;
3721 }
3722 _ACEOF
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724
3725 else
3726 ac_c_werror_flag=$ac_save_c_werror_flag
3727 CFLAGS="-g"
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3730
3731 int
3732 main ()
3733 {
3734
3735 ;
3736 return 0;
3737 }
3738 _ACEOF
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740 ac_cv_prog_cc_g=yes
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 ac_c_werror_flag=$ac_save_c_werror_flag
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3750 $as_echo "$ac_cv_prog_cc_g" >&6; }
3751 if test "$ac_test_CFLAGS" = set; then
3752 CFLAGS=$ac_save_CFLAGS
3753 elif test $ac_cv_prog_cc_g = yes; then
3754 if test "$GCC" = yes; then
3755 CFLAGS="-g -O2"
3756 else
3757 CFLAGS="-g"
3758 fi
3759 else
3760 if test "$GCC" = yes; then
3761 CFLAGS="-O2"
3762 else
3763 CFLAGS=
3764 fi
3765 fi
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3767 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3768 if ${ac_cv_prog_cc_c89+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 ac_cv_prog_cc_c89=no
3772 ac_save_CC=$CC
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775 #include <stdarg.h>
3776 #include <stdio.h>
3777 struct stat;
3778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3779 struct buf { int x; };
3780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3781 static char *e (p, i)
3782 char **p;
3783 int i;
3784 {
3785 return p[i];
3786 }
3787 static char *f (char * (*g) (char **, int), char **p, ...)
3788 {
3789 char *s;
3790 va_list v;
3791 va_start (v,p);
3792 s = g (p, va_arg (v,int));
3793 va_end (v);
3794 return s;
3795 }
3796
3797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3798 function prototypes and stuff, but not '\xHH' hex character constants.
3799 These don't provoke an error unfortunately, instead are silently treated
3800 as 'x'. The following induces an error, until -std is added to get
3801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3802 array size at least. It's necessary to write '\x00'==0 to get something
3803 that's true only with -std. */
3804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3805
3806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3807 inside strings and character constants. */
3808 #define FOO(x) 'x'
3809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3810
3811 int test (int i, double x);
3812 struct s1 {int (*f) (int a);};
3813 struct s2 {int (*f) (double a);};
3814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3815 int argc;
3816 char **argv;
3817 int
3818 main ()
3819 {
3820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3821 ;
3822 return 0;
3823 }
3824 _ACEOF
3825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3827 do
3828 CC="$ac_save_CC $ac_arg"
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_c89=$ac_arg
3831 fi
3832 rm -f core conftest.err conftest.$ac_objext
3833 test "x$ac_cv_prog_cc_c89" != "xno" && break
3834 done
3835 rm -f conftest.$ac_ext
3836 CC=$ac_save_CC
3837
3838 fi
3839 # AC_CACHE_VAL
3840 case "x$ac_cv_prog_cc_c89" in
3841 x)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3843 $as_echo "none needed" >&6; } ;;
3844 xno)
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3846 $as_echo "unsupported" >&6; } ;;
3847 *)
3848 CC="$CC $ac_cv_prog_cc_c89"
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3850 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3851 esac
3852 if test "x$ac_cv_prog_cc_c89" != xno; then :
3853
3854 fi
3855
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861
3862 ac_ext=c
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3868 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3869 if ${am_cv_prog_cc_c_o+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3874
3875 int
3876 main ()
3877 {
3878
3879 ;
3880 return 0;
3881 }
3882 _ACEOF
3883 # Make sure it works both with $CC and with simple cc.
3884 # Following AC_PROG_CC_C_O, we do the test twice because some
3885 # compilers refuse to overwrite an existing .o file with -o,
3886 # though they will create one.
3887 am_cv_prog_cc_c_o=yes
3888 for am_i in 1 2; do
3889 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3890 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } \
3894 && test -f conftest2.$ac_objext; then
3895 : OK
3896 else
3897 am_cv_prog_cc_c_o=no
3898 break
3899 fi
3900 done
3901 rm -f core conftest*
3902 unset am_i
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3905 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3906 if test "$am_cv_prog_cc_c_o" != yes; then
3907 # Losing compiler, so override with the script.
3908 # FIXME: It is wrong to rewrite CC.
3909 # But if we don't then we get into trouble of one sort or another.
3910 # A longer-term fix would be to have automake use am__CC in this case,
3911 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3912 CC="$am_aux_dir/compile $CC"
3913 fi
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919
3920
3921 depcc="$CC" am_compiler_list=
3922
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3924 $as_echo_n "checking dependency style of $depcc... " >&6; }
3925 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3929 # We make a subdir and do the tests there. Otherwise we can end up
3930 # making bogus files that we don't know about and never remove. For
3931 # instance it was reported that on HP-UX the gcc test will end up
3932 # making a dummy file named 'D' -- because '-MD' means "put the output
3933 # in D".
3934 rm -rf conftest.dir
3935 mkdir conftest.dir
3936 # Copy depcomp to subdir because otherwise we won't find it if we're
3937 # using a relative directory.
3938 cp "$am_depcomp" conftest.dir
3939 cd conftest.dir
3940 # We will build objects and dependencies in a subdirectory because
3941 # it helps to detect inapplicable dependency modes. For instance
3942 # both Tru64's cc and ICC support -MD to output dependencies as a
3943 # side effect of compilation, but ICC will put the dependencies in
3944 # the current directory while Tru64 will put them in the object
3945 # directory.
3946 mkdir sub
3947
3948 am_cv_CC_dependencies_compiler_type=none
3949 if test "$am_compiler_list" = ""; then
3950 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3951 fi
3952 am__universal=false
3953 case " $depcc " in #(
3954 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3955 esac
3956
3957 for depmode in $am_compiler_list; do
3958 # Setup a source with many dependencies, because some compilers
3959 # like to wrap large dependency lists on column 80 (with \), and
3960 # we should not choose a depcomp mode which is confused by this.
3961 #
3962 # We need to recreate these files for each test, as the compiler may
3963 # overwrite some of them when testing with obscure command lines.
3964 # This happens at least with the AIX C compiler.
3965 : > sub/conftest.c
3966 for i in 1 2 3 4 5 6; do
3967 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3968 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3969 # Solaris 10 /bin/sh.
3970 echo '/* dummy */' > sub/conftst$i.h
3971 done
3972 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3973
3974 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3975 # mode. It turns out that the SunPro C++ compiler does not properly
3976 # handle '-M -o', and we need to detect this. Also, some Intel
3977 # versions had trouble with output in subdirs.
3978 am__obj=sub/conftest.${OBJEXT-o}
3979 am__minus_obj="-o $am__obj"
3980 case $depmode in
3981 gcc)
3982 # This depmode causes a compiler race in universal mode.
3983 test "$am__universal" = false || continue
3984 ;;
3985 nosideeffect)
3986 # After this tag, mechanisms are not by side-effect, so they'll
3987 # only be used when explicitly requested.
3988 if test "x$enable_dependency_tracking" = xyes; then
3989 continue
3990 else
3991 break
3992 fi
3993 ;;
3994 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3995 # This compiler won't grok '-c -o', but also, the minuso test has
3996 # not run yet. These depmodes are late enough in the game, and
3997 # so weak that their functioning should not be impacted.
3998 am__obj=conftest.${OBJEXT-o}
3999 am__minus_obj=
4000 ;;
4001 none) break ;;
4002 esac
4003 if depmode=$depmode \
4004 source=sub/conftest.c object=$am__obj \
4005 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4006 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4007 >/dev/null 2>conftest.err &&
4008 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4009 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4010 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4011 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4012 # icc doesn't choke on unknown options, it will just issue warnings
4013 # or remarks (even with -Werror). So we grep stderr for any message
4014 # that says an option was ignored or not supported.
4015 # When given -MP, icc 7.0 and 7.1 complain thusly:
4016 # icc: Command line warning: ignoring option '-M'; no argument required
4017 # The diagnosis changed in icc 8.0:
4018 # icc: Command line remark: option '-MP' not supported
4019 if (grep 'ignoring option' conftest.err ||
4020 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4021 am_cv_CC_dependencies_compiler_type=$depmode
4022 break
4023 fi
4024 fi
4025 done
4026
4027 cd ..
4028 rm -rf conftest.dir
4029 else
4030 am_cv_CC_dependencies_compiler_type=none
4031 fi
4032
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4035 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4036 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4037
4038 if
4039 test "x$enable_dependency_tracking" != xno \
4040 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4041 am__fastdepCC_TRUE=
4042 am__fastdepCC_FALSE='#'
4043 else
4044 am__fastdepCC_TRUE='#'
4045 am__fastdepCC_FALSE=
4046 fi
4047
4048
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4050 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4051 if ${ac_cv_path_SED+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4055 for ac_i in 1 2 3 4 5 6 7; do
4056 ac_script="$ac_script$as_nl$ac_script"
4057 done
4058 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4059 { ac_script=; unset ac_script;}
4060 if test -z "$SED"; then
4061 ac_path_SED_found=false
4062 # Loop through the user's path and test for each of PROGNAME-LIST
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_prog in sed gsed; do
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4071 as_fn_executable_p "$ac_path_SED" || continue
4072 # Check for GNU ac_path_SED and select it if it is found.
4073 # Check for GNU $ac_path_SED
4074 case `"$ac_path_SED" --version 2>&1` in
4075 *GNU*)
4076 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4077 *)
4078 ac_count=0
4079 $as_echo_n 0123456789 >"conftest.in"
4080 while :
4081 do
4082 cat "conftest.in" "conftest.in" >"conftest.tmp"
4083 mv "conftest.tmp" "conftest.in"
4084 cp "conftest.in" "conftest.nl"
4085 $as_echo '' >> "conftest.nl"
4086 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4088 as_fn_arith $ac_count + 1 && ac_count=$as_val
4089 if test $ac_count -gt ${ac_path_SED_max-0}; then
4090 # Best one so far, save it but keep looking for a better one
4091 ac_cv_path_SED="$ac_path_SED"
4092 ac_path_SED_max=$ac_count
4093 fi
4094 # 10*(2^10) chars as input seems more than enough
4095 test $ac_count -gt 10 && break
4096 done
4097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4098 esac
4099
4100 $ac_path_SED_found && break 3
4101 done
4102 done
4103 done
4104 IFS=$as_save_IFS
4105 if test -z "$ac_cv_path_SED"; then
4106 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4107 fi
4108 else
4109 ac_cv_path_SED=$SED
4110 fi
4111
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4114 $as_echo "$ac_cv_path_SED" >&6; }
4115 SED="$ac_cv_path_SED"
4116 rm -f conftest.sed
4117
4118 test -z "$SED" && SED=sed
4119 Xsed="$SED -e 1s/^X//"
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4132 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4133 if ${ac_cv_path_GREP+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test -z "$GREP"; then
4137 ac_path_GREP_found=false
4138 # Loop through the user's path and test for each of PROGNAME-LIST
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4141 do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_prog in grep ggrep; do
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4147 as_fn_executable_p "$ac_path_GREP" || continue
4148 # Check for GNU ac_path_GREP and select it if it is found.
4149 # Check for GNU $ac_path_GREP
4150 case `"$ac_path_GREP" --version 2>&1` in
4151 *GNU*)
4152 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4153 *)
4154 ac_count=0
4155 $as_echo_n 0123456789 >"conftest.in"
4156 while :
4157 do
4158 cat "conftest.in" "conftest.in" >"conftest.tmp"
4159 mv "conftest.tmp" "conftest.in"
4160 cp "conftest.in" "conftest.nl"
4161 $as_echo 'GREP' >> "conftest.nl"
4162 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4164 as_fn_arith $ac_count + 1 && ac_count=$as_val
4165 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4166 # Best one so far, save it but keep looking for a better one
4167 ac_cv_path_GREP="$ac_path_GREP"
4168 ac_path_GREP_max=$ac_count
4169 fi
4170 # 10*(2^10) chars as input seems more than enough
4171 test $ac_count -gt 10 && break
4172 done
4173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4174 esac
4175
4176 $ac_path_GREP_found && break 3
4177 done
4178 done
4179 done
4180 IFS=$as_save_IFS
4181 if test -z "$ac_cv_path_GREP"; then
4182 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4183 fi
4184 else
4185 ac_cv_path_GREP=$GREP
4186 fi
4187
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4190 $as_echo "$ac_cv_path_GREP" >&6; }
4191 GREP="$ac_cv_path_GREP"
4192
4193
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4195 $as_echo_n "checking for egrep... " >&6; }
4196 if ${ac_cv_path_EGREP+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4200 then ac_cv_path_EGREP="$GREP -E"
4201 else
4202 if test -z "$EGREP"; then
4203 ac_path_EGREP_found=false
4204 # Loop through the user's path and test for each of PROGNAME-LIST
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4207 do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_prog in egrep; do
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4213 as_fn_executable_p "$ac_path_EGREP" || continue
4214 # Check for GNU ac_path_EGREP and select it if it is found.
4215 # Check for GNU $ac_path_EGREP
4216 case `"$ac_path_EGREP" --version 2>&1` in
4217 *GNU*)
4218 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4219 *)
4220 ac_count=0
4221 $as_echo_n 0123456789 >"conftest.in"
4222 while :
4223 do
4224 cat "conftest.in" "conftest.in" >"conftest.tmp"
4225 mv "conftest.tmp" "conftest.in"
4226 cp "conftest.in" "conftest.nl"
4227 $as_echo 'EGREP' >> "conftest.nl"
4228 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4230 as_fn_arith $ac_count + 1 && ac_count=$as_val
4231 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4232 # Best one so far, save it but keep looking for a better one
4233 ac_cv_path_EGREP="$ac_path_EGREP"
4234 ac_path_EGREP_max=$ac_count
4235 fi
4236 # 10*(2^10) chars as input seems more than enough
4237 test $ac_count -gt 10 && break
4238 done
4239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4240 esac
4241
4242 $ac_path_EGREP_found && break 3
4243 done
4244 done
4245 done
4246 IFS=$as_save_IFS
4247 if test -z "$ac_cv_path_EGREP"; then
4248 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4249 fi
4250 else
4251 ac_cv_path_EGREP=$EGREP
4252 fi
4253
4254 fi
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4257 $as_echo "$ac_cv_path_EGREP" >&6; }
4258 EGREP="$ac_cv_path_EGREP"
4259
4260
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4262 $as_echo_n "checking for fgrep... " >&6; }
4263 if ${ac_cv_path_FGREP+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4267 then ac_cv_path_FGREP="$GREP -F"
4268 else
4269 if test -z "$FGREP"; then
4270 ac_path_FGREP_found=false
4271 # Loop through the user's path and test for each of PROGNAME-LIST
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4274 do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_prog in fgrep; do
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4280 as_fn_executable_p "$ac_path_FGREP" || continue
4281 # Check for GNU ac_path_FGREP and select it if it is found.
4282 # Check for GNU $ac_path_FGREP
4283 case `"$ac_path_FGREP" --version 2>&1` in
4284 *GNU*)
4285 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4286 *)
4287 ac_count=0
4288 $as_echo_n 0123456789 >"conftest.in"
4289 while :
4290 do
4291 cat "conftest.in" "conftest.in" >"conftest.tmp"
4292 mv "conftest.tmp" "conftest.in"
4293 cp "conftest.in" "conftest.nl"
4294 $as_echo 'FGREP' >> "conftest.nl"
4295 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4297 as_fn_arith $ac_count + 1 && ac_count=$as_val
4298 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4299 # Best one so far, save it but keep looking for a better one
4300 ac_cv_path_FGREP="$ac_path_FGREP"
4301 ac_path_FGREP_max=$ac_count
4302 fi
4303 # 10*(2^10) chars as input seems more than enough
4304 test $ac_count -gt 10 && break
4305 done
4306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4307 esac
4308
4309 $ac_path_FGREP_found && break 3
4310 done
4311 done
4312 done
4313 IFS=$as_save_IFS
4314 if test -z "$ac_cv_path_FGREP"; then
4315 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4316 fi
4317 else
4318 ac_cv_path_FGREP=$FGREP
4319 fi
4320
4321 fi
4322 fi
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4324 $as_echo "$ac_cv_path_FGREP" >&6; }
4325 FGREP="$ac_cv_path_FGREP"
4326
4327
4328 test -z "$GREP" && GREP=grep
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348 # Check whether --with-gnu-ld was given.
4349 if test "${with_gnu_ld+set}" = set; then :
4350 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4351 else
4352 with_gnu_ld=no
4353 fi
4354
4355 ac_prog=ld
4356 if test "$GCC" = yes; then
4357 # Check if gcc -print-prog-name=ld gives a path.
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4359 $as_echo_n "checking for ld used by $CC... " >&6; }
4360 case $host in
4361 *-*-mingw*)
4362 # gcc leaves a trailing carriage return which upsets mingw
4363 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4364 *)
4365 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4366 esac
4367 case $ac_prog in
4368 # Accept absolute paths.
4369 [\\/]* | ?:[\\/]*)
4370 re_direlt='/[^/][^/]*/\.\./'
4371 # Canonicalize the pathname of ld
4372 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4373 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4374 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4375 done
4376 test -z "$LD" && LD="$ac_prog"
4377 ;;
4378 "")
4379 # If it fails, then pretend we aren't using GCC.
4380 ac_prog=ld
4381 ;;
4382 *)
4383 # If it is relative, then search for the first ld in PATH.
4384 with_gnu_ld=unknown
4385 ;;
4386 esac
4387 elif test "$with_gnu_ld" = yes; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4389 $as_echo_n "checking for GNU ld... " >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4392 $as_echo_n "checking for non-GNU ld... " >&6; }
4393 fi
4394 if ${lt_cv_path_LD+:} false; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 if test -z "$LD"; then
4398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4399 for ac_dir in $PATH; do
4400 IFS="$lt_save_ifs"
4401 test -z "$ac_dir" && ac_dir=.
4402 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4403 lt_cv_path_LD="$ac_dir/$ac_prog"
4404 # Check to see if the program is GNU ld. I'd rather use --version,
4405 # but apparently some variants of GNU ld only accept -v.
4406 # Break only if it was the GNU/non-GNU ld that we prefer.
4407 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4408 *GNU* | *'with BFD'*)
4409 test "$with_gnu_ld" != no && break
4410 ;;
4411 *)
4412 test "$with_gnu_ld" != yes && break
4413 ;;
4414 esac
4415 fi
4416 done
4417 IFS="$lt_save_ifs"
4418 else
4419 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4420 fi
4421 fi
4422
4423 LD="$lt_cv_path_LD"
4424 if test -n "$LD"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4426 $as_echo "$LD" >&6; }
4427 else
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4430 fi
4431 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4433 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4434 if ${lt_cv_prog_gnu_ld+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4438 case `$LD -v 2>&1 </dev/null` in
4439 *GNU* | *'with BFD'*)
4440 lt_cv_prog_gnu_ld=yes
4441 ;;
4442 *)
4443 lt_cv_prog_gnu_ld=no
4444 ;;
4445 esac
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4448 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4449 with_gnu_ld=$lt_cv_prog_gnu_ld
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4460 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4461 if ${lt_cv_path_NM+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 if test -n "$NM"; then
4465 # Let the user override the test.
4466 lt_cv_path_NM="$NM"
4467 else
4468 lt_nm_to_check="${ac_tool_prefix}nm"
4469 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4470 lt_nm_to_check="$lt_nm_to_check nm"
4471 fi
4472 for lt_tmp_nm in $lt_nm_to_check; do
4473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4474 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4475 IFS="$lt_save_ifs"
4476 test -z "$ac_dir" && ac_dir=.
4477 tmp_nm="$ac_dir/$lt_tmp_nm"
4478 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4479 # Check to see if the nm accepts a BSD-compat flag.
4480 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4481 # nm: unknown option "B" ignored
4482 # Tru64's nm complains that /dev/null is an invalid object file
4483 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4484 */dev/null* | *'Invalid file or object type'*)
4485 lt_cv_path_NM="$tmp_nm -B"
4486 break
4487 ;;
4488 *)
4489 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4490 */dev/null*)
4491 lt_cv_path_NM="$tmp_nm -p"
4492 break
4493 ;;
4494 *)
4495 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4496 continue # so that we can try to find one that supports BSD flags
4497 ;;
4498 esac
4499 ;;
4500 esac
4501 fi
4502 done
4503 IFS="$lt_save_ifs"
4504 done
4505 : ${lt_cv_path_NM=no}
4506 fi
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4509 $as_echo "$lt_cv_path_NM" >&6; }
4510 if test "$lt_cv_path_NM" != "no"; then
4511 NM="$lt_cv_path_NM"
4512 else
4513 # Didn't find any BSD compatible name lister, look for dumpbin.
4514 if test -n "$DUMPBIN"; then :
4515 # Let the user override the test.
4516 else
4517 if test -n "$ac_tool_prefix"; then
4518 for ac_prog in dumpbin "link -dump"
4519 do
4520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if ${ac_cv_prog_DUMPBIN+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$DUMPBIN"; then
4528 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4532 do
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4540 fi
4541 done
4542 done
4543 IFS=$as_save_IFS
4544
4545 fi
4546 fi
4547 DUMPBIN=$ac_cv_prog_DUMPBIN
4548 if test -n "$DUMPBIN"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4550 $as_echo "$DUMPBIN" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4554 fi
4555
4556
4557 test -n "$DUMPBIN" && break
4558 done
4559 fi
4560 if test -z "$DUMPBIN"; then
4561 ac_ct_DUMPBIN=$DUMPBIN
4562 for ac_prog in dumpbin "link -dump"
4563 do
4564 # Extract the first word of "$ac_prog", so it can be a program name with args.
4565 set dummy $ac_prog; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if test -n "$ac_ct_DUMPBIN"; then
4572 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585 done
4586 done
4587 IFS=$as_save_IFS
4588
4589 fi
4590 fi
4591 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4592 if test -n "$ac_ct_DUMPBIN"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4594 $as_echo "$ac_ct_DUMPBIN" >&6; }
4595 else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4598 fi
4599
4600
4601 test -n "$ac_ct_DUMPBIN" && break
4602 done
4603
4604 if test "x$ac_ct_DUMPBIN" = x; then
4605 DUMPBIN=":"
4606 else
4607 case $cross_compiling:$ac_tool_warned in
4608 yes:)
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4611 ac_tool_warned=yes ;;
4612 esac
4613 DUMPBIN=$ac_ct_DUMPBIN
4614 fi
4615 fi
4616
4617 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4618 *COFF*)
4619 DUMPBIN="$DUMPBIN -symbols"
4620 ;;
4621 *)
4622 DUMPBIN=:
4623 ;;
4624 esac
4625 fi
4626
4627 if test "$DUMPBIN" != ":"; then
4628 NM="$DUMPBIN"
4629 fi
4630 fi
4631 test -z "$NM" && NM=nm
4632
4633
4634
4635
4636
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4639 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4640 if ${lt_cv_nm_interface+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 lt_cv_nm_interface="BSD nm"
4644 echo "int some_variable = 0;" > conftest.$ac_ext
4645 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4646 (eval "$ac_compile" 2>conftest.err)
4647 cat conftest.err >&5
4648 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4649 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4650 cat conftest.err >&5
4651 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4652 cat conftest.out >&5
4653 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4654 lt_cv_nm_interface="MS dumpbin"
4655 fi
4656 rm -f conftest*
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4659 $as_echo "$lt_cv_nm_interface" >&6; }
4660
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4662 $as_echo_n "checking whether ln -s works... " >&6; }
4663 LN_S=$as_ln_s
4664 if test "$LN_S" = "ln -s"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4666 $as_echo "yes" >&6; }
4667 else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4669 $as_echo "no, using $LN_S" >&6; }
4670 fi
4671
4672 # find the maximum length of command line arguments
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4674 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4675 if ${lt_cv_sys_max_cmd_len+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 i=0
4679 teststring="ABCD"
4680
4681 case $build_os in
4682 msdosdjgpp*)
4683 # On DJGPP, this test can blow up pretty badly due to problems in libc
4684 # (any single argument exceeding 2000 bytes causes a buffer overrun
4685 # during glob expansion). Even if it were fixed, the result of this
4686 # check would be larger than it should be.
4687 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4688 ;;
4689
4690 gnu*)
4691 # Under GNU Hurd, this test is not required because there is
4692 # no limit to the length of command line arguments.
4693 # Libtool will interpret -1 as no limit whatsoever
4694 lt_cv_sys_max_cmd_len=-1;
4695 ;;
4696
4697 cygwin* | mingw* | cegcc*)
4698 # On Win9x/ME, this test blows up -- it succeeds, but takes
4699 # about 5 minutes as the teststring grows exponentially.
4700 # Worse, since 9x/ME are not pre-emptively multitasking,
4701 # you end up with a "frozen" computer, even though with patience
4702 # the test eventually succeeds (with a max line length of 256k).
4703 # Instead, let's just punt: use the minimum linelength reported by
4704 # all of the supported platforms: 8192 (on NT/2K/XP).
4705 lt_cv_sys_max_cmd_len=8192;
4706 ;;
4707
4708 mint*)
4709 # On MiNT this can take a long time and run out of memory.
4710 lt_cv_sys_max_cmd_len=8192;
4711 ;;
4712
4713 amigaos*)
4714 # On AmigaOS with pdksh, this test takes hours, literally.
4715 # So we just punt and use a minimum line length of 8192.
4716 lt_cv_sys_max_cmd_len=8192;
4717 ;;
4718
4719 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4720 # This has been around since 386BSD, at least. Likely further.
4721 if test -x /sbin/sysctl; then
4722 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4723 elif test -x /usr/sbin/sysctl; then
4724 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4725 else
4726 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4727 fi
4728 # And add a safety zone
4729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4731 ;;
4732
4733 interix*)
4734 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4735 lt_cv_sys_max_cmd_len=196608
4736 ;;
4737
4738 os2*)
4739 # The test takes a long time on OS/2.
4740 lt_cv_sys_max_cmd_len=8192
4741 ;;
4742
4743 osf*)
4744 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4745 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4746 # nice to cause kernel panics so lets avoid the loop below.
4747 # First set a reasonable default.
4748 lt_cv_sys_max_cmd_len=16384
4749 #
4750 if test -x /sbin/sysconfig; then
4751 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4752 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4753 esac
4754 fi
4755 ;;
4756 sco3.2v5*)
4757 lt_cv_sys_max_cmd_len=102400
4758 ;;
4759 sysv5* | sco5v6* | sysv4.2uw2*)
4760 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4761 if test -n "$kargmax"; then
4762 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4763 else
4764 lt_cv_sys_max_cmd_len=32768
4765 fi
4766 ;;
4767 *)
4768 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4769 if test -n "$lt_cv_sys_max_cmd_len" && \
4770 test undefined != "$lt_cv_sys_max_cmd_len"; then
4771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4773 else
4774 # Make teststring a little bigger before we do anything with it.
4775 # a 1K string should be a reasonable start.
4776 for i in 1 2 3 4 5 6 7 8 ; do
4777 teststring=$teststring$teststring
4778 done
4779 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4780 # If test is not a shell built-in, we'll probably end up computing a
4781 # maximum length that is only half of the actual maximum length, but
4782 # we can't tell.
4783 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4784 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4785 test $i != 17 # 1/2 MB should be enough
4786 do
4787 i=`expr $i + 1`
4788 teststring=$teststring$teststring
4789 done
4790 # Only check the string length outside the loop.
4791 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4792 teststring=
4793 # Add a significant safety factor because C++ compilers can tack on
4794 # massive amounts of additional arguments before passing them to the
4795 # linker. It appears as though 1/2 is a usable value.
4796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4797 fi
4798 ;;
4799 esac
4800
4801 fi
4802
4803 if test -n $lt_cv_sys_max_cmd_len ; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4805 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4808 $as_echo "none" >&6; }
4809 fi
4810 max_cmd_len=$lt_cv_sys_max_cmd_len
4811
4812
4813
4814
4815
4816
4817 : ${CP="cp -f"}
4818 : ${MV="mv -f"}
4819 : ${RM="rm -f"}
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4822 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4823 # Try some XSI features
4824 xsi_shell=no
4825 ( _lt_dummy="a/b/c"
4826 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4827 = c,a/b,b/c, \
4828 && eval 'test $(( 1 + 1 )) -eq 2 \
4829 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4830 && xsi_shell=yes
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4832 $as_echo "$xsi_shell" >&6; }
4833
4834
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4836 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4837 lt_shell_append=no
4838 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4839 >/dev/null 2>&1 \
4840 && lt_shell_append=yes
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4842 $as_echo "$lt_shell_append" >&6; }
4843
4844
4845 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4846 lt_unset=unset
4847 else
4848 lt_unset=false
4849 fi
4850
4851
4852
4853
4854
4855 # test EBCDIC or ASCII
4856 case `echo X|tr X '\101'` in
4857 A) # ASCII based system
4858 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4859 lt_SP2NL='tr \040 \012'
4860 lt_NL2SP='tr \015\012 \040\040'
4861 ;;
4862 *) # EBCDIC based system
4863 lt_SP2NL='tr \100 \n'
4864 lt_NL2SP='tr \r\n \100\100'
4865 ;;
4866 esac
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4877 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4878 if ${lt_cv_to_host_file_cmd+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 case $host in
4882 *-*-mingw* )
4883 case $build in
4884 *-*-mingw* ) # actually msys
4885 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4886 ;;
4887 *-*-cygwin* )
4888 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4889 ;;
4890 * ) # otherwise, assume *nix
4891 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4892 ;;
4893 esac
4894 ;;
4895 *-*-cygwin* )
4896 case $build in
4897 *-*-mingw* ) # actually msys
4898 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4899 ;;
4900 *-*-cygwin* )
4901 lt_cv_to_host_file_cmd=func_convert_file_noop
4902 ;;
4903 * ) # otherwise, assume *nix
4904 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4905 ;;
4906 esac
4907 ;;
4908 * ) # unhandled hosts (and "normal" native builds)
4909 lt_cv_to_host_file_cmd=func_convert_file_noop
4910 ;;
4911 esac
4912
4913 fi
4914
4915 to_host_file_cmd=$lt_cv_to_host_file_cmd
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4917 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4918
4919
4920
4921
4922
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4924 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4925 if ${lt_cv_to_tool_file_cmd+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 #assume ordinary cross tools, or native build.
4929 lt_cv_to_tool_file_cmd=func_convert_file_noop
4930 case $host in
4931 *-*-mingw* )
4932 case $build in
4933 *-*-mingw* ) # actually msys
4934 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4935 ;;
4936 esac
4937 ;;
4938 esac
4939
4940 fi
4941
4942 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4944 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4945
4946
4947
4948
4949
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4951 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4952 if ${lt_cv_ld_reload_flag+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 lt_cv_ld_reload_flag='-r'
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4958 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4959 reload_flag=$lt_cv_ld_reload_flag
4960 case $reload_flag in
4961 "" | " "*) ;;
4962 *) reload_flag=" $reload_flag" ;;
4963 esac
4964 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4965 case $host_os in
4966 cygwin* | mingw* | pw32* | cegcc*)
4967 if test "$GCC" != yes; then
4968 reload_cmds=false
4969 fi
4970 ;;
4971 darwin*)
4972 if test "$GCC" = yes; then
4973 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4974 else
4975 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4976 fi
4977 ;;
4978 esac
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988 if test -n "$ac_tool_prefix"; then
4989 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4990 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if ${ac_cv_prog_OBJDUMP+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 if test -n "$OBJDUMP"; then
4997 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014 fi
5015 fi
5016 OBJDUMP=$ac_cv_prog_OBJDUMP
5017 if test -n "$OBJDUMP"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5019 $as_echo "$OBJDUMP" >&6; }
5020 else
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 fi
5024
5025
5026 fi
5027 if test -z "$ac_cv_prog_OBJDUMP"; then
5028 ac_ct_OBJDUMP=$OBJDUMP
5029 # Extract the first word of "objdump", so it can be a program name with args.
5030 set dummy objdump; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5034 $as_echo_n "(cached) " >&6
5035 else
5036 if test -n "$ac_ct_OBJDUMP"; then
5037 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5057 if test -n "$ac_ct_OBJDUMP"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5059 $as_echo "$ac_ct_OBJDUMP" >&6; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065 if test "x$ac_ct_OBJDUMP" = x; then
5066 OBJDUMP="false"
5067 else
5068 case $cross_compiling:$ac_tool_warned in
5069 yes:)
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072 ac_tool_warned=yes ;;
5073 esac
5074 OBJDUMP=$ac_ct_OBJDUMP
5075 fi
5076 else
5077 OBJDUMP="$ac_cv_prog_OBJDUMP"
5078 fi
5079
5080 test -z "$OBJDUMP" && OBJDUMP=objdump
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5091 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5092 if ${lt_cv_deplibs_check_method+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 lt_cv_file_magic_cmd='$MAGIC_CMD'
5096 lt_cv_file_magic_test_file=
5097 lt_cv_deplibs_check_method='unknown'
5098 # Need to set the preceding variable on all platforms that support
5099 # interlibrary dependencies.
5100 # 'none' -- dependencies not supported.
5101 # `unknown' -- same as none, but documents that we really don't know.
5102 # 'pass_all' -- all dependencies passed with no checks.
5103 # 'test_compile' -- check by making test program.
5104 # 'file_magic [[regex]]' -- check by looking for files in library path
5105 # which responds to the $file_magic_cmd with a given extended regex.
5106 # If you have `file' or equivalent on your system and you're not sure
5107 # whether `pass_all' will *always* work, you probably want this one.
5108
5109 case $host_os in
5110 aix[4-9]*)
5111 lt_cv_deplibs_check_method=pass_all
5112 ;;
5113
5114 beos*)
5115 lt_cv_deplibs_check_method=pass_all
5116 ;;
5117
5118 bsdi[45]*)
5119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5120 lt_cv_file_magic_cmd='/usr/bin/file -L'
5121 lt_cv_file_magic_test_file=/shlib/libc.so
5122 ;;
5123
5124 cygwin*)
5125 # func_win32_libid is a shell function defined in ltmain.sh
5126 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5127 lt_cv_file_magic_cmd='func_win32_libid'
5128 ;;
5129
5130 mingw* | pw32*)
5131 # Base MSYS/MinGW do not provide the 'file' command needed by
5132 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5133 # unless we find 'file', for example because we are cross-compiling.
5134 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5135 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5137 lt_cv_file_magic_cmd='func_win32_libid'
5138 else
5139 # Keep this pattern in sync with the one in func_win32_libid.
5140 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5141 lt_cv_file_magic_cmd='$OBJDUMP -f'
5142 fi
5143 ;;
5144
5145 cegcc*)
5146 # use the weaker test based on 'objdump'. See mingw*.
5147 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5148 lt_cv_file_magic_cmd='$OBJDUMP -f'
5149 ;;
5150
5151 darwin* | rhapsody*)
5152 lt_cv_deplibs_check_method=pass_all
5153 ;;
5154
5155 freebsd* | dragonfly*)
5156 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5157 case $host_cpu in
5158 i*86 )
5159 # Not sure whether the presence of OpenBSD here was a mistake.
5160 # Let's accept both of them until this is cleared up.
5161 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5162 lt_cv_file_magic_cmd=/usr/bin/file
5163 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5164 ;;
5165 esac
5166 else
5167 lt_cv_deplibs_check_method=pass_all
5168 fi
5169 ;;
5170
5171 haiku*)
5172 lt_cv_deplibs_check_method=pass_all
5173 ;;
5174
5175 hpux10.20* | hpux11*)
5176 lt_cv_file_magic_cmd=/usr/bin/file
5177 case $host_cpu in
5178 ia64*)
5179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5180 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5181 ;;
5182 hppa*64*)
5183 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]'
5184 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5185 ;;
5186 *)
5187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5188 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5189 ;;
5190 esac
5191 ;;
5192
5193 interix[3-9]*)
5194 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5196 ;;
5197
5198 irix5* | irix6* | nonstopux*)
5199 case $LD in
5200 *-32|*"-32 ") libmagic=32-bit;;
5201 *-n32|*"-n32 ") libmagic=N32;;
5202 *-64|*"-64 ") libmagic=64-bit;;
5203 *) libmagic=never-match;;
5204 esac
5205 lt_cv_deplibs_check_method=pass_all
5206 ;;
5207
5208 # This must be glibc/ELF.
5209 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5210 lt_cv_deplibs_check_method=pass_all
5211 ;;
5212
5213 netbsd* | netbsdelf*-gnu)
5214 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5216 else
5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5218 fi
5219 ;;
5220
5221 newos6*)
5222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5223 lt_cv_file_magic_cmd=/usr/bin/file
5224 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5225 ;;
5226
5227 *nto* | *qnx*)
5228 lt_cv_deplibs_check_method=pass_all
5229 ;;
5230
5231 openbsd*)
5232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5234 else
5235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5236 fi
5237 ;;
5238
5239 osf3* | osf4* | osf5*)
5240 lt_cv_deplibs_check_method=pass_all
5241 ;;
5242
5243 rdos*)
5244 lt_cv_deplibs_check_method=pass_all
5245 ;;
5246
5247 solaris*)
5248 lt_cv_deplibs_check_method=pass_all
5249 ;;
5250
5251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5252 lt_cv_deplibs_check_method=pass_all
5253 ;;
5254
5255 sysv4 | sysv4.3*)
5256 case $host_vendor in
5257 motorola)
5258 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]'
5259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5260 ;;
5261 ncr)
5262 lt_cv_deplibs_check_method=pass_all
5263 ;;
5264 sequent)
5265 lt_cv_file_magic_cmd='/bin/file'
5266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5267 ;;
5268 sni)
5269 lt_cv_file_magic_cmd='/bin/file'
5270 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5271 lt_cv_file_magic_test_file=/lib/libc.so
5272 ;;
5273 siemens)
5274 lt_cv_deplibs_check_method=pass_all
5275 ;;
5276 pc)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279 esac
5280 ;;
5281
5282 tpf*)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
5285 esac
5286
5287 fi
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5289 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5290
5291 file_magic_glob=
5292 want_nocaseglob=no
5293 if test "$build" = "$host"; then
5294 case $host_os in
5295 mingw* | pw32*)
5296 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5297 want_nocaseglob=yes
5298 else
5299 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5300 fi
5301 ;;
5302 esac
5303 fi
5304
5305 file_magic_cmd=$lt_cv_file_magic_cmd
5306 deplibs_check_method=$lt_cv_deplibs_check_method
5307 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330 if test -n "$ac_tool_prefix"; then
5331 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5332 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_prog_DLLTOOL+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 if test -n "$DLLTOOL"; then
5339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5343 do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5351 fi
5352 done
5353 done
5354 IFS=$as_save_IFS
5355
5356 fi
5357 fi
5358 DLLTOOL=$ac_cv_prog_DLLTOOL
5359 if test -n "$DLLTOOL"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5361 $as_echo "$DLLTOOL" >&6; }
5362 else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5365 fi
5366
5367
5368 fi
5369 if test -z "$ac_cv_prog_DLLTOOL"; then
5370 ac_ct_DLLTOOL=$DLLTOOL
5371 # Extract the first word of "dlltool", so it can be a program name with args.
5372 set dummy 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_ac_ct_DLLTOOL+:} false; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 if test -n "$ac_ct_DLLTOOL"; then
5379 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_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_ac_ct_DLLTOOL="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 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5399 if test -n "$ac_ct_DLLTOOL"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5401 $as_echo "$ac_ct_DLLTOOL" >&6; }
5402 else
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5405 fi
5406
5407 if test "x$ac_ct_DLLTOOL" = x; then
5408 DLLTOOL="false"
5409 else
5410 case $cross_compiling:$ac_tool_warned in
5411 yes:)
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5414 ac_tool_warned=yes ;;
5415 esac
5416 DLLTOOL=$ac_ct_DLLTOOL
5417 fi
5418 else
5419 DLLTOOL="$ac_cv_prog_DLLTOOL"
5420 fi
5421
5422 test -z "$DLLTOOL" && DLLTOOL=dlltool
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5434 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5435 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 lt_cv_sharedlib_from_linklib_cmd='unknown'
5439
5440 case $host_os in
5441 cygwin* | mingw* | pw32* | cegcc*)
5442 # two different shell functions defined in ltmain.sh
5443 # decide which to use based on capabilities of $DLLTOOL
5444 case `$DLLTOOL --help 2>&1` in
5445 *--identify-strict*)
5446 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5447 ;;
5448 *)
5449 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5450 ;;
5451 esac
5452 ;;
5453 *)
5454 # fallback: assume linklib IS sharedlib
5455 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5456 ;;
5457 esac
5458
5459 fi
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5461 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5462 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5463 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5464
5465
5466
5467
5468
5469
5470
5471
5472 if test -n "$ac_tool_prefix"; then
5473 for ac_prog in ar
5474 do
5475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_AR+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 if test -n "$AR"; then
5483 ac_cv_prog_AR="$AR" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5487 do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5495 fi
5496 done
5497 done
5498 IFS=$as_save_IFS
5499
5500 fi
5501 fi
5502 AR=$ac_cv_prog_AR
5503 if test -n "$AR"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5505 $as_echo "$AR" >&6; }
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510
5511
5512 test -n "$AR" && break
5513 done
5514 fi
5515 if test -z "$AR"; then
5516 ac_ct_AR=$AR
5517 for ac_prog in ar
5518 do
5519 # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if test -n "$ac_ct_AR"; then
5527 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_ac_ct_AR="$ac_prog"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540 done
5541 done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5547 if test -n "$ac_ct_AR"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5549 $as_echo "$ac_ct_AR" >&6; }
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555
5556 test -n "$ac_ct_AR" && break
5557 done
5558
5559 if test "x$ac_ct_AR" = x; then
5560 AR="false"
5561 else
5562 case $cross_compiling:$ac_tool_warned in
5563 yes:)
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5566 ac_tool_warned=yes ;;
5567 esac
5568 AR=$ac_ct_AR
5569 fi
5570 fi
5571
5572 : ${AR=ar}
5573 : ${AR_FLAGS=cru}
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5586 $as_echo_n "checking for archiver @FILE support... " >&6; }
5587 if ${lt_cv_ar_at_file+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 lt_cv_ar_at_file=no
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593
5594 int
5595 main ()
5596 {
5597
5598 ;
5599 return 0;
5600 }
5601 _ACEOF
5602 if ac_fn_c_try_compile "$LINENO"; then :
5603 echo conftest.$ac_objext > conftest.lst
5604 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5606 (eval $lt_ar_try) 2>&5
5607 ac_status=$?
5608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5609 test $ac_status = 0; }
5610 if test "$ac_status" -eq 0; then
5611 # Ensure the archiver fails upon bogus file names.
5612 rm -f conftest.$ac_objext libconftest.a
5613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5614 (eval $lt_ar_try) 2>&5
5615 ac_status=$?
5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5617 test $ac_status = 0; }
5618 if test "$ac_status" -ne 0; then
5619 lt_cv_ar_at_file=@
5620 fi
5621 fi
5622 rm -f conftest.* libconftest.a
5623
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5629 $as_echo "$lt_cv_ar_at_file" >&6; }
5630
5631 if test "x$lt_cv_ar_at_file" = xno; then
5632 archiver_list_spec=
5633 else
5634 archiver_list_spec=$lt_cv_ar_at_file
5635 fi
5636
5637
5638
5639
5640
5641
5642
5643 if test -n "$ac_tool_prefix"; then
5644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5645 set dummy ${ac_tool_prefix}strip; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_prog_STRIP+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 if test -n "$STRIP"; then
5652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5664 fi
5665 done
5666 done
5667 IFS=$as_save_IFS
5668
5669 fi
5670 fi
5671 STRIP=$ac_cv_prog_STRIP
5672 if test -n "$STRIP"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5674 $as_echo "$STRIP" >&6; }
5675 else
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5678 fi
5679
5680
5681 fi
5682 if test -z "$ac_cv_prog_STRIP"; then
5683 ac_ct_STRIP=$STRIP
5684 # Extract the first word of "strip", so it can be a program name with args.
5685 set dummy 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_ac_ct_STRIP+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if test -n "$ac_ct_STRIP"; then
5692 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="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 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5712 if test -n "$ac_ct_STRIP"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5714 $as_echo "$ac_ct_STRIP" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 fi
5719
5720 if test "x$ac_ct_STRIP" = x; then
5721 STRIP=":"
5722 else
5723 case $cross_compiling:$ac_tool_warned in
5724 yes:)
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5727 ac_tool_warned=yes ;;
5728 esac
5729 STRIP=$ac_ct_STRIP
5730 fi
5731 else
5732 STRIP="$ac_cv_prog_STRIP"
5733 fi
5734
5735 test -z "$STRIP" && STRIP=:
5736
5737
5738
5739
5740
5741
5742 if test -n "$ac_tool_prefix"; then
5743 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5744 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if ${ac_cv_prog_RANLIB+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 if test -n "$RANLIB"; then
5751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5763 fi
5764 done
5765 done
5766 IFS=$as_save_IFS
5767
5768 fi
5769 fi
5770 RANLIB=$ac_cv_prog_RANLIB
5771 if test -n "$RANLIB"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5773 $as_echo "$RANLIB" >&6; }
5774 else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5777 fi
5778
5779
5780 fi
5781 if test -z "$ac_cv_prog_RANLIB"; then
5782 ac_ct_RANLIB=$RANLIB
5783 # Extract the first word of "ranlib", so it can be a program name with args.
5784 set dummy 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_ac_ct_RANLIB+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 if test -n "$ac_ct_RANLIB"; then
5791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5811 if test -n "$ac_ct_RANLIB"; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5813 $as_echo "$ac_ct_RANLIB" >&6; }
5814 else
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817 fi
5818
5819 if test "x$ac_ct_RANLIB" = x; then
5820 RANLIB=":"
5821 else
5822 case $cross_compiling:$ac_tool_warned in
5823 yes:)
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5826 ac_tool_warned=yes ;;
5827 esac
5828 RANLIB=$ac_ct_RANLIB
5829 fi
5830 else
5831 RANLIB="$ac_cv_prog_RANLIB"
5832 fi
5833
5834 test -z "$RANLIB" && RANLIB=:
5835
5836
5837
5838
5839
5840
5841 # Determine commands to create old-style static archives.
5842 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5843 old_postinstall_cmds='chmod 644 $oldlib'
5844 old_postuninstall_cmds=
5845
5846 if test -n "$RANLIB"; then
5847 case $host_os in
5848 openbsd*)
5849 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5850 ;;
5851 *)
5852 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5853 ;;
5854 esac
5855 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5856 fi
5857
5858 case $host_os in
5859 darwin*)
5860 lock_old_archive_extraction=yes ;;
5861 *)
5862 lock_old_archive_extraction=no ;;
5863 esac
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903 # If no C compiler was specified, use CC.
5904 LTCC=${LTCC-"$CC"}
5905
5906 # If no C compiler flags were specified, use CFLAGS.
5907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5908
5909 # Allow CC to be a program name with arguments.
5910 compiler=$CC
5911
5912
5913 # Check for command to grab the raw symbol name followed by C symbol from nm.
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5915 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5916 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919
5920 # These are sane defaults that work on at least a few old systems.
5921 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5922
5923 # Character class describing NM global symbol codes.
5924 symcode='[BCDEGRST]'
5925
5926 # Regexp to match symbols that can be accessed directly from C.
5927 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5928
5929 # Define system-specific variables.
5930 case $host_os in
5931 aix*)
5932 symcode='[BCDT]'
5933 ;;
5934 cygwin* | mingw* | pw32* | cegcc*)
5935 symcode='[ABCDGISTW]'
5936 ;;
5937 hpux*)
5938 if test "$host_cpu" = ia64; then
5939 symcode='[ABCDEGRST]'
5940 fi
5941 ;;
5942 irix* | nonstopux*)
5943 symcode='[BCDEGRST]'
5944 ;;
5945 osf*)
5946 symcode='[BCDEGQRST]'
5947 ;;
5948 solaris*)
5949 symcode='[BDRT]'
5950 ;;
5951 sco3.2v5*)
5952 symcode='[DT]'
5953 ;;
5954 sysv4.2uw2*)
5955 symcode='[DT]'
5956 ;;
5957 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5958 symcode='[ABDT]'
5959 ;;
5960 sysv4)
5961 symcode='[DFNSTU]'
5962 ;;
5963 esac
5964
5965 # If we're using GNU nm, then use its standard symbol codes.
5966 case `$NM -V 2>&1` in
5967 *GNU* | *'with BFD'*)
5968 symcode='[ABCDGIRSTW]' ;;
5969 esac
5970
5971 # Transform an extracted symbol line into a proper C declaration.
5972 # Some systems (esp. on ia64) link data and code symbols differently,
5973 # so use this general approach.
5974 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5975
5976 # Transform an extracted symbol line into symbol name and symbol address
5977 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5978 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5979
5980 # Handle CRLF in mingw tool chain
5981 opt_cr=
5982 case $build_os in
5983 mingw*)
5984 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5985 ;;
5986 esac
5987
5988 # Try without a prefix underscore, then with it.
5989 for ac_symprfx in "" "_"; do
5990
5991 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5992 symxfrm="\\1 $ac_symprfx\\2 \\2"
5993
5994 # Write the raw and C identifiers.
5995 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5996 # Fake it for dumpbin and say T for any non-static function
5997 # and D for any global variable.
5998 # Also find C++ and __fastcall symbols from MSVC++,
5999 # which start with @ or ?.
6000 lt_cv_sys_global_symbol_pipe="$AWK '"\
6001 " {last_section=section; section=\$ 3};"\
6002 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6003 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6004 " \$ 0!~/External *\|/{next};"\
6005 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6006 " {if(hide[section]) next};"\
6007 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6008 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6009 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6010 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6011 " ' prfx=^$ac_symprfx"
6012 else
6013 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6014 fi
6015 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6016
6017 # Check to see that the pipe works correctly.
6018 pipe_works=no
6019
6020 rm -f conftest*
6021 cat > conftest.$ac_ext <<_LT_EOF
6022 #ifdef __cplusplus
6023 extern "C" {
6024 #endif
6025 char nm_test_var;
6026 void nm_test_func(void);
6027 void nm_test_func(void){}
6028 #ifdef __cplusplus
6029 }
6030 #endif
6031 int main(){nm_test_var='a';nm_test_func();return(0);}
6032 _LT_EOF
6033
6034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6035 (eval $ac_compile) 2>&5
6036 ac_status=$?
6037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6038 test $ac_status = 0; }; then
6039 # Now try to grab the symbols.
6040 nlist=conftest.nm
6041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6042 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6043 ac_status=$?
6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6045 test $ac_status = 0; } && test -s "$nlist"; then
6046 # Try sorting and uniquifying the output.
6047 if sort "$nlist" | uniq > "$nlist"T; then
6048 mv -f "$nlist"T "$nlist"
6049 else
6050 rm -f "$nlist"T
6051 fi
6052
6053 # Make sure that we snagged all the symbols we need.
6054 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6055 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6056 cat <<_LT_EOF > conftest.$ac_ext
6057 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6058 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6059 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6060 relocations are performed -- see ld's documentation on pseudo-relocs. */
6061 # define LT_DLSYM_CONST
6062 #elif defined(__osf__)
6063 /* This system does not cope well with relocations in const data. */
6064 # define LT_DLSYM_CONST
6065 #else
6066 # define LT_DLSYM_CONST const
6067 #endif
6068
6069 #ifdef __cplusplus
6070 extern "C" {
6071 #endif
6072
6073 _LT_EOF
6074 # Now generate the symbol file.
6075 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6076
6077 cat <<_LT_EOF >> conftest.$ac_ext
6078
6079 /* The mapping between symbol names and symbols. */
6080 LT_DLSYM_CONST struct {
6081 const char *name;
6082 void *address;
6083 }
6084 lt__PROGRAM__LTX_preloaded_symbols[] =
6085 {
6086 { "@PROGRAM@", (void *) 0 },
6087 _LT_EOF
6088 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6089 cat <<\_LT_EOF >> conftest.$ac_ext
6090 {0, (void *) 0}
6091 };
6092
6093 /* This works around a problem in FreeBSD linker */
6094 #ifdef FREEBSD_WORKAROUND
6095 static const void *lt_preloaded_setup() {
6096 return lt__PROGRAM__LTX_preloaded_symbols;
6097 }
6098 #endif
6099
6100 #ifdef __cplusplus
6101 }
6102 #endif
6103 _LT_EOF
6104 # Now try linking the two files.
6105 mv conftest.$ac_objext conftstm.$ac_objext
6106 lt_globsym_save_LIBS=$LIBS
6107 lt_globsym_save_CFLAGS=$CFLAGS
6108 LIBS="conftstm.$ac_objext"
6109 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6111 (eval $ac_link) 2>&5
6112 ac_status=$?
6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6115 pipe_works=yes
6116 fi
6117 LIBS=$lt_globsym_save_LIBS
6118 CFLAGS=$lt_globsym_save_CFLAGS
6119 else
6120 echo "cannot find nm_test_func in $nlist" >&5
6121 fi
6122 else
6123 echo "cannot find nm_test_var in $nlist" >&5
6124 fi
6125 else
6126 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6127 fi
6128 else
6129 echo "$progname: failed program was:" >&5
6130 cat conftest.$ac_ext >&5
6131 fi
6132 rm -rf conftest* conftst*
6133
6134 # Do not use the global_symbol_pipe unless it works.
6135 if test "$pipe_works" = yes; then
6136 break
6137 else
6138 lt_cv_sys_global_symbol_pipe=
6139 fi
6140 done
6141
6142 fi
6143
6144 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6145 lt_cv_sys_global_symbol_to_cdecl=
6146 fi
6147 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6149 $as_echo "failed" >&6; }
6150 else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6152 $as_echo "ok" >&6; }
6153 fi
6154
6155 # Response file support.
6156 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6157 nm_file_list_spec='@'
6158 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6159 nm_file_list_spec='@'
6160 fi
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6189 $as_echo_n "checking for sysroot... " >&6; }
6190
6191 # Check whether --with-sysroot was given.
6192 if test "${with_sysroot+set}" = set; then :
6193 withval=$with_sysroot;
6194 else
6195 with_sysroot=no
6196 fi
6197
6198
6199 lt_sysroot=
6200 case ${with_sysroot} in #(
6201 yes)
6202 if test "$GCC" = yes; then
6203 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6204 fi
6205 ;; #(
6206 /*)
6207 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6208 ;; #(
6209 no|'')
6210 ;; #(
6211 *)
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6213 $as_echo "${with_sysroot}" >&6; }
6214 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6215 ;;
6216 esac
6217
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6219 $as_echo "${lt_sysroot:-no}" >&6; }
6220
6221
6222
6223
6224
6225 # Check whether --enable-libtool-lock was given.
6226 if test "${enable_libtool_lock+set}" = set; then :
6227 enableval=$enable_libtool_lock;
6228 fi
6229
6230 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6231
6232 # Some flags need to be propagated to the compiler or linker for good
6233 # libtool support.
6234 case $host in
6235 ia64-*-hpux*)
6236 # Find out which ABI we are using.
6237 echo 'int i;' > conftest.$ac_ext
6238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6239 (eval $ac_compile) 2>&5
6240 ac_status=$?
6241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6242 test $ac_status = 0; }; then
6243 case `/usr/bin/file conftest.$ac_objext` in
6244 *ELF-32*)
6245 HPUX_IA64_MODE="32"
6246 ;;
6247 *ELF-64*)
6248 HPUX_IA64_MODE="64"
6249 ;;
6250 esac
6251 fi
6252 rm -rf conftest*
6253 ;;
6254 *-*-irix6*)
6255 # Find out which ABI we are using.
6256 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6258 (eval $ac_compile) 2>&5
6259 ac_status=$?
6260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6261 test $ac_status = 0; }; then
6262 if test "$lt_cv_prog_gnu_ld" = yes; then
6263 case `/usr/bin/file conftest.$ac_objext` in
6264 *32-bit*)
6265 LD="${LD-ld} -melf32bsmip"
6266 ;;
6267 *N32*)
6268 LD="${LD-ld} -melf32bmipn32"
6269 ;;
6270 *64-bit*)
6271 LD="${LD-ld} -melf64bmip"
6272 ;;
6273 esac
6274 else
6275 case `/usr/bin/file conftest.$ac_objext` in
6276 *32-bit*)
6277 LD="${LD-ld} -32"
6278 ;;
6279 *N32*)
6280 LD="${LD-ld} -n32"
6281 ;;
6282 *64-bit*)
6283 LD="${LD-ld} -64"
6284 ;;
6285 esac
6286 fi
6287 fi
6288 rm -rf conftest*
6289 ;;
6290
6291 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6292 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6293 # Find out which ABI we are using.
6294 echo 'int i;' > conftest.$ac_ext
6295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6296 (eval $ac_compile) 2>&5
6297 ac_status=$?
6298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6299 test $ac_status = 0; }; then
6300 case `/usr/bin/file conftest.o` in
6301 *32-bit*)
6302 case $host in
6303 x86_64-*kfreebsd*-gnu)
6304 LD="${LD-ld} -m elf_i386_fbsd"
6305 ;;
6306 x86_64-*linux*)
6307 case `/usr/bin/file conftest.o` in
6308 *x86-64*)
6309 LD="${LD-ld} -m elf32_x86_64"
6310 ;;
6311 *)
6312 LD="${LD-ld} -m elf_i386"
6313 ;;
6314 esac
6315 ;;
6316 powerpc64le-*)
6317 LD="${LD-ld} -m elf32lppclinux"
6318 ;;
6319 powerpc64-*)
6320 LD="${LD-ld} -m elf32ppclinux"
6321 ;;
6322 s390x-*linux*)
6323 LD="${LD-ld} -m elf_s390"
6324 ;;
6325 sparc64-*linux*)
6326 LD="${LD-ld} -m elf32_sparc"
6327 ;;
6328 esac
6329 ;;
6330 *64-bit*)
6331 case $host in
6332 x86_64-*kfreebsd*-gnu)
6333 LD="${LD-ld} -m elf_x86_64_fbsd"
6334 ;;
6335 x86_64-*linux*)
6336 LD="${LD-ld} -m elf_x86_64"
6337 ;;
6338 powerpcle-*)
6339 LD="${LD-ld} -m elf64lppc"
6340 ;;
6341 powerpc-*)
6342 LD="${LD-ld} -m elf64ppc"
6343 ;;
6344 s390*-*linux*|s390*-*tpf*)
6345 LD="${LD-ld} -m elf64_s390"
6346 ;;
6347 sparc*-*linux*)
6348 LD="${LD-ld} -m elf64_sparc"
6349 ;;
6350 esac
6351 ;;
6352 esac
6353 fi
6354 rm -rf conftest*
6355 ;;
6356
6357 *-*-sco3.2v5*)
6358 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6359 SAVE_CFLAGS="$CFLAGS"
6360 CFLAGS="$CFLAGS -belf"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6362 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6363 if ${lt_cv_cc_needs_belf+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 ac_ext=c
6367 ac_cpp='$CPP $CPPFLAGS'
6368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6371
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374
6375 int
6376 main ()
6377 {
6378
6379 ;
6380 return 0;
6381 }
6382 _ACEOF
6383 if ac_fn_c_try_link "$LINENO"; then :
6384 lt_cv_cc_needs_belf=yes
6385 else
6386 lt_cv_cc_needs_belf=no
6387 fi
6388 rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 ac_ext=c
6391 ac_cpp='$CPP $CPPFLAGS'
6392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6395
6396 fi
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6398 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6399 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6400 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6401 CFLAGS="$SAVE_CFLAGS"
6402 fi
6403 ;;
6404 *-*solaris*)
6405 # Find out which ABI we are using.
6406 echo 'int i;' > conftest.$ac_ext
6407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6408 (eval $ac_compile) 2>&5
6409 ac_status=$?
6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411 test $ac_status = 0; }; then
6412 case `/usr/bin/file conftest.o` in
6413 *64-bit*)
6414 case $lt_cv_prog_gnu_ld in
6415 yes*)
6416 case $host in
6417 i?86-*-solaris*)
6418 LD="${LD-ld} -m elf_x86_64"
6419 ;;
6420 sparc*-*-solaris*)
6421 LD="${LD-ld} -m elf64_sparc"
6422 ;;
6423 esac
6424 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6425 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6426 LD="${LD-ld}_sol2"
6427 fi
6428 ;;
6429 *)
6430 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6431 LD="${LD-ld} -64"
6432 fi
6433 ;;
6434 esac
6435 ;;
6436 esac
6437 fi
6438 rm -rf conftest*
6439 ;;
6440 esac
6441
6442 need_locks="$enable_libtool_lock"
6443
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}mt; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$MANIFEST_TOOL"; then
6453 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6473 if test -n "$MANIFEST_TOOL"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6475 $as_echo "$MANIFEST_TOOL" >&6; }
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481
6482 fi
6483 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6484 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6485 # Extract the first word of "mt", so it can be a program name with args.
6486 set dummy mt; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if test -n "$ac_ct_MANIFEST_TOOL"; then
6493 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6513 if test -n "$ac_ct_MANIFEST_TOOL"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6515 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6516 else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520
6521 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6522 MANIFEST_TOOL=":"
6523 else
6524 case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6529 esac
6530 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6531 fi
6532 else
6533 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6534 fi
6535
6536 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6538 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6539 if ${lt_cv_path_mainfest_tool+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 lt_cv_path_mainfest_tool=no
6543 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6544 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6545 cat conftest.err >&5
6546 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6547 lt_cv_path_mainfest_tool=yes
6548 fi
6549 rm -f conftest*
6550 fi
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6552 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6553 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6554 MANIFEST_TOOL=:
6555 fi
6556
6557
6558
6559
6560
6561
6562 case $host_os in
6563 rhapsody* | darwin*)
6564 if test -n "$ac_tool_prefix"; then
6565 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6566 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 if test -n "$DSYMUTIL"; then
6573 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6593 if test -n "$DSYMUTIL"; then
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6595 $as_echo "$DSYMUTIL" >&6; }
6596 else
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6599 fi
6600
6601
6602 fi
6603 if test -z "$ac_cv_prog_DSYMUTIL"; then
6604 ac_ct_DSYMUTIL=$DSYMUTIL
6605 # Extract the first word of "dsymutil", so it can be a program name with args.
6606 set dummy dsymutil; ac_word=$2
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608 $as_echo_n "checking for $ac_word... " >&6; }
6609 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6610 $as_echo_n "(cached) " >&6
6611 else
6612 if test -n "$ac_ct_DSYMUTIL"; then
6613 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6614 else
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 for as_dir in $PATH
6617 do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 break 2
6625 fi
6626 done
6627 done
6628 IFS=$as_save_IFS
6629
6630 fi
6631 fi
6632 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6633 if test -n "$ac_ct_DSYMUTIL"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6635 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6636 else
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6639 fi
6640
6641 if test "x$ac_ct_DSYMUTIL" = x; then
6642 DSYMUTIL=":"
6643 else
6644 case $cross_compiling:$ac_tool_warned in
6645 yes:)
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6648 ac_tool_warned=yes ;;
6649 esac
6650 DSYMUTIL=$ac_ct_DSYMUTIL
6651 fi
6652 else
6653 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6654 fi
6655
6656 if test -n "$ac_tool_prefix"; then
6657 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6658 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660 $as_echo_n "checking for $ac_word... " >&6; }
6661 if ${ac_cv_prog_NMEDIT+:} false; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 if test -n "$NMEDIT"; then
6665 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6666 else
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 break 2
6677 fi
6678 done
6679 done
6680 IFS=$as_save_IFS
6681
6682 fi
6683 fi
6684 NMEDIT=$ac_cv_prog_NMEDIT
6685 if test -n "$NMEDIT"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6687 $as_echo "$NMEDIT" >&6; }
6688 else
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6691 fi
6692
6693
6694 fi
6695 if test -z "$ac_cv_prog_NMEDIT"; then
6696 ac_ct_NMEDIT=$NMEDIT
6697 # Extract the first word of "nmedit", so it can be a program name with args.
6698 set dummy nmedit; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 if test -n "$ac_ct_NMEDIT"; then
6705 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6714 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722 fi
6723 fi
6724 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6725 if test -n "$ac_ct_NMEDIT"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6727 $as_echo "$ac_ct_NMEDIT" >&6; }
6728 else
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731 fi
6732
6733 if test "x$ac_ct_NMEDIT" = x; then
6734 NMEDIT=":"
6735 else
6736 case $cross_compiling:$ac_tool_warned in
6737 yes:)
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6740 ac_tool_warned=yes ;;
6741 esac
6742 NMEDIT=$ac_ct_NMEDIT
6743 fi
6744 else
6745 NMEDIT="$ac_cv_prog_NMEDIT"
6746 fi
6747
6748 if test -n "$ac_tool_prefix"; then
6749 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6750 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if ${ac_cv_prog_LIPO+:} false; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 if test -n "$LIPO"; then
6757 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762 IFS=$as_save_IFS
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 break 2
6769 fi
6770 done
6771 done
6772 IFS=$as_save_IFS
6773
6774 fi
6775 fi
6776 LIPO=$ac_cv_prog_LIPO
6777 if test -n "$LIPO"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6779 $as_echo "$LIPO" >&6; }
6780 else
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6783 fi
6784
6785
6786 fi
6787 if test -z "$ac_cv_prog_LIPO"; then
6788 ac_ct_LIPO=$LIPO
6789 # Extract the first word of "lipo", so it can be a program name with args.
6790 set dummy lipo; ac_word=$2
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792 $as_echo_n "checking for $ac_word... " >&6; }
6793 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 if test -n "$ac_ct_LIPO"; then
6797 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6798 else
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH
6801 do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6806 ac_cv_prog_ac_ct_LIPO="lipo"
6807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 break 2
6809 fi
6810 done
6811 done
6812 IFS=$as_save_IFS
6813
6814 fi
6815 fi
6816 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6817 if test -n "$ac_ct_LIPO"; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6819 $as_echo "$ac_ct_LIPO" >&6; }
6820 else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822 $as_echo "no" >&6; }
6823 fi
6824
6825 if test "x$ac_ct_LIPO" = x; then
6826 LIPO=":"
6827 else
6828 case $cross_compiling:$ac_tool_warned in
6829 yes:)
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6832 ac_tool_warned=yes ;;
6833 esac
6834 LIPO=$ac_ct_LIPO
6835 fi
6836 else
6837 LIPO="$ac_cv_prog_LIPO"
6838 fi
6839
6840 if test -n "$ac_tool_prefix"; then
6841 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6842 set dummy ${ac_tool_prefix}otool; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if ${ac_cv_prog_OTOOL+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 if test -n "$OTOOL"; then
6849 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6850 else
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862 done
6863 done
6864 IFS=$as_save_IFS
6865
6866 fi
6867 fi
6868 OTOOL=$ac_cv_prog_OTOOL
6869 if test -n "$OTOOL"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6871 $as_echo "$OTOOL" >&6; }
6872 else
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6875 fi
6876
6877
6878 fi
6879 if test -z "$ac_cv_prog_OTOOL"; then
6880 ac_ct_OTOOL=$OTOOL
6881 # Extract the first word of "otool", so it can be a program name with args.
6882 set dummy otool; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 if test -n "$ac_ct_OTOOL"; then
6889 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6890 else
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_ac_ct_OTOOL="otool"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6901 fi
6902 done
6903 done
6904 IFS=$as_save_IFS
6905
6906 fi
6907 fi
6908 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6909 if test -n "$ac_ct_OTOOL"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6911 $as_echo "$ac_ct_OTOOL" >&6; }
6912 else
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6915 fi
6916
6917 if test "x$ac_ct_OTOOL" = x; then
6918 OTOOL=":"
6919 else
6920 case $cross_compiling:$ac_tool_warned in
6921 yes:)
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924 ac_tool_warned=yes ;;
6925 esac
6926 OTOOL=$ac_ct_OTOOL
6927 fi
6928 else
6929 OTOOL="$ac_cv_prog_OTOOL"
6930 fi
6931
6932 if test -n "$ac_tool_prefix"; then
6933 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6934 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_prog_OTOOL64+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 if test -n "$OTOOL64"; then
6941 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6953 fi
6954 done
6955 done
6956 IFS=$as_save_IFS
6957
6958 fi
6959 fi
6960 OTOOL64=$ac_cv_prog_OTOOL64
6961 if test -n "$OTOOL64"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6963 $as_echo "$OTOOL64" >&6; }
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968
6969
6970 fi
6971 if test -z "$ac_cv_prog_OTOOL64"; then
6972 ac_ct_OTOOL64=$OTOOL64
6973 # Extract the first word of "otool64", so it can be a program name with args.
6974 set dummy otool64; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 if test -n "$ac_ct_OTOOL64"; then
6981 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_ac_ct_OTOOL64="otool64"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6993 fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7001 if test -n "$ac_ct_OTOOL64"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7003 $as_echo "$ac_ct_OTOOL64" >&6; }
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7008
7009 if test "x$ac_ct_OTOOL64" = x; then
7010 OTOOL64=":"
7011 else
7012 case $cross_compiling:$ac_tool_warned in
7013 yes:)
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7016 ac_tool_warned=yes ;;
7017 esac
7018 OTOOL64=$ac_ct_OTOOL64
7019 fi
7020 else
7021 OTOOL64="$ac_cv_prog_OTOOL64"
7022 fi
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7051 $as_echo_n "checking for -single_module linker flag... " >&6; }
7052 if ${lt_cv_apple_cc_single_mod+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 lt_cv_apple_cc_single_mod=no
7056 if test -z "${LT_MULTI_MODULE}"; then
7057 # By default we will add the -single_module flag. You can override
7058 # by either setting the environment variable LT_MULTI_MODULE
7059 # non-empty at configure time, or by adding -multi_module to the
7060 # link flags.
7061 rm -rf libconftest.dylib*
7062 echo "int foo(void){return 1;}" > conftest.c
7063 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7064 -dynamiclib -Wl,-single_module conftest.c" >&5
7065 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7066 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7067 _lt_result=$?
7068 # If there is a non-empty error log, and "single_module"
7069 # appears in it, assume the flag caused a linker warning
7070 if test -s conftest.err && $GREP single_module conftest.err; then
7071 cat conftest.err >&5
7072 # Otherwise, if the output was created with a 0 exit code from
7073 # the compiler, it worked.
7074 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7075 lt_cv_apple_cc_single_mod=yes
7076 else
7077 cat conftest.err >&5
7078 fi
7079 rm -rf libconftest.dylib*
7080 rm -f conftest.*
7081 fi
7082 fi
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7084 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7085
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7087 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7088 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 lt_cv_ld_exported_symbols_list=no
7092 save_LDFLAGS=$LDFLAGS
7093 echo "_main" > conftest.sym
7094 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097
7098 int
7099 main ()
7100 {
7101
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 if ac_fn_c_try_link "$LINENO"; then :
7107 lt_cv_ld_exported_symbols_list=yes
7108 else
7109 lt_cv_ld_exported_symbols_list=no
7110 fi
7111 rm -f core conftest.err conftest.$ac_objext \
7112 conftest$ac_exeext conftest.$ac_ext
7113 LDFLAGS="$save_LDFLAGS"
7114
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7117 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7118
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7120 $as_echo_n "checking for -force_load linker flag... " >&6; }
7121 if ${lt_cv_ld_force_load+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 lt_cv_ld_force_load=no
7125 cat > conftest.c << _LT_EOF
7126 int forced_loaded() { return 2;}
7127 _LT_EOF
7128 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7129 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7130 echo "$AR cru libconftest.a conftest.o" >&5
7131 $AR cru libconftest.a conftest.o 2>&5
7132 echo "$RANLIB libconftest.a" >&5
7133 $RANLIB libconftest.a 2>&5
7134 cat > conftest.c << _LT_EOF
7135 int main() { return 0;}
7136 _LT_EOF
7137 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7138 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7139 _lt_result=$?
7140 if test -s conftest.err && $GREP force_load conftest.err; then
7141 cat conftest.err >&5
7142 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7143 lt_cv_ld_force_load=yes
7144 else
7145 cat conftest.err >&5
7146 fi
7147 rm -f conftest.err libconftest.a conftest conftest.c
7148 rm -rf conftest.dSYM
7149
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7152 $as_echo "$lt_cv_ld_force_load" >&6; }
7153 case $host_os in
7154 rhapsody* | darwin1.[012])
7155 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7156 darwin1.*)
7157 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7158 darwin*) # darwin 5.x on
7159 # if running on 10.5 or later, the deployment target defaults
7160 # to the OS version, if on x86, and 10.4, the deployment
7161 # target defaults to 10.4. Don't you love it?
7162 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7163 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7164 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7165 10.[012]*)
7166 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7167 10.*)
7168 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7169 esac
7170 ;;
7171 esac
7172 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7173 _lt_dar_single_mod='$single_module'
7174 fi
7175 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7176 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7177 else
7178 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7179 fi
7180 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7181 _lt_dsymutil='~$DSYMUTIL $lib || :'
7182 else
7183 _lt_dsymutil=
7184 fi
7185 ;;
7186 esac
7187
7188 ac_ext=c
7189 ac_cpp='$CPP $CPPFLAGS'
7190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7194 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7195 # On Suns, sometimes $CPP names a directory.
7196 if test -n "$CPP" && test -d "$CPP"; then
7197 CPP=
7198 fi
7199 if test -z "$CPP"; then
7200 if ${ac_cv_prog_CPP+:} false; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 # Double quotes because CPP needs to be expanded
7204 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7205 do
7206 ac_preproc_ok=false
7207 for ac_c_preproc_warn_flag in '' yes
7208 do
7209 # Use a header file that comes with gcc, so configuring glibc
7210 # with a fresh cross-compiler works.
7211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7212 # <limits.h> exists even on freestanding compilers.
7213 # On the NeXT, cc -E runs the code through the compiler's parser,
7214 # not just through cpp. "Syntax error" is here to catch this case.
7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7217 #ifdef __STDC__
7218 # include <limits.h>
7219 #else
7220 # include <assert.h>
7221 #endif
7222 Syntax error
7223 _ACEOF
7224 if ac_fn_c_try_cpp "$LINENO"; then :
7225
7226 else
7227 # Broken: fails on valid input.
7228 continue
7229 fi
7230 rm -f conftest.err conftest.i conftest.$ac_ext
7231
7232 # OK, works on sane cases. Now check whether nonexistent headers
7233 # can be detected and how.
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236 #include <ac_nonexistent.h>
7237 _ACEOF
7238 if ac_fn_c_try_cpp "$LINENO"; then :
7239 # Broken: success on invalid input.
7240 continue
7241 else
7242 # Passes both tests.
7243 ac_preproc_ok=:
7244 break
7245 fi
7246 rm -f conftest.err conftest.i conftest.$ac_ext
7247
7248 done
7249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7250 rm -f conftest.i conftest.err conftest.$ac_ext
7251 if $ac_preproc_ok; then :
7252 break
7253 fi
7254
7255 done
7256 ac_cv_prog_CPP=$CPP
7257
7258 fi
7259 CPP=$ac_cv_prog_CPP
7260 else
7261 ac_cv_prog_CPP=$CPP
7262 fi
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7264 $as_echo "$CPP" >&6; }
7265 ac_preproc_ok=false
7266 for ac_c_preproc_warn_flag in '' yes
7267 do
7268 # Use a header file that comes with gcc, so configuring glibc
7269 # with a fresh cross-compiler works.
7270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7271 # <limits.h> exists even on freestanding compilers.
7272 # On the NeXT, cc -E runs the code through the compiler's parser,
7273 # not just through cpp. "Syntax error" is here to catch this case.
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #ifdef __STDC__
7277 # include <limits.h>
7278 #else
7279 # include <assert.h>
7280 #endif
7281 Syntax error
7282 _ACEOF
7283 if ac_fn_c_try_cpp "$LINENO"; then :
7284
7285 else
7286 # Broken: fails on valid input.
7287 continue
7288 fi
7289 rm -f conftest.err conftest.i conftest.$ac_ext
7290
7291 # OK, works on sane cases. Now check whether nonexistent headers
7292 # can be detected and how.
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 #include <ac_nonexistent.h>
7296 _ACEOF
7297 if ac_fn_c_try_cpp "$LINENO"; then :
7298 # Broken: success on invalid input.
7299 continue
7300 else
7301 # Passes both tests.
7302 ac_preproc_ok=:
7303 break
7304 fi
7305 rm -f conftest.err conftest.i conftest.$ac_ext
7306
7307 done
7308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7309 rm -f conftest.i conftest.err conftest.$ac_ext
7310 if $ac_preproc_ok; then :
7311
7312 else
7313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7315 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7316 See \`config.log' for more details" "$LINENO" 5; }
7317 fi
7318
7319 ac_ext=c
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324
7325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7327 $as_echo_n "checking for ANSI C header files... " >&6; }
7328 if ${ac_cv_header_stdc+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333 #include <stdlib.h>
7334 #include <stdarg.h>
7335 #include <string.h>
7336 #include <float.h>
7337
7338 int
7339 main ()
7340 {
7341
7342 ;
7343 return 0;
7344 }
7345 _ACEOF
7346 if ac_fn_c_try_compile "$LINENO"; then :
7347 ac_cv_header_stdc=yes
7348 else
7349 ac_cv_header_stdc=no
7350 fi
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352
7353 if test $ac_cv_header_stdc = yes; then
7354 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7357 #include <string.h>
7358
7359 _ACEOF
7360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7361 $EGREP "memchr" >/dev/null 2>&1; then :
7362
7363 else
7364 ac_cv_header_stdc=no
7365 fi
7366 rm -f conftest*
7367
7368 fi
7369
7370 if test $ac_cv_header_stdc = yes; then
7371 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7374 #include <stdlib.h>
7375
7376 _ACEOF
7377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7378 $EGREP "free" >/dev/null 2>&1; then :
7379
7380 else
7381 ac_cv_header_stdc=no
7382 fi
7383 rm -f conftest*
7384
7385 fi
7386
7387 if test $ac_cv_header_stdc = yes; then
7388 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7389 if test "$cross_compiling" = yes; then :
7390 :
7391 else
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 #include <ctype.h>
7395 #include <stdlib.h>
7396 #if ((' ' & 0x0FF) == 0x020)
7397 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7398 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7399 #else
7400 # define ISLOWER(c) \
7401 (('a' <= (c) && (c) <= 'i') \
7402 || ('j' <= (c) && (c) <= 'r') \
7403 || ('s' <= (c) && (c) <= 'z'))
7404 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7405 #endif
7406
7407 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7408 int
7409 main ()
7410 {
7411 int i;
7412 for (i = 0; i < 256; i++)
7413 if (XOR (islower (i), ISLOWER (i))
7414 || toupper (i) != TOUPPER (i))
7415 return 2;
7416 return 0;
7417 }
7418 _ACEOF
7419 if ac_fn_c_try_run "$LINENO"; then :
7420
7421 else
7422 ac_cv_header_stdc=no
7423 fi
7424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7425 conftest.$ac_objext conftest.beam conftest.$ac_ext
7426 fi
7427
7428 fi
7429 fi
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7431 $as_echo "$ac_cv_header_stdc" >&6; }
7432 if test $ac_cv_header_stdc = yes; then
7433
7434 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7435
7436 fi
7437
7438 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7439 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7440 inttypes.h stdint.h unistd.h
7441 do :
7442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7443 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7444 "
7445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7446 cat >>confdefs.h <<_ACEOF
7447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7448 _ACEOF
7449
7450 fi
7451
7452 done
7453
7454
7455 for ac_header in dlfcn.h
7456 do :
7457 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7458 "
7459 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7460 cat >>confdefs.h <<_ACEOF
7461 #define HAVE_DLFCN_H 1
7462 _ACEOF
7463
7464 fi
7465
7466 done
7467
7468
7469
7470
7471
7472 # Set options
7473
7474
7475
7476 enable_dlopen=no
7477
7478
7479 enable_win32_dll=no
7480
7481
7482 # Check whether --enable-shared was given.
7483 if test "${enable_shared+set}" = set; then :
7484 enableval=$enable_shared; p=${PACKAGE-default}
7485 case $enableval in
7486 yes) enable_shared=yes ;;
7487 no) enable_shared=no ;;
7488 *)
7489 enable_shared=no
7490 # Look at the argument we got. We use all the common list separators.
7491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7492 for pkg in $enableval; do
7493 IFS="$lt_save_ifs"
7494 if test "X$pkg" = "X$p"; then
7495 enable_shared=yes
7496 fi
7497 done
7498 IFS="$lt_save_ifs"
7499 ;;
7500 esac
7501 else
7502 enable_shared=yes
7503 fi
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 # Check whether --enable-static was given.
7514 if test "${enable_static+set}" = set; then :
7515 enableval=$enable_static; p=${PACKAGE-default}
7516 case $enableval in
7517 yes) enable_static=yes ;;
7518 no) enable_static=no ;;
7519 *)
7520 enable_static=no
7521 # Look at the argument we got. We use all the common list separators.
7522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7523 for pkg in $enableval; do
7524 IFS="$lt_save_ifs"
7525 if test "X$pkg" = "X$p"; then
7526 enable_static=yes
7527 fi
7528 done
7529 IFS="$lt_save_ifs"
7530 ;;
7531 esac
7532 else
7533 enable_static=yes
7534 fi
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545 # Check whether --with-pic was given.
7546 if test "${with_pic+set}" = set; then :
7547 withval=$with_pic; lt_p=${PACKAGE-default}
7548 case $withval in
7549 yes|no) pic_mode=$withval ;;
7550 *)
7551 pic_mode=default
7552 # Look at the argument we got. We use all the common list separators.
7553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7554 for lt_pkg in $withval; do
7555 IFS="$lt_save_ifs"
7556 if test "X$lt_pkg" = "X$lt_p"; then
7557 pic_mode=yes
7558 fi
7559 done
7560 IFS="$lt_save_ifs"
7561 ;;
7562 esac
7563 else
7564 pic_mode=default
7565 fi
7566
7567
7568 test -z "$pic_mode" && pic_mode=default
7569
7570
7571
7572
7573
7574
7575
7576 # Check whether --enable-fast-install was given.
7577 if test "${enable_fast_install+set}" = set; then :
7578 enableval=$enable_fast_install; p=${PACKAGE-default}
7579 case $enableval in
7580 yes) enable_fast_install=yes ;;
7581 no) enable_fast_install=no ;;
7582 *)
7583 enable_fast_install=no
7584 # Look at the argument we got. We use all the common list separators.
7585 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7586 for pkg in $enableval; do
7587 IFS="$lt_save_ifs"
7588 if test "X$pkg" = "X$p"; then
7589 enable_fast_install=yes
7590 fi
7591 done
7592 IFS="$lt_save_ifs"
7593 ;;
7594 esac
7595 else
7596 enable_fast_install=yes
7597 fi
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609 # This can be used to rebuild libtool when needed
7610 LIBTOOL_DEPS="$ltmain"
7611
7612 # Always use our own libtool.
7613 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644 test -z "$LN_S" && LN_S="ln -s"
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659 if test -n "${ZSH_VERSION+set}" ; then
7660 setopt NO_GLOB_SUBST
7661 fi
7662
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7664 $as_echo_n "checking for objdir... " >&6; }
7665 if ${lt_cv_objdir+:} false; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668 rm -f .libs 2>/dev/null
7669 mkdir .libs 2>/dev/null
7670 if test -d .libs; then
7671 lt_cv_objdir=.libs
7672 else
7673 # MS-DOS does not allow filenames that begin with a dot.
7674 lt_cv_objdir=_libs
7675 fi
7676 rmdir .libs 2>/dev/null
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7679 $as_echo "$lt_cv_objdir" >&6; }
7680 objdir=$lt_cv_objdir
7681
7682
7683
7684
7685
7686 cat >>confdefs.h <<_ACEOF
7687 #define LT_OBJDIR "$lt_cv_objdir/"
7688 _ACEOF
7689
7690
7691
7692
7693 case $host_os in
7694 aix3*)
7695 # AIX sometimes has problems with the GCC collect2 program. For some
7696 # reason, if we set the COLLECT_NAMES environment variable, the problems
7697 # vanish in a puff of smoke.
7698 if test "X${COLLECT_NAMES+set}" != Xset; then
7699 COLLECT_NAMES=
7700 export COLLECT_NAMES
7701 fi
7702 ;;
7703 esac
7704
7705 # Global variables:
7706 ofile=libtool
7707 can_build_shared=yes
7708
7709 # All known linkers require a `.a' archive for static linking (except MSVC,
7710 # which needs '.lib').
7711 libext=a
7712
7713 with_gnu_ld="$lt_cv_prog_gnu_ld"
7714
7715 old_CC="$CC"
7716 old_CFLAGS="$CFLAGS"
7717
7718 # Set sane defaults for various variables
7719 test -z "$CC" && CC=cc
7720 test -z "$LTCC" && LTCC=$CC
7721 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7722 test -z "$LD" && LD=ld
7723 test -z "$ac_objext" && ac_objext=o
7724
7725 for cc_temp in $compiler""; do
7726 case $cc_temp in
7727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7729 \-*) ;;
7730 *) break;;
7731 esac
7732 done
7733 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7734
7735
7736 # Only perform the check for file, if the check method requires it
7737 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7738 case $deplibs_check_method in
7739 file_magic*)
7740 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7742 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7743 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7744 $as_echo_n "(cached) " >&6
7745 else
7746 case $MAGIC_CMD in
7747 [\\/*] | ?:[\\/]*)
7748 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7749 ;;
7750 *)
7751 lt_save_MAGIC_CMD="$MAGIC_CMD"
7752 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7753 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7754 for ac_dir in $ac_dummy; do
7755 IFS="$lt_save_ifs"
7756 test -z "$ac_dir" && ac_dir=.
7757 if test -f $ac_dir/${ac_tool_prefix}file; then
7758 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7759 if test -n "$file_magic_test_file"; then
7760 case $deplibs_check_method in
7761 "file_magic "*)
7762 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7764 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7765 $EGREP "$file_magic_regex" > /dev/null; then
7766 :
7767 else
7768 cat <<_LT_EOF 1>&2
7769
7770 *** Warning: the command libtool uses to detect shared libraries,
7771 *** $file_magic_cmd, produces output that libtool cannot recognize.
7772 *** The result is that libtool may fail to recognize shared libraries
7773 *** as such. This will affect the creation of libtool libraries that
7774 *** depend on shared libraries, but programs linked with such libtool
7775 *** libraries will work regardless of this problem. Nevertheless, you
7776 *** may want to report the problem to your system manager and/or to
7777 *** [email protected]
7778
7779 _LT_EOF
7780 fi ;;
7781 esac
7782 fi
7783 break
7784 fi
7785 done
7786 IFS="$lt_save_ifs"
7787 MAGIC_CMD="$lt_save_MAGIC_CMD"
7788 ;;
7789 esac
7790 fi
7791
7792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7793 if test -n "$MAGIC_CMD"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7795 $as_echo "$MAGIC_CMD" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800
7801
7802
7803
7804
7805 if test -z "$lt_cv_path_MAGIC_CMD"; then
7806 if test -n "$ac_tool_prefix"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7808 $as_echo_n "checking for file... " >&6; }
7809 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 case $MAGIC_CMD in
7813 [\\/*] | ?:[\\/]*)
7814 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7815 ;;
7816 *)
7817 lt_save_MAGIC_CMD="$MAGIC_CMD"
7818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7819 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7820 for ac_dir in $ac_dummy; do
7821 IFS="$lt_save_ifs"
7822 test -z "$ac_dir" && ac_dir=.
7823 if test -f $ac_dir/file; then
7824 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7825 if test -n "$file_magic_test_file"; then
7826 case $deplibs_check_method in
7827 "file_magic "*)
7828 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7829 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7830 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7831 $EGREP "$file_magic_regex" > /dev/null; then
7832 :
7833 else
7834 cat <<_LT_EOF 1>&2
7835
7836 *** Warning: the command libtool uses to detect shared libraries,
7837 *** $file_magic_cmd, produces output that libtool cannot recognize.
7838 *** The result is that libtool may fail to recognize shared libraries
7839 *** as such. This will affect the creation of libtool libraries that
7840 *** depend on shared libraries, but programs linked with such libtool
7841 *** libraries will work regardless of this problem. Nevertheless, you
7842 *** may want to report the problem to your system manager and/or to
7843 *** [email protected]
7844
7845 _LT_EOF
7846 fi ;;
7847 esac
7848 fi
7849 break
7850 fi
7851 done
7852 IFS="$lt_save_ifs"
7853 MAGIC_CMD="$lt_save_MAGIC_CMD"
7854 ;;
7855 esac
7856 fi
7857
7858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7859 if test -n "$MAGIC_CMD"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7861 $as_echo "$MAGIC_CMD" >&6; }
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7865 fi
7866
7867
7868 else
7869 MAGIC_CMD=:
7870 fi
7871 fi
7872
7873 fi
7874 ;;
7875 esac
7876
7877 # Use C for the default configuration in the libtool script
7878
7879 lt_save_CC="$CC"
7880 ac_ext=c
7881 ac_cpp='$CPP $CPPFLAGS'
7882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7885
7886
7887 # Source file extension for C test sources.
7888 ac_ext=c
7889
7890 # Object file extension for compiled C test sources.
7891 objext=o
7892 objext=$objext
7893
7894 # Code to be used in simple compile tests
7895 lt_simple_compile_test_code="int some_variable = 0;"
7896
7897 # Code to be used in simple link tests
7898 lt_simple_link_test_code='int main(){return(0);}'
7899
7900
7901
7902
7903
7904
7905
7906 # If no C compiler was specified, use CC.
7907 LTCC=${LTCC-"$CC"}
7908
7909 # If no C compiler flags were specified, use CFLAGS.
7910 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7911
7912 # Allow CC to be a program name with arguments.
7913 compiler=$CC
7914
7915 # Save the default compiler, since it gets overwritten when the other
7916 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7917 compiler_DEFAULT=$CC
7918
7919 # save warnings/boilerplate of simple test code
7920 ac_outfile=conftest.$ac_objext
7921 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7923 _lt_compiler_boilerplate=`cat conftest.err`
7924 $RM conftest*
7925
7926 ac_outfile=conftest.$ac_objext
7927 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7929 _lt_linker_boilerplate=`cat conftest.err`
7930 $RM -r conftest*
7931
7932
7933 if test -n "$compiler"; then
7934
7935 lt_prog_compiler_no_builtin_flag=
7936
7937 if test "$GCC" = yes; then
7938 case $cc_basename in
7939 nvcc*)
7940 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7941 *)
7942 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7943 esac
7944
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7946 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7947 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 lt_cv_prog_compiler_rtti_exceptions=no
7951 ac_outfile=conftest.$ac_objext
7952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7953 lt_compiler_flag="-fno-rtti -fno-exceptions"
7954 # Insert the option either (1) after the last *FLAGS variable, or
7955 # (2) before a word containing "conftest.", or (3) at the end.
7956 # Note that $ac_compile itself does not contain backslashes and begins
7957 # with a dollar sign (not a hyphen), so the echo should work correctly.
7958 # The option is referenced via a variable to avoid confusing sed.
7959 lt_compile=`echo "$ac_compile" | $SED \
7960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7962 -e 's:$: $lt_compiler_flag:'`
7963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7964 (eval "$lt_compile" 2>conftest.err)
7965 ac_status=$?
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 if (exit $ac_status) && test -s "$ac_outfile"; then
7969 # The compiler can only warn and ignore the option if not recognized
7970 # So say no if there are warnings other than the usual output.
7971 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7973 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7974 lt_cv_prog_compiler_rtti_exceptions=yes
7975 fi
7976 fi
7977 $RM conftest*
7978
7979 fi
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7981 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7982
7983 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7984 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7985 else
7986 :
7987 fi
7988
7989 fi
7990
7991
7992
7993
7994
7995
7996 lt_prog_compiler_wl=
7997 lt_prog_compiler_pic=
7998 lt_prog_compiler_static=
7999
8000
8001 if test "$GCC" = yes; then
8002 lt_prog_compiler_wl='-Wl,'
8003 lt_prog_compiler_static='-static'
8004
8005 case $host_os in
8006 aix*)
8007 # All AIX code is PIC.
8008 if test "$host_cpu" = ia64; then
8009 # AIX 5 now supports IA64 processor
8010 lt_prog_compiler_static='-Bstatic'
8011 fi
8012 ;;
8013
8014 amigaos*)
8015 case $host_cpu in
8016 powerpc)
8017 # see comment about AmigaOS4 .so support
8018 lt_prog_compiler_pic='-fPIC'
8019 ;;
8020 m68k)
8021 # FIXME: we need at least 68020 code to build shared libraries, but
8022 # adding the `-m68020' flag to GCC prevents building anything better,
8023 # like `-m68040'.
8024 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8025 ;;
8026 esac
8027 ;;
8028
8029 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8030 # PIC is the default for these OSes.
8031 ;;
8032
8033 mingw* | cygwin* | pw32* | os2* | cegcc*)
8034 # This hack is so that the source file can tell whether it is being
8035 # built for inclusion in a dll (and should export symbols for example).
8036 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8037 # (--disable-auto-import) libraries
8038 lt_prog_compiler_pic='-DDLL_EXPORT'
8039 ;;
8040
8041 darwin* | rhapsody*)
8042 # PIC is the default on this platform
8043 # Common symbols not allowed in MH_DYLIB files
8044 lt_prog_compiler_pic='-fno-common'
8045 ;;
8046
8047 haiku*)
8048 # PIC is the default for Haiku.
8049 # The "-static" flag exists, but is broken.
8050 lt_prog_compiler_static=
8051 ;;
8052
8053 hpux*)
8054 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8055 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8056 # sets the default TLS model and affects inlining.
8057 case $host_cpu in
8058 hppa*64*)
8059 # +Z the default
8060 ;;
8061 *)
8062 lt_prog_compiler_pic='-fPIC'
8063 ;;
8064 esac
8065 ;;
8066
8067 interix[3-9]*)
8068 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8069 # Instead, we relocate shared libraries at runtime.
8070 ;;
8071
8072 msdosdjgpp*)
8073 # Just because we use GCC doesn't mean we suddenly get shared libraries
8074 # on systems that don't support them.
8075 lt_prog_compiler_can_build_shared=no
8076 enable_shared=no
8077 ;;
8078
8079 *nto* | *qnx*)
8080 # QNX uses GNU C++, but need to define -shared option too, otherwise
8081 # it will coredump.
8082 lt_prog_compiler_pic='-fPIC -shared'
8083 ;;
8084
8085 sysv4*MP*)
8086 if test -d /usr/nec; then
8087 lt_prog_compiler_pic=-Kconform_pic
8088 fi
8089 ;;
8090
8091 *)
8092 lt_prog_compiler_pic='-fPIC'
8093 ;;
8094 esac
8095
8096 case $cc_basename in
8097 nvcc*) # Cuda Compiler Driver 2.2
8098 lt_prog_compiler_wl='-Xlinker '
8099 if test -n "$lt_prog_compiler_pic"; then
8100 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8101 fi
8102 ;;
8103 esac
8104 else
8105 # PORTME Check for flag to pass linker flags through the system compiler.
8106 case $host_os in
8107 aix*)
8108 lt_prog_compiler_wl='-Wl,'
8109 if test "$host_cpu" = ia64; then
8110 # AIX 5 now supports IA64 processor
8111 lt_prog_compiler_static='-Bstatic'
8112 else
8113 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8114 fi
8115 ;;
8116
8117 mingw* | cygwin* | pw32* | os2* | cegcc*)
8118 # This hack is so that the source file can tell whether it is being
8119 # built for inclusion in a dll (and should export symbols for example).
8120 lt_prog_compiler_pic='-DDLL_EXPORT'
8121 ;;
8122
8123 hpux9* | hpux10* | hpux11*)
8124 lt_prog_compiler_wl='-Wl,'
8125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8126 # not for PA HP-UX.
8127 case $host_cpu in
8128 hppa*64*|ia64*)
8129 # +Z the default
8130 ;;
8131 *)
8132 lt_prog_compiler_pic='+Z'
8133 ;;
8134 esac
8135 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8136 lt_prog_compiler_static='${wl}-a ${wl}archive'
8137 ;;
8138
8139 irix5* | irix6* | nonstopux*)
8140 lt_prog_compiler_wl='-Wl,'
8141 # PIC (with -KPIC) is the default.
8142 lt_prog_compiler_static='-non_shared'
8143 ;;
8144
8145 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8146 case $cc_basename in
8147 # old Intel for x86_64 which still supported -KPIC.
8148 ecc*)
8149 lt_prog_compiler_wl='-Wl,'
8150 lt_prog_compiler_pic='-KPIC'
8151 lt_prog_compiler_static='-static'
8152 ;;
8153 # icc used to be incompatible with GCC.
8154 # ICC 10 doesn't accept -KPIC any more.
8155 icc* | ifort*)
8156 lt_prog_compiler_wl='-Wl,'
8157 lt_prog_compiler_pic='-fPIC'
8158 lt_prog_compiler_static='-static'
8159 ;;
8160 # Lahey Fortran 8.1.
8161 lf95*)
8162 lt_prog_compiler_wl='-Wl,'
8163 lt_prog_compiler_pic='--shared'
8164 lt_prog_compiler_static='--static'
8165 ;;
8166 nagfor*)
8167 # NAG Fortran compiler
8168 lt_prog_compiler_wl='-Wl,-Wl,,'
8169 lt_prog_compiler_pic='-PIC'
8170 lt_prog_compiler_static='-Bstatic'
8171 ;;
8172 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8173 # Portland Group compilers (*not* the Pentium gcc compiler,
8174 # which looks to be a dead project)
8175 lt_prog_compiler_wl='-Wl,'
8176 lt_prog_compiler_pic='-fpic'
8177 lt_prog_compiler_static='-Bstatic'
8178 ;;
8179 ccc*)
8180 lt_prog_compiler_wl='-Wl,'
8181 # All Alpha code is PIC.
8182 lt_prog_compiler_static='-non_shared'
8183 ;;
8184 xl* | bgxl* | bgf* | mpixl*)
8185 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8186 lt_prog_compiler_wl='-Wl,'
8187 lt_prog_compiler_pic='-qpic'
8188 lt_prog_compiler_static='-qstaticlink'
8189 ;;
8190 *)
8191 case `$CC -V 2>&1 | sed 5q` in
8192 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8193 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8194 lt_prog_compiler_pic='-KPIC'
8195 lt_prog_compiler_static='-Bstatic'
8196 lt_prog_compiler_wl=''
8197 ;;
8198 *Sun\ F* | *Sun*Fortran*)
8199 lt_prog_compiler_pic='-KPIC'
8200 lt_prog_compiler_static='-Bstatic'
8201 lt_prog_compiler_wl='-Qoption ld '
8202 ;;
8203 *Sun\ C*)
8204 # Sun C 5.9
8205 lt_prog_compiler_pic='-KPIC'
8206 lt_prog_compiler_static='-Bstatic'
8207 lt_prog_compiler_wl='-Wl,'
8208 ;;
8209 *Intel*\ [CF]*Compiler*)
8210 lt_prog_compiler_wl='-Wl,'
8211 lt_prog_compiler_pic='-fPIC'
8212 lt_prog_compiler_static='-static'
8213 ;;
8214 *Portland\ Group*)
8215 lt_prog_compiler_wl='-Wl,'
8216 lt_prog_compiler_pic='-fpic'
8217 lt_prog_compiler_static='-Bstatic'
8218 ;;
8219 esac
8220 ;;
8221 esac
8222 ;;
8223
8224 newsos6)
8225 lt_prog_compiler_pic='-KPIC'
8226 lt_prog_compiler_static='-Bstatic'
8227 ;;
8228
8229 *nto* | *qnx*)
8230 # QNX uses GNU C++, but need to define -shared option too, otherwise
8231 # it will coredump.
8232 lt_prog_compiler_pic='-fPIC -shared'
8233 ;;
8234
8235 osf3* | osf4* | osf5*)
8236 lt_prog_compiler_wl='-Wl,'
8237 # All OSF/1 code is PIC.
8238 lt_prog_compiler_static='-non_shared'
8239 ;;
8240
8241 rdos*)
8242 lt_prog_compiler_static='-non_shared'
8243 ;;
8244
8245 solaris*)
8246 lt_prog_compiler_pic='-KPIC'
8247 lt_prog_compiler_static='-Bstatic'
8248 case $cc_basename in
8249 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8250 lt_prog_compiler_wl='-Qoption ld ';;
8251 *)
8252 lt_prog_compiler_wl='-Wl,';;
8253 esac
8254 ;;
8255
8256 sunos4*)
8257 lt_prog_compiler_wl='-Qoption ld '
8258 lt_prog_compiler_pic='-PIC'
8259 lt_prog_compiler_static='-Bstatic'
8260 ;;
8261
8262 sysv4 | sysv4.2uw2* | sysv4.3*)
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_pic='-KPIC'
8265 lt_prog_compiler_static='-Bstatic'
8266 ;;
8267
8268 sysv4*MP*)
8269 if test -d /usr/nec ;then
8270 lt_prog_compiler_pic='-Kconform_pic'
8271 lt_prog_compiler_static='-Bstatic'
8272 fi
8273 ;;
8274
8275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8276 lt_prog_compiler_wl='-Wl,'
8277 lt_prog_compiler_pic='-KPIC'
8278 lt_prog_compiler_static='-Bstatic'
8279 ;;
8280
8281 unicos*)
8282 lt_prog_compiler_wl='-Wl,'
8283 lt_prog_compiler_can_build_shared=no
8284 ;;
8285
8286 uts4*)
8287 lt_prog_compiler_pic='-pic'
8288 lt_prog_compiler_static='-Bstatic'
8289 ;;
8290
8291 *)
8292 lt_prog_compiler_can_build_shared=no
8293 ;;
8294 esac
8295 fi
8296
8297 case $host_os in
8298 # For platforms which do not support PIC, -DPIC is meaningless:
8299 *djgpp*)
8300 lt_prog_compiler_pic=
8301 ;;
8302 *)
8303 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8304 ;;
8305 esac
8306
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8308 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8309 if ${lt_cv_prog_compiler_pic+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8315 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8316 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8317
8318 #
8319 # Check to make sure the PIC flag actually works.
8320 #
8321 if test -n "$lt_prog_compiler_pic"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8323 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8324 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 lt_cv_prog_compiler_pic_works=no
8328 ac_outfile=conftest.$ac_objext
8329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8330 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8331 # Insert the option either (1) after the last *FLAGS variable, or
8332 # (2) before a word containing "conftest.", or (3) at the end.
8333 # Note that $ac_compile itself does not contain backslashes and begins
8334 # with a dollar sign (not a hyphen), so the echo should work correctly.
8335 # The option is referenced via a variable to avoid confusing sed.
8336 lt_compile=`echo "$ac_compile" | $SED \
8337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8339 -e 's:$: $lt_compiler_flag:'`
8340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8341 (eval "$lt_compile" 2>conftest.err)
8342 ac_status=$?
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 if (exit $ac_status) && test -s "$ac_outfile"; then
8346 # The compiler can only warn and ignore the option if not recognized
8347 # So say no if there are warnings other than the usual output.
8348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8351 lt_cv_prog_compiler_pic_works=yes
8352 fi
8353 fi
8354 $RM conftest*
8355
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8358 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8359
8360 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8361 case $lt_prog_compiler_pic in
8362 "" | " "*) ;;
8363 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8364 esac
8365 else
8366 lt_prog_compiler_pic=
8367 lt_prog_compiler_can_build_shared=no
8368 fi
8369
8370 fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382 #
8383 # Check to make sure the static flag actually works.
8384 #
8385 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8387 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8388 if ${lt_cv_prog_compiler_static_works+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 lt_cv_prog_compiler_static_works=no
8392 save_LDFLAGS="$LDFLAGS"
8393 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8394 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8395 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8396 # The linker can only warn and ignore the option if not recognized
8397 # So say no if there are warnings
8398 if test -s conftest.err; then
8399 # Append any errors to the config.log.
8400 cat conftest.err 1>&5
8401 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8403 if diff conftest.exp conftest.er2 >/dev/null; then
8404 lt_cv_prog_compiler_static_works=yes
8405 fi
8406 else
8407 lt_cv_prog_compiler_static_works=yes
8408 fi
8409 fi
8410 $RM -r conftest*
8411 LDFLAGS="$save_LDFLAGS"
8412
8413 fi
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8415 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8416
8417 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8418 :
8419 else
8420 lt_prog_compiler_static=
8421 fi
8422
8423
8424
8425
8426
8427
8428
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8431 if ${lt_cv_prog_compiler_c_o+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 lt_cv_prog_compiler_c_o=no
8435 $RM -r conftest 2>/dev/null
8436 mkdir conftest
8437 cd conftest
8438 mkdir out
8439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8440
8441 lt_compiler_flag="-o out/conftest2.$ac_objext"
8442 # Insert the option either (1) after the last *FLAGS variable, or
8443 # (2) before a word containing "conftest.", or (3) at the end.
8444 # Note that $ac_compile itself does not contain backslashes and begins
8445 # with a dollar sign (not a hyphen), so the echo should work correctly.
8446 lt_compile=`echo "$ac_compile" | $SED \
8447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8449 -e 's:$: $lt_compiler_flag:'`
8450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8451 (eval "$lt_compile" 2>out/conftest.err)
8452 ac_status=$?
8453 cat out/conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8456 then
8457 # The compiler can only warn and ignore the option if not recognized
8458 # So say no if there are warnings
8459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8462 lt_cv_prog_compiler_c_o=yes
8463 fi
8464 fi
8465 chmod u+w . 2>&5
8466 $RM conftest*
8467 # SGI C++ compiler will create directory out/ii_files/ for
8468 # template instantiation
8469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8470 $RM out/* && rmdir out
8471 cd ..
8472 $RM -r conftest
8473 $RM conftest*
8474
8475 fi
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8477 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8478
8479
8480
8481
8482
8483
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8485 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8486 if ${lt_cv_prog_compiler_c_o+:} false; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 lt_cv_prog_compiler_c_o=no
8490 $RM -r conftest 2>/dev/null
8491 mkdir conftest
8492 cd conftest
8493 mkdir out
8494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8495
8496 lt_compiler_flag="-o out/conftest2.$ac_objext"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 lt_compile=`echo "$ac_compile" | $SED \
8502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8504 -e 's:$: $lt_compiler_flag:'`
8505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8506 (eval "$lt_compile" 2>out/conftest.err)
8507 ac_status=$?
8508 cat out/conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8511 then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings
8514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8517 lt_cv_prog_compiler_c_o=yes
8518 fi
8519 fi
8520 chmod u+w . 2>&5
8521 $RM conftest*
8522 # SGI C++ compiler will create directory out/ii_files/ for
8523 # template instantiation
8524 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8525 $RM out/* && rmdir out
8526 cd ..
8527 $RM -r conftest
8528 $RM conftest*
8529
8530 fi
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8532 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8533
8534
8535
8536
8537 hard_links="nottested"
8538 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8539 # do not overwrite the value of need_locks provided by the user
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8541 $as_echo_n "checking if we can lock with hard links... " >&6; }
8542 hard_links=yes
8543 $RM conftest*
8544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8545 touch conftest.a
8546 ln conftest.a conftest.b 2>&5 || hard_links=no
8547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8549 $as_echo "$hard_links" >&6; }
8550 if test "$hard_links" = no; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8552 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8553 need_locks=warn
8554 fi
8555 else
8556 need_locks=no
8557 fi
8558
8559
8560
8561
8562
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8565 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8566
8567 runpath_var=
8568 allow_undefined_flag=
8569 always_export_symbols=no
8570 archive_cmds=
8571 archive_expsym_cmds=
8572 compiler_needs_object=no
8573 enable_shared_with_static_runtimes=no
8574 export_dynamic_flag_spec=
8575 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8576 hardcode_automatic=no
8577 hardcode_direct=no
8578 hardcode_direct_absolute=no
8579 hardcode_libdir_flag_spec=
8580 hardcode_libdir_separator=
8581 hardcode_minus_L=no
8582 hardcode_shlibpath_var=unsupported
8583 inherit_rpath=no
8584 link_all_deplibs=unknown
8585 module_cmds=
8586 module_expsym_cmds=
8587 old_archive_from_new_cmds=
8588 old_archive_from_expsyms_cmds=
8589 thread_safe_flag_spec=
8590 whole_archive_flag_spec=
8591 # include_expsyms should be a list of space-separated symbols to be *always*
8592 # included in the symbol list
8593 include_expsyms=
8594 # exclude_expsyms can be an extended regexp of symbols to exclude
8595 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8596 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8597 # as well as any symbol that contains `d'.
8598 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8600 # platforms (ab)use it in PIC code, but their linkers get confused if
8601 # the symbol is explicitly referenced. Since portable code cannot
8602 # rely on this symbol name, it's probably fine to never include it in
8603 # preloaded symbol tables.
8604 # Exclude shared library initialization/finalization symbols.
8605 extract_expsyms_cmds=
8606
8607 case $host_os in
8608 cygwin* | mingw* | pw32* | cegcc*)
8609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8610 # When not using gcc, we currently assume that we are using
8611 # Microsoft Visual C++.
8612 if test "$GCC" != yes; then
8613 with_gnu_ld=no
8614 fi
8615 ;;
8616 interix*)
8617 # we just hope/assume this is gcc and not c89 (= MSVC++)
8618 with_gnu_ld=yes
8619 ;;
8620 openbsd*)
8621 with_gnu_ld=no
8622 ;;
8623 linux* | k*bsd*-gnu | gnu*)
8624 link_all_deplibs=no
8625 ;;
8626 esac
8627
8628 ld_shlibs=yes
8629
8630 # On some targets, GNU ld is compatible enough with the native linker
8631 # that we're better off using the native interface for both.
8632 lt_use_gnu_ld_interface=no
8633 if test "$with_gnu_ld" = yes; then
8634 case $host_os in
8635 aix*)
8636 # The AIX port of GNU ld has always aspired to compatibility
8637 # with the native linker. However, as the warning in the GNU ld
8638 # block says, versions before 2.19.5* couldn't really create working
8639 # shared libraries, regardless of the interface used.
8640 case `$LD -v 2>&1` in
8641 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8642 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8643 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8644 *)
8645 lt_use_gnu_ld_interface=yes
8646 ;;
8647 esac
8648 ;;
8649 *)
8650 lt_use_gnu_ld_interface=yes
8651 ;;
8652 esac
8653 fi
8654
8655 if test "$lt_use_gnu_ld_interface" = yes; then
8656 # If archive_cmds runs LD, not CC, wlarc should be empty
8657 wlarc='${wl}'
8658
8659 # Set some defaults for GNU ld with shared library support. These
8660 # are reset later if shared libraries are not supported. Putting them
8661 # here allows them to be overridden if necessary.
8662 runpath_var=LD_RUN_PATH
8663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8664 export_dynamic_flag_spec='${wl}--export-dynamic'
8665 # ancient GNU ld didn't support --whole-archive et. al.
8666 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8667 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8668 else
8669 whole_archive_flag_spec=
8670 fi
8671 supports_anon_versioning=no
8672 case `$LD -v 2>&1` in
8673 *GNU\ gold*) supports_anon_versioning=yes ;;
8674 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8675 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8676 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8677 *\ 2.11.*) ;; # other 2.11 versions
8678 *) supports_anon_versioning=yes ;;
8679 esac
8680
8681 # See if GNU ld supports shared libraries.
8682 case $host_os in
8683 aix[3-9]*)
8684 # On AIX/PPC, the GNU linker is very broken
8685 if test "$host_cpu" != ia64; then
8686 ld_shlibs=no
8687 cat <<_LT_EOF 1>&2
8688
8689 *** Warning: the GNU linker, at least up to release 2.19, is reported
8690 *** to be unable to reliably create shared libraries on AIX.
8691 *** Therefore, libtool is disabling shared libraries support. If you
8692 *** really care for shared libraries, you may want to install binutils
8693 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8694 *** You will then need to restart the configuration process.
8695
8696 _LT_EOF
8697 fi
8698 ;;
8699
8700 amigaos*)
8701 case $host_cpu in
8702 powerpc)
8703 # see comment about AmigaOS4 .so support
8704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705 archive_expsym_cmds=''
8706 ;;
8707 m68k)
8708 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)'
8709 hardcode_libdir_flag_spec='-L$libdir'
8710 hardcode_minus_L=yes
8711 ;;
8712 esac
8713 ;;
8714
8715 beos*)
8716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8717 allow_undefined_flag=unsupported
8718 # Joseph Beckenbach <[email protected]> says some releases of gcc
8719 # support --undefined. This deserves some investigation. FIXME
8720 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8721 else
8722 ld_shlibs=no
8723 fi
8724 ;;
8725
8726 cygwin* | mingw* | pw32* | cegcc*)
8727 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8728 # as there is no search path for DLLs.
8729 hardcode_libdir_flag_spec='-L$libdir'
8730 export_dynamic_flag_spec='${wl}--export-all-symbols'
8731 allow_undefined_flag=unsupported
8732 always_export_symbols=no
8733 enable_shared_with_static_runtimes=yes
8734 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'
8735 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8736
8737 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8739 # If the export-symbols file already is a .def file (1st line
8740 # is EXPORTS), use it as is; otherwise, prepend...
8741 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8742 cp $export_symbols $output_objdir/$soname.def;
8743 else
8744 echo EXPORTS > $output_objdir/$soname.def;
8745 cat $export_symbols >> $output_objdir/$soname.def;
8746 fi~
8747 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8748 else
8749 ld_shlibs=no
8750 fi
8751 ;;
8752
8753 haiku*)
8754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755 link_all_deplibs=yes
8756 ;;
8757
8758 interix[3-9]*)
8759 hardcode_direct=no
8760 hardcode_shlibpath_var=no
8761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8762 export_dynamic_flag_spec='${wl}-E'
8763 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8764 # Instead, shared libraries are loaded at an image base (0x10000000 by
8765 # default) and relocated if they conflict, which is a slow very memory
8766 # consuming and fragmenting process. To avoid this, we pick a random,
8767 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8768 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8769 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8770 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'
8771 ;;
8772
8773 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8774 tmp_diet=no
8775 if test "$host_os" = linux-dietlibc; then
8776 case $cc_basename in
8777 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8778 esac
8779 fi
8780 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8781 && test "$tmp_diet" = no
8782 then
8783 tmp_addflag=' $pic_flag'
8784 tmp_sharedflag='-shared'
8785 case $cc_basename,$host_cpu in
8786 pgcc*) # Portland Group C compiler
8787 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'
8788 tmp_addflag=' $pic_flag'
8789 ;;
8790 pgf77* | pgf90* | pgf95* | pgfortran*)
8791 # Portland Group f77 and f90 compilers
8792 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'
8793 tmp_addflag=' $pic_flag -Mnomain' ;;
8794 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8795 tmp_addflag=' -i_dynamic' ;;
8796 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8797 tmp_addflag=' -i_dynamic -nofor_main' ;;
8798 ifc* | ifort*) # Intel Fortran compiler
8799 tmp_addflag=' -nofor_main' ;;
8800 lf95*) # Lahey Fortran 8.1
8801 whole_archive_flag_spec=
8802 tmp_sharedflag='--shared' ;;
8803 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8804 tmp_sharedflag='-qmkshrobj'
8805 tmp_addflag= ;;
8806 nvcc*) # Cuda Compiler Driver 2.2
8807 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'
8808 compiler_needs_object=yes
8809 ;;
8810 esac
8811 case `$CC -V 2>&1 | sed 5q` in
8812 *Sun\ C*) # Sun C 5.9
8813 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'
8814 compiler_needs_object=yes
8815 tmp_sharedflag='-G' ;;
8816 *Sun\ F*) # Sun Fortran 8.3
8817 tmp_sharedflag='-G' ;;
8818 esac
8819 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8820
8821 if test "x$supports_anon_versioning" = xyes; then
8822 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8823 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8824 echo "local: *; };" >> $output_objdir/$libname.ver~
8825 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8826 fi
8827
8828 case $cc_basename in
8829 xlf* | bgf* | bgxlf* | mpixlf*)
8830 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8831 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8834 if test "x$supports_anon_versioning" = xyes; then
8835 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8836 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8837 echo "local: *; };" >> $output_objdir/$libname.ver~
8838 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8839 fi
8840 ;;
8841 esac
8842 else
8843 ld_shlibs=no
8844 fi
8845 ;;
8846
8847 netbsd* | netbsdelf*-gnu)
8848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8849 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8850 wlarc=
8851 else
8852 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8853 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8854 fi
8855 ;;
8856
8857 solaris*)
8858 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8859 ld_shlibs=no
8860 cat <<_LT_EOF 1>&2
8861
8862 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8863 *** create shared libraries on Solaris systems. Therefore, libtool
8864 *** is disabling shared libraries support. We urge you to upgrade GNU
8865 *** binutils to release 2.9.1 or newer. Another option is to modify
8866 *** your PATH or compiler configuration so that the native linker is
8867 *** used, and then restart.
8868
8869 _LT_EOF
8870 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8871 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8872 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8873 else
8874 ld_shlibs=no
8875 fi
8876 ;;
8877
8878 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8879 case `$LD -v 2>&1` in
8880 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8881 ld_shlibs=no
8882 cat <<_LT_EOF 1>&2
8883
8884 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8885 *** reliably create shared libraries on SCO systems. Therefore, libtool
8886 *** is disabling shared libraries support. We urge you to upgrade GNU
8887 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8888 *** your PATH or compiler configuration so that the native linker is
8889 *** used, and then restart.
8890
8891 _LT_EOF
8892 ;;
8893 *)
8894 # For security reasons, it is highly recommended that you always
8895 # use absolute paths for naming shared libraries, and exclude the
8896 # DT_RUNPATH tag from executables and libraries. But doing so
8897 # requires that you compile everything twice, which is a pain.
8898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8902 else
8903 ld_shlibs=no
8904 fi
8905 ;;
8906 esac
8907 ;;
8908
8909 sunos4*)
8910 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8911 wlarc=
8912 hardcode_direct=yes
8913 hardcode_shlibpath_var=no
8914 ;;
8915
8916 *)
8917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8918 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8919 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8920 else
8921 ld_shlibs=no
8922 fi
8923 ;;
8924 esac
8925
8926 if test "$ld_shlibs" = no; then
8927 runpath_var=
8928 hardcode_libdir_flag_spec=
8929 export_dynamic_flag_spec=
8930 whole_archive_flag_spec=
8931 fi
8932 else
8933 # PORTME fill in a description of your system's linker (not GNU ld)
8934 case $host_os in
8935 aix3*)
8936 allow_undefined_flag=unsupported
8937 always_export_symbols=yes
8938 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'
8939 # Note: this linker hardcodes the directories in LIBPATH if there
8940 # are no directories specified by -L.
8941 hardcode_minus_L=yes
8942 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8943 # Neither direct hardcoding nor static linking is supported with a
8944 # broken collect2.
8945 hardcode_direct=unsupported
8946 fi
8947 ;;
8948
8949 aix[4-9]*)
8950 if test "$host_cpu" = ia64; then
8951 # On IA64, the linker does run time linking by default, so we don't
8952 # have to do anything special.
8953 aix_use_runtimelinking=no
8954 exp_sym_flag='-Bexport'
8955 no_entry_flag=""
8956 else
8957 # If we're using GNU nm, then we don't want the "-C" option.
8958 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8959 # Also, AIX nm treats weak defined symbols like other global
8960 # defined symbols, whereas GNU nm marks them as "W".
8961 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8962 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8963 else
8964 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8965 fi
8966 aix_use_runtimelinking=no
8967
8968 # Test if we are trying to use run time linking or normal
8969 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8970 # need to do runtime linking.
8971 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8972 for ld_flag in $LDFLAGS; do
8973 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8974 aix_use_runtimelinking=yes
8975 break
8976 fi
8977 done
8978 ;;
8979 esac
8980
8981 exp_sym_flag='-bexport'
8982 no_entry_flag='-bnoentry'
8983 fi
8984
8985 # When large executables or shared objects are built, AIX ld can
8986 # have problems creating the table of contents. If linking a library
8987 # or program results in "error TOC overflow" add -mminimal-toc to
8988 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8989 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8990
8991 archive_cmds=''
8992 hardcode_direct=yes
8993 hardcode_direct_absolute=yes
8994 hardcode_libdir_separator=':'
8995 link_all_deplibs=yes
8996 file_list_spec='${wl}-f,'
8997
8998 if test "$GCC" = yes; then
8999 case $host_os in aix4.[012]|aix4.[012].*)
9000 # We only want to do this on AIX 4.2 and lower, the check
9001 # below for broken collect2 doesn't work under 4.3+
9002 collect2name=`${CC} -print-prog-name=collect2`
9003 if test -f "$collect2name" &&
9004 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9005 then
9006 # We have reworked collect2
9007 :
9008 else
9009 # We have old collect2
9010 hardcode_direct=unsupported
9011 # It fails to find uninstalled libraries when the uninstalled
9012 # path is not listed in the libpath. Setting hardcode_minus_L
9013 # to unsupported forces relinking
9014 hardcode_minus_L=yes
9015 hardcode_libdir_flag_spec='-L$libdir'
9016 hardcode_libdir_separator=
9017 fi
9018 ;;
9019 esac
9020 shared_flag='-shared'
9021 if test "$aix_use_runtimelinking" = yes; then
9022 shared_flag="$shared_flag "'${wl}-G'
9023 fi
9024 link_all_deplibs=no
9025 else
9026 # not using gcc
9027 if test "$host_cpu" = ia64; then
9028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9029 # chokes on -Wl,-G. The following line is correct:
9030 shared_flag='-G'
9031 else
9032 if test "$aix_use_runtimelinking" = yes; then
9033 shared_flag='${wl}-G'
9034 else
9035 shared_flag='${wl}-bM:SRE'
9036 fi
9037 fi
9038 fi
9039
9040 export_dynamic_flag_spec='${wl}-bexpall'
9041 # It seems that -bexpall does not export symbols beginning with
9042 # underscore (_), so it is better to generate a list of symbols to export.
9043 always_export_symbols=yes
9044 if test "$aix_use_runtimelinking" = yes; then
9045 # Warning - without using the other runtime loading flags (-brtl),
9046 # -berok will link without error, but may produce a broken library.
9047 allow_undefined_flag='-berok'
9048 # Determine the default libpath from the value encoded in an
9049 # empty executable.
9050 if test "${lt_cv_aix_libpath+set}" = set; then
9051 aix_libpath=$lt_cv_aix_libpath
9052 else
9053 if ${lt_cv_aix_libpath_+:} false; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058
9059 int
9060 main ()
9061 {
9062
9063 ;
9064 return 0;
9065 }
9066 _ACEOF
9067 if ac_fn_c_try_link "$LINENO"; then :
9068
9069 lt_aix_libpath_sed='
9070 /Import File Strings/,/^$/ {
9071 /^0/ {
9072 s/^0 *\([^ ]*\) *$/\1/
9073 p
9074 }
9075 }'
9076 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9077 # Check for a 64-bit object if we didn't find anything.
9078 if test -z "$lt_cv_aix_libpath_"; then
9079 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9080 fi
9081 fi
9082 rm -f core conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
9084 if test -z "$lt_cv_aix_libpath_"; then
9085 lt_cv_aix_libpath_="/usr/lib:/lib"
9086 fi
9087
9088 fi
9089
9090 aix_libpath=$lt_cv_aix_libpath_
9091 fi
9092
9093 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9094 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9095 else
9096 if test "$host_cpu" = ia64; then
9097 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9098 allow_undefined_flag="-z nodefs"
9099 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"
9100 else
9101 # Determine the default libpath from the value encoded in an
9102 # empty executable.
9103 if test "${lt_cv_aix_libpath+set}" = set; then
9104 aix_libpath=$lt_cv_aix_libpath
9105 else
9106 if ${lt_cv_aix_libpath_+:} false; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111
9112 int
9113 main ()
9114 {
9115
9116 ;
9117 return 0;
9118 }
9119 _ACEOF
9120 if ac_fn_c_try_link "$LINENO"; then :
9121
9122 lt_aix_libpath_sed='
9123 /Import File Strings/,/^$/ {
9124 /^0/ {
9125 s/^0 *\([^ ]*\) *$/\1/
9126 p
9127 }
9128 }'
9129 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9130 # Check for a 64-bit object if we didn't find anything.
9131 if test -z "$lt_cv_aix_libpath_"; then
9132 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9133 fi
9134 fi
9135 rm -f core conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
9137 if test -z "$lt_cv_aix_libpath_"; then
9138 lt_cv_aix_libpath_="/usr/lib:/lib"
9139 fi
9140
9141 fi
9142
9143 aix_libpath=$lt_cv_aix_libpath_
9144 fi
9145
9146 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9147 # Warning - without using the other run time loading flags,
9148 # -berok will link without error, but may produce a broken library.
9149 no_undefined_flag=' ${wl}-bernotok'
9150 allow_undefined_flag=' ${wl}-berok'
9151 if test "$with_gnu_ld" = yes; then
9152 # We only use this code for GNU lds that support --whole-archive.
9153 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9154 else
9155 # Exported symbols can be pulled into shared objects from archives
9156 whole_archive_flag_spec='$convenience'
9157 fi
9158 archive_cmds_need_lc=yes
9159 # This is similar to how AIX traditionally builds its shared libraries.
9160 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9161 fi
9162 fi
9163 ;;
9164
9165 amigaos*)
9166 case $host_cpu in
9167 powerpc)
9168 # see comment about AmigaOS4 .so support
9169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9170 archive_expsym_cmds=''
9171 ;;
9172 m68k)
9173 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)'
9174 hardcode_libdir_flag_spec='-L$libdir'
9175 hardcode_minus_L=yes
9176 ;;
9177 esac
9178 ;;
9179
9180 bsdi[45]*)
9181 export_dynamic_flag_spec=-rdynamic
9182 ;;
9183
9184 cygwin* | mingw* | pw32* | cegcc*)
9185 # When not using gcc, we currently assume that we are using
9186 # Microsoft Visual C++.
9187 # hardcode_libdir_flag_spec is actually meaningless, as there is
9188 # no search path for DLLs.
9189 case $cc_basename in
9190 cl*)
9191 # Native MSVC
9192 hardcode_libdir_flag_spec=' '
9193 allow_undefined_flag=unsupported
9194 always_export_symbols=yes
9195 file_list_spec='@'
9196 # Tell ltmain to make .lib files, not .a files.
9197 libext=lib
9198 # Tell ltmain to make .dll files, not .so files.
9199 shrext_cmds=".dll"
9200 # FIXME: Setting linknames here is a bad hack.
9201 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9202 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9203 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9204 else
9205 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9206 fi~
9207 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9208 linknames='
9209 # The linker will not automatically build a static lib if we build a DLL.
9210 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9211 enable_shared_with_static_runtimes=yes
9212 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9213 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9214 # Don't use ranlib
9215 old_postinstall_cmds='chmod 644 $oldlib'
9216 postlink_cmds='lt_outputfile="@OUTPUT@"~
9217 lt_tool_outputfile="@TOOL_OUTPUT@"~
9218 case $lt_outputfile in
9219 *.exe|*.EXE) ;;
9220 *)
9221 lt_outputfile="$lt_outputfile.exe"
9222 lt_tool_outputfile="$lt_tool_outputfile.exe"
9223 ;;
9224 esac~
9225 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9226 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9227 $RM "$lt_outputfile.manifest";
9228 fi'
9229 ;;
9230 *)
9231 # Assume MSVC wrapper
9232 hardcode_libdir_flag_spec=' '
9233 allow_undefined_flag=unsupported
9234 # Tell ltmain to make .lib files, not .a files.
9235 libext=lib
9236 # Tell ltmain to make .dll files, not .so files.
9237 shrext_cmds=".dll"
9238 # FIXME: Setting linknames here is a bad hack.
9239 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9240 # The linker will automatically build a .lib file if we build a DLL.
9241 old_archive_from_new_cmds='true'
9242 # FIXME: Should let the user specify the lib program.
9243 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9244 enable_shared_with_static_runtimes=yes
9245 ;;
9246 esac
9247 ;;
9248
9249 darwin* | rhapsody*)
9250
9251
9252 archive_cmds_need_lc=no
9253 hardcode_direct=no
9254 hardcode_automatic=yes
9255 hardcode_shlibpath_var=unsupported
9256 if test "$lt_cv_ld_force_load" = "yes"; then
9257 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\"`'
9258
9259 else
9260 whole_archive_flag_spec=''
9261 fi
9262 link_all_deplibs=yes
9263 allow_undefined_flag="$_lt_dar_allow_undefined"
9264 case $cc_basename in
9265 ifort*) _lt_dar_can_shared=yes ;;
9266 *) _lt_dar_can_shared=$GCC ;;
9267 esac
9268 if test "$_lt_dar_can_shared" = "yes"; then
9269 output_verbose_link_cmd=func_echo_all
9270 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9271 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9272 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}"
9273 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}"
9274
9275 else
9276 ld_shlibs=no
9277 fi
9278
9279 ;;
9280
9281 dgux*)
9282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9283 hardcode_libdir_flag_spec='-L$libdir'
9284 hardcode_shlibpath_var=no
9285 ;;
9286
9287 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9288 # support. Future versions do this automatically, but an explicit c++rt0.o
9289 # does not break anything, and helps significantly (at the cost of a little
9290 # extra space).
9291 freebsd2.2*)
9292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9293 hardcode_libdir_flag_spec='-R$libdir'
9294 hardcode_direct=yes
9295 hardcode_shlibpath_var=no
9296 ;;
9297
9298 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9299 freebsd2.*)
9300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9301 hardcode_direct=yes
9302 hardcode_minus_L=yes
9303 hardcode_shlibpath_var=no
9304 ;;
9305
9306 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9307 freebsd* | dragonfly*)
9308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9309 hardcode_libdir_flag_spec='-R$libdir'
9310 hardcode_direct=yes
9311 hardcode_shlibpath_var=no
9312 ;;
9313
9314 hpux9*)
9315 if test "$GCC" = yes; then
9316 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9317 else
9318 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9319 fi
9320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9321 hardcode_libdir_separator=:
9322 hardcode_direct=yes
9323
9324 # hardcode_minus_L: Not really in the search PATH,
9325 # but as the default location of the library.
9326 hardcode_minus_L=yes
9327 export_dynamic_flag_spec='${wl}-E'
9328 ;;
9329
9330 hpux10*)
9331 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9332 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9333 else
9334 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9335 fi
9336 if test "$with_gnu_ld" = no; then
9337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9338 hardcode_libdir_separator=:
9339 hardcode_direct=yes
9340 hardcode_direct_absolute=yes
9341 export_dynamic_flag_spec='${wl}-E'
9342 # hardcode_minus_L: Not really in the search PATH,
9343 # but as the default location of the library.
9344 hardcode_minus_L=yes
9345 fi
9346 ;;
9347
9348 hpux11*)
9349 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9350 case $host_cpu in
9351 hppa*64*)
9352 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 ;;
9354 ia64*)
9355 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9356 ;;
9357 *)
9358 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9359 ;;
9360 esac
9361 else
9362 case $host_cpu in
9363 hppa*64*)
9364 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 ;;
9366 ia64*)
9367 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9368 ;;
9369 *)
9370
9371 # Older versions of the 11.00 compiler do not understand -b yet
9372 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9374 $as_echo_n "checking if $CC understands -b... " >&6; }
9375 if ${lt_cv_prog_compiler__b+:} false; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 lt_cv_prog_compiler__b=no
9379 save_LDFLAGS="$LDFLAGS"
9380 LDFLAGS="$LDFLAGS -b"
9381 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9383 # The linker can only warn and ignore the option if not recognized
9384 # So say no if there are warnings
9385 if test -s conftest.err; then
9386 # Append any errors to the config.log.
9387 cat conftest.err 1>&5
9388 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9390 if diff conftest.exp conftest.er2 >/dev/null; then
9391 lt_cv_prog_compiler__b=yes
9392 fi
9393 else
9394 lt_cv_prog_compiler__b=yes
9395 fi
9396 fi
9397 $RM -r conftest*
9398 LDFLAGS="$save_LDFLAGS"
9399
9400 fi
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9402 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9403
9404 if test x"$lt_cv_prog_compiler__b" = xyes; then
9405 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9406 else
9407 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9408 fi
9409
9410 ;;
9411 esac
9412 fi
9413 if test "$with_gnu_ld" = no; then
9414 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9415 hardcode_libdir_separator=:
9416
9417 case $host_cpu in
9418 hppa*64*|ia64*)
9419 hardcode_direct=no
9420 hardcode_shlibpath_var=no
9421 ;;
9422 *)
9423 hardcode_direct=yes
9424 hardcode_direct_absolute=yes
9425 export_dynamic_flag_spec='${wl}-E'
9426
9427 # hardcode_minus_L: Not really in the search PATH,
9428 # but as the default location of the library.
9429 hardcode_minus_L=yes
9430 ;;
9431 esac
9432 fi
9433 ;;
9434
9435 irix5* | irix6* | nonstopux*)
9436 if test "$GCC" = yes; then
9437 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'
9438 # Try to use the -exported_symbol ld option, if it does not
9439 # work, assume that -exports_file does not work either and
9440 # implicitly export all symbols.
9441 # This should be the same for all languages, so no per-tag cache variable.
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9443 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9444 if ${lt_cv_irix_exported_symbol+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 save_LDFLAGS="$LDFLAGS"
9448 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9451 int foo (void) { return 0; }
9452 _ACEOF
9453 if ac_fn_c_try_link "$LINENO"; then :
9454 lt_cv_irix_exported_symbol=yes
9455 else
9456 lt_cv_irix_exported_symbol=no
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460 LDFLAGS="$save_LDFLAGS"
9461 fi
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9463 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9464 if test "$lt_cv_irix_exported_symbol" = yes; then
9465 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'
9466 fi
9467 else
9468 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'
9469 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'
9470 fi
9471 archive_cmds_need_lc='no'
9472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9473 hardcode_libdir_separator=:
9474 inherit_rpath=yes
9475 link_all_deplibs=yes
9476 ;;
9477
9478 netbsd* | netbsdelf*-gnu)
9479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9481 else
9482 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9483 fi
9484 hardcode_libdir_flag_spec='-R$libdir'
9485 hardcode_direct=yes
9486 hardcode_shlibpath_var=no
9487 ;;
9488
9489 newsos6)
9490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9491 hardcode_direct=yes
9492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493 hardcode_libdir_separator=:
9494 hardcode_shlibpath_var=no
9495 ;;
9496
9497 *nto* | *qnx*)
9498 ;;
9499
9500 openbsd*)
9501 if test -f /usr/libexec/ld.so; then
9502 hardcode_direct=yes
9503 hardcode_shlibpath_var=no
9504 hardcode_direct_absolute=yes
9505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9506 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9508 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9509 export_dynamic_flag_spec='${wl}-E'
9510 else
9511 case $host_os in
9512 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9514 hardcode_libdir_flag_spec='-R$libdir'
9515 ;;
9516 *)
9517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9519 ;;
9520 esac
9521 fi
9522 else
9523 ld_shlibs=no
9524 fi
9525 ;;
9526
9527 os2*)
9528 hardcode_libdir_flag_spec='-L$libdir'
9529 hardcode_minus_L=yes
9530 allow_undefined_flag=unsupported
9531 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9532 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9533 ;;
9534
9535 osf3*)
9536 if test "$GCC" = yes; then
9537 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9538 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'
9539 else
9540 allow_undefined_flag=' -expect_unresolved \*'
9541 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'
9542 fi
9543 archive_cmds_need_lc='no'
9544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545 hardcode_libdir_separator=:
9546 ;;
9547
9548 osf4* | osf5*) # as osf3* with the addition of -msym flag
9549 if test "$GCC" = yes; then
9550 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9551 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'
9552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9553 else
9554 allow_undefined_flag=' -expect_unresolved \*'
9555 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'
9556 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~
9557 $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'
9558
9559 # Both c and cxx compiler support -rpath directly
9560 hardcode_libdir_flag_spec='-rpath $libdir'
9561 fi
9562 archive_cmds_need_lc='no'
9563 hardcode_libdir_separator=:
9564 ;;
9565
9566 solaris*)
9567 no_undefined_flag=' -z defs'
9568 if test "$GCC" = yes; then
9569 wlarc='${wl}'
9570 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9571 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9572 $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'
9573 else
9574 case `$CC -V 2>&1` in
9575 *"Compilers 5.0"*)
9576 wlarc=''
9577 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9580 ;;
9581 *)
9582 wlarc='${wl}'
9583 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9585 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9586 ;;
9587 esac
9588 fi
9589 hardcode_libdir_flag_spec='-R$libdir'
9590 hardcode_shlibpath_var=no
9591 case $host_os in
9592 solaris2.[0-5] | solaris2.[0-5].*) ;;
9593 *)
9594 # The compiler driver will combine and reorder linker options,
9595 # but understands `-z linker_flag'. GCC discards it without `$wl',
9596 # but is careful enough not to reorder.
9597 # Supported since Solaris 2.6 (maybe 2.5.1?)
9598 if test "$GCC" = yes; then
9599 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9600 else
9601 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9602 fi
9603 ;;
9604 esac
9605 link_all_deplibs=yes
9606 ;;
9607
9608 sunos4*)
9609 if test "x$host_vendor" = xsequent; then
9610 # Use $CC to link under sequent, because it throws in some extra .o
9611 # files that make .init and .fini sections work.
9612 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9613 else
9614 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9615 fi
9616 hardcode_libdir_flag_spec='-L$libdir'
9617 hardcode_direct=yes
9618 hardcode_minus_L=yes
9619 hardcode_shlibpath_var=no
9620 ;;
9621
9622 sysv4)
9623 case $host_vendor in
9624 sni)
9625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626 hardcode_direct=yes # is this really true???
9627 ;;
9628 siemens)
9629 ## LD is ld it makes a PLAMLIB
9630 ## CC just makes a GrossModule.
9631 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9632 reload_cmds='$CC -r -o $output$reload_objs'
9633 hardcode_direct=no
9634 ;;
9635 motorola)
9636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9638 ;;
9639 esac
9640 runpath_var='LD_RUN_PATH'
9641 hardcode_shlibpath_var=no
9642 ;;
9643
9644 sysv4.3*)
9645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646 hardcode_shlibpath_var=no
9647 export_dynamic_flag_spec='-Bexport'
9648 ;;
9649
9650 sysv4*MP*)
9651 if test -d /usr/nec; then
9652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653 hardcode_shlibpath_var=no
9654 runpath_var=LD_RUN_PATH
9655 hardcode_runpath_var=yes
9656 ld_shlibs=yes
9657 fi
9658 ;;
9659
9660 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9661 no_undefined_flag='${wl}-z,text'
9662 archive_cmds_need_lc=no
9663 hardcode_shlibpath_var=no
9664 runpath_var='LD_RUN_PATH'
9665
9666 if test "$GCC" = yes; then
9667 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9668 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669 else
9670 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9671 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672 fi
9673 ;;
9674
9675 sysv5* | sco3.2v5* | sco5v6*)
9676 # Note: We can NOT use -z defs as we might desire, because we do not
9677 # link with -lc, and that would cause any symbols used from libc to
9678 # always be unresolved, which means just about no library would
9679 # ever link correctly. If we're not using GNU ld we use -z text
9680 # though, which does catch some bad symbols but isn't as heavy-handed
9681 # as -z defs.
9682 no_undefined_flag='${wl}-z,text'
9683 allow_undefined_flag='${wl}-z,nodefs'
9684 archive_cmds_need_lc=no
9685 hardcode_shlibpath_var=no
9686 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9687 hardcode_libdir_separator=':'
9688 link_all_deplibs=yes
9689 export_dynamic_flag_spec='${wl}-Bexport'
9690 runpath_var='LD_RUN_PATH'
9691
9692 if test "$GCC" = yes; then
9693 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 else
9696 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698 fi
9699 ;;
9700
9701 uts4*)
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_libdir_flag_spec='-L$libdir'
9704 hardcode_shlibpath_var=no
9705 ;;
9706
9707 *)
9708 ld_shlibs=no
9709 ;;
9710 esac
9711
9712 if test x$host_vendor = xsni; then
9713 case $host in
9714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9715 export_dynamic_flag_spec='${wl}-Blargedynsym'
9716 ;;
9717 esac
9718 fi
9719 fi
9720
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9722 $as_echo "$ld_shlibs" >&6; }
9723 test "$ld_shlibs" = no && can_build_shared=no
9724
9725 with_gnu_ld=$with_gnu_ld
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741 #
9742 # Do we need to explicitly link libc?
9743 #
9744 case "x$archive_cmds_need_lc" in
9745 x|xyes)
9746 # Assume -lc should be added
9747 archive_cmds_need_lc=yes
9748
9749 if test "$enable_shared" = yes && test "$GCC" = yes; then
9750 case $archive_cmds in
9751 *'~'*)
9752 # FIXME: we may have to deal with multi-command sequences.
9753 ;;
9754 '$CC '*)
9755 # Test whether the compiler implicitly links with -lc since on some
9756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9757 # to ld, don't add -lc before -lgcc.
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9759 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9760 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 $RM conftest*
9764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9765
9766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9767 (eval $ac_compile) 2>&5
9768 ac_status=$?
9769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9770 test $ac_status = 0; } 2>conftest.err; then
9771 soname=conftest
9772 lib=conftest
9773 libobjs=conftest.$ac_objext
9774 deplibs=
9775 wl=$lt_prog_compiler_wl
9776 pic_flag=$lt_prog_compiler_pic
9777 compiler_flags=-v
9778 linker_flags=-v
9779 verstring=
9780 output_objdir=.
9781 libname=conftest
9782 lt_save_allow_undefined_flag=$allow_undefined_flag
9783 allow_undefined_flag=
9784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9785 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9786 ac_status=$?
9787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9788 test $ac_status = 0; }
9789 then
9790 lt_cv_archive_cmds_need_lc=no
9791 else
9792 lt_cv_archive_cmds_need_lc=yes
9793 fi
9794 allow_undefined_flag=$lt_save_allow_undefined_flag
9795 else
9796 cat conftest.err 1>&5
9797 fi
9798 $RM conftest*
9799
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9802 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9803 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9804 ;;
9805 esac
9806 fi
9807 ;;
9808 esac
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9962 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9963
9964 if test "$GCC" = yes; then
9965 case $host_os in
9966 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9967 *) lt_awk_arg="/^libraries:/" ;;
9968 esac
9969 case $host_os in
9970 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9971 *) lt_sed_strip_eq="s,=/,/,g" ;;
9972 esac
9973 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9974 case $lt_search_path_spec in
9975 *\;*)
9976 # if the path contains ";" then we assume it to be the separator
9977 # otherwise default to the standard path separator (i.e. ":") - it is
9978 # assumed that no part of a normal pathname contains ";" but that should
9979 # okay in the real world where ";" in dirpaths is itself problematic.
9980 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9981 ;;
9982 *)
9983 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9984 ;;
9985 esac
9986 # Ok, now we have the path, separated by spaces, we can step through it
9987 # and add multilib dir if necessary.
9988 lt_tmp_lt_search_path_spec=
9989 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9990 for lt_sys_path in $lt_search_path_spec; do
9991 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9993 else
9994 test -d "$lt_sys_path" && \
9995 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9996 fi
9997 done
9998 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9999 BEGIN {RS=" "; FS="/|\n";} {
10000 lt_foo="";
10001 lt_count=0;
10002 for (lt_i = NF; lt_i > 0; lt_i--) {
10003 if ($lt_i != "" && $lt_i != ".") {
10004 if ($lt_i == "..") {
10005 lt_count++;
10006 } else {
10007 if (lt_count == 0) {
10008 lt_foo="/" $lt_i lt_foo;
10009 } else {
10010 lt_count--;
10011 }
10012 }
10013 }
10014 }
10015 if (lt_foo != "") { lt_freq[lt_foo]++; }
10016 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10017 }'`
10018 # AWK program above erroneously prepends '/' to C:/dos/paths
10019 # for these hosts.
10020 case $host_os in
10021 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10022 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10023 esac
10024 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10025 else
10026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10027 fi
10028 library_names_spec=
10029 libname_spec='lib$name'
10030 soname_spec=
10031 shrext_cmds=".so"
10032 postinstall_cmds=
10033 postuninstall_cmds=
10034 finish_cmds=
10035 finish_eval=
10036 shlibpath_var=
10037 shlibpath_overrides_runpath=unknown
10038 version_type=none
10039 dynamic_linker="$host_os ld.so"
10040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10041 need_lib_prefix=unknown
10042 hardcode_into_libs=no
10043
10044 # when you set need_version to no, make sure it does not cause -set_version
10045 # flags to be left without arguments
10046 need_version=unknown
10047
10048 case $host_os in
10049 aix3*)
10050 version_type=linux # correct to gnu/linux during the next big refactor
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10052 shlibpath_var=LIBPATH
10053
10054 # AIX 3 has no versioning support, so we append a major version to the name.
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 ;;
10057
10058 aix[4-9]*)
10059 version_type=linux # correct to gnu/linux during the next big refactor
10060 need_lib_prefix=no
10061 need_version=no
10062 hardcode_into_libs=yes
10063 if test "$host_cpu" = ia64; then
10064 # AIX 5 supports IA64
10065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10066 shlibpath_var=LD_LIBRARY_PATH
10067 else
10068 # With GCC up to 2.95.x, collect2 would create an import file
10069 # for dependence libraries. The import file would start with
10070 # the line `#! .'. This would cause the generated library to
10071 # depend on `.', always an invalid library. This was fixed in
10072 # development snapshots of GCC prior to 3.0.
10073 case $host_os in
10074 aix4 | aix4.[01] | aix4.[01].*)
10075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10076 echo ' yes '
10077 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10078 :
10079 else
10080 can_build_shared=no
10081 fi
10082 ;;
10083 esac
10084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10085 # soname into executable. Probably we can add versioning support to
10086 # collect2, so additional links can be useful in future.
10087 if test "$aix_use_runtimelinking" = yes; then
10088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10089 # instead of lib<name>.a to let people know that these are not
10090 # typical AIX shared libraries.
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092 else
10093 # We preserve .a as extension for shared libraries through AIX4.2
10094 # and later when we are not doing run time linking.
10095 library_names_spec='${libname}${release}.a $libname.a'
10096 soname_spec='${libname}${release}${shared_ext}$major'
10097 fi
10098 shlibpath_var=LIBPATH
10099 fi
10100 ;;
10101
10102 amigaos*)
10103 case $host_cpu in
10104 powerpc)
10105 # Since July 2007 AmigaOS4 officially supports .so libraries.
10106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108 ;;
10109 m68k)
10110 library_names_spec='$libname.ixlibrary $libname.a'
10111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10112 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10113 ;;
10114 esac
10115 ;;
10116
10117 beos*)
10118 library_names_spec='${libname}${shared_ext}'
10119 dynamic_linker="$host_os ld.so"
10120 shlibpath_var=LIBRARY_PATH
10121 ;;
10122
10123 bsdi[45]*)
10124 version_type=linux # correct to gnu/linux during the next big refactor
10125 need_version=no
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127 soname_spec='${libname}${release}${shared_ext}$major'
10128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10132 # the default ld.so.conf also contains /usr/contrib/lib and
10133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10134 # libtool to hard-code these into programs
10135 ;;
10136
10137 cygwin* | mingw* | pw32* | cegcc*)
10138 version_type=windows
10139 shrext_cmds=".dll"
10140 need_version=no
10141 need_lib_prefix=no
10142
10143 case $GCC,$cc_basename in
10144 yes,*)
10145 # gcc
10146 library_names_spec='$libname.dll.a'
10147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10148 postinstall_cmds='base_file=`basename \${file}`~
10149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10150 dldir=$destdir/`dirname \$dlpath`~
10151 test -d \$dldir || mkdir -p \$dldir~
10152 $install_prog $dir/$dlname \$dldir/$dlname~
10153 chmod a+x \$dldir/$dlname~
10154 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10155 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10156 fi'
10157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10158 dlpath=$dir/\$dldll~
10159 $RM \$dlpath'
10160 shlibpath_overrides_runpath=yes
10161
10162 case $host_os in
10163 cygwin*)
10164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10166
10167 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10168 ;;
10169 mingw* | cegcc*)
10170 # MinGW DLLs use traditional 'lib' prefix
10171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10172 ;;
10173 pw32*)
10174 # pw32 DLLs use 'pw' prefix rather than 'lib'
10175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10176 ;;
10177 esac
10178 dynamic_linker='Win32 ld.exe'
10179 ;;
10180
10181 *,cl*)
10182 # Native MSVC
10183 libname_spec='$name'
10184 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10185 library_names_spec='${libname}.dll.lib'
10186
10187 case $build_os in
10188 mingw*)
10189 sys_lib_search_path_spec=
10190 lt_save_ifs=$IFS
10191 IFS=';'
10192 for lt_path in $LIB
10193 do
10194 IFS=$lt_save_ifs
10195 # Let DOS variable expansion print the short 8.3 style file name.
10196 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10197 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10198 done
10199 IFS=$lt_save_ifs
10200 # Convert to MSYS style.
10201 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10202 ;;
10203 cygwin*)
10204 # Convert to unix form, then to dos form, then back to unix form
10205 # but this time dos style (no spaces!) so that the unix form looks
10206 # like /cygdrive/c/PROGRA~1:/cygdr...
10207 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10208 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10209 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10210 ;;
10211 *)
10212 sys_lib_search_path_spec="$LIB"
10213 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10214 # It is most probably a Windows format PATH.
10215 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10216 else
10217 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10218 fi
10219 # FIXME: find the short name or the path components, as spaces are
10220 # common. (e.g. "Program Files" -> "PROGRA~1")
10221 ;;
10222 esac
10223
10224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10225 postinstall_cmds='base_file=`basename \${file}`~
10226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10227 dldir=$destdir/`dirname \$dlpath`~
10228 test -d \$dldir || mkdir -p \$dldir~
10229 $install_prog $dir/$dlname \$dldir/$dlname'
10230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10231 dlpath=$dir/\$dldll~
10232 $RM \$dlpath'
10233 shlibpath_overrides_runpath=yes
10234 dynamic_linker='Win32 link.exe'
10235 ;;
10236
10237 *)
10238 # Assume MSVC wrapper
10239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10240 dynamic_linker='Win32 ld.exe'
10241 ;;
10242 esac
10243 # FIXME: first we should search . and the directory the executable is in
10244 shlibpath_var=PATH
10245 ;;
10246
10247 darwin* | rhapsody*)
10248 dynamic_linker="$host_os dyld"
10249 version_type=darwin
10250 need_lib_prefix=no
10251 need_version=no
10252 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10253 soname_spec='${libname}${release}${major}$shared_ext'
10254 shlibpath_overrides_runpath=yes
10255 shlibpath_var=DYLD_LIBRARY_PATH
10256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10257
10258 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10260 ;;
10261
10262 dgux*)
10263 version_type=linux # correct to gnu/linux during the next big refactor
10264 need_lib_prefix=no
10265 need_version=no
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 ;;
10270
10271 freebsd* | dragonfly*)
10272 # DragonFly does not have aout. When/if they implement a new
10273 # versioning mechanism, adjust this.
10274 if test -x /usr/bin/objformat; then
10275 objformat=`/usr/bin/objformat`
10276 else
10277 case $host_os in
10278 freebsd[23].*) objformat=aout ;;
10279 *) objformat=elf ;;
10280 esac
10281 fi
10282 version_type=freebsd-$objformat
10283 case $version_type in
10284 freebsd-elf*)
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10286 need_version=no
10287 need_lib_prefix=no
10288 ;;
10289 freebsd-*)
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10291 need_version=yes
10292 ;;
10293 esac
10294 shlibpath_var=LD_LIBRARY_PATH
10295 case $host_os in
10296 freebsd2.*)
10297 shlibpath_overrides_runpath=yes
10298 ;;
10299 freebsd3.[01]* | freebsdelf3.[01]*)
10300 shlibpath_overrides_runpath=yes
10301 hardcode_into_libs=yes
10302 ;;
10303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10305 shlibpath_overrides_runpath=no
10306 hardcode_into_libs=yes
10307 ;;
10308 *) # from 4.6 on, and DragonFly
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10311 ;;
10312 esac
10313 ;;
10314
10315 haiku*)
10316 version_type=linux # correct to gnu/linux during the next big refactor
10317 need_lib_prefix=no
10318 need_version=no
10319 dynamic_linker="$host_os runtime_loader"
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10321 soname_spec='${libname}${release}${shared_ext}$major'
10322 shlibpath_var=LIBRARY_PATH
10323 shlibpath_overrides_runpath=yes
10324 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10325 hardcode_into_libs=yes
10326 ;;
10327
10328 hpux9* | hpux10* | hpux11*)
10329 # Give a soname corresponding to the major version so that dld.sl refuses to
10330 # link against other versions.
10331 version_type=sunos
10332 need_lib_prefix=no
10333 need_version=no
10334 case $host_cpu in
10335 ia64*)
10336 shrext_cmds='.so'
10337 hardcode_into_libs=yes
10338 dynamic_linker="$host_os dld.so"
10339 shlibpath_var=LD_LIBRARY_PATH
10340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 if test "X$HPUX_IA64_MODE" = X32; then
10344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10345 else
10346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10347 fi
10348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10349 ;;
10350 hppa*64*)
10351 shrext_cmds='.sl'
10352 hardcode_into_libs=yes
10353 dynamic_linker="$host_os dld.sl"
10354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10360 ;;
10361 *)
10362 shrext_cmds='.sl'
10363 dynamic_linker="$host_os dld.sl"
10364 shlibpath_var=SHLIB_PATH
10365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 ;;
10369 esac
10370 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10371 postinstall_cmds='chmod 555 $lib'
10372 # or fails outright, so override atomically:
10373 install_override_mode=555
10374 ;;
10375
10376 interix[3-9]*)
10377 version_type=linux # correct to gnu/linux during the next big refactor
10378 need_lib_prefix=no
10379 need_version=no
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10383 shlibpath_var=LD_LIBRARY_PATH
10384 shlibpath_overrides_runpath=no
10385 hardcode_into_libs=yes
10386 ;;
10387
10388 irix5* | irix6* | nonstopux*)
10389 case $host_os in
10390 nonstopux*) version_type=nonstopux ;;
10391 *)
10392 if test "$lt_cv_prog_gnu_ld" = yes; then
10393 version_type=linux # correct to gnu/linux during the next big refactor
10394 else
10395 version_type=irix
10396 fi ;;
10397 esac
10398 need_lib_prefix=no
10399 need_version=no
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10402 case $host_os in
10403 irix5* | nonstopux*)
10404 libsuff= shlibsuff=
10405 ;;
10406 *)
10407 case $LD in # libtool.m4 will add one of these switches to LD
10408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10409 libsuff= shlibsuff= libmagic=32-bit;;
10410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10411 libsuff=32 shlibsuff=N32 libmagic=N32;;
10412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10413 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10414 *) libsuff= shlibsuff= libmagic=never-match;;
10415 esac
10416 ;;
10417 esac
10418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10419 shlibpath_overrides_runpath=no
10420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10422 hardcode_into_libs=yes
10423 ;;
10424
10425 # No shared lib support for Linux oldld, aout, or coff.
10426 linux*oldld* | linux*aout* | linux*coff*)
10427 dynamic_linker=no
10428 ;;
10429
10430 # This must be glibc/ELF.
10431 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10432 version_type=linux # correct to gnu/linux during the next big refactor
10433 need_lib_prefix=no
10434 need_version=no
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436 soname_spec='${libname}${release}${shared_ext}$major'
10437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 shlibpath_overrides_runpath=no
10440
10441 # Some binutils ld are patched to set DT_RUNPATH
10442 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 lt_cv_shlibpath_overrides_runpath=no
10446 save_LDFLAGS=$LDFLAGS
10447 save_libdir=$libdir
10448 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10449 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452
10453 int
10454 main ()
10455 {
10456
10457 ;
10458 return 0;
10459 }
10460 _ACEOF
10461 if ac_fn_c_try_link "$LINENO"; then :
10462 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10463 lt_cv_shlibpath_overrides_runpath=yes
10464 fi
10465 fi
10466 rm -f core conftest.err conftest.$ac_objext \
10467 conftest$ac_exeext conftest.$ac_ext
10468 LDFLAGS=$save_LDFLAGS
10469 libdir=$save_libdir
10470
10471 fi
10472
10473 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10474
10475 # This implies no fast_install, which is unacceptable.
10476 # Some rework will be needed to allow for fast_install
10477 # before this can be enabled.
10478 hardcode_into_libs=yes
10479
10480 # Append ld.so.conf contents to the search path
10481 if test -f /etc/ld.so.conf; then
10482 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' ' '`
10483 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10484 fi
10485
10486 # We used to test for /lib/ld.so.1 and disable shared libraries on
10487 # powerpc, because MkLinux only supported shared libraries with the
10488 # GNU dynamic linker. Since this was broken with cross compilers,
10489 # most powerpc-linux boxes support dynamic linking these days and
10490 # people can always --disable-shared, the test was removed, and we
10491 # assume the GNU/Linux dynamic linker is in use.
10492 dynamic_linker='GNU/Linux ld.so'
10493 ;;
10494
10495 netbsdelf*-gnu)
10496 version_type=linux
10497 need_lib_prefix=no
10498 need_version=no
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 shlibpath_var=LD_LIBRARY_PATH
10502 shlibpath_overrides_runpath=no
10503 hardcode_into_libs=yes
10504 dynamic_linker='NetBSD ld.elf_so'
10505 ;;
10506
10507 netbsd*)
10508 version_type=sunos
10509 need_lib_prefix=no
10510 need_version=no
10511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10514 dynamic_linker='NetBSD (a.out) ld.so'
10515 else
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 dynamic_linker='NetBSD ld.elf_so'
10519 fi
10520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=yes
10522 hardcode_into_libs=yes
10523 ;;
10524
10525 newsos6)
10526 version_type=linux # correct to gnu/linux during the next big refactor
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 shlibpath_overrides_runpath=yes
10530 ;;
10531
10532 *nto* | *qnx*)
10533 version_type=qnx
10534 need_lib_prefix=no
10535 need_version=no
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 shlibpath_overrides_runpath=no
10540 hardcode_into_libs=yes
10541 dynamic_linker='ldqnx.so'
10542 ;;
10543
10544 openbsd*)
10545 version_type=sunos
10546 sys_lib_dlsearch_path_spec="/usr/lib"
10547 need_lib_prefix=no
10548 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10549 case $host_os in
10550 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10551 *) need_version=no ;;
10552 esac
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10557 case $host_os in
10558 openbsd2.[89] | openbsd2.[89].*)
10559 shlibpath_overrides_runpath=no
10560 ;;
10561 *)
10562 shlibpath_overrides_runpath=yes
10563 ;;
10564 esac
10565 else
10566 shlibpath_overrides_runpath=yes
10567 fi
10568 ;;
10569
10570 os2*)
10571 libname_spec='$name'
10572 shrext_cmds=".dll"
10573 need_lib_prefix=no
10574 library_names_spec='$libname${shared_ext} $libname.a'
10575 dynamic_linker='OS/2 ld.exe'
10576 shlibpath_var=LIBPATH
10577 ;;
10578
10579 osf3* | osf4* | osf5*)
10580 version_type=osf
10581 need_lib_prefix=no
10582 need_version=no
10583 soname_spec='${libname}${release}${shared_ext}$major'
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10587 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10588 ;;
10589
10590 rdos*)
10591 dynamic_linker=no
10592 ;;
10593
10594 solaris*)
10595 version_type=linux # correct to gnu/linux during the next big refactor
10596 need_lib_prefix=no
10597 need_version=no
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 shlibpath_overrides_runpath=yes
10602 hardcode_into_libs=yes
10603 # ldd complains unless libraries are executable
10604 postinstall_cmds='chmod +x $lib'
10605 ;;
10606
10607 sunos4*)
10608 version_type=sunos
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10610 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10611 shlibpath_var=LD_LIBRARY_PATH
10612 shlibpath_overrides_runpath=yes
10613 if test "$with_gnu_ld" = yes; then
10614 need_lib_prefix=no
10615 fi
10616 need_version=yes
10617 ;;
10618
10619 sysv4 | sysv4.3*)
10620 version_type=linux # correct to gnu/linux during the next big refactor
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 case $host_vendor in
10625 sni)
10626 shlibpath_overrides_runpath=no
10627 need_lib_prefix=no
10628 runpath_var=LD_RUN_PATH
10629 ;;
10630 siemens)
10631 need_lib_prefix=no
10632 ;;
10633 motorola)
10634 need_lib_prefix=no
10635 need_version=no
10636 shlibpath_overrides_runpath=no
10637 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10638 ;;
10639 esac
10640 ;;
10641
10642 sysv4*MP*)
10643 if test -d /usr/nec ;then
10644 version_type=linux # correct to gnu/linux during the next big refactor
10645 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10646 soname_spec='$libname${shared_ext}.$major'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 fi
10649 ;;
10650
10651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10652 version_type=freebsd-elf
10653 need_lib_prefix=no
10654 need_version=no
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10656 soname_spec='${libname}${release}${shared_ext}$major'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 shlibpath_overrides_runpath=yes
10659 hardcode_into_libs=yes
10660 if test "$with_gnu_ld" = yes; then
10661 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10662 else
10663 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10664 case $host_os in
10665 sco3.2v5*)
10666 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10667 ;;
10668 esac
10669 fi
10670 sys_lib_dlsearch_path_spec='/usr/lib'
10671 ;;
10672
10673 tpf*)
10674 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10675 version_type=linux # correct to gnu/linux during the next big refactor
10676 need_lib_prefix=no
10677 need_version=no
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 shlibpath_overrides_runpath=no
10681 hardcode_into_libs=yes
10682 ;;
10683
10684 uts4*)
10685 version_type=linux # correct to gnu/linux during the next big refactor
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 ;;
10690
10691 *)
10692 dynamic_linker=no
10693 ;;
10694 esac
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10696 $as_echo "$dynamic_linker" >&6; }
10697 test "$dynamic_linker" = no && can_build_shared=no
10698
10699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10700 if test "$GCC" = yes; then
10701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10702 fi
10703
10704 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10705 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10706 fi
10707 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10708 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10709 fi
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10803 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10804 hardcode_action=
10805 if test -n "$hardcode_libdir_flag_spec" ||
10806 test -n "$runpath_var" ||
10807 test "X$hardcode_automatic" = "Xyes" ; then
10808
10809 # We can hardcode non-existent directories.
10810 if test "$hardcode_direct" != no &&
10811 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10812 # have to relink, otherwise we might link with an installed library
10813 # when we should be linking with a yet-to-be-installed one
10814 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10815 test "$hardcode_minus_L" != no; then
10816 # Linking always hardcodes the temporary library directory.
10817 hardcode_action=relink
10818 else
10819 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10820 hardcode_action=immediate
10821 fi
10822 else
10823 # We cannot hardcode anything, or else we can only hardcode existing
10824 # directories.
10825 hardcode_action=unsupported
10826 fi
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10828 $as_echo "$hardcode_action" >&6; }
10829
10830 if test "$hardcode_action" = relink ||
10831 test "$inherit_rpath" = yes; then
10832 # Fast installation is not supported
10833 enable_fast_install=no
10834 elif test "$shlibpath_overrides_runpath" = yes ||
10835 test "$enable_shared" = no; then
10836 # Fast installation is not necessary
10837 enable_fast_install=needless
10838 fi
10839
10840
10841
10842
10843
10844
10845 if test "x$enable_dlopen" != xyes; then
10846 enable_dlopen=unknown
10847 enable_dlopen_self=unknown
10848 enable_dlopen_self_static=unknown
10849 else
10850 lt_cv_dlopen=no
10851 lt_cv_dlopen_libs=
10852
10853 case $host_os in
10854 beos*)
10855 lt_cv_dlopen="load_add_on"
10856 lt_cv_dlopen_libs=
10857 lt_cv_dlopen_self=yes
10858 ;;
10859
10860 mingw* | pw32* | cegcc*)
10861 lt_cv_dlopen="LoadLibrary"
10862 lt_cv_dlopen_libs=
10863 ;;
10864
10865 cygwin*)
10866 lt_cv_dlopen="dlopen"
10867 lt_cv_dlopen_libs=
10868 ;;
10869
10870 darwin*)
10871 # if libdl is installed we need to link against it
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10873 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10874 if ${ac_cv_lib_dl_dlopen+:} false; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 ac_check_lib_save_LIBS=$LIBS
10878 LIBS="-ldl $LIBS"
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10881
10882 /* Override any GCC internal prototype to avoid an error.
10883 Use char because int might match the return type of a GCC
10884 builtin and then its argument prototype would still apply. */
10885 #ifdef __cplusplus
10886 extern "C"
10887 #endif
10888 char dlopen ();
10889 int
10890 main ()
10891 {
10892 return dlopen ();
10893 ;
10894 return 0;
10895 }
10896 _ACEOF
10897 if ac_fn_c_try_link "$LINENO"; then :
10898 ac_cv_lib_dl_dlopen=yes
10899 else
10900 ac_cv_lib_dl_dlopen=no
10901 fi
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_lib_save_LIBS
10905 fi
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10907 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10908 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10910 else
10911
10912 lt_cv_dlopen="dyld"
10913 lt_cv_dlopen_libs=
10914 lt_cv_dlopen_self=yes
10915
10916 fi
10917
10918 ;;
10919
10920 *)
10921 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10922 if test "x$ac_cv_func_shl_load" = xyes; then :
10923 lt_cv_dlopen="shl_load"
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10926 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10927 if ${ac_cv_lib_dld_shl_load+:} false; then :
10928 $as_echo_n "(cached) " >&6
10929 else
10930 ac_check_lib_save_LIBS=$LIBS
10931 LIBS="-ldld $LIBS"
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10934
10935 /* Override any GCC internal prototype to avoid an error.
10936 Use char because int might match the return type of a GCC
10937 builtin and then its argument prototype would still apply. */
10938 #ifdef __cplusplus
10939 extern "C"
10940 #endif
10941 char shl_load ();
10942 int
10943 main ()
10944 {
10945 return shl_load ();
10946 ;
10947 return 0;
10948 }
10949 _ACEOF
10950 if ac_fn_c_try_link "$LINENO"; then :
10951 ac_cv_lib_dld_shl_load=yes
10952 else
10953 ac_cv_lib_dld_shl_load=no
10954 fi
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10957 LIBS=$ac_check_lib_save_LIBS
10958 fi
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10960 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10961 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10962 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10963 else
10964 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10965 if test "x$ac_cv_func_dlopen" = xyes; then :
10966 lt_cv_dlopen="dlopen"
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10969 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10970 if ${ac_cv_lib_dl_dlopen+:} false; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 ac_check_lib_save_LIBS=$LIBS
10974 LIBS="-ldl $LIBS"
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 char dlopen ();
10985 int
10986 main ()
10987 {
10988 return dlopen ();
10989 ;
10990 return 0;
10991 }
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"; then :
10994 ac_cv_lib_dl_dlopen=yes
10995 else
10996 ac_cv_lib_dl_dlopen=no
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11001 fi
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11003 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11004 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11008 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11009 if ${ac_cv_lib_svld_dlopen+:} false; then :
11010 $as_echo_n "(cached) " >&6
11011 else
11012 ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-lsvld $LIBS"
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11016
11017 /* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11020 #ifdef __cplusplus
11021 extern "C"
11022 #endif
11023 char dlopen ();
11024 int
11025 main ()
11026 {
11027 return dlopen ();
11028 ;
11029 return 0;
11030 }
11031 _ACEOF
11032 if ac_fn_c_try_link "$LINENO"; then :
11033 ac_cv_lib_svld_dlopen=yes
11034 else
11035 ac_cv_lib_svld_dlopen=no
11036 fi
11037 rm -f core conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext conftest.$ac_ext
11039 LIBS=$ac_check_lib_save_LIBS
11040 fi
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11042 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11043 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11045 else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11047 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11048 if ${ac_cv_lib_dld_dld_link+:} false; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 ac_check_lib_save_LIBS=$LIBS
11052 LIBS="-ldld $LIBS"
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11055
11056 /* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11059 #ifdef __cplusplus
11060 extern "C"
11061 #endif
11062 char dld_link ();
11063 int
11064 main ()
11065 {
11066 return dld_link ();
11067 ;
11068 return 0;
11069 }
11070 _ACEOF
11071 if ac_fn_c_try_link "$LINENO"; then :
11072 ac_cv_lib_dld_dld_link=yes
11073 else
11074 ac_cv_lib_dld_dld_link=no
11075 fi
11076 rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11078 LIBS=$ac_check_lib_save_LIBS
11079 fi
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11081 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11082 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11083 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11084 fi
11085
11086
11087 fi
11088
11089
11090 fi
11091
11092
11093 fi
11094
11095
11096 fi
11097
11098
11099 fi
11100
11101 ;;
11102 esac
11103
11104 if test "x$lt_cv_dlopen" != xno; then
11105 enable_dlopen=yes
11106 else
11107 enable_dlopen=no
11108 fi
11109
11110 case $lt_cv_dlopen in
11111 dlopen)
11112 save_CPPFLAGS="$CPPFLAGS"
11113 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11114
11115 save_LDFLAGS="$LDFLAGS"
11116 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11117
11118 save_LIBS="$LIBS"
11119 LIBS="$lt_cv_dlopen_libs $LIBS"
11120
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11122 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11123 if ${lt_cv_dlopen_self+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 if test "$cross_compiling" = yes; then :
11127 lt_cv_dlopen_self=cross
11128 else
11129 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11130 lt_status=$lt_dlunknown
11131 cat > conftest.$ac_ext <<_LT_EOF
11132 #line $LINENO "configure"
11133 #include "confdefs.h"
11134
11135 #if HAVE_DLFCN_H
11136 #include <dlfcn.h>
11137 #endif
11138
11139 #include <stdio.h>
11140
11141 #ifdef RTLD_GLOBAL
11142 # define LT_DLGLOBAL RTLD_GLOBAL
11143 #else
11144 # ifdef DL_GLOBAL
11145 # define LT_DLGLOBAL DL_GLOBAL
11146 # else
11147 # define LT_DLGLOBAL 0
11148 # endif
11149 #endif
11150
11151 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11152 find out it does not work in some platform. */
11153 #ifndef LT_DLLAZY_OR_NOW
11154 # ifdef RTLD_LAZY
11155 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11156 # else
11157 # ifdef DL_LAZY
11158 # define LT_DLLAZY_OR_NOW DL_LAZY
11159 # else
11160 # ifdef RTLD_NOW
11161 # define LT_DLLAZY_OR_NOW RTLD_NOW
11162 # else
11163 # ifdef DL_NOW
11164 # define LT_DLLAZY_OR_NOW DL_NOW
11165 # else
11166 # define LT_DLLAZY_OR_NOW 0
11167 # endif
11168 # endif
11169 # endif
11170 # endif
11171 #endif
11172
11173 /* When -fvisbility=hidden is used, assume the code has been annotated
11174 correspondingly for the symbols needed. */
11175 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11176 int fnord () __attribute__((visibility("default")));
11177 #endif
11178
11179 int fnord () { return 42; }
11180 int main ()
11181 {
11182 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11183 int status = $lt_dlunknown;
11184
11185 if (self)
11186 {
11187 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11188 else
11189 {
11190 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11191 else puts (dlerror ());
11192 }
11193 /* dlclose (self); */
11194 }
11195 else
11196 puts (dlerror ());
11197
11198 return status;
11199 }
11200 _LT_EOF
11201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11202 (eval $ac_link) 2>&5
11203 ac_status=$?
11204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11205 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11206 (./conftest; exit; ) >&5 2>/dev/null
11207 lt_status=$?
11208 case x$lt_status in
11209 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11210 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11211 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11212 esac
11213 else :
11214 # compilation failed
11215 lt_cv_dlopen_self=no
11216 fi
11217 fi
11218 rm -fr conftest*
11219
11220
11221 fi
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11223 $as_echo "$lt_cv_dlopen_self" >&6; }
11224
11225 if test "x$lt_cv_dlopen_self" = xyes; then
11226 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11228 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11229 if ${lt_cv_dlopen_self_static+:} false; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 if test "$cross_compiling" = yes; then :
11233 lt_cv_dlopen_self_static=cross
11234 else
11235 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11236 lt_status=$lt_dlunknown
11237 cat > conftest.$ac_ext <<_LT_EOF
11238 #line $LINENO "configure"
11239 #include "confdefs.h"
11240
11241 #if HAVE_DLFCN_H
11242 #include <dlfcn.h>
11243 #endif
11244
11245 #include <stdio.h>
11246
11247 #ifdef RTLD_GLOBAL
11248 # define LT_DLGLOBAL RTLD_GLOBAL
11249 #else
11250 # ifdef DL_GLOBAL
11251 # define LT_DLGLOBAL DL_GLOBAL
11252 # else
11253 # define LT_DLGLOBAL 0
11254 # endif
11255 #endif
11256
11257 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11258 find out it does not work in some platform. */
11259 #ifndef LT_DLLAZY_OR_NOW
11260 # ifdef RTLD_LAZY
11261 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11262 # else
11263 # ifdef DL_LAZY
11264 # define LT_DLLAZY_OR_NOW DL_LAZY
11265 # else
11266 # ifdef RTLD_NOW
11267 # define LT_DLLAZY_OR_NOW RTLD_NOW
11268 # else
11269 # ifdef DL_NOW
11270 # define LT_DLLAZY_OR_NOW DL_NOW
11271 # else
11272 # define LT_DLLAZY_OR_NOW 0
11273 # endif
11274 # endif
11275 # endif
11276 # endif
11277 #endif
11278
11279 /* When -fvisbility=hidden is used, assume the code has been annotated
11280 correspondingly for the symbols needed. */
11281 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11282 int fnord () __attribute__((visibility("default")));
11283 #endif
11284
11285 int fnord () { return 42; }
11286 int main ()
11287 {
11288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11289 int status = $lt_dlunknown;
11290
11291 if (self)
11292 {
11293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11294 else
11295 {
11296 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11297 else puts (dlerror ());
11298 }
11299 /* dlclose (self); */
11300 }
11301 else
11302 puts (dlerror ());
11303
11304 return status;
11305 }
11306 _LT_EOF
11307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11308 (eval $ac_link) 2>&5
11309 ac_status=$?
11310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11311 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11312 (./conftest; exit; ) >&5 2>/dev/null
11313 lt_status=$?
11314 case x$lt_status in
11315 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11316 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11317 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11318 esac
11319 else :
11320 # compilation failed
11321 lt_cv_dlopen_self_static=no
11322 fi
11323 fi
11324 rm -fr conftest*
11325
11326
11327 fi
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11329 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11330 fi
11331
11332 CPPFLAGS="$save_CPPFLAGS"
11333 LDFLAGS="$save_LDFLAGS"
11334 LIBS="$save_LIBS"
11335 ;;
11336 esac
11337
11338 case $lt_cv_dlopen_self in
11339 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11340 *) enable_dlopen_self=unknown ;;
11341 esac
11342
11343 case $lt_cv_dlopen_self_static in
11344 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11345 *) enable_dlopen_self_static=unknown ;;
11346 esac
11347 fi
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365 striplib=
11366 old_striplib=
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11368 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11369 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11370 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11371 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11373 $as_echo "yes" >&6; }
11374 else
11375 # FIXME - insert some real tests, host_os isn't really good enough
11376 case $host_os in
11377 darwin*)
11378 if test -n "$STRIP" ; then
11379 striplib="$STRIP -x"
11380 old_striplib="$STRIP -S"
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11382 $as_echo "yes" >&6; }
11383 else
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11386 fi
11387 ;;
11388 *)
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11391 ;;
11392 esac
11393 fi
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406 # Report which library types will actually be built
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11408 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11410 $as_echo "$can_build_shared" >&6; }
11411
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11413 $as_echo_n "checking whether to build shared libraries... " >&6; }
11414 test "$can_build_shared" = "no" && enable_shared=no
11415
11416 # On AIX, shared libraries and static libraries use the same namespace, and
11417 # are all built from PIC.
11418 case $host_os in
11419 aix3*)
11420 test "$enable_shared" = yes && enable_static=no
11421 if test -n "$RANLIB"; then
11422 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11423 postinstall_cmds='$RANLIB $lib'
11424 fi
11425 ;;
11426
11427 aix[4-9]*)
11428 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11429 test "$enable_shared" = yes && enable_static=no
11430 fi
11431 ;;
11432 esac
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11434 $as_echo "$enable_shared" >&6; }
11435
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11437 $as_echo_n "checking whether to build static libraries... " >&6; }
11438 # Make sure either enable_shared or enable_static is yes.
11439 test "$enable_shared" = yes || enable_static=yes
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11441 $as_echo "$enable_static" >&6; }
11442
11443
11444
11445
11446 fi
11447 ac_ext=c
11448 ac_cpp='$CPP $CPPFLAGS'
11449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11452
11453 CC="$lt_save_CC"
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469 ac_config_commands="$ac_config_commands libtool"
11470
11471
11472
11473
11474 # Only expand once:
11475
11476
11477 ac_ext=c
11478 ac_cpp='$CPP $CPPFLAGS'
11479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11482 if test -n "$ac_tool_prefix"; then
11483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486 $as_echo_n "checking for $ac_word... " >&6; }
11487 if ${ac_cv_prog_CC+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 if test -n "$CC"; then
11491 ac_cv_prog_CC="$CC" # Let the user override the test.
11492 else
11493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494 for as_dir in $PATH
11495 do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11500 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 break 2
11503 fi
11504 done
11505 done
11506 IFS=$as_save_IFS
11507
11508 fi
11509 fi
11510 CC=$ac_cv_prog_CC
11511 if test -n "$CC"; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11513 $as_echo "$CC" >&6; }
11514 else
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516 $as_echo "no" >&6; }
11517 fi
11518
11519
11520 fi
11521 if test -z "$ac_cv_prog_CC"; then
11522 ac_ct_CC=$CC
11523 # Extract the first word of "gcc", so it can be a program name with args.
11524 set dummy gcc; ac_word=$2
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11526 $as_echo_n "checking for $ac_word... " >&6; }
11527 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 if test -n "$ac_ct_CC"; then
11531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11532 else
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in $PATH
11535 do
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11540 ac_cv_prog_ac_ct_CC="gcc"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11543 fi
11544 done
11545 done
11546 IFS=$as_save_IFS
11547
11548 fi
11549 fi
11550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11551 if test -n "$ac_ct_CC"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11553 $as_echo "$ac_ct_CC" >&6; }
11554 else
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556 $as_echo "no" >&6; }
11557 fi
11558
11559 if test "x$ac_ct_CC" = x; then
11560 CC=""
11561 else
11562 case $cross_compiling:$ac_tool_warned in
11563 yes:)
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11566 ac_tool_warned=yes ;;
11567 esac
11568 CC=$ac_ct_CC
11569 fi
11570 else
11571 CC="$ac_cv_prog_CC"
11572 fi
11573
11574 if test -z "$CC"; then
11575 if test -n "$ac_tool_prefix"; then
11576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11577 set dummy ${ac_tool_prefix}cc; ac_word=$2
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579 $as_echo_n "checking for $ac_word... " >&6; }
11580 if ${ac_cv_prog_CC+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 if test -n "$CC"; then
11584 ac_cv_prog_CC="$CC" # Let the user override the test.
11585 else
11586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587 for as_dir in $PATH
11588 do
11589 IFS=$as_save_IFS
11590 test -z "$as_dir" && as_dir=.
11591 for ac_exec_ext in '' $ac_executable_extensions; do
11592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11593 ac_cv_prog_CC="${ac_tool_prefix}cc"
11594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11595 break 2
11596 fi
11597 done
11598 done
11599 IFS=$as_save_IFS
11600
11601 fi
11602 fi
11603 CC=$ac_cv_prog_CC
11604 if test -n "$CC"; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11606 $as_echo "$CC" >&6; }
11607 else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; }
11610 fi
11611
11612
11613 fi
11614 fi
11615 if test -z "$CC"; then
11616 # Extract the first word of "cc", so it can be a program name with args.
11617 set dummy cc; ac_word=$2
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11619 $as_echo_n "checking for $ac_word... " >&6; }
11620 if ${ac_cv_prog_CC+:} false; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 if test -n "$CC"; then
11624 ac_cv_prog_CC="$CC" # Let the user override the test.
11625 else
11626 ac_prog_rejected=no
11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11629 do
11630 IFS=$as_save_IFS
11631 test -z "$as_dir" && as_dir=.
11632 for ac_exec_ext in '' $ac_executable_extensions; do
11633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11635 ac_prog_rejected=yes
11636 continue
11637 fi
11638 ac_cv_prog_CC="cc"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11641 fi
11642 done
11643 done
11644 IFS=$as_save_IFS
11645
11646 if test $ac_prog_rejected = yes; then
11647 # We found a bogon in the path, so make sure we never use it.
11648 set dummy $ac_cv_prog_CC
11649 shift
11650 if test $# != 0; then
11651 # We chose a different compiler from the bogus one.
11652 # However, it has the same basename, so the bogon will be chosen
11653 # first if we set CC to just the basename; use the full file name.
11654 shift
11655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11656 fi
11657 fi
11658 fi
11659 fi
11660 CC=$ac_cv_prog_CC
11661 if test -n "$CC"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11663 $as_echo "$CC" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11667 fi
11668
11669
11670 fi
11671 if test -z "$CC"; then
11672 if test -n "$ac_tool_prefix"; then
11673 for ac_prog in cl.exe
11674 do
11675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_prog_CC+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 if test -n "$CC"; then
11683 ac_cv_prog_CC="$CC" # Let the user override the test.
11684 else
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696 done
11697 done
11698 IFS=$as_save_IFS
11699
11700 fi
11701 fi
11702 CC=$ac_cv_prog_CC
11703 if test -n "$CC"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11705 $as_echo "$CC" >&6; }
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11709 fi
11710
11711
11712 test -n "$CC" && break
11713 done
11714 fi
11715 if test -z "$CC"; then
11716 ac_ct_CC=$CC
11717 for ac_prog in cl.exe
11718 do
11719 # Extract the first word of "$ac_prog", so it can be a program name with args.
11720 set dummy $ac_prog; ac_word=$2
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11722 $as_echo_n "checking for $ac_word... " >&6; }
11723 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11724 $as_echo_n "(cached) " >&6
11725 else
11726 if test -n "$ac_ct_CC"; then
11727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11728 else
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11731 do
11732 IFS=$as_save_IFS
11733 test -z "$as_dir" && as_dir=.
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11736 ac_cv_prog_ac_ct_CC="$ac_prog"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738 break 2
11739 fi
11740 done
11741 done
11742 IFS=$as_save_IFS
11743
11744 fi
11745 fi
11746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11747 if test -n "$ac_ct_CC"; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11749 $as_echo "$ac_ct_CC" >&6; }
11750 else
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11753 fi
11754
11755
11756 test -n "$ac_ct_CC" && break
11757 done
11758
11759 if test "x$ac_ct_CC" = x; then
11760 CC=""
11761 else
11762 case $cross_compiling:$ac_tool_warned in
11763 yes:)
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11766 ac_tool_warned=yes ;;
11767 esac
11768 CC=$ac_ct_CC
11769 fi
11770 fi
11771
11772 fi
11773
11774
11775 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11777 as_fn_error $? "no acceptable C compiler found in \$PATH
11778 See \`config.log' for more details" "$LINENO" 5; }
11779
11780 # Provide some information about the compiler.
11781 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11782 set X $ac_compile
11783 ac_compiler=$2
11784 for ac_option in --version -v -V -qversion; do
11785 { { ac_try="$ac_compiler $ac_option >&5"
11786 case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789 esac
11790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11791 $as_echo "$ac_try_echo"; } >&5
11792 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11793 ac_status=$?
11794 if test -s conftest.err; then
11795 sed '10a\
11796 ... rest of stderr output deleted ...
11797 10q' conftest.err >conftest.er1
11798 cat conftest.er1 >&5
11799 fi
11800 rm -f conftest.er1 conftest.err
11801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11802 test $ac_status = 0; }
11803 done
11804
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11806 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11807 if ${ac_cv_c_compiler_gnu+:} false; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11812
11813 int
11814 main ()
11815 {
11816 #ifndef __GNUC__
11817 choke me
11818 #endif
11819
11820 ;
11821 return 0;
11822 }
11823 _ACEOF
11824 if ac_fn_c_try_compile "$LINENO"; then :
11825 ac_compiler_gnu=yes
11826 else
11827 ac_compiler_gnu=no
11828 fi
11829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11831
11832 fi
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11834 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11835 if test $ac_compiler_gnu = yes; then
11836 GCC=yes
11837 else
11838 GCC=
11839 fi
11840 ac_test_CFLAGS=${CFLAGS+set}
11841 ac_save_CFLAGS=$CFLAGS
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11843 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11844 if ${ac_cv_prog_cc_g+:} false; then :
11845 $as_echo_n "(cached) " >&6
11846 else
11847 ac_save_c_werror_flag=$ac_c_werror_flag
11848 ac_c_werror_flag=yes
11849 ac_cv_prog_cc_g=no
11850 CFLAGS="-g"
11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h. */
11853
11854 int
11855 main ()
11856 {
11857
11858 ;
11859 return 0;
11860 }
11861 _ACEOF
11862 if ac_fn_c_try_compile "$LINENO"; then :
11863 ac_cv_prog_cc_g=yes
11864 else
11865 CFLAGS=""
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868
11869 int
11870 main ()
11871 {
11872
11873 ;
11874 return 0;
11875 }
11876 _ACEOF
11877 if ac_fn_c_try_compile "$LINENO"; then :
11878
11879 else
11880 ac_c_werror_flag=$ac_save_c_werror_flag
11881 CFLAGS="-g"
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884
11885 int
11886 main ()
11887 {
11888
11889 ;
11890 return 0;
11891 }
11892 _ACEOF
11893 if ac_fn_c_try_compile "$LINENO"; then :
11894 ac_cv_prog_cc_g=yes
11895 fi
11896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 fi
11900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901 ac_c_werror_flag=$ac_save_c_werror_flag
11902 fi
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11904 $as_echo "$ac_cv_prog_cc_g" >&6; }
11905 if test "$ac_test_CFLAGS" = set; then
11906 CFLAGS=$ac_save_CFLAGS
11907 elif test $ac_cv_prog_cc_g = yes; then
11908 if test "$GCC" = yes; then
11909 CFLAGS="-g -O2"
11910 else
11911 CFLAGS="-g"
11912 fi
11913 else
11914 if test "$GCC" = yes; then
11915 CFLAGS="-O2"
11916 else
11917 CFLAGS=
11918 fi
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11921 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11922 if ${ac_cv_prog_cc_c89+:} false; then :
11923 $as_echo_n "(cached) " >&6
11924 else
11925 ac_cv_prog_cc_c89=no
11926 ac_save_CC=$CC
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11929 #include <stdarg.h>
11930 #include <stdio.h>
11931 struct stat;
11932 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11933 struct buf { int x; };
11934 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11935 static char *e (p, i)
11936 char **p;
11937 int i;
11938 {
11939 return p[i];
11940 }
11941 static char *f (char * (*g) (char **, int), char **p, ...)
11942 {
11943 char *s;
11944 va_list v;
11945 va_start (v,p);
11946 s = g (p, va_arg (v,int));
11947 va_end (v);
11948 return s;
11949 }
11950
11951 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11952 function prototypes and stuff, but not '\xHH' hex character constants.
11953 These don't provoke an error unfortunately, instead are silently treated
11954 as 'x'. The following induces an error, until -std is added to get
11955 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11956 array size at least. It's necessary to write '\x00'==0 to get something
11957 that's true only with -std. */
11958 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11959
11960 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11961 inside strings and character constants. */
11962 #define FOO(x) 'x'
11963 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11964
11965 int test (int i, double x);
11966 struct s1 {int (*f) (int a);};
11967 struct s2 {int (*f) (double a);};
11968 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11969 int argc;
11970 char **argv;
11971 int
11972 main ()
11973 {
11974 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11975 ;
11976 return 0;
11977 }
11978 _ACEOF
11979 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11980 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11981 do
11982 CC="$ac_save_CC $ac_arg"
11983 if ac_fn_c_try_compile "$LINENO"; then :
11984 ac_cv_prog_cc_c89=$ac_arg
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext
11987 test "x$ac_cv_prog_cc_c89" != "xno" && break
11988 done
11989 rm -f conftest.$ac_ext
11990 CC=$ac_save_CC
11991
11992 fi
11993 # AC_CACHE_VAL
11994 case "x$ac_cv_prog_cc_c89" in
11995 x)
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11997 $as_echo "none needed" >&6; } ;;
11998 xno)
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12000 $as_echo "unsupported" >&6; } ;;
12001 *)
12002 CC="$CC $ac_cv_prog_cc_c89"
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12004 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12005 esac
12006 if test "x$ac_cv_prog_cc_c89" != xno; then :
12007
12008 fi
12009
12010 ac_ext=c
12011 ac_cpp='$CPP $CPPFLAGS'
12012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12015
12016 ac_ext=c
12017 ac_cpp='$CPP $CPPFLAGS'
12018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12022 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12023 if ${am_cv_prog_cc_c_o+:} false; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12028
12029 int
12030 main ()
12031 {
12032
12033 ;
12034 return 0;
12035 }
12036 _ACEOF
12037 # Make sure it works both with $CC and with simple cc.
12038 # Following AC_PROG_CC_C_O, we do the test twice because some
12039 # compilers refuse to overwrite an existing .o file with -o,
12040 # though they will create one.
12041 am_cv_prog_cc_c_o=yes
12042 for am_i in 1 2; do
12043 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12044 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } \
12048 && test -f conftest2.$ac_objext; then
12049 : OK
12050 else
12051 am_cv_prog_cc_c_o=no
12052 break
12053 fi
12054 done
12055 rm -f core conftest*
12056 unset am_i
12057 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12059 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12060 if test "$am_cv_prog_cc_c_o" != yes; then
12061 # Losing compiler, so override with the script.
12062 # FIXME: It is wrong to rewrite CC.
12063 # But if we don't then we get into trouble of one sort or another.
12064 # A longer-term fix would be to have automake use am__CC in this case,
12065 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12066 CC="$am_aux_dir/compile $CC"
12067 fi
12068 ac_ext=c
12069 ac_cpp='$CPP $CPPFLAGS'
12070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12073
12074
12075 depcc="$CC" am_compiler_list=
12076
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12078 $as_echo_n "checking dependency style of $depcc... " >&6; }
12079 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081 else
12082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12083 # We make a subdir and do the tests there. Otherwise we can end up
12084 # making bogus files that we don't know about and never remove. For
12085 # instance it was reported that on HP-UX the gcc test will end up
12086 # making a dummy file named 'D' -- because '-MD' means "put the output
12087 # in D".
12088 rm -rf conftest.dir
12089 mkdir conftest.dir
12090 # Copy depcomp to subdir because otherwise we won't find it if we're
12091 # using a relative directory.
12092 cp "$am_depcomp" conftest.dir
12093 cd conftest.dir
12094 # We will build objects and dependencies in a subdirectory because
12095 # it helps to detect inapplicable dependency modes. For instance
12096 # both Tru64's cc and ICC support -MD to output dependencies as a
12097 # side effect of compilation, but ICC will put the dependencies in
12098 # the current directory while Tru64 will put them in the object
12099 # directory.
12100 mkdir sub
12101
12102 am_cv_CC_dependencies_compiler_type=none
12103 if test "$am_compiler_list" = ""; then
12104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12105 fi
12106 am__universal=false
12107 case " $depcc " in #(
12108 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12109 esac
12110
12111 for depmode in $am_compiler_list; do
12112 # Setup a source with many dependencies, because some compilers
12113 # like to wrap large dependency lists on column 80 (with \), and
12114 # we should not choose a depcomp mode which is confused by this.
12115 #
12116 # We need to recreate these files for each test, as the compiler may
12117 # overwrite some of them when testing with obscure command lines.
12118 # This happens at least with the AIX C compiler.
12119 : > sub/conftest.c
12120 for i in 1 2 3 4 5 6; do
12121 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12122 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12123 # Solaris 10 /bin/sh.
12124 echo '/* dummy */' > sub/conftst$i.h
12125 done
12126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12127
12128 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12129 # mode. It turns out that the SunPro C++ compiler does not properly
12130 # handle '-M -o', and we need to detect this. Also, some Intel
12131 # versions had trouble with output in subdirs.
12132 am__obj=sub/conftest.${OBJEXT-o}
12133 am__minus_obj="-o $am__obj"
12134 case $depmode in
12135 gcc)
12136 # This depmode causes a compiler race in universal mode.
12137 test "$am__universal" = false || continue
12138 ;;
12139 nosideeffect)
12140 # After this tag, mechanisms are not by side-effect, so they'll
12141 # only be used when explicitly requested.
12142 if test "x$enable_dependency_tracking" = xyes; then
12143 continue
12144 else
12145 break
12146 fi
12147 ;;
12148 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12149 # This compiler won't grok '-c -o', but also, the minuso test has
12150 # not run yet. These depmodes are late enough in the game, and
12151 # so weak that their functioning should not be impacted.
12152 am__obj=conftest.${OBJEXT-o}
12153 am__minus_obj=
12154 ;;
12155 none) break ;;
12156 esac
12157 if depmode=$depmode \
12158 source=sub/conftest.c object=$am__obj \
12159 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12160 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12161 >/dev/null 2>conftest.err &&
12162 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12163 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12164 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12165 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12166 # icc doesn't choke on unknown options, it will just issue warnings
12167 # or remarks (even with -Werror). So we grep stderr for any message
12168 # that says an option was ignored or not supported.
12169 # When given -MP, icc 7.0 and 7.1 complain thusly:
12170 # icc: Command line warning: ignoring option '-M'; no argument required
12171 # The diagnosis changed in icc 8.0:
12172 # icc: Command line remark: option '-MP' not supported
12173 if (grep 'ignoring option' conftest.err ||
12174 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12175 am_cv_CC_dependencies_compiler_type=$depmode
12176 break
12177 fi
12178 fi
12179 done
12180
12181 cd ..
12182 rm -rf conftest.dir
12183 else
12184 am_cv_CC_dependencies_compiler_type=none
12185 fi
12186
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12189 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12190 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12191
12192 if
12193 test "x$enable_dependency_tracking" != xno \
12194 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12195 am__fastdepCC_TRUE=
12196 am__fastdepCC_FALSE='#'
12197 else
12198 am__fastdepCC_TRUE='#'
12199 am__fastdepCC_FALSE=
12200 fi
12201
12202
12203
12204 PROG_LDCONFIG=:
12205
12206
12207 # Check whether --with-adns was given.
12208 if test "${with_adns+set}" = set; then :
12209 withval=$with_adns;
12210 fi
12211
12212
12213 # Check whether --with-readline was given.
12214 if test "${with_readline+set}" = set; then :
12215 withval=$with_readline;
12216 fi
12217
12218
12219 # Check whether --with-glib was given.
12220 if test "${with_glib+set}" = set; then :
12221 withval=$with_glib;
12222 fi
12223
12224
12225 # Check whether --with-tcl was given.
12226 if test "${with_tcl+set}" = set; then :
12227 withval=$with_tcl;
12228 fi
12229
12230
12231 # Check whether --with-libwww was given.
12232 if test "${with_libwww+set}" = set; then :
12233 withval=$with_libwww;
12234 fi
12235
12236
12237 case "$host" in
12238 *-linux-*|*-k*bsd*|*-gnu*)
12239 # Extract the first word of "ldconfig", so it can be a program name with args.
12240 set dummy ldconfig; ac_word=$2
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242 $as_echo_n "checking for $ac_word... " >&6; }
12243 if ${ac_cv_path_PROG_LDCONFIG+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 case $PROG_LDCONFIG in
12247 [\\/]* | ?:[\\/]*)
12248 ac_cv_path_PROG_LDCONFIG="$PROG_LDCONFIG" # Let the user override the test with a path.
12249 ;;
12250 *)
12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 as_dummy="$PATH:/usr/sbin:/sbin"
12253 for as_dir in $as_dummy
12254 do
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12259 ac_cv_path_PROG_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 break 2
12262 fi
12263 done
12264 done
12265 IFS=$as_save_IFS
12266
12267 test -z "$ac_cv_path_PROG_LDCONFIG" && ac_cv_path_PROG_LDCONFIG=":"
12268 ;;
12269 esac
12270 fi
12271 PROG_LDCONFIG=$ac_cv_path_PROG_LDCONFIG
12272 if test -n "$PROG_LDCONFIG"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LDCONFIG" >&5
12274 $as_echo "$PROG_LDCONFIG" >&6; }
12275 else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12278 fi
12279
12280
12281 no_wacky_libs=yes
12282 ;;
12283 *-sgi-irix6*)
12284 if test -n "$LPATH" ; then
12285 LDFLAGS="-Wl,-rpath,$LPATH $LDFLAGS"
12286 fi
12287 no_wacky_libs=yes
12288 ;;
12289 esac
12290
12291 for ac_header in poll.h sys/select.h sys/socket.h string.h strings.h
12292 do :
12293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12294 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12295 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12296 cat >>confdefs.h <<_ACEOF
12297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12298 _ACEOF
12299
12300 fi
12301
12302 done
12303
12304
12305 if test xno != x$with_adns; then
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for adns_init in -ladns" >&5
12307 $as_echo_n "checking for adns_init in -ladns... " >&6; }
12308 if ${ac_cv_lib_adns_adns_init+:} false; then :
12309 $as_echo_n "(cached) " >&6
12310 else
12311 ac_check_lib_save_LIBS=$LIBS
12312 LIBS="-ladns $LIBS"
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315
12316 /* Override any GCC internal prototype to avoid an error.
12317 Use char because int might match the return type of a GCC
12318 builtin and then its argument prototype would still apply. */
12319 #ifdef __cplusplus
12320 extern "C"
12321 #endif
12322 char adns_init ();
12323 int
12324 main ()
12325 {
12326 return adns_init ();
12327 ;
12328 return 0;
12329 }
12330 _ACEOF
12331 if ac_fn_c_try_link "$LINENO"; then :
12332 ac_cv_lib_adns_adns_init=yes
12333 else
12334 ac_cv_lib_adns_adns_init=no
12335 fi
12336 rm -f core conftest.err conftest.$ac_objext \
12337 conftest$ac_exeext conftest.$ac_ext
12338 LIBS=$ac_check_lib_save_LIBS
12339 fi
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_adns_adns_init" >&5
12341 $as_echo "$ac_cv_lib_adns_adns_init" >&6; }
12342 if test "x$ac_cv_lib_adns_adns_init" = xyes; then :
12343
12344 LIBOOP_LIBS="liboop-adns.la $LIBOOP_LIBS"
12345 ADNS_LIBS="-ladns"
12346 $as_echo "#define HAVE_ADNS 1" >>confdefs.h
12347
12348
12349 fi
12350
12351 fi
12352
12353 if test xno != x$with_readline; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
12355 $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
12356 if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 ac_check_lib_save_LIBS=$LIBS
12360 LIBS="-lreadline $LIBS"
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12363
12364 /* Override any GCC internal prototype to avoid an error.
12365 Use char because int might match the return type of a GCC
12366 builtin and then its argument prototype would still apply. */
12367 #ifdef __cplusplus
12368 extern "C"
12369 #endif
12370 char rl_callback_handler_install ();
12371 int
12372 main ()
12373 {
12374 return rl_callback_handler_install ();
12375 ;
12376 return 0;
12377 }
12378 _ACEOF
12379 if ac_fn_c_try_link "$LINENO"; then :
12380 ac_cv_lib_readline_rl_callback_handler_install=yes
12381 else
12382 ac_cv_lib_readline_rl_callback_handler_install=no
12383 fi
12384 rm -f core conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
12389 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
12390 if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
12391
12392 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
12393 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
12394
12395 LIBOOP_LIBS="liboop-rl.la $LIBOOP_LIBS"
12396 READLINE_LIBS="-lreadline"
12397 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
12398
12399
12400 fi
12401
12402
12403 fi
12404
12405 fi
12406
12407 if test xno != x$with_glib; then
12408 save_libs="$LIBS"
12409 save_cppflags="$CPPFLAGS"
12410 # Extract the first word of "glib-config", so it can be a program name with args.
12411 set dummy glib-config; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if ${ac_cv_prog_PROG_GLIB_CONFIG+:} false; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 if test -n "$PROG_GLIB_CONFIG"; then
12418 ac_cv_prog_PROG_GLIB_CONFIG="$PROG_GLIB_CONFIG" # Let the user override the test.
12419 else
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12422 do
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12427 ac_cv_prog_PROG_GLIB_CONFIG="glib-config"
12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12429 break 2
12430 fi
12431 done
12432 done
12433 IFS=$as_save_IFS
12434
12435 fi
12436 fi
12437 PROG_GLIB_CONFIG=$ac_cv_prog_PROG_GLIB_CONFIG
12438 if test -n "$PROG_GLIB_CONFIG"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_GLIB_CONFIG" >&5
12440 $as_echo "$PROG_GLIB_CONFIG" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12444 fi
12445
12446
12447 if test -n "$PROG_GLIB_CONFIG" ; then
12448 GLIB_INCLUDES="`glib-config --cflags`"
12449 GLIB_LIBS="`glib-config --libs`"
12450 LIBS="$save_libs $GLIB_LIBS"
12451 CPPFLAGS="$save_cppflags $GLIB_INCLUDES"
12452 ac_fn_c_check_func "$LINENO" "g_main_set_poll_func" "ac_cv_func_g_main_set_poll_func"
12453 if test "x$ac_cv_func_g_main_set_poll_func" = xyes; then :
12454
12455 ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
12456 if test "x$ac_cv_header_glib_h" = xyes; then :
12457
12458 LIBOOP_LIBS="liboop-glib.la $LIBOOP_LIBS"
12459 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
12460
12461
12462 fi
12463
12464
12465 fi
12466
12467 fi
12468 LIBS="$save_libs"
12469 CPPFLAGS="$save_cppflags"
12470
12471
12472
12473
12474
12475
12476
12477
12478 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12479 if test -n "$ac_tool_prefix"; then
12480 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12481 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 case $PKG_CONFIG in
12488 [\\/]* | ?:[\\/]*)
12489 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12490 ;;
12491 *)
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12494 do
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12499 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12502 fi
12503 done
12504 done
12505 IFS=$as_save_IFS
12506
12507 ;;
12508 esac
12509 fi
12510 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12511 if test -n "$PKG_CONFIG"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12513 $as_echo "$PKG_CONFIG" >&6; }
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12517 fi
12518
12519
12520 fi
12521 if test -z "$ac_cv_path_PKG_CONFIG"; then
12522 ac_pt_PKG_CONFIG=$PKG_CONFIG
12523 # Extract the first word of "pkg-config", so it can be a program name with args.
12524 set dummy pkg-config; ac_word=$2
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526 $as_echo_n "checking for $ac_word... " >&6; }
12527 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12528 $as_echo_n "(cached) " >&6
12529 else
12530 case $ac_pt_PKG_CONFIG in
12531 [\\/]* | ?:[\\/]*)
12532 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12533 ;;
12534 *)
12535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536 for as_dir in $PATH
12537 do
12538 IFS=$as_save_IFS
12539 test -z "$as_dir" && as_dir=.
12540 for ac_exec_ext in '' $ac_executable_extensions; do
12541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12542 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12544 break 2
12545 fi
12546 done
12547 done
12548 IFS=$as_save_IFS
12549
12550 ;;
12551 esac
12552 fi
12553 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12554 if test -n "$ac_pt_PKG_CONFIG"; then
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12556 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12557 else
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559 $as_echo "no" >&6; }
12560 fi
12561
12562 if test "x$ac_pt_PKG_CONFIG" = x; then
12563 PKG_CONFIG=""
12564 else
12565 case $cross_compiling:$ac_tool_warned in
12566 yes:)
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12569 ac_tool_warned=yes ;;
12570 esac
12571 PKG_CONFIG=$ac_pt_PKG_CONFIG
12572 fi
12573 else
12574 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12575 fi
12576
12577 fi
12578 if test -n "$PKG_CONFIG"; then
12579 _pkg_min_version=0.9.0
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12581 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12582 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12584 $as_echo "yes" >&6; }
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12588 PKG_CONFIG=""
12589 fi
12590 fi
12591
12592 pkg_failed=no
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5
12594 $as_echo_n "checking for GLIB2... " >&6; }
12595
12596 if test -n "$GLIB2_CFLAGS"; then
12597 pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
12598 elif test -n "$PKG_CONFIG"; then
12599 if test -n "$PKG_CONFIG" && \
12600 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.0\""; } >&5
12601 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0") 2>&5
12602 ac_status=$?
12603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12604 test $ac_status = 0; }; then
12605 pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.0" 2>/dev/null`
12606 test "x$?" != "x0" && pkg_failed=yes
12607 else
12608 pkg_failed=yes
12609 fi
12610 else
12611 pkg_failed=untried
12612 fi
12613 if test -n "$GLIB2_LIBS"; then
12614 pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
12615 elif test -n "$PKG_CONFIG"; then
12616 if test -n "$PKG_CONFIG" && \
12617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.0\""; } >&5
12618 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0") 2>&5
12619 ac_status=$?
12620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12621 test $ac_status = 0; }; then
12622 pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.0" 2>/dev/null`
12623 test "x$?" != "x0" && pkg_failed=yes
12624 else
12625 pkg_failed=yes
12626 fi
12627 else
12628 pkg_failed=untried
12629 fi
12630
12631
12632
12633 if test $pkg_failed = yes; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12636
12637 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12638 _pkg_short_errors_supported=yes
12639 else
12640 _pkg_short_errors_supported=no
12641 fi
12642 if test $_pkg_short_errors_supported = yes; then
12643 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.0" 2>&1`
12644 else
12645 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.0" 2>&1`
12646 fi
12647 # Put the nasty error message in config.log where it belongs
12648 echo "$GLIB2_PKG_ERRORS" >&5
12649
12650 :
12651 elif test $pkg_failed = untried; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12654 :
12655 else
12656 GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
12657 GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12659 $as_echo "yes" >&6; }
12660
12661 LIBOOP_LIBS="liboop-glib2.la $LIBOOP_LIBS"
12662 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
12663
12664
12665 fi
12666 fi
12667
12668 if test xno != x$with_tcl; then
•12669 for version in "" 8.4 8.3 8.2 8.1 8.0 ; do
12670 CPPFLAGS="$save_cppflags -I/usr/include/tcl$version"
12671 as_ac_Lib=`$as_echo "ac_cv_lib_tcl$version''_Tcl_Main" | $as_tr_sh`
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Main in -ltcl$version" >&5
12673 $as_echo_n "checking for Tcl_Main in -ltcl$version... " >&6; }
12674 if eval \${$as_ac_Lib+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 ac_check_lib_save_LIBS=$LIBS
12678 LIBS="-ltcl$version $LIBS"
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 char Tcl_Main ();
12689 int
12690 main ()
12691 {
12692 return Tcl_Main ();
12693 ;
12694 return 0;
12695 }
12696 _ACEOF
12697 if ac_fn_c_try_link "$LINENO"; then :
12698 eval "$as_ac_Lib=yes"
12699 else
12700 eval "$as_ac_Lib=no"
12701 fi
12702 rm -f core conftest.err conftest.$ac_objext \
12703 conftest$ac_exeext conftest.$ac_ext
12704 LIBS=$ac_check_lib_save_LIBS
12705 fi
12706 eval ac_res=\$$as_ac_Lib
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12708 $as_echo "$ac_res" >&6; }
12709 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12710
12711 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
12712 if test "x$ac_cv_header_tcl_h" = xyes; then :
12713
12714 LIBOOP_LIBS="liboop-tcl.la $LIBOOP_LIBS"
12715 $as_echo "#define HAVE_TCL 1" >>confdefs.h
12716
12717 TCL_INCLUDES="-I/usr/include/tcl$version"
12718 TCL_LIBS="-ltcl$version"
12719 break
12720
12721 fi
12722
12723
12724 fi
12725
12726 done
12727 CPPFLAGS="$save_cppflags"
12728 fi
12729
12730 if test xyes = x$with_libwww; then
12731 save_libs="$LIBS"
12732 save_cppflags="$CPPFLAGS"
12733 # Extract the first word of "libwww-config", so it can be a program name with args.
12734 set dummy libwww-config; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if ${ac_cv_prog_PROG_WWW_CONFIG+:} false; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 if test -n "$PROG_WWW_CONFIG"; then
12741 ac_cv_prog_PROG_WWW_CONFIG="$PROG_WWW_CONFIG" # Let the user override the test.
12742 else
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in $PATH
12745 do
12746 IFS=$as_save_IFS
12747 test -z "$as_dir" && as_dir=.
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12750 ac_cv_prog_PROG_WWW_CONFIG="libwww-config"
12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12752 break 2
12753 fi
12754 done
12755 done
12756 IFS=$as_save_IFS
12757
12758 fi
12759 fi
12760 PROG_WWW_CONFIG=$ac_cv_prog_PROG_WWW_CONFIG
12761 if test -n "$PROG_WWW_CONFIG"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_WWW_CONFIG" >&5
12763 $as_echo "$PROG_WWW_CONFIG" >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12767 fi
12768
12769
12770 if test -n "$PROG_WWW_CONFIG" ; then
12771 WWW_INCLUDES="`libwww-config --cflags`"
12772 WWW_LIBS="`libwww-config --libs`"
12773 LIBS="$save_libs $WWW_LIBS"
12774 CPPFLAGS="$save_cppflags $WWW_INCLUDES"
12775 ac_fn_c_check_func "$LINENO" "HTEvent_setRegisterCallback" "ac_cv_func_HTEvent_setRegisterCallback"
12776 if test "x$ac_cv_func_HTEvent_setRegisterCallback" = xyes; then :
12777
12778 LIBOOP_LIBS="liboop-www.la $LIBOOP_LIBS"
12779 $as_echo "#define HAVE_WWW 1" >>confdefs.h
12780
12781
12782 fi
12783
12784 fi
12785 LIBS="$save_libs"
12786 CPPFLAGS="$save_cppflags"
12787 fi
12788
12789 if test -z "$no_wacky_libs" ; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
12791 $as_echo_n "checking for res_query in -lresolv... " >&6; }
12792 if ${ac_cv_lib_resolv_res_query+:} false; then :
12793 $as_echo_n "(cached) " >&6
12794 else
12795 ac_check_lib_save_LIBS=$LIBS
12796 LIBS="-lresolv $LIBS"
12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12799
12800 /* Override any GCC internal prototype to avoid an error.
12801 Use char because int might match the return type of a GCC
12802 builtin and then its argument prototype would still apply. */
12803 #ifdef __cplusplus
12804 extern "C"
12805 #endif
12806 char res_query ();
12807 int
12808 main ()
12809 {
12810 return res_query ();
12811 ;
12812 return 0;
12813 }
12814 _ACEOF
12815 if ac_fn_c_try_link "$LINENO"; then :
12816 ac_cv_lib_resolv_res_query=yes
12817 else
12818 ac_cv_lib_resolv_res_query=no
12819 fi
12820 rm -f core conftest.err conftest.$ac_objext \
12821 conftest$ac_exeext conftest.$ac_ext
12822 LIBS=$ac_check_lib_save_LIBS
12823 fi
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
12825 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
12826 if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
12827 cat >>confdefs.h <<_ACEOF
12828 #define HAVE_LIBRESOLV 1
12829 _ACEOF
12830
12831 LIBS="-lresolv $LIBS"
12832
12833 fi
12834
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12836 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12837 if ${ac_cv_search_gethostbyname+:} false; then :
12838 $as_echo_n "(cached) " >&6
12839 else
12840 ac_func_search_save_LIBS=$LIBS
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12843
12844 /* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
12847 #ifdef __cplusplus
12848 extern "C"
12849 #endif
12850 char gethostbyname ();
12851 int
12852 main ()
12853 {
12854 return gethostbyname ();
12855 ;
12856 return 0;
12857 }
12858 _ACEOF
12859 for ac_lib in '' nsl; do
12860 if test -z "$ac_lib"; then
12861 ac_res="none required"
12862 else
12863 ac_res=-l$ac_lib
12864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12865 fi
12866 if ac_fn_c_try_link "$LINENO"; then :
12867 ac_cv_search_gethostbyname=$ac_res
12868 fi
12869 rm -f core conftest.err conftest.$ac_objext \
12870 conftest$ac_exeext
12871 if ${ac_cv_search_gethostbyname+:} false; then :
12872 break
12873 fi
12874 done
12875 if ${ac_cv_search_gethostbyname+:} false; then :
12876
12877 else
12878 ac_cv_search_gethostbyname=no
12879 fi
12880 rm conftest.$ac_ext
12881 LIBS=$ac_func_search_save_LIBS
12882 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12884 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12885 ac_res=$ac_cv_search_gethostbyname
12886 if test "$ac_res" != no; then :
12887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12888
12889 fi
12890
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12892 $as_echo_n "checking for library containing socket... " >&6; }
12893 if ${ac_cv_search_socket+:} false; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 ac_func_search_save_LIBS=$LIBS
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12899
12900 /* Override any GCC internal prototype to avoid an error.
12901 Use char because int might match the return type of a GCC
12902 builtin and then its argument prototype would still apply. */
12903 #ifdef __cplusplus
12904 extern "C"
12905 #endif
12906 char socket ();
12907 int
12908 main ()
12909 {
12910 return socket ();
12911 ;
12912 return 0;
12913 }
12914 _ACEOF
12915 for ac_lib in '' socket; do
12916 if test -z "$ac_lib"; then
12917 ac_res="none required"
12918 else
12919 ac_res=-l$ac_lib
12920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12921 fi
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 ac_cv_search_socket=$ac_res
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext
12927 if ${ac_cv_search_socket+:} false; then :
12928 break
12929 fi
12930 done
12931 if ${ac_cv_search_socket+:} false; then :
12932
12933 else
12934 ac_cv_search_socket=no
12935 fi
12936 rm conftest.$ac_ext
12937 LIBS=$ac_func_search_save_LIBS
12938 fi
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12940 $as_echo "$ac_cv_search_socket" >&6; }
12941 ac_res=$ac_cv_search_socket
12942 if test "$ac_res" != no; then :
12943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12944
12945 fi
12946
12947 fi
12948
12949 test yes = "$GCC" &&
12950 CFLAGS="-Wall -Wno-comment -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wwrite-strings $CFLAGS"' $(EXTRA_CFLAGS)'
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964 ac_config_files="$ac_config_files Makefile liboop.pc liboop-glib2.pc"
12965
12966 cat >confcache <<\_ACEOF
12967 # This file is a shell script that caches the results of configure
12968 # tests run on this system so they can be shared between configure
12969 # scripts and configure runs, see configure's option --config-cache.
12970 # It is not useful on other systems. If it contains results you don't
12971 # want to keep, you may remove or edit it.
12972 #
12973 # config.status only pays attention to the cache file if you give it
12974 # the --recheck option to rerun configure.
12975 #
12976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12978 # following values.
12979
12980 _ACEOF
12981
12982 # The following way of writing the cache mishandles newlines in values,
12983 # but we know of no workaround that is simple, portable, and efficient.
12984 # So, we kill variables containing newlines.
12985 # Ultrix sh set writes to stderr and can't be redirected directly,
12986 # and sets the high bit in the cache file unless we assign to the vars.
12987 (
12988 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12989 eval ac_val=\$$ac_var
12990 case $ac_val in #(
12991 *${as_nl}*)
12992 case $ac_var in #(
12993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12995 esac
12996 case $ac_var in #(
12997 _ | IFS | as_nl) ;; #(
12998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12999 *) { eval $ac_var=; unset $ac_var;} ;;
13000 esac ;;
13001 esac
13002 done
13003
13004 (set) 2>&1 |
13005 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13006 *${as_nl}ac_space=\ *)
13007 # `set' does not quote correctly, so add quotes: double-quote
13008 # substitution turns \\\\ into \\, and sed turns \\ into \.
13009 sed -n \
13010 "s/'/'\\\\''/g;
13011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13012 ;; #(
13013 *)
13014 # `set' quotes correctly as required by POSIX, so do not add quotes.
13015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13016 ;;
13017 esac |
13018 sort
13019 ) |
13020 sed '
13021 /^ac_cv_env_/b end
13022 t clear
13023 :clear
13024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13025 t end
13026 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13027 :end' >>confcache
13028 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13029 if test -w "$cache_file"; then
13030 if test "x$cache_file" != "x/dev/null"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13032 $as_echo "$as_me: updating cache $cache_file" >&6;}
13033 if test ! -f "$cache_file" || test -h "$cache_file"; then
13034 cat confcache >"$cache_file"
13035 else
13036 case $cache_file in #(
13037 */* | ?:*)
13038 mv -f confcache "$cache_file"$$ &&
13039 mv -f "$cache_file"$$ "$cache_file" ;; #(
13040 *)
13041 mv -f confcache "$cache_file" ;;
13042 esac
13043 fi
13044 fi
13045 else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13048 fi
13049 fi
13050 rm -f confcache
13051
13052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13053 # Let make expand exec_prefix.
13054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13055
13056 # Transform confdefs.h into DEFS.
13057 # Protect against shell expansion while executing Makefile rules.
13058 # Protect against Makefile macro expansion.
13059 #
13060 # If the first sed substitution is executed (which looks for macros that
13061 # take arguments), then branch to the quote section. Otherwise,
13062 # look for a macro that doesn't take arguments.
13063 ac_script='
13064 :mline
13065 /\\$/{
13066 N
13067 s,\\\n,,
13068 b mline
13069 }
13070 t clear
13071 :clear
13072 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13073 t quote
13074 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13075 t quote
13076 b any
13077 :quote
13078 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13079 s/\[/\\&/g
13080 s/\]/\\&/g
13081 s/\$/$$/g
13082 H
13083 :any
13084 ${
13085 g
13086 s/^\n//
13087 s/\n/ /g
13088 p
13089 }
13090 '
13091 DEFS=`sed -n "$ac_script" confdefs.h`
13092
13093
13094 ac_libobjs=
13095 ac_ltlibobjs=
13096 U=
13097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13098 # 1. Remove the extension, and $U if already installed.
13099 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13100 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13101 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13102 # will be set to the directory where LIBOBJS objects are built.
13103 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13104 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13105 done
13106 LIBOBJS=$ac_libobjs
13107
13108 LTLIBOBJS=$ac_ltlibobjs
13109
13110
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13112 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13113 if test -n "$am_sleep_pid"; then
13114 # Hide warnings about reused PIDs.
13115 wait $am_sleep_pid 2>/dev/null
13116 fi
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13118 $as_echo "done" >&6; }
13119 if test -n "$EXEEXT"; then
13120 am__EXEEXT_TRUE=
13121 am__EXEEXT_FALSE='#'
13122 else
13123 am__EXEEXT_TRUE='#'
13124 am__EXEEXT_FALSE=
13125 fi
13126
13127 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13128 as_fn_error $? "conditional \"AMDEP\" was never defined.
13129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13130 fi
13131 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13132 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13134 fi
13135 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13136 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13138 fi
13139
13140 : "${CONFIG_STATUS=./config.status}"
13141 ac_write_fail=0
13142 ac_clean_files_save=$ac_clean_files
13143 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13145 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13146 as_write_fail=0
13147 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13148 #! $SHELL
13149 # Generated by $as_me.
13150 # Run this file to recreate the current configuration.
13151 # Compiler output produced by configure, useful for debugging
13152 # configure, is in config.log if it exists.
13153
13154 debug=false
13155 ac_cs_recheck=false
13156 ac_cs_silent=false
13157
13158 SHELL=\${CONFIG_SHELL-$SHELL}
13159 export SHELL
13160 _ASEOF
13161 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13162 ## -------------------- ##
13163 ## M4sh Initialization. ##
13164 ## -------------------- ##
13165
13166 # Be more Bourne compatible
13167 DUALCASE=1; export DUALCASE # for MKS sh
13168 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13169 emulate sh
13170 NULLCMD=:
13171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13172 # is contrary to our usage. Disable this feature.
13173 alias -g '${1+"$@"}'='"$@"'
13174 setopt NO_GLOB_SUBST
13175 else
13176 case `(set -o) 2>/dev/null` in #(
13177 *posix*) :
13178 set -o posix ;; #(
13179 *) :
13180 ;;
13181 esac
13182 fi
13183
13184
13185 as_nl='
13186 '
13187 export as_nl
13188 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13189 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13190 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13192 # Prefer a ksh shell builtin over an external printf program on Solaris,
13193 # but without wasting forks for bash or zsh.
13194 if test -z "$BASH_VERSION$ZSH_VERSION" \
13195 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13196 as_echo='print -r --'
13197 as_echo_n='print -rn --'
13198 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13199 as_echo='printf %s\n'
13200 as_echo_n='printf %s'
13201 else
13202 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13203 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13204 as_echo_n='/usr/ucb/echo -n'
13205 else
13206 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13207 as_echo_n_body='eval
13208 arg=$1;
13209 case $arg in #(
13210 *"$as_nl"*)
13211 expr "X$arg" : "X\\(.*\\)$as_nl";
13212 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13213 esac;
13214 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13215 '
13216 export as_echo_n_body
13217 as_echo_n='sh -c $as_echo_n_body as_echo'
13218 fi
13219 export as_echo_body
13220 as_echo='sh -c $as_echo_body as_echo'
13221 fi
13222
13223 # The user is always right.
13224 if test "${PATH_SEPARATOR+set}" != set; then
13225 PATH_SEPARATOR=:
13226 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13227 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13228 PATH_SEPARATOR=';'
13229 }
13230 fi
13231
13232
13233 # IFS
13234 # We need space, tab and new line, in precisely that order. Quoting is
13235 # there to prevent editors from complaining about space-tab.
13236 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13237 # splitting by setting IFS to empty value.)
13238 IFS=" "" $as_nl"
13239
13240 # Find who we are. Look in the path if we contain no directory separator.
13241 as_myself=
13242 case $0 in #((
13243 *[\\/]* ) as_myself=$0 ;;
13244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13246 do
13247 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=.
13249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13250 done
13251 IFS=$as_save_IFS
13252
13253 ;;
13254 esac
13255 # We did not find ourselves, most probably we were run as `sh COMMAND'
13256 # in which case we are not to be found in the path.
13257 if test "x$as_myself" = x; then
13258 as_myself=$0
13259 fi
13260 if test ! -f "$as_myself"; then
13261 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13262 exit 1
13263 fi
13264
13265 # Unset variables that we do not need and which cause bugs (e.g. in
13266 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13267 # suppresses any "Segmentation fault" message there. '((' could
13268 # trigger a bug in pdksh 5.2.14.
13269 for as_var in BASH_ENV ENV MAIL MAILPATH
13270 do eval test x\${$as_var+set} = xset \
13271 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13272 done
13273 PS1='$ '
13274 PS2='> '
13275 PS4='+ '
13276
13277 # NLS nuisances.
13278 LC_ALL=C
13279 export LC_ALL
13280 LANGUAGE=C
13281 export LANGUAGE
13282
13283 # CDPATH.
13284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13285
13286
13287 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13288 # ----------------------------------------
13289 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13290 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13291 # script with STATUS, using 1 if that was 0.
13292 as_fn_error ()
13293 {
13294 as_status=$1; test $as_status -eq 0 && as_status=1
13295 if test "$4"; then
13296 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13297 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13298 fi
13299 $as_echo "$as_me: error: $2" >&2
13300 as_fn_exit $as_status
13301 } # as_fn_error
13302
13303
13304 # as_fn_set_status STATUS
13305 # -----------------------
13306 # Set $? to STATUS, without forking.
13307 as_fn_set_status ()
13308 {
13309 return $1
13310 } # as_fn_set_status
13311
13312 # as_fn_exit STATUS
13313 # -----------------
13314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13315 as_fn_exit ()
13316 {
13317 set +e
13318 as_fn_set_status $1
13319 exit $1
13320 } # as_fn_exit
13321
13322 # as_fn_unset VAR
13323 # ---------------
13324 # Portably unset VAR.
13325 as_fn_unset ()
13326 {
13327 { eval $1=; unset $1;}
13328 }
13329 as_unset=as_fn_unset
13330 # as_fn_append VAR VALUE
13331 # ----------------------
13332 # Append the text in VALUE to the end of the definition contained in VAR. Take
13333 # advantage of any shell optimizations that allow amortized linear growth over
13334 # repeated appends, instead of the typical quadratic growth present in naive
13335 # implementations.
13336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13337 eval 'as_fn_append ()
13338 {
13339 eval $1+=\$2
13340 }'
13341 else
13342 as_fn_append ()
13343 {
13344 eval $1=\$$1\$2
13345 }
13346 fi # as_fn_append
13347
13348 # as_fn_arith ARG...
13349 # ------------------
13350 # Perform arithmetic evaluation on the ARGs, and store the result in the
13351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13352 # must be portable across $(()) and expr.
13353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13354 eval 'as_fn_arith ()
13355 {
13356 as_val=$(( $* ))
13357 }'
13358 else
13359 as_fn_arith ()
13360 {
13361 as_val=`expr "$@" || test $? -eq 1`
13362 }
13363 fi # as_fn_arith
13364
13365
13366 if expr a : '\(a\)' >/dev/null 2>&1 &&
13367 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13368 as_expr=expr
13369 else
13370 as_expr=false
13371 fi
13372
13373 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13374 as_basename=basename
13375 else
13376 as_basename=false
13377 fi
13378
13379 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13380 as_dirname=dirname
13381 else
13382 as_dirname=false
13383 fi
13384
13385 as_me=`$as_basename -- "$0" ||
13386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13387 X"$0" : 'X\(//\)$' \| \
13388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13389 $as_echo X/"$0" |
13390 sed '/^.*\/\([^/][^/]*\)\/*$/{
13391 s//\1/
13392 q
13393 }
13394 /^X\/\(\/\/\)$/{
13395 s//\1/
13396 q
13397 }
13398 /^X\/\(\/\).*/{
13399 s//\1/
13400 q
13401 }
13402 s/.*/./; q'`
13403
13404 # Avoid depending upon Character Ranges.
13405 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13406 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13407 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13408 as_cr_digits='0123456789'
13409 as_cr_alnum=$as_cr_Letters$as_cr_digits
13410
13411 ECHO_C= ECHO_N= ECHO_T=
13412 case `echo -n x` in #(((((
13413 -n*)
13414 case `echo 'xy\c'` in
13415 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13416 xy) ECHO_C='\c';;
13417 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13418 ECHO_T=' ';;
13419 esac;;
13420 *)
13421 ECHO_N='-n';;
13422 esac
13423
13424 rm -f conf$$ conf$$.exe conf$$.file
13425 if test -d conf$$.dir; then
13426 rm -f conf$$.dir/conf$$.file
13427 else
13428 rm -f conf$$.dir
13429 mkdir conf$$.dir 2>/dev/null
13430 fi
13431 if (echo >conf$$.file) 2>/dev/null; then
13432 if ln -s conf$$.file conf$$ 2>/dev/null; then
13433 as_ln_s='ln -s'
13434 # ... but there are two gotchas:
13435 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13436 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13437 # In both cases, we have to default to `cp -pR'.
13438 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13439 as_ln_s='cp -pR'
13440 elif ln conf$$.file conf$$ 2>/dev/null; then
13441 as_ln_s=ln
13442 else
13443 as_ln_s='cp -pR'
13444 fi
13445 else
13446 as_ln_s='cp -pR'
13447 fi
13448 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13449 rmdir conf$$.dir 2>/dev/null
13450
13451
13452 # as_fn_mkdir_p
13453 # -------------
13454 # Create "$as_dir" as a directory, including parents if necessary.
13455 as_fn_mkdir_p ()
13456 {
13457
13458 case $as_dir in #(
13459 -*) as_dir=./$as_dir;;
13460 esac
13461 test -d "$as_dir" || eval $as_mkdir_p || {
13462 as_dirs=
13463 while :; do
13464 case $as_dir in #(
13465 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13466 *) as_qdir=$as_dir;;
13467 esac
13468 as_dirs="'$as_qdir' $as_dirs"
13469 as_dir=`$as_dirname -- "$as_dir" ||
13470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13471 X"$as_dir" : 'X\(//\)[^/]' \| \
13472 X"$as_dir" : 'X\(//\)$' \| \
13473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13474 $as_echo X"$as_dir" |
13475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13476 s//\1/
13477 q
13478 }
13479 /^X\(\/\/\)[^/].*/{
13480 s//\1/
13481 q
13482 }
13483 /^X\(\/\/\)$/{
13484 s//\1/
13485 q
13486 }
13487 /^X\(\/\).*/{
13488 s//\1/
13489 q
13490 }
13491 s/.*/./; q'`
13492 test -d "$as_dir" && break
13493 done
13494 test -z "$as_dirs" || eval "mkdir $as_dirs"
13495 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13496
13497
13498 } # as_fn_mkdir_p
13499 if mkdir -p . 2>/dev/null; then
13500 as_mkdir_p='mkdir -p "$as_dir"'
13501 else
13502 test -d ./-p && rmdir ./-p
13503 as_mkdir_p=false
13504 fi
13505
13506
13507 # as_fn_executable_p FILE
13508 # -----------------------
13509 # Test if FILE is an executable regular file.
13510 as_fn_executable_p ()
13511 {
13512 test -f "$1" && test -x "$1"
13513 } # as_fn_executable_p
13514 as_test_x='test -x'
13515 as_executable_p=as_fn_executable_p
13516
13517 # Sed expression to map a string onto a valid CPP name.
13518 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13519
13520 # Sed expression to map a string onto a valid variable name.
13521 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13522
13523
13524 exec 6>&1
13525 ## ----------------------------------- ##
13526 ## Main body of $CONFIG_STATUS script. ##
13527 ## ----------------------------------- ##
13528 _ASEOF
13529 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13530
13531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13532 # Save the log message, to keep $0 and so on meaningful, and to
13533 # report actual input values of CONFIG_FILES etc. instead of their
13534 # values after options handling.
13535 ac_log="
13536 This file was extended by $as_me, which was
13537 generated by GNU Autoconf 2.69. Invocation command line was
13538
13539 CONFIG_FILES = $CONFIG_FILES
13540 CONFIG_HEADERS = $CONFIG_HEADERS
13541 CONFIG_LINKS = $CONFIG_LINKS
13542 CONFIG_COMMANDS = $CONFIG_COMMANDS
13543 $ $0 $@
13544
13545 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13546 "
13547
13548 _ACEOF
13549
13550 case $ac_config_files in *"
13551 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13552 esac
13553
13554
13555
13556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13557 # Files that config.status was made for.
13558 config_files="$ac_config_files"
13559 config_commands="$ac_config_commands"
13560
13561 _ACEOF
13562
13563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13564 ac_cs_usage="\
13565 \`$as_me' instantiates files and other configuration actions
13566 from templates according to the current configuration. Unless the files
13567 and actions are specified as TAGs, all are instantiated by default.
13568
13569 Usage: $0 [OPTION]... [TAG]...
13570
13571 -h, --help print this help, then exit
13572 -V, --version print version number and configuration settings, then exit
13573 --config print configuration, then exit
13574 -q, --quiet, --silent
13575 do not print progress messages
13576 -d, --debug don't remove temporary files
13577 --recheck update $as_me by reconfiguring in the same conditions
13578 --file=FILE[:TEMPLATE]
13579 instantiate the configuration file FILE
13580
13581 Configuration files:
13582 $config_files
13583
13584 Configuration commands:
13585 $config_commands
13586
13587 Report bugs to the package provider."
13588
13589 _ACEOF
13590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13591 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13592 ac_cs_version="\\
13593 config.status
13594 configured by $0, generated by GNU Autoconf 2.69,
13595 with options \\"\$ac_cs_config\\"
13596
13597 Copyright (C) 2012 Free Software Foundation, Inc.
13598 This config.status script is free software; the Free Software Foundation
13599 gives unlimited permission to copy, distribute and modify it."
13600
13601 ac_pwd='$ac_pwd'
13602 srcdir='$srcdir'
13603 INSTALL='$INSTALL'
13604 MKDIR_P='$MKDIR_P'
13605 AWK='$AWK'
13606 test -n "\$AWK" || AWK=awk
13607 _ACEOF
13608
13609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13610 # The default lists apply if the user does not specify any file.
13611 ac_need_defaults=:
13612 while test $# != 0
13613 do
13614 case $1 in
13615 --*=?*)
13616 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13617 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13618 ac_shift=:
13619 ;;
13620 --*=)
13621 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13622 ac_optarg=
13623 ac_shift=:
13624 ;;
13625 *)
13626 ac_option=$1
13627 ac_optarg=$2
13628 ac_shift=shift
13629 ;;
13630 esac
13631
13632 case $ac_option in
13633 # Handling of the options.
13634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13635 ac_cs_recheck=: ;;
13636 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13637 $as_echo "$ac_cs_version"; exit ;;
13638 --config | --confi | --conf | --con | --co | --c )
13639 $as_echo "$ac_cs_config"; exit ;;
13640 --debug | --debu | --deb | --de | --d | -d )
13641 debug=: ;;
13642 --file | --fil | --fi | --f )
13643 $ac_shift
13644 case $ac_optarg in
13645 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13646 '') as_fn_error $? "missing file argument" ;;
13647 esac
13648 as_fn_append CONFIG_FILES " '$ac_optarg'"
13649 ac_need_defaults=false;;
13650 --he | --h | --help | --hel | -h )
13651 $as_echo "$ac_cs_usage"; exit ;;
13652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13654 ac_cs_silent=: ;;
13655
13656 # This is an error.
13657 -*) as_fn_error $? "unrecognized option: \`$1'
13658 Try \`$0 --help' for more information." ;;
13659
13660 *) as_fn_append ac_config_targets " $1"
13661 ac_need_defaults=false ;;
13662
13663 esac
13664 shift
13665 done
13666
13667 ac_configure_extra_args=
13668
13669 if $ac_cs_silent; then
13670 exec 6>/dev/null
13671 ac_configure_extra_args="$ac_configure_extra_args --silent"
13672 fi
13673
13674 _ACEOF
13675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13676 if \$ac_cs_recheck; then
13677 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13678 shift
13679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13680 CONFIG_SHELL='$SHELL'
13681 export CONFIG_SHELL
13682 exec "\$@"
13683 fi
13684
13685 _ACEOF
13686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13687 exec 5>>config.log
13688 {
13689 echo
13690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13691 ## Running $as_me. ##
13692 _ASBOX
13693 $as_echo "$ac_log"
13694 } >&5
13695
13696 _ACEOF
13697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13698 #
13699 # INIT-COMMANDS
13700 #
13701 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13702
13703
13704 # The HP-UX ksh and POSIX shell print the target directory to stdout
13705 # if CDPATH is set.
13706 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13707
13708 sed_quote_subst='$sed_quote_subst'
13709 double_quote_subst='$double_quote_subst'
13710 delay_variable_subst='$delay_variable_subst'
13711 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13712 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13713 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13714 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13715 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13716 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13717 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13718 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13719 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13720 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13721 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13722 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13723 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13724 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13725 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13726 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13727 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13728 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13729 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13730 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13731 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13732 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13733 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13734 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13735 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13736 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13737 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13738 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13739 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13740 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13741 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13742 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13743 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13744 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13745 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13746 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13747 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13748 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13749 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13750 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13751 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13752 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13753 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13754 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13755 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13756 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13757 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13758 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13759 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13760 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13761 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13762 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13763 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13764 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13765 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13766 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13767 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"`'
13768 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13769 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13770 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13771 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13772 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13773 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13774 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13775 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13776 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13777 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13778 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13779 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13780 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13781 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13782 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13783 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13784 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13785 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13786 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13787 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13788 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13789 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13790 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13791 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13792 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13793 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13794 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13795 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13796 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13797 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13798 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13799 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13800 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13801 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13802 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13803 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13804 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13805 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13806 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13807 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13808 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13809 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13810 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13811 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13812 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13813 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13814 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13815 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13816 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13817 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13818 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13819 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13820 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13821 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13822 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13823 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13824 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13825 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13826 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13827 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13828 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13829 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13830 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13831 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13832 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13833 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13834 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13835 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13836 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13837 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13838 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13839 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13840 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13841
13842 LTCC='$LTCC'
13843 LTCFLAGS='$LTCFLAGS'
13844 compiler='$compiler_DEFAULT'
13845
13846 # A function that is used when there is no print builtin or printf.
13847 func_fallback_echo ()
13848 {
13849 eval 'cat <<_LTECHO_EOF
13850 \$1
13851 _LTECHO_EOF'
13852 }
13853
13854 # Quote evaled strings.
13855 for var in SHELL \
13856 ECHO \
13857 PATH_SEPARATOR \
13858 SED \
13859 GREP \
13860 EGREP \
13861 FGREP \
13862 LD \
13863 NM \
13864 LN_S \
13865 lt_SP2NL \
13866 lt_NL2SP \
13867 reload_flag \
13868 OBJDUMP \
13869 deplibs_check_method \
13870 file_magic_cmd \
13871 file_magic_glob \
13872 want_nocaseglob \
13873 DLLTOOL \
13874 sharedlib_from_linklib_cmd \
13875 AR \
13876 AR_FLAGS \
13877 archiver_list_spec \
13878 STRIP \
13879 RANLIB \
13880 CC \
13881 CFLAGS \
13882 compiler \
13883 lt_cv_sys_global_symbol_pipe \
13884 lt_cv_sys_global_symbol_to_cdecl \
13885 lt_cv_sys_global_symbol_to_c_name_address \
13886 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13887 nm_file_list_spec \
13888 lt_prog_compiler_no_builtin_flag \
13889 lt_prog_compiler_pic \
13890 lt_prog_compiler_wl \
13891 lt_prog_compiler_static \
13892 lt_cv_prog_compiler_c_o \
13893 need_locks \
13894 MANIFEST_TOOL \
13895 DSYMUTIL \
13896 NMEDIT \
13897 LIPO \
13898 OTOOL \
13899 OTOOL64 \
13900 shrext_cmds \
13901 export_dynamic_flag_spec \
13902 whole_archive_flag_spec \
13903 compiler_needs_object \
13904 with_gnu_ld \
13905 allow_undefined_flag \
13906 no_undefined_flag \
13907 hardcode_libdir_flag_spec \
13908 hardcode_libdir_separator \
13909 exclude_expsyms \
13910 include_expsyms \
13911 file_list_spec \
13912 variables_saved_for_relink \
13913 libname_spec \
13914 library_names_spec \
13915 soname_spec \
13916 install_override_mode \
13917 finish_eval \
13918 old_striplib \
13919 striplib; do
13920 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13921 *[\\\\\\\`\\"\\\$]*)
13922 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13923 ;;
13924 *)
13925 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13926 ;;
13927 esac
13928 done
13929
13930 # Double-quote double-evaled strings.
13931 for var in reload_cmds \
13932 old_postinstall_cmds \
13933 old_postuninstall_cmds \
13934 old_archive_cmds \
13935 extract_expsyms_cmds \
13936 old_archive_from_new_cmds \
13937 old_archive_from_expsyms_cmds \
13938 archive_cmds \
13939 archive_expsym_cmds \
13940 module_cmds \
13941 module_expsym_cmds \
13942 export_symbols_cmds \
13943 prelink_cmds \
13944 postlink_cmds \
13945 postinstall_cmds \
13946 postuninstall_cmds \
13947 finish_cmds \
13948 sys_lib_search_path_spec \
13949 sys_lib_dlsearch_path_spec; do
13950 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13951 *[\\\\\\\`\\"\\\$]*)
13952 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13953 ;;
13954 *)
13955 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13956 ;;
13957 esac
13958 done
13959
13960 ac_aux_dir='$ac_aux_dir'
13961 xsi_shell='$xsi_shell'
13962 lt_shell_append='$lt_shell_append'
13963
13964 # See if we are running on zsh, and set the options which allow our
13965 # commands through without removal of \ escapes INIT.
13966 if test -n "\${ZSH_VERSION+set}" ; then
13967 setopt NO_GLOB_SUBST
13968 fi
13969
13970
13971 PACKAGE='$PACKAGE'
13972 VERSION='$VERSION'
13973 TIMESTAMP='$TIMESTAMP'
13974 RM='$RM'
13975 ofile='$ofile'
13976
13977
13978
13979
13980 _ACEOF
13981
13982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13983
13984 # Handling of arguments.
13985 for ac_config_target in $ac_config_targets
13986 do
13987 case $ac_config_target in
13988 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13989 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13990 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13991 "liboop.pc") CONFIG_FILES="$CONFIG_FILES liboop.pc" ;;
13992 "liboop-glib2.pc") CONFIG_FILES="$CONFIG_FILES liboop-glib2.pc" ;;
13993
13994 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13995 esac
13996 done
13997
13998
13999 # If the user did not use the arguments to specify the items to instantiate,
14000 # then the envvar interface is used. Set only those that are not.
14001 # We use the long form for the default assignment because of an extremely
14002 # bizarre bug on SunOS 4.1.3.
14003 if $ac_need_defaults; then
14004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14006 fi
14007
14008 # Have a temporary directory for convenience. Make it in the build tree
14009 # simply because there is no reason against having it here, and in addition,
14010 # creating and moving files from /tmp can sometimes cause problems.
14011 # Hook for its removal unless debugging.
14012 # Note that there is a small window in which the directory will not be cleaned:
14013 # after its creation but before its name has been assigned to `$tmp'.
14014 $debug ||
14015 {
14016 tmp= ac_tmp=
14017 trap 'exit_status=$?
14018 : "${ac_tmp:=$tmp}"
14019 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14020 ' 0
14021 trap 'as_fn_exit 1' 1 2 13 15
14022 }
14023 # Create a (secure) tmp directory for tmp files.
14024
14025 {
14026 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14027 test -d "$tmp"
14028 } ||
14029 {
14030 tmp=./conf$$-$RANDOM
14031 (umask 077 && mkdir "$tmp")
14032 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14033 ac_tmp=$tmp
14034
14035 # Set up the scripts for CONFIG_FILES section.
14036 # No need to generate them if there are no CONFIG_FILES.
14037 # This happens for instance with `./config.status config.h'.
14038 if test -n "$CONFIG_FILES"; then
14039
14040
14041 ac_cr=`echo X | tr X '\015'`
14042 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14043 # But we know of no other shell where ac_cr would be empty at this
14044 # point, so we can use a bashism as a fallback.
14045 if test "x$ac_cr" = x; then
14046 eval ac_cr=\$\'\\r\'
14047 fi
14048 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14049 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14050 ac_cs_awk_cr='\\r'
14051 else
14052 ac_cs_awk_cr=$ac_cr
14053 fi
14054
14055 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14056 _ACEOF
14057
14058
14059 {
14060 echo "cat >conf$$subs.awk <<_ACEOF" &&
14061 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14062 echo "_ACEOF"
14063 } >conf$$subs.sh ||
14064 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14065 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14066 ac_delim='%!_!# '
14067 for ac_last_try in false false false false false :; do
14068 . ./conf$$subs.sh ||
14069 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14070
14071 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14072 if test $ac_delim_n = $ac_delim_num; then
14073 break
14074 elif $ac_last_try; then
14075 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14076 else
14077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14078 fi
14079 done
14080 rm -f conf$$subs.sh
14081
14082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14083 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14084 _ACEOF
14085 sed -n '
14086 h
14087 s/^/S["/; s/!.*/"]=/
14088 p
14089 g
14090 s/^[^!]*!//
14091 :repl
14092 t repl
14093 s/'"$ac_delim"'$//
14094 t delim
14095 :nl
14096 h
14097 s/\(.\{148\}\)..*/\1/
14098 t more1
14099 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14100 p
14101 n
14102 b repl
14103 :more1
14104 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14105 p
14106 g
14107 s/.\{148\}//
14108 t nl
14109 :delim
14110 h
14111 s/\(.\{148\}\)..*/\1/
14112 t more2
14113 s/["\\]/\\&/g; s/^/"/; s/$/"/
14114 p
14115 b
14116 :more2
14117 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14118 p
14119 g
14120 s/.\{148\}//
14121 t delim
14122 ' <conf$$subs.awk | sed '
14123 /^[^""]/{
14124 N
14125 s/\n//
14126 }
14127 ' >>$CONFIG_STATUS || ac_write_fail=1
14128 rm -f conf$$subs.awk
14129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14130 _ACAWK
14131 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14132 for (key in S) S_is_set[key] = 1
14133 FS = ""
14134
14135 }
14136 {
14137 line = $ 0
14138 nfields = split(line, field, "@")
14139 substed = 0
14140 len = length(field[1])
14141 for (i = 2; i < nfields; i++) {
14142 key = field[i]
14143 keylen = length(key)
14144 if (S_is_set[key]) {
14145 value = S[key]
14146 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14147 len += length(value) + length(field[++i])
14148 substed = 1
14149 } else
14150 len += 1 + keylen
14151 }
14152
14153 print line
14154 }
14155
14156 _ACAWK
14157 _ACEOF
14158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14159 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14160 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14161 else
14162 cat
14163 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14164 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14165 _ACEOF
14166
14167 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14168 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14169 # trailing colons and then remove the whole line if VPATH becomes empty
14170 # (actually we leave an empty line to preserve line numbers).
14171 if test "x$srcdir" = x.; then
14172 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14173 h
14174 s///
14175 s/^/:/
14176 s/[ ]*$/:/
14177 s/:\$(srcdir):/:/g
14178 s/:\${srcdir}:/:/g
14179 s/:@srcdir@:/:/g
14180 s/^:*//
14181 s/:*$//
14182 x
14183 s/\(=[ ]*\).*/\1/
14184 G
14185 s/\n//
14186 s/^[^=]*=[ ]*$//
14187 }'
14188 fi
14189
14190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14191 fi # test -n "$CONFIG_FILES"
14192
14193
14194 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14195 shift
14196 for ac_tag
14197 do
14198 case $ac_tag in
14199 :[FHLC]) ac_mode=$ac_tag; continue;;
14200 esac
14201 case $ac_mode$ac_tag in
14202 :[FHL]*:*);;
14203 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14204 :[FH]-) ac_tag=-:-;;
14205 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14206 esac
14207 ac_save_IFS=$IFS
14208 IFS=:
14209 set x $ac_tag
14210 IFS=$ac_save_IFS
14211 shift
14212 ac_file=$1
14213 shift
14214
14215 case $ac_mode in
14216 :L) ac_source=$1;;
14217 :[FH])
14218 ac_file_inputs=
14219 for ac_f
14220 do
14221 case $ac_f in
14222 -) ac_f="$ac_tmp/stdin";;
14223 *) # Look for the file first in the build tree, then in the source tree
14224 # (if the path is not absolute). The absolute path cannot be DOS-style,
14225 # because $ac_f cannot contain `:'.
14226 test -f "$ac_f" ||
14227 case $ac_f in
14228 [\\/$]*) false;;
14229 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14230 esac ||
14231 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14232 esac
14233 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14234 as_fn_append ac_file_inputs " '$ac_f'"
14235 done
14236
14237 # Let's still pretend it is `configure' which instantiates (i.e., don't
14238 # use $as_me), people would be surprised to read:
14239 # /* config.h. Generated by config.status. */
14240 configure_input='Generated from '`
14241 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14242 `' by configure.'
14243 if test x"$ac_file" != x-; then
14244 configure_input="$ac_file. $configure_input"
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14246 $as_echo "$as_me: creating $ac_file" >&6;}
14247 fi
14248 # Neutralize special characters interpreted by sed in replacement strings.
14249 case $configure_input in #(
14250 *\&* | *\|* | *\\* )
14251 ac_sed_conf_input=`$as_echo "$configure_input" |
14252 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14253 *) ac_sed_conf_input=$configure_input;;
14254 esac
14255
14256 case $ac_tag in
14257 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14259 esac
14260 ;;
14261 esac
14262
14263 ac_dir=`$as_dirname -- "$ac_file" ||
14264 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14265 X"$ac_file" : 'X\(//\)[^/]' \| \
14266 X"$ac_file" : 'X\(//\)$' \| \
14267 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14268 $as_echo X"$ac_file" |
14269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14270 s//\1/
14271 q
14272 }
14273 /^X\(\/\/\)[^/].*/{
14274 s//\1/
14275 q
14276 }
14277 /^X\(\/\/\)$/{
14278 s//\1/
14279 q
14280 }
14281 /^X\(\/\).*/{
14282 s//\1/
14283 q
14284 }
14285 s/.*/./; q'`
14286 as_dir="$ac_dir"; as_fn_mkdir_p
14287 ac_builddir=.
14288
14289 case "$ac_dir" in
14290 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14291 *)
14292 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14293 # A ".." for each directory in $ac_dir_suffix.
14294 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14295 case $ac_top_builddir_sub in
14296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14298 esac ;;
14299 esac
14300 ac_abs_top_builddir=$ac_pwd
14301 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14302 # for backward compatibility:
14303 ac_top_builddir=$ac_top_build_prefix
14304
14305 case $srcdir in
14306 .) # We are building in place.
14307 ac_srcdir=.
14308 ac_top_srcdir=$ac_top_builddir_sub
14309 ac_abs_top_srcdir=$ac_pwd ;;
14310 [\\/]* | ?:[\\/]* ) # Absolute name.
14311 ac_srcdir=$srcdir$ac_dir_suffix;
14312 ac_top_srcdir=$srcdir
14313 ac_abs_top_srcdir=$srcdir ;;
14314 *) # Relative name.
14315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14316 ac_top_srcdir=$ac_top_build_prefix$srcdir
14317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14318 esac
14319 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14320
14321
14322 case $ac_mode in
14323 :F)
14324 #
14325 # CONFIG_FILE
14326 #
14327
14328 case $INSTALL in
14329 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14330 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14331 esac
14332 ac_MKDIR_P=$MKDIR_P
14333 case $MKDIR_P in
14334 [\\/$]* | ?:[\\/]* ) ;;
14335 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14336 esac
14337 _ACEOF
14338
14339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14340 # If the template does not know about datarootdir, expand it.
14341 # FIXME: This hack should be removed a few years after 2.60.
14342 ac_datarootdir_hack=; ac_datarootdir_seen=
14343 ac_sed_dataroot='
14344 /datarootdir/ {
14345 p
14346 q
14347 }
14348 /@datadir@/p
14349 /@docdir@/p
14350 /@infodir@/p
14351 /@localedir@/p
14352 /@mandir@/p'
14353 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14354 *datarootdir*) ac_datarootdir_seen=yes;;
14355 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14357 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14358 _ACEOF
14359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14360 ac_datarootdir_hack='
14361 s&@datadir@&$datadir&g
14362 s&@docdir@&$docdir&g
14363 s&@infodir@&$infodir&g
14364 s&@localedir@&$localedir&g
14365 s&@mandir@&$mandir&g
14366 s&\\\${datarootdir}&$datarootdir&g' ;;
14367 esac
14368 _ACEOF
14369
14370 # Neutralize VPATH when `$srcdir' = `.'.
14371 # Shell code in configure.ac might set extrasub.
14372 # FIXME: do we really want to maintain this feature?
14373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14374 ac_sed_extra="$ac_vpsub
14375 $extrasub
14376 _ACEOF
14377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14378 :t
14379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14380 s|@configure_input@|$ac_sed_conf_input|;t t
14381 s&@top_builddir@&$ac_top_builddir_sub&;t t
14382 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14383 s&@srcdir@&$ac_srcdir&;t t
14384 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14385 s&@top_srcdir@&$ac_top_srcdir&;t t
14386 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14387 s&@builddir@&$ac_builddir&;t t
14388 s&@abs_builddir@&$ac_abs_builddir&;t t
14389 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14390 s&@INSTALL@&$ac_INSTALL&;t t
14391 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14392 $ac_datarootdir_hack
14393 "
14394 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14395 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14396
14397 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14398 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14399 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14400 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14402 which seems to be undefined. Please make sure it is defined" >&5
14403 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14404 which seems to be undefined. Please make sure it is defined" >&2;}
14405
14406 rm -f "$ac_tmp/stdin"
14407 case $ac_file in
14408 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14409 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14410 esac \
14411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14412 ;;
14413
14414
14415 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14416 $as_echo "$as_me: executing $ac_file commands" >&6;}
14417 ;;
14418 esac
14419
14420
14421 case $ac_file$ac_mode in
14422 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14423 # Older Autoconf quotes --file arguments for eval, but not when files
14424 # are listed without --file. Let's play safe and only enable the eval
14425 # if we detect the quoting.
14426 case $CONFIG_FILES in
14427 *\'*) eval set x "$CONFIG_FILES" ;;
14428 *) set x $CONFIG_FILES ;;
14429 esac
14430 shift
14431 for mf
14432 do
14433 # Strip MF so we end up with the name of the file.
14434 mf=`echo "$mf" | sed -e 's/:.*$//'`
14435 # Check whether this is an Automake generated Makefile or not.
14436 # We used to match only the files named 'Makefile.in', but
14437 # some people rename them; so instead we look at the file content.
14438 # Grep'ing the first line is not enough: some people post-process
14439 # each Makefile.in and add a new line on top of each file to say so.
14440 # Grep'ing the whole file is not good either: AIX grep has a line
14441 # limit of 2048, but all sed's we know have understand at least 4000.
14442 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14443 dirpart=`$as_dirname -- "$mf" ||
14444 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14445 X"$mf" : 'X\(//\)[^/]' \| \
14446 X"$mf" : 'X\(//\)$' \| \
14447 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14448 $as_echo X"$mf" |
14449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14450 s//\1/
14451 q
14452 }
14453 /^X\(\/\/\)[^/].*/{
14454 s//\1/
14455 q
14456 }
14457 /^X\(\/\/\)$/{
14458 s//\1/
14459 q
14460 }
14461 /^X\(\/\).*/{
14462 s//\1/
14463 q
14464 }
14465 s/.*/./; q'`
14466 else
14467 continue
14468 fi
14469 # Extract the definition of DEPDIR, am__include, and am__quote
14470 # from the Makefile without running 'make'.
14471 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14472 test -z "$DEPDIR" && continue
14473 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14474 test -z "$am__include" && continue
14475 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14476 # Find all dependency output files, they are included files with
14477 # $(DEPDIR) in their names. We invoke sed twice because it is the
14478 # simplest approach to changing $(DEPDIR) to its actual value in the
14479 # expansion.
14480 for file in `sed -n "
14481 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14482 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14483 # Make sure the directory exists.
14484 test -f "$dirpart/$file" && continue
14485 fdir=`$as_dirname -- "$file" ||
14486 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14487 X"$file" : 'X\(//\)[^/]' \| \
14488 X"$file" : 'X\(//\)$' \| \
14489 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14490 $as_echo X"$file" |
14491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14492 s//\1/
14493 q
14494 }
14495 /^X\(\/\/\)[^/].*/{
14496 s//\1/
14497 q
14498 }
14499 /^X\(\/\/\)$/{
14500 s//\1/
14501 q
14502 }
14503 /^X\(\/\).*/{
14504 s//\1/
14505 q
14506 }
14507 s/.*/./; q'`
14508 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14509 # echo "creating $dirpart/$file"
14510 echo '# dummy' > "$dirpart/$file"
14511 done
14512 done
14513 }
14514 ;;
14515 "libtool":C)
14516
14517 # See if we are running on zsh, and set the options which allow our
14518 # commands through without removal of \ escapes.
14519 if test -n "${ZSH_VERSION+set}" ; then
14520 setopt NO_GLOB_SUBST
14521 fi
14522
14523 cfgfile="${ofile}T"
14524 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14525 $RM "$cfgfile"
14526
14527 cat <<_LT_EOF >> "$cfgfile"
14528 #! $SHELL
14529
14530 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14531 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14532 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14533 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14534 #
14535 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14536 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14537 # Foundation, Inc.
14538 # Written by Gordon Matzigkeit, 1996
14539 #
14540 # This file is part of GNU Libtool.
14541 #
14542 # GNU Libtool is free software; you can redistribute it and/or
14543 # modify it under the terms of the GNU General Public License as
14544 # published by the Free Software Foundation; either version 2 of
14545 # the License, or (at your option) any later version.
14546 #
14547 # As a special exception to the GNU General Public License,
14548 # if you distribute this file as part of a program or library that
14549 # is built using GNU Libtool, you may include this file under the
14550 # same distribution terms that you use for the rest of that program.
14551 #
14552 # GNU Libtool is distributed in the hope that it will be useful,
14553 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14554 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14555 # GNU General Public License for more details.
14556 #
14557 # You should have received a copy of the GNU General Public License
14558 # along with GNU Libtool; see the file COPYING. If not, a copy
14559 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14560 # obtained by writing to the Free Software Foundation, Inc.,
14561 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14562
14563
14564 # The names of the tagged configurations supported by this script.
14565 available_tags=""
14566
14567 # ### BEGIN LIBTOOL CONFIG
14568
14569 # Which release of libtool.m4 was used?
14570 macro_version=$macro_version
14571 macro_revision=$macro_revision
14572
14573 # Whether or not to build shared libraries.
14574 build_libtool_libs=$enable_shared
14575
14576 # Whether or not to build static libraries.
14577 build_old_libs=$enable_static
14578
14579 # What type of objects to build.
14580 pic_mode=$pic_mode
14581
14582 # Whether or not to optimize for fast installation.
14583 fast_install=$enable_fast_install
14584
14585 # Shell to use when invoking shell scripts.
14586 SHELL=$lt_SHELL
14587
14588 # An echo program that protects backslashes.
14589 ECHO=$lt_ECHO
14590
14591 # The PATH separator for the build system.
14592 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14593
14594 # The host system.
14595 host_alias=$host_alias
14596 host=$host
14597 host_os=$host_os
14598
14599 # The build system.
14600 build_alias=$build_alias
14601 build=$build
14602 build_os=$build_os
14603
14604 # A sed program that does not truncate output.
14605 SED=$lt_SED
14606
14607 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14608 Xsed="\$SED -e 1s/^X//"
14609
14610 # A grep program that handles long lines.
14611 GREP=$lt_GREP
14612
14613 # An ERE matcher.
14614 EGREP=$lt_EGREP
14615
14616 # A literal string matcher.
14617 FGREP=$lt_FGREP
14618
14619 # A BSD- or MS-compatible name lister.
14620 NM=$lt_NM
14621
14622 # Whether we need soft or hard links.
14623 LN_S=$lt_LN_S
14624
14625 # What is the maximum length of a command?
14626 max_cmd_len=$max_cmd_len
14627
14628 # Object file suffix (normally "o").
14629 objext=$ac_objext
14630
14631 # Executable file suffix (normally "").
14632 exeext=$exeext
14633
14634 # whether the shell understands "unset".
14635 lt_unset=$lt_unset
14636
14637 # turn spaces into newlines.
14638 SP2NL=$lt_lt_SP2NL
14639
14640 # turn newlines into spaces.
14641 NL2SP=$lt_lt_NL2SP
14642
14643 # convert \$build file names to \$host format.
14644 to_host_file_cmd=$lt_cv_to_host_file_cmd
14645
14646 # convert \$build files to toolchain format.
14647 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14648
14649 # An object symbol dumper.
14650 OBJDUMP=$lt_OBJDUMP
14651
14652 # Method to check whether dependent libraries are shared objects.
14653 deplibs_check_method=$lt_deplibs_check_method
14654
14655 # Command to use when deplibs_check_method = "file_magic".
14656 file_magic_cmd=$lt_file_magic_cmd
14657
14658 # How to find potential files when deplibs_check_method = "file_magic".
14659 file_magic_glob=$lt_file_magic_glob
14660
14661 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14662 want_nocaseglob=$lt_want_nocaseglob
14663
14664 # DLL creation program.
14665 DLLTOOL=$lt_DLLTOOL
14666
14667 # Command to associate shared and link libraries.
14668 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14669
14670 # The archiver.
14671 AR=$lt_AR
14672
14673 # Flags to create an archive.
14674 AR_FLAGS=$lt_AR_FLAGS
14675
14676 # How to feed a file listing to the archiver.
14677 archiver_list_spec=$lt_archiver_list_spec
14678
14679 # A symbol stripping program.
14680 STRIP=$lt_STRIP
14681
14682 # Commands used to install an old-style archive.
14683 RANLIB=$lt_RANLIB
14684 old_postinstall_cmds=$lt_old_postinstall_cmds
14685 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14686
14687 # Whether to use a lock for old archive extraction.
14688 lock_old_archive_extraction=$lock_old_archive_extraction
14689
14690 # A C compiler.
14691 LTCC=$lt_CC
14692
14693 # LTCC compiler flags.
14694 LTCFLAGS=$lt_CFLAGS
14695
14696 # Take the output of nm and produce a listing of raw symbols and C names.
14697 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14698
14699 # Transform the output of nm in a proper C declaration.
14700 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14701
14702 # Transform the output of nm in a C name address pair.
14703 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14704
14705 # Transform the output of nm in a C name address pair when lib prefix is needed.
14706 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14707
14708 # Specify filename containing input files for \$NM.
14709 nm_file_list_spec=$lt_nm_file_list_spec
14710
14711 # The root where to search for dependent libraries,and in which our libraries should be installed.
14712 lt_sysroot=$lt_sysroot
14713
14714 # The name of the directory that contains temporary libtool files.
14715 objdir=$objdir
14716
14717 # Used to examine libraries when file_magic_cmd begins with "file".
14718 MAGIC_CMD=$MAGIC_CMD
14719
14720 # Must we lock files when doing compilation?
14721 need_locks=$lt_need_locks
14722
14723 # Manifest tool.
14724 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14725
14726 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14727 DSYMUTIL=$lt_DSYMUTIL
14728
14729 # Tool to change global to local symbols on Mac OS X.
14730 NMEDIT=$lt_NMEDIT
14731
14732 # Tool to manipulate fat objects and archives on Mac OS X.
14733 LIPO=$lt_LIPO
14734
14735 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14736 OTOOL=$lt_OTOOL
14737
14738 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14739 OTOOL64=$lt_OTOOL64
14740
14741 # Old archive suffix (normally "a").
14742 libext=$libext
14743
14744 # Shared library suffix (normally ".so").
14745 shrext_cmds=$lt_shrext_cmds
14746
14747 # The commands to extract the exported symbol list from a shared archive.
14748 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14749
14750 # Variables whose values should be saved in libtool wrapper scripts and
14751 # restored at link time.
14752 variables_saved_for_relink=$lt_variables_saved_for_relink
14753
14754 # Do we need the "lib" prefix for modules?
14755 need_lib_prefix=$need_lib_prefix
14756
14757 # Do we need a version for libraries?
14758 need_version=$need_version
14759
14760 # Library versioning type.
14761 version_type=$version_type
14762
14763 # Shared library runtime path variable.
14764 runpath_var=$runpath_var
14765
14766 # Shared library path variable.
14767 shlibpath_var=$shlibpath_var
14768
14769 # Is shlibpath searched before the hard-coded library search path?
14770 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14771
14772 # Format of library name prefix.
14773 libname_spec=$lt_libname_spec
14774
14775 # List of archive names. First name is the real one, the rest are links.
14776 # The last name is the one that the linker finds with -lNAME
14777 library_names_spec=$lt_library_names_spec
14778
14779 # The coded name of the library, if different from the real name.
14780 soname_spec=$lt_soname_spec
14781
14782 # Permission mode override for installation of shared libraries.
14783 install_override_mode=$lt_install_override_mode
14784
14785 # Command to use after installation of a shared archive.
14786 postinstall_cmds=$lt_postinstall_cmds
14787
14788 # Command to use after uninstallation of a shared archive.
14789 postuninstall_cmds=$lt_postuninstall_cmds
14790
14791 # Commands used to finish a libtool library installation in a directory.
14792 finish_cmds=$lt_finish_cmds
14793
14794 # As "finish_cmds", except a single script fragment to be evaled but
14795 # not shown.
14796 finish_eval=$lt_finish_eval
14797
14798 # Whether we should hardcode library paths into libraries.
14799 hardcode_into_libs=$hardcode_into_libs
14800
14801 # Compile-time system search path for libraries.
14802 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14803
14804 # Run-time system search path for libraries.
14805 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14806
14807 # Whether dlopen is supported.
14808 dlopen_support=$enable_dlopen
14809
14810 # Whether dlopen of programs is supported.
14811 dlopen_self=$enable_dlopen_self
14812
14813 # Whether dlopen of statically linked programs is supported.
14814 dlopen_self_static=$enable_dlopen_self_static
14815
14816 # Commands to strip libraries.
14817 old_striplib=$lt_old_striplib
14818 striplib=$lt_striplib
14819
14820
14821 # The linker used to build libraries.
14822 LD=$lt_LD
14823
14824 # How to create reloadable object files.
14825 reload_flag=$lt_reload_flag
14826 reload_cmds=$lt_reload_cmds
14827
14828 # Commands used to build an old-style archive.
14829 old_archive_cmds=$lt_old_archive_cmds
14830
14831 # A language specific compiler.
14832 CC=$lt_compiler
14833
14834 # Is the compiler the GNU compiler?
14835 with_gcc=$GCC
14836
14837 # Compiler flag to turn off builtin functions.
14838 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14839
14840 # Additional compiler flags for building library objects.
14841 pic_flag=$lt_lt_prog_compiler_pic
14842
14843 # How to pass a linker flag through the compiler.
14844 wl=$lt_lt_prog_compiler_wl
14845
14846 # Compiler flag to prevent dynamic linking.
14847 link_static_flag=$lt_lt_prog_compiler_static
14848
14849 # Does compiler simultaneously support -c and -o options?
14850 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14851
14852 # Whether or not to add -lc for building shared libraries.
14853 build_libtool_need_lc=$archive_cmds_need_lc
14854
14855 # Whether or not to disallow shared libs when runtime libs are static.
14856 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14857
14858 # Compiler flag to allow reflexive dlopens.
14859 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14860
14861 # Compiler flag to generate shared objects directly from archives.
14862 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14863
14864 # Whether the compiler copes with passing no objects directly.
14865 compiler_needs_object=$lt_compiler_needs_object
14866
14867 # Create an old-style archive from a shared archive.
14868 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14869
14870 # Create a temporary old-style archive to link instead of a shared archive.
14871 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14872
14873 # Commands used to build a shared archive.
14874 archive_cmds=$lt_archive_cmds
14875 archive_expsym_cmds=$lt_archive_expsym_cmds
14876
14877 # Commands used to build a loadable module if different from building
14878 # a shared archive.
14879 module_cmds=$lt_module_cmds
14880 module_expsym_cmds=$lt_module_expsym_cmds
14881
14882 # Whether we are building with GNU ld or not.
14883 with_gnu_ld=$lt_with_gnu_ld
14884
14885 # Flag that allows shared libraries with undefined symbols to be built.
14886 allow_undefined_flag=$lt_allow_undefined_flag
14887
14888 # Flag that enforces no undefined symbols.
14889 no_undefined_flag=$lt_no_undefined_flag
14890
14891 # Flag to hardcode \$libdir into a binary during linking.
14892 # This must work even if \$libdir does not exist
14893 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14894
14895 # Whether we need a single "-rpath" flag with a separated argument.
14896 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14897
14898 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14899 # DIR into the resulting binary.
14900 hardcode_direct=$hardcode_direct
14901
14902 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14903 # DIR into the resulting binary and the resulting library dependency is
14904 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14905 # library is relocated.
14906 hardcode_direct_absolute=$hardcode_direct_absolute
14907
14908 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14909 # into the resulting binary.
14910 hardcode_minus_L=$hardcode_minus_L
14911
14912 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14913 # into the resulting binary.
14914 hardcode_shlibpath_var=$hardcode_shlibpath_var
14915
14916 # Set to "yes" if building a shared library automatically hardcodes DIR
14917 # into the library and all subsequent libraries and executables linked
14918 # against it.
14919 hardcode_automatic=$hardcode_automatic
14920
14921 # Set to yes if linker adds runtime paths of dependent libraries
14922 # to runtime path list.
14923 inherit_rpath=$inherit_rpath
14924
14925 # Whether libtool must link a program against all its dependency libraries.
14926 link_all_deplibs=$link_all_deplibs
14927
14928 # Set to "yes" if exported symbols are required.
14929 always_export_symbols=$always_export_symbols
14930
14931 # The commands to list exported symbols.
14932 export_symbols_cmds=$lt_export_symbols_cmds
14933
14934 # Symbols that should not be listed in the preloaded symbols.
14935 exclude_expsyms=$lt_exclude_expsyms
14936
14937 # Symbols that must always be exported.
14938 include_expsyms=$lt_include_expsyms
14939
14940 # Commands necessary for linking programs (against libraries) with templates.
14941 prelink_cmds=$lt_prelink_cmds
14942
14943 # Commands necessary for finishing linking programs.
14944 postlink_cmds=$lt_postlink_cmds
14945
14946 # Specify filename containing input files.
14947 file_list_spec=$lt_file_list_spec
14948
14949 # How to hardcode a shared library path into an executable.
14950 hardcode_action=$hardcode_action
14951
14952 # ### END LIBTOOL CONFIG
14953
14954 _LT_EOF
14955
14956 case $host_os in
14957 aix3*)
14958 cat <<\_LT_EOF >> "$cfgfile"
14959 # AIX sometimes has problems with the GCC collect2 program. For some
14960 # reason, if we set the COLLECT_NAMES environment variable, the problems
14961 # vanish in a puff of smoke.
14962 if test "X${COLLECT_NAMES+set}" != Xset; then
14963 COLLECT_NAMES=
14964 export COLLECT_NAMES
14965 fi
14966 _LT_EOF
14967 ;;
14968 esac
14969
14970
14971 ltmain="$ac_aux_dir/ltmain.sh"
14972
14973
14974 # We use sed instead of cat because bash on DJGPP gets confused if
14975 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14976 # text mode, it properly converts lines to CR/LF. This bash problem
14977 # is reportedly fixed, but why not run on old versions too?
14978 sed '$q' "$ltmain" >> "$cfgfile" \
14979 || (rm -f "$cfgfile"; exit 1)
14980
14981 if test x"$xsi_shell" = xyes; then
14982 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14983 func_dirname ()\
14984 {\
14985 \ case ${1} in\
14986 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14987 \ * ) func_dirname_result="${3}" ;;\
14988 \ esac\
14989 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14990 && mv -f "$cfgfile.tmp" "$cfgfile" \
14991 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14992 test 0 -eq $? || _lt_function_replace_fail=:
14993
14994
14995 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14996 func_basename ()\
14997 {\
14998 \ func_basename_result="${1##*/}"\
14999 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15000 && mv -f "$cfgfile.tmp" "$cfgfile" \
15001 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15002 test 0 -eq $? || _lt_function_replace_fail=:
15003
15004
15005 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15006 func_dirname_and_basename ()\
15007 {\
15008 \ case ${1} in\
15009 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15010 \ * ) func_dirname_result="${3}" ;;\
15011 \ esac\
15012 \ func_basename_result="${1##*/}"\
15013 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15014 && mv -f "$cfgfile.tmp" "$cfgfile" \
15015 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15016 test 0 -eq $? || _lt_function_replace_fail=:
15017
15018
15019 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15020 func_stripname ()\
15021 {\
15022 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15023 \ # positional parameters, so assign one to ordinary parameter first.\
15024 \ func_stripname_result=${3}\
15025 \ func_stripname_result=${func_stripname_result#"${1}"}\
15026 \ func_stripname_result=${func_stripname_result%"${2}"}\
15027 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15028 && mv -f "$cfgfile.tmp" "$cfgfile" \
15029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15030 test 0 -eq $? || _lt_function_replace_fail=:
15031
15032
15033 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15034 func_split_long_opt ()\
15035 {\
15036 \ func_split_long_opt_name=${1%%=*}\
15037 \ func_split_long_opt_arg=${1#*=}\
15038 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15039 && mv -f "$cfgfile.tmp" "$cfgfile" \
15040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15041 test 0 -eq $? || _lt_function_replace_fail=:
15042
15043
15044 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15045 func_split_short_opt ()\
15046 {\
15047 \ func_split_short_opt_arg=${1#??}\
15048 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15049 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15050 && mv -f "$cfgfile.tmp" "$cfgfile" \
15051 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15052 test 0 -eq $? || _lt_function_replace_fail=:
15053
15054
15055 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15056 func_lo2o ()\
15057 {\
15058 \ case ${1} in\
15059 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15060 \ *) func_lo2o_result=${1} ;;\
15061 \ esac\
15062 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15063 && mv -f "$cfgfile.tmp" "$cfgfile" \
15064 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15065 test 0 -eq $? || _lt_function_replace_fail=:
15066
15067
15068 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15069 func_xform ()\
15070 {\
15071 func_xform_result=${1%.*}.lo\
15072 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15073 && mv -f "$cfgfile.tmp" "$cfgfile" \
15074 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15075 test 0 -eq $? || _lt_function_replace_fail=:
15076
15077
15078 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15079 func_arith ()\
15080 {\
15081 func_arith_result=$(( $* ))\
15082 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15083 && mv -f "$cfgfile.tmp" "$cfgfile" \
15084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15085 test 0 -eq $? || _lt_function_replace_fail=:
15086
15087
15088 sed -e '/^func_len ()$/,/^} # func_len /c\
15089 func_len ()\
15090 {\
15091 func_len_result=${#1}\
15092 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15093 && mv -f "$cfgfile.tmp" "$cfgfile" \
15094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15095 test 0 -eq $? || _lt_function_replace_fail=:
15096
15097 fi
15098
15099 if test x"$lt_shell_append" = xyes; then
15100 sed -e '/^func_append ()$/,/^} # func_append /c\
15101 func_append ()\
15102 {\
15103 eval "${1}+=\\${2}"\
15104 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15105 && mv -f "$cfgfile.tmp" "$cfgfile" \
15106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15107 test 0 -eq $? || _lt_function_replace_fail=:
15108
15109
15110 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15111 func_append_quoted ()\
15112 {\
15113 \ func_quote_for_eval "${2}"\
15114 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15115 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15116 && mv -f "$cfgfile.tmp" "$cfgfile" \
15117 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15118 test 0 -eq $? || _lt_function_replace_fail=:
15119
15120
15121 # Save a `func_append' function call where possible by direct use of '+='
15122 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15123 && mv -f "$cfgfile.tmp" "$cfgfile" \
15124 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15125 test 0 -eq $? || _lt_function_replace_fail=:
15126 else
15127 # Save a `func_append' function call even when '+=' is not available
15128 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15129 && mv -f "$cfgfile.tmp" "$cfgfile" \
15130 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15131 test 0 -eq $? || _lt_function_replace_fail=:
15132 fi
15133
15134 if test x"$_lt_function_replace_fail" = x":"; then
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15136 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15137 fi
15138
15139
15140 mv -f "$cfgfile" "$ofile" ||
15141 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15142 chmod +x "$ofile"
15143
15144 ;;
15145
15146 esac
15147 done # for ac_tag
15148
15149
15150 as_fn_exit 0
15151 _ACEOF
15152 ac_clean_files=$ac_clean_files_save
15153
15154 test $ac_write_fail = 0 ||
15155 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15156
15157
15158 # configure is writing to config.log, and then calls config.status.
15159 # config.status does its own redirection, appending to config.log.
15160 # Unfortunately, on DOS this fails, as config.log is still kept open
15161 # by configure, so config.status won't be able to write to it; its
15162 # output is simply discarded. So we exec the FD to /dev/null,
15163 # effectively closing config.log, so it can be properly (re)opened and
15164 # appended to by config.status. When coming back to configure, we
15165 # need to make the FD available again.
15166 if test "$no_create" != yes; then
15167 ac_cs_success=:
15168 ac_config_status_args=
15169 test "$silent" = yes &&
15170 ac_config_status_args="$ac_config_status_args --quiet"
15171 exec 5>/dev/null
15172 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15173 exec 5>>config.log
15174 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15175 # would make configure fail if this is the last instruction.
15176 $ac_cs_success || as_fn_exit 1
15177 fi
15178 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15180 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15181 fi
15182