Debian Codegraph @

source/enet/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libenet 1.3.6.
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='libenet'
589 PACKAGE_TARNAME='libenet'
590 PACKAGE_VERSION='1.3.6'
591 PACKAGE_STRING='libenet 1.3.6'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="include/enet/enet.h"
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 CPP
637 OTOOL64
638 OTOOL
639 LIPO
640 NMEDIT
641 DSYMUTIL
642 MANIFEST_TOOL
643 RANLIB
644 ac_ct_AR
645 AR
646 DLLTOOL
647 OBJDUMP
648 LN_S
649 NM
650 ac_ct_DUMPBIN
651 DUMPBIN
652 LD
653 FGREP
654 EGREP
655 GREP
656 SED
657 host_os
658 host_vendor
659 host_cpu
660 host
661 build_os
662 build_vendor
663 build_cpu
664 build
665 LIBTOOL
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 MAINT
684 MAINTAINER_MODE_FALSE
685 MAINTAINER_MODE_TRUE
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 enable_maintainer_mode
751 enable_dependency_tracking
752 enable_shared
753 enable_static
754 with_pic
755 enable_fast_install
756 with_gnu_ld
757 with_sysroot
758 enable_libtool_lock
759 '
760 ac_precious_vars='build_alias
761 host_alias
762 target_alias
763 CC
764 CFLAGS
765 LDFLAGS
766 LIBS
767 CPPFLAGS
768 CPP'
769
770
771 # Initialize some variables set by options.
772 ac_init_help=
773 ac_init_version=false
774 ac_unrecognized_opts=
775 ac_unrecognized_sep=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
778 cache_file=/dev/null
779 exec_prefix=NONE
780 no_create=
781 no_recursion=
782 prefix=NONE
783 program_prefix=NONE
784 program_suffix=NONE
785 program_transform_name=s,x,x,
786 silent=
787 site=
788 srcdir=
789 verbose=
790 x_includes=NONE
791 x_libraries=NONE
792
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
818
819 ac_prev=
820 ac_dashdash=
821 for ac_option
822 do
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
828 fi
829
830 case $ac_option in
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *=) ac_optarg= ;;
833 *) ac_optarg=yes ;;
834 esac
835
836 # Accept the important Cygnus configure options, so we can diagnose typos.
837
838 case $ac_dashdash$ac_option in
839 --)
840 ac_dashdash=yes ;;
841
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 bindir=$ac_optarg ;;
846
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
851
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
858
859 --config-cache | -C)
860 cache_file=config.cache ;;
861
862 -datadir | --datadir | --datadi | --datad)
863 ac_prev=datadir ;;
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
866
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
873
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
899
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=\$ac_optarg ;;
915
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
924
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
928
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
935
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
940
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
946
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
953
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
958
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 libdir=$ac_optarg ;;
963
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
970
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
975
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
982
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 mandir=$ac_optarg ;;
987
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
991
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
994 no_create=yes ;;
995
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
999
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1008
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1013
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1020
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1027
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1044
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1049
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1054
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1058
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
1063 sbindir=$ac_optarg ;;
1064
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
1074 sharedstatedir=$ac_optarg ;;
1075
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
1079 site=$ac_optarg ;;
1080
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1085
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1092
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1097
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1100
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1103
1104 -with-* | --with-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=\$ac_optarg ;;
1119
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1135
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1139
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1146
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1153
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1156 ;;
1157
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164 esac
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1167
1168 *)
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174 ;;
1175
1176 esac
1177 done
1178
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1182 fi
1183
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 esac
1190 fi
1191
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1197 do
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1212
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1219
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 elif test "x$build_alias" != "x$host_alias"; then
1225 cross_compiling=yes
1226 fi
1227 fi
1228
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232 test "$silent" = yes && exec 6>/dev/null
1233
1234
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 as_fn_error $? "working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 as_fn_error $? "pwd does not report name of working directory"
1241
1242
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)[^/].*/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\).*/{
1266 s//\1/
1267 q
1268 }
1269 s/.*/./; q'`
1270 srcdir=$ac_confdir
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 srcdir=..
1273 fi
1274 else
1275 ac_srcdir_defaulted=no
1276 fi
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1280 fi
1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282 ac_abs_confdir=`(
1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284 pwd)`
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 srcdir=.
1288 fi
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1292 case $srcdir in
1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 esac
1295 for ac_var in $ac_precious_vars; do
1296 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_env_${ac_var}_value=\$${ac_var}
1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 done
1301
1302 #
1303 # Report the --help message.
1304 #
1305 if test "$ac_init_help" = "long"; then
1306 # Omit some internal or obsolete options to make the list less imposing.
1307 # This message is too long to be a string in the A/UX 3.1 sh.
1308 cat <<_ACEOF
1309 \`configure' configures libenet 1.3.6 to adapt to many kinds of systems.
1310
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1312
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE. See below for descriptions of some of the useful variables.
1315
1316 Defaults for the options are specified in brackets.
1317
1318 Configuration:
1319 -h, --help display this help and exit
1320 --help=short display options specific to this package
1321 --help=recursive display the short help of all the included packages
1322 -V, --version display version information and exit
1323 -q, --quiet, --silent do not print \`checking ...' messages
1324 --cache-file=FILE cache test results in FILE [disabled]
1325 -C, --config-cache alias for \`--cache-file=config.cache'
1326 -n, --no-create do not create output files
1327 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1328
1329 Installation directories:
1330 --prefix=PREFIX install architecture-independent files in PREFIX
1331 [$ac_default_prefix]
1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 [PREFIX]
1334
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1339
1340 For better control, use the options below.
1341
1342 Fine tuning of the installation directories:
1343 --bindir=DIR user executables [EPREFIX/bin]
1344 --sbindir=DIR system admin executables [EPREFIX/sbin]
1345 --libexecdir=DIR program executables [EPREFIX/libexec]
1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root [DATAROOTDIR/doc/libenet]
1358 --htmldir=DIR html documentation [DOCDIR]
1359 --dvidir=DIR dvi documentation [DOCDIR]
1360 --pdfdir=DIR pdf documentation [DOCDIR]
1361 --psdir=DIR ps documentation [DOCDIR]
1362 _ACEOF
1363
1364 cat <<\_ACEOF
1365
1366 Program names:
1367 --program-prefix=PREFIX prepend PREFIX to installed program names
1368 --program-suffix=SUFFIX append SUFFIX to installed program names
1369 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370
1371 System types:
1372 --build=BUILD configure for building on BUILD [guessed]
1373 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1374 _ACEOF
1375 fi
1376
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of libenet 1.3.6:";;
1380 esac
1381 cat <<\_ACEOF
1382
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --disable-maintainer-mode disable make rules and dependencies not useful
1388 (and sometimes confusing) to the casual installer
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --enable-shared[=PKGS] build shared libraries [default=yes]
1392 --enable-static[=PKGS] build static libraries [default=yes]
1393 --enable-fast-install[=PKGS]
1394 optimize for fast installation [default=yes]
1395 --disable-libtool-lock avoid locking (might break parallel builds)
1396
1397 Optional Packages:
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1401 both]
1402 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1403 --with-sysroot=DIR Search for dependent libraries within DIR
1404 (or the compiler's sysroot if not specified).
1405
1406 Some influential environment variables:
1407 CC C compiler command
1408 CFLAGS C compiler flags
1409 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1410 nonstandard directory <lib dir>
1411 LIBS libraries to pass to the linker, e.g. -l<library>
1412 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1413 you have headers in a nonstandard directory <include dir>
1414 CPP C preprocessor
1415
1416 Use these variables to override the choices made by `configure' or to help
1417 it to find libraries and programs with nonstandard names/locations.
1418
1419 Report bugs to the package provider.
1420 _ACEOF
1421 ac_status=$?
1422 fi
1423
1424 if test "$ac_init_help" = "recursive"; then
1425 # If there are subdirs, report their specific --help.
1426 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1427 test -d "$ac_dir" ||
1428 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429 continue
1430 ac_builddir=.
1431
1432 case "$ac_dir" in
1433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *)
1435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1436 # A ".." for each directory in $ac_dir_suffix.
1437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 esac ;;
1442 esac
1443 ac_abs_top_builddir=$ac_pwd
1444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445 # for backward compatibility:
1446 ac_top_builddir=$ac_top_build_prefix
1447
1448 case $srcdir in
1449 .) # We are building in place.
1450 ac_srcdir=.
1451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
1454 ac_srcdir=$srcdir$ac_dir_suffix;
1455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1457 *) # Relative name.
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 esac
1462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463
1464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for guested configure.
1466 if test -f "$ac_srcdir/configure.gnu"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469 elif test -f "$ac_srcdir/configure"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure" --help=recursive
1472 else
1473 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474 fi || ac_status=$?
1475 cd "$ac_pwd" || { ac_status=$?; break; }
1476 done
1477 fi
1478
1479 test -n "$ac_init_help" && exit $ac_status
1480 if $ac_init_version; then
1481 cat <<\_ACEOF
1482 libenet configure 1.3.6
1483 generated by GNU Autoconf 2.69
1484
1485 Copyright (C) 2012 Free Software Foundation, Inc.
1486 This configure script is free software; the Free Software Foundation
1487 gives unlimited permission to copy, distribute and modify it.
1488 _ACEOF
1489 exit
1490 fi
1491
1492 ## ------------------------ ##
1493 ## Autoconf initialization. ##
1494 ## ------------------------ ##
1495
1496 # ac_fn_c_try_compile LINENO
1497 # --------------------------
1498 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1499 ac_fn_c_try_compile ()
1500 {
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 rm -f conftest.$ac_objext
1503 if { { ac_try="$ac_compile"
1504 case "(($ac_try" in
1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506 *) ac_try_echo=$ac_try;;
1507 esac
1508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509 $as_echo "$ac_try_echo"; } >&5
1510 (eval "$ac_compile") 2>conftest.err
1511 ac_status=$?
1512 if test -s conftest.err; then
1513 grep -v '^ *+' conftest.err >conftest.er1
1514 cat conftest.er1 >&5
1515 mv -f conftest.er1 conftest.err
1516 fi
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && {
1519 test -z "$ac_c_werror_flag" ||
1520 test ! -s conftest.err
1521 } && test -s conftest.$ac_objext; then :
1522 ac_retval=0
1523 else
1524 $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1526
1527 ac_retval=1
1528 fi
1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1530 as_fn_set_status $ac_retval
1531
1532 } # ac_fn_c_try_compile
1533
1534 # ac_fn_c_try_link LINENO
1535 # -----------------------
1536 # Try to link conftest.$ac_ext, and return whether this succeeded.
1537 ac_fn_c_try_link ()
1538 {
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext conftest$ac_exeext
1541 if { { ac_try="$ac_link"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_link") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest$ac_exeext && {
1560 test "$cross_compiling" = yes ||
1561 test -x conftest$ac_exeext
1562 }; 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 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1571 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1572 # interfere with the next link command; also delete a directory that is
1573 # left behind by Apple's compiler. We do this before executing the actions.
1574 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_link
1579
1580 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1581 # -------------------------------------------------------
1582 # Tests whether HEADER exists and can be compiled using the include files in
1583 # INCLUDES, setting the cache variable VAR accordingly.
1584 ac_fn_c_check_header_compile ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1588 $as_echo_n "checking for $2... " >&6; }
1589 if eval \${$3+:} false; then :
1590 $as_echo_n "(cached) " >&6
1591 else
1592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1593 /* end confdefs.h. */
1594 $4
1595 #include <$2>
1596 _ACEOF
1597 if ac_fn_c_try_compile "$LINENO"; then :
1598 eval "$3=yes"
1599 else
1600 eval "$3=no"
1601 fi
1602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1603 fi
1604 eval ac_res=\$$3
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606 $as_echo "$ac_res" >&6; }
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608
1609 } # ac_fn_c_check_header_compile
1610
1611 # ac_fn_c_try_cpp LINENO
1612 # ----------------------
1613 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_cpp ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_cpp conftest.$ac_ext"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } > conftest.i && {
1633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642 fi
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_cpp
1647
1648 # ac_fn_c_try_run LINENO
1649 # ----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1651 # that executables *can* be run.
1652 ac_fn_c_try_run ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_link"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>&5
1663 ac_status=$?
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1666 { { case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_try") 2>&5
1673 ac_status=$?
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; }; }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: program exited with status $ac_status" >&5
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=$ac_status
1683 fi
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_run
1689
1690 # ac_fn_c_check_func LINENO FUNC VAR
1691 # ----------------------------------
1692 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1693 ac_fn_c_check_func ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1700 else
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1703 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1705 #define $2 innocuous_$2
1706
1707 /* System header to define __stub macros and hopefully few prototypes,
1708 which can conflict with char $2 (); below.
1709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1710 <limits.h> exists even on freestanding compilers. */
1711
1712 #ifdef __STDC__
1713 # include <limits.h>
1714 #else
1715 # include <assert.h>
1716 #endif
1717
1718 #undef $2
1719
1720 /* Override any GCC internal prototype to avoid an error.
1721 Use char because int might match the return type of a GCC
1722 builtin and then its argument prototype would still apply. */
1723 #ifdef __cplusplus
1724 extern "C"
1725 #endif
1726 char $2 ();
1727 /* The GNU C library defines this for functions which it implements
1728 to always fail with ENOSYS. Some functions are actually named
1729 something starting with __ and the normal name is an alias. */
1730 #if defined __stub_$2 || defined __stub___$2
1731 choke me
1732 #endif
1733
1734 int
1735 main ()
1736 {
1737 return $2 ();
1738 ;
1739 return 0;
1740 }
1741 _ACEOF
1742 if ac_fn_c_try_link "$LINENO"; then :
1743 eval "$3=yes"
1744 else
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext \
1748 conftest$ac_exeext conftest.$ac_ext
1749 fi
1750 eval ac_res=\$$3
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755 } # ac_fn_c_check_func
1756
1757 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1758 # ----------------------------------------------------
1759 # Tries to find if the field MEMBER exists in type AGGR, after including
1760 # INCLUDES, setting cache variable VAR accordingly.
1761 ac_fn_c_check_member ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1765 $as_echo_n "checking for $2.$3... " >&6; }
1766 if eval \${$4+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 $5
1772 int
1773 main ()
1774 {
1775 static $2 ac_aggr;
1776 if (ac_aggr.$3)
1777 return 0;
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 eval "$4=yes"
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 $5
1788 int
1789 main ()
1790 {
1791 static $2 ac_aggr;
1792 if (sizeof ac_aggr.$3)
1793 return 0;
1794 ;
1795 return 0;
1796 }
1797 _ACEOF
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799 eval "$4=yes"
1800 else
1801 eval "$4=no"
1802 fi
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$4
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812 } # ac_fn_c_check_member
1813
1814 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1815 # -------------------------------------------
1816 # Tests whether TYPE exists after having included INCLUDES, setting cache
1817 # variable VAR accordingly.
1818 ac_fn_c_check_type ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 eval "$3=no"
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 $4
1830 int
1831 main ()
1832 {
1833 if (sizeof ($2))
1834 return 0;
1835 ;
1836 return 0;
1837 }
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 $4
1843 int
1844 main ()
1845 {
1846 if (sizeof (($2)))
1847 return 0;
1848 ;
1849 return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"; then :
1853
1854 else
1855 eval "$3=yes"
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 fi
1861 eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866 } # ac_fn_c_check_type
1867 cat >config.log <<_ACEOF
1868 This file contains any messages produced by compilers while
1869 running configure, to aid debugging if configure makes a mistake.
1870
1871 It was created by libenet $as_me 1.3.6, which was
1872 generated by GNU Autoconf 2.69. Invocation command line was
1873
1874 $ $0 $@
1875
1876 _ACEOF
1877 exec 5>>config.log
1878 {
1879 cat <<_ASUNAME
1880 ## --------- ##
1881 ## Platform. ##
1882 ## --------- ##
1883
1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1892
1893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1900
1901 _ASUNAME
1902
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 $as_echo "PATH: $as_dir"
1909 done
1910 IFS=$as_save_IFS
1911
1912 } >&5
1913
1914 cat >&5 <<_ACEOF
1915
1916
1917 ## ----------- ##
1918 ## Core tests. ##
1919 ## ----------- ##
1920
1921 _ACEOF
1922
1923
1924 # Keep a trace of the command line.
1925 # Strip out --no-create and --no-recursion so they do not pile up.
1926 # Strip out --silent because we don't want to record it for future runs.
1927 # Also quote any args containing shell meta-characters.
1928 # Make two passes to allow for proper duplicate-argument suppression.
1929 ac_configure_args=
1930 ac_configure_args0=
1931 ac_configure_args1=
1932 ac_must_keep_next=false
1933 for ac_pass in 1 2
1934 do
1935 for ac_arg
1936 do
1937 case $ac_arg in
1938 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940 | -silent | --silent | --silen | --sile | --sil)
1941 continue ;;
1942 *\'*)
1943 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1944 esac
1945 case $ac_pass in
1946 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1947 2)
1948 as_fn_append ac_configure_args1 " '$ac_arg'"
1949 if test $ac_must_keep_next = true; then
1950 ac_must_keep_next=false # Got value, back to normal.
1951 else
1952 case $ac_arg in
1953 *=* | --config-cache | -C | -disable-* | --disable-* \
1954 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956 | -with-* | --with-* | -without-* | --without-* | --x)
1957 case "$ac_configure_args0 " in
1958 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959 esac
1960 ;;
1961 -* ) ac_must_keep_next=true ;;
1962 esac
1963 fi
1964 as_fn_append ac_configure_args " '$ac_arg'"
1965 ;;
1966 esac
1967 done
1968 done
1969 { ac_configure_args0=; unset ac_configure_args0;}
1970 { ac_configure_args1=; unset ac_configure_args1;}
1971
1972 # When interrupted or exit'd, cleanup temporary files, and complete
1973 # config.log. We remove comments because anyway the quotes in there
1974 # would cause problems or look ugly.
1975 # WARNING: Use '\'' to represent an apostrophe within the trap.
1976 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1977 trap 'exit_status=$?
1978 # Save into config.log some information that might help in debugging.
1979 {
1980 echo
1981
1982 $as_echo "## ---------------- ##
1983 ## Cache variables. ##
1984 ## ---------------- ##"
1985 echo
1986 # The following way of writing the cache mishandles newlines in values,
1987 (
1988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989 eval ac_val=\$$ac_var
1990 case $ac_val in #(
1991 *${as_nl}*)
1992 case $ac_var in #(
1993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995 esac
1996 case $ac_var in #(
1997 _ | IFS | as_nl) ;; #(
1998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999 *) { eval $ac_var=; unset $ac_var;} ;;
2000 esac ;;
2001 esac
2002 done
2003 (set) 2>&1 |
2004 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005 *${as_nl}ac_space=\ *)
2006 sed -n \
2007 "s/'\''/'\''\\\\'\'''\''/g;
2008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009 ;; #(
2010 *)
2011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2012 ;;
2013 esac |
2014 sort
2015 )
2016 echo
2017
2018 $as_echo "## ----------------- ##
2019 ## Output variables. ##
2020 ## ----------------- ##"
2021 echo
2022 for ac_var in $ac_subst_vars
2023 do
2024 eval ac_val=\$$ac_var
2025 case $ac_val in
2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 esac
2028 $as_echo "$ac_var='\''$ac_val'\''"
2029 done | sort
2030 echo
2031
2032 if test -n "$ac_subst_files"; then
2033 $as_echo "## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##"
2036 echo
2037 for ac_var in $ac_subst_files
2038 do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
2044 done | sort
2045 echo
2046 fi
2047
2048 if test -s confdefs.h; then
2049 $as_echo "## ----------- ##
2050 ## confdefs.h. ##
2051 ## ----------- ##"
2052 echo
2053 cat confdefs.h
2054 echo
2055 fi
2056 test "$ac_signal" != 0 &&
2057 $as_echo "$as_me: caught signal $ac_signal"
2058 $as_echo "$as_me: exit $exit_status"
2059 } >&5
2060 rm -f core *.core core.conftest.* &&
2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062 exit $exit_status
2063 ' 0
2064 for ac_signal in 1 2 13 15; do
2065 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2066 done
2067 ac_signal=0
2068
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2071
2072 $as_echo "/* confdefs.h */" > confdefs.h
2073
2074 # Predefined preprocessor variables.
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_NAME "$PACKAGE_NAME"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_STRING "$PACKAGE_STRING"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_URL "$PACKAGE_URL"
2098 _ACEOF
2099
2100
2101 # Let the site file select an alternate cache file if it wants to.
2102 # Prefer an explicitly selected file to automatically selected ones.
2103 ac_site_file1=NONE
2104 ac_site_file2=NONE
2105 if test -n "$CONFIG_SITE"; then
2106 # We do not want a PATH search for config.site.
2107 case $CONFIG_SITE in #((
2108 -*) ac_site_file1=./$CONFIG_SITE;;
2109 */*) ac_site_file1=$CONFIG_SITE;;
2110 *) ac_site_file1=./$CONFIG_SITE;;
2111 esac
2112 elif test "x$prefix" != xNONE; then
2113 ac_site_file1=$prefix/share/config.site
2114 ac_site_file2=$prefix/etc/config.site
2115 else
2116 ac_site_file1=$ac_default_prefix/share/config.site
2117 ac_site_file2=$ac_default_prefix/etc/config.site
2118 fi
2119 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2120 do
2121 test "x$ac_site_file" = xNONE && continue
2122 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2125 sed 's/^/| /' "$ac_site_file" >&5
2126 . "$ac_site_file" \
2127 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129 as_fn_error $? "failed to load site script $ac_site_file
2130 See \`config.log' for more details" "$LINENO" 5; }
2131 fi
2132 done
2133
2134 if test -r "$cache_file"; then
2135 # Some versions of bash will fail to source /dev/null (special files
2136 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139 $as_echo "$as_me: loading cache $cache_file" >&6;}
2140 case $cache_file in
2141 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142 *) . "./$cache_file";;
2143 esac
2144 fi
2145 else
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147 $as_echo "$as_me: creating cache $cache_file" >&6;}
2148 >$cache_file
2149 fi
2150
2151 # Check that the precious variables saved in the cache have kept the same
2152 # value.
2153 ac_cache_corrupted=false
2154 for ac_var in $ac_precious_vars; do
2155 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2156 eval ac_new_set=\$ac_env_${ac_var}_set
2157 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2158 eval ac_new_val=\$ac_env_${ac_var}_value
2159 case $ac_old_set,$ac_new_set in
2160 set,)
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2162 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2163 ac_cache_corrupted=: ;;
2164 ,set)
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2168 ,);;
2169 *)
2170 if test "x$ac_old_val" != "x$ac_new_val"; then
2171 # differences in whitespace do not lead to failure.
2172 ac_old_val_w=`echo x $ac_old_val`
2173 ac_new_val_w=`echo x $ac_new_val`
2174 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2176 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2177 ac_cache_corrupted=:
2178 else
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2180 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2181 eval $ac_var=\$ac_old_val
2182 fi
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2184 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2186 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2187 fi;;
2188 esac
2189 # Pass precious variables to config.status.
2190 if test "$ac_new_set" = set; then
2191 case $ac_new_val in
2192 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2193 *) ac_arg=$ac_var=$ac_new_val ;;
2194 esac
2195 case " $ac_configure_args " in
2196 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2197 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2198 esac
2199 fi
2200 done
2201 if $ac_cache_corrupted; then
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2205 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2206 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2207 fi
2208 ## -------------------- ##
2209 ## Main body of script. ##
2210 ## -------------------- ##
2211
2212 ac_ext=c
2213 ac_cpp='$CPP $CPPFLAGS'
2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217
2218
2219
2220 am__api_version='1.11'
2221
2222 ac_aux_dir=
2223 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2224 if test -f "$ac_dir/install-sh"; then
2225 ac_aux_dir=$ac_dir
2226 ac_install_sh="$ac_aux_dir/install-sh -c"
2227 break
2228 elif test -f "$ac_dir/install.sh"; then
2229 ac_aux_dir=$ac_dir
2230 ac_install_sh="$ac_aux_dir/install.sh -c"
2231 break
2232 elif test -f "$ac_dir/shtool"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/shtool install -c"
2235 break
2236 fi
2237 done
2238 if test -z "$ac_aux_dir"; then
2239 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2240 fi
2241
2242 # These three variables are undocumented and unsupported,
2243 # and are intended to be withdrawn in a future Autoconf release.
2244 # They can cause serious problems if a builder's source tree is in a directory
2245 # whose full name contains unusual characters.
2246 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2247 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2248 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2249
2250
2251 # Find a good install program. We prefer a C program (faster),
2252 # so one script is as good as another. But avoid the broken or
2253 # incompatible versions:
2254 # SysV /etc/install, /usr/sbin/install
2255 # SunOS /usr/etc/install
2256 # IRIX /sbin/install
2257 # AIX /bin/install
2258 # AmigaOS /C/install, which installs bootblocks on floppy discs
2259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2262 # OS/2's system install, which has a completely different semantic
2263 # ./install, which can be erroneously created by make from ./install.sh.
2264 # Reject install programs that cannot install multiple files.
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2266 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2267 if test -z "$INSTALL"; then
2268 if ${ac_cv_path_install+:} false; then :
2269 $as_echo_n "(cached) " >&6
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 # Account for people who put trailing slashes in PATH elements.
2277 case $as_dir/ in #((
2278 ./ | .// | /[cC]/* | \
2279 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2280 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2281 /usr/ucb/* ) ;;
2282 *)
2283 # OSF1 and SCO ODT 3.0 have their own names for install.
2284 # Don't use installbsd from OSF since it installs stuff as root
2285 # by default.
2286 for ac_prog in ginstall scoinst install; do
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2289 if test $ac_prog = install &&
2290 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2291 # AIX install. It has an incompatible calling convention.
2292 :
2293 elif test $ac_prog = install &&
2294 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295 # program-specific install script used by HP pwplus--don't use.
2296 :
2297 else
2298 rm -rf conftest.one conftest.two conftest.dir
2299 echo one > conftest.one
2300 echo two > conftest.two
2301 mkdir conftest.dir
2302 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2303 test -s conftest.one && test -s conftest.two &&
2304 test -s conftest.dir/conftest.one &&
2305 test -s conftest.dir/conftest.two
2306 then
2307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2308 break 3
2309 fi
2310 fi
2311 fi
2312 done
2313 done
2314 ;;
2315 esac
2316
2317 done
2318 IFS=$as_save_IFS
2319
2320 rm -rf conftest.one conftest.two conftest.dir
2321
2322 fi
2323 if test "${ac_cv_path_install+set}" = set; then
2324 INSTALL=$ac_cv_path_install
2325 else
2326 # As a last resort, use the slow shell script. Don't cache a
2327 # value for INSTALL within a source directory, because that will
2328 # break other packages using the cache if that directory is
2329 # removed, or if the value is a relative name.
2330 INSTALL=$ac_install_sh
2331 fi
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2334 $as_echo "$INSTALL" >&6; }
2335
2336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2337 # It thinks the first close brace ends the variable substitution.
2338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2339
2340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2341
2342 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2343
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2345 $as_echo_n "checking whether build environment is sane... " >&6; }
2346 # Just in case
2347 sleep 1
2348 echo timestamp > conftest.file
2349 # Reject unsafe characters in $srcdir or the absolute working directory
2350 # name. Accept space and tab only in the latter.
2351 am_lf='
2352 '
2353 case `pwd` in
2354 *[\\\"\#\$\&\'\`$am_lf]*)
2355 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2356 esac
2357 case $srcdir in
2358 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2359 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2360 esac
2361
2362 # Do `set' in a subshell so we don't clobber the current shell's
2363 # arguments. Must try -L first in case configure is actually a
2364 # symlink; some systems play weird games with the mod time of symlinks
2365 # (eg FreeBSD returns the mod time of the symlink's containing
2366 # directory).
2367 if (
2368 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2369 if test "$*" = "X"; then
2370 # -L didn't work.
2371 set X `ls -t "$srcdir/configure" conftest.file`
2372 fi
2373 rm -f conftest.file
2374 if test "$*" != "X $srcdir/configure conftest.file" \
2375 && test "$*" != "X conftest.file $srcdir/configure"; then
2376
2377 # If neither matched, then we have a broken ls. This can happen
2378 # if, for instance, CONFIG_SHELL is bash and it inherits a
2379 # broken ls alias from the environment. This has actually
2380 # happened. Such a system could not be considered "sane".
2381 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2382 alias in your environment" "$LINENO" 5
2383 fi
2384
2385 test "$2" = conftest.file
2386 )
2387 then
2388 # Ok.
2389 :
2390 else
2391 as_fn_error $? "newly created file is older than distributed files!
2392 Check your system clock" "$LINENO" 5
2393 fi
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2395 $as_echo "yes" >&6; }
2396 test "$program_prefix" != NONE &&
2397 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2398 # Use a double $ so make ignores it.
2399 test "$program_suffix" != NONE &&
2400 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2401 # Double any \ or $.
2402 # By default was `s,x,x', remove it if useless.
2403 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2404 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2405
2406 # expand $ac_aux_dir to an absolute path
2407 am_aux_dir=`cd $ac_aux_dir && pwd`
2408
2409 if test x"${MISSING+set}" != xset; then
2410 case $am_aux_dir in
2411 *\ * | *\ *)
2412 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2413 *)
2414 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2415 esac
2416 fi
2417 # Use eval to expand $SHELL
2418 if eval "$MISSING --run true"; then
2419 am_missing_run="$MISSING --run "
2420 else
2421 am_missing_run=
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2423 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2424 fi
2425
2426 if test x"${install_sh}" != xset; then
2427 case $am_aux_dir in
2428 *\ * | *\ *)
2429 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2430 *)
2431 install_sh="\${SHELL} $am_aux_dir/install-sh"
2432 esac
2433 fi
2434
2435 # Installed binaries are usually stripped using `strip' when the user
2436 # run `make install-strip'. However `strip' might not be the right
2437 # tool to use in cross-compilation environments, therefore Automake
2438 # will honor the `STRIP' environment variable to overrule this program.
2439 if test "$cross_compiling" != no; then
2440 if test -n "$ac_tool_prefix"; then
2441 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2442 set dummy ${ac_tool_prefix}strip; ac_word=$2
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444 $as_echo_n "checking for $ac_word... " >&6; }
2445 if ${ac_cv_prog_STRIP+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 if test -n "$STRIP"; then
2449 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2461 fi
2462 done
2463 done
2464 IFS=$as_save_IFS
2465
2466 fi
2467 fi
2468 STRIP=$ac_cv_prog_STRIP
2469 if test -n "$STRIP"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2471 $as_echo "$STRIP" >&6; }
2472 else
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474 $as_echo "no" >&6; }
2475 fi
2476
2477
2478 fi
2479 if test -z "$ac_cv_prog_STRIP"; then
2480 ac_ct_STRIP=$STRIP
2481 # Extract the first word of "strip", so it can be a program name with args.
2482 set dummy strip; ac_word=$2
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2484 $as_echo_n "checking for $ac_word... " >&6; }
2485 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2486 $as_echo_n "(cached) " >&6
2487 else
2488 if test -n "$ac_ct_STRIP"; then
2489 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2498 ac_cv_prog_ac_ct_STRIP="strip"
2499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 break 2
2501 fi
2502 done
2503 done
2504 IFS=$as_save_IFS
2505
2506 fi
2507 fi
2508 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2509 if test -n "$ac_ct_STRIP"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2511 $as_echo "$ac_ct_STRIP" >&6; }
2512 else
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2514 $as_echo "no" >&6; }
2515 fi
2516
2517 if test "x$ac_ct_STRIP" = x; then
2518 STRIP=":"
2519 else
2520 case $cross_compiling:$ac_tool_warned in
2521 yes:)
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2524 ac_tool_warned=yes ;;
2525 esac
2526 STRIP=$ac_ct_STRIP
2527 fi
2528 else
2529 STRIP="$ac_cv_prog_STRIP"
2530 fi
2531
2532 fi
2533 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2536 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2537 if test -z "$MKDIR_P"; then
2538 if ${ac_cv_path_mkdir+:} false; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2543 do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_prog in mkdir gmkdir; do
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2549 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2550 'mkdir (GNU coreutils) '* | \
2551 'mkdir (coreutils) '* | \
2552 'mkdir (fileutils) '4.1*)
2553 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2554 break 3;;
2555 esac
2556 done
2557 done
2558 done
2559 IFS=$as_save_IFS
2560
2561 fi
2562
2563 test -d ./--version && rmdir ./--version
2564 if test "${ac_cv_path_mkdir+set}" = set; then
2565 MKDIR_P="$ac_cv_path_mkdir -p"
2566 else
2567 # As a last resort, use the slow shell script. Don't cache a
2568 # value for MKDIR_P within a source directory, because that will
2569 # break other packages using the cache if that directory is
2570 # removed, or if the value is a relative name.
2571 MKDIR_P="$ac_install_sh -d"
2572 fi
2573 fi
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2575 $as_echo "$MKDIR_P" >&6; }
2576
2577 mkdir_p="$MKDIR_P"
2578 case $mkdir_p in
2579 [\\/$]* | ?:[\\/]*) ;;
2580 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2581 esac
2582
2583 for ac_prog in gawk mawk nawk awk
2584 do
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if ${ac_cv_prog_AWK+:} false; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 if test -n "$AWK"; then
2593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602 ac_cv_prog_AWK="$ac_prog"
2603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2605 fi
2606 done
2607 done
2608 IFS=$as_save_IFS
2609
2610 fi
2611 fi
2612 AWK=$ac_cv_prog_AWK
2613 if test -n "$AWK"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2615 $as_echo "$AWK" >&6; }
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 fi
2620
2621
2622 test -n "$AWK" && break
2623 done
2624
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2626 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2627 set x ${MAKE-make}
2628 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2629 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 cat >conftest.make <<\_ACEOF
2633 SHELL = /bin/sh
2634 all:
2635 @echo '@@@%%%=$(MAKE)=@@@%%%'
2636 _ACEOF
2637 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2638 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2639 *@@@%%%=?*=@@@%%%*)
2640 eval ac_cv_prog_make_${ac_make}_set=yes;;
2641 *)
2642 eval ac_cv_prog_make_${ac_make}_set=no;;
2643 esac
2644 rm -f conftest.make
2645 fi
2646 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2648 $as_echo "yes" >&6; }
2649 SET_MAKE=
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653 SET_MAKE="MAKE=${MAKE-make}"
2654 fi
2655
2656 rm -rf .tst 2>/dev/null
2657 mkdir .tst 2>/dev/null
2658 if test -d .tst; then
2659 am__leading_dot=.
2660 else
2661 am__leading_dot=_
2662 fi
2663 rmdir .tst 2>/dev/null
2664
2665 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2666 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2667 # is not polluted with repeated "-I."
2668 am__isrc=' -I$(srcdir)'
2669 # test to see if srcdir already configured
2670 if test -f $srcdir/config.status; then
2671 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2672 fi
2673 fi
2674
2675 # test whether we have cygpath
2676 if test -z "$CYGPATH_W"; then
2677 if (cygpath --version) >/dev/null 2>/dev/null; then
2678 CYGPATH_W='cygpath -w'
2679 else
2680 CYGPATH_W=echo
2681 fi
2682 fi
2683
2684
2685 # Define the identity of the package.
2686 PACKAGE='libenet'
2687 VERSION='1.3.6'
2688
2689
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE "$PACKAGE"
2692 _ACEOF
2693
2694
2695 cat >>confdefs.h <<_ACEOF
2696 #define VERSION "$VERSION"
2697 _ACEOF
2698
2699 # Some tools Automake needs.
2700
2701 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2702
2703
2704 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2705
2706
2707 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2708
2709
2710 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2711
2712
2713 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2714
2715 # We need awk for the "check" target. The system "awk" is bad on
2716 # some platforms.
2717 # Always define AMTAR for backward compatibility. Yes, it's still used
2718 # in the wild :-( We should find a proper way to deprecate it ...
2719 AMTAR='$${TAR-tar}'
2720
2721 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2722
2723
2724
2725
2726
2727
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2729 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2730 # Check whether --enable-maintainer-mode was given.
2731 if test "${enable_maintainer_mode+set}" = set; then :
2732 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2733 else
2734 USE_MAINTAINER_MODE=yes
2735 fi
2736
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2738 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2739 if test $USE_MAINTAINER_MODE = yes; then
2740 MAINTAINER_MODE_TRUE=
2741 MAINTAINER_MODE_FALSE='#'
2742 else
2743 MAINTAINER_MODE_TRUE='#'
2744 MAINTAINER_MODE_FALSE=
2745 fi
2746
2747 MAINT=$MAINTAINER_MODE_TRUE
2748
2749
2750
2751
2752
2753 ac_ext=c
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758 if test -n "$ac_tool_prefix"; then
2759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_prog_CC+:} false; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test -n "$CC"; then
2767 ac_cv_prog_CC="$CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2783
2784 fi
2785 fi
2786 CC=$ac_cv_prog_CC
2787 if test -n "$CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789 $as_echo "$CC" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2793 fi
2794
2795
2796 fi
2797 if test -z "$ac_cv_prog_CC"; then
2798 ac_ct_CC=$CC
2799 # Extract the first word of "gcc", so it can be a program name with args.
2800 set dummy gcc; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$ac_ct_CC"; then
2807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_ac_ct_CC="gcc"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2827 if test -n "$ac_ct_CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2829 $as_echo "$ac_ct_CC" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 fi
2834
2835 if test "x$ac_ct_CC" = x; then
2836 CC=""
2837 else
2838 case $cross_compiling:$ac_tool_warned in
2839 yes:)
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned=yes ;;
2843 esac
2844 CC=$ac_ct_CC
2845 fi
2846 else
2847 CC="$ac_cv_prog_CC"
2848 fi
2849
2850 if test -z "$CC"; then
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}cc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_CC+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 ac_cv_prog_CC="${ac_tool_prefix}cc"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873 done
2874 done
2875 IFS=$as_save_IFS
2876
2877 fi
2878 fi
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882 $as_echo "$CC" >&6; }
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 fi
2887
2888
2889 fi
2890 fi
2891 if test -z "$CC"; then
2892 # Extract the first word of "cc", so it can be a program name with args.
2893 set dummy cc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CC+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 ac_prog_rejected=no
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2911 ac_prog_rejected=yes
2912 continue
2913 fi
2914 ac_cv_prog_CC="cc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2917 fi
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 if test $ac_prog_rejected = yes; then
2923 # We found a bogon in the path, so make sure we never use it.
2924 set dummy $ac_cv_prog_CC
2925 shift
2926 if test $# != 0; then
2927 # We chose a different compiler from the bogus one.
2928 # However, it has the same basename, so the bogon will be chosen
2929 # first if we set CC to just the basename; use the full file name.
2930 shift
2931 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2932 fi
2933 fi
2934 fi
2935 fi
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946 fi
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 for ac_prog in cl.exe
2950 do
2951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_CC+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$CC"; then
2959 ac_cv_prog_CC="$CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2971 fi
2972 done
2973 done
2974 IFS=$as_save_IFS
2975
2976 fi
2977 fi
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987
2988 test -n "$CC" && break
2989 done
2990 fi
2991 if test -z "$CC"; then
2992 ac_ct_CC=$CC
2993 for ac_prog in cl.exe
2994 do
2995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$ac_ct_CC"; then
3003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_ac_ct_CC="$ac_prog"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023 if test -n "$ac_ct_CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025 $as_echo "$ac_ct_CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032 test -n "$ac_ct_CC" && break
3033 done
3034
3035 if test "x$ac_ct_CC" = x; then
3036 CC=""
3037 else
3038 case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044 CC=$ac_ct_CC
3045 fi
3046 fi
3047
3048 fi
3049
3050
3051 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 as_fn_error $? "no acceptable C compiler found in \$PATH
3054 See \`config.log' for more details" "$LINENO" 5; }
3055
3056 # Provide some information about the compiler.
3057 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3058 set X $ac_compile
3059 ac_compiler=$2
3060 for ac_option in --version -v -V -qversion; do
3061 { { ac_try="$ac_compiler $ac_option >&5"
3062 case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067 $as_echo "$ac_try_echo"; } >&5
3068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3069 ac_status=$?
3070 if test -s conftest.err; then
3071 sed '10a\
3072 ... rest of stderr output deleted ...
3073 10q' conftest.err >conftest.er1
3074 cat conftest.er1 >&5
3075 fi
3076 rm -f conftest.er1 conftest.err
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }
3079 done
3080
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3083
3084 int
3085 main ()
3086 {
3087
3088 ;
3089 return 0;
3090 }
3091 _ACEOF
3092 ac_clean_files_save=$ac_clean_files
3093 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3094 # Try to create an executable without -o first, disregard a.out.
3095 # It will help us diagnose broken compilers, and finding out an intuition
3096 # of exeext.
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3098 $as_echo_n "checking whether the C compiler works... " >&6; }
3099 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100
3101 # The possible output files:
3102 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3103
3104 ac_rmfiles=
3105 for ac_file in $ac_files
3106 do
3107 case $ac_file in
3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3109 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3110 esac
3111 done
3112 rm -f $ac_rmfiles
3113
3114 if { { ac_try="$ac_link_default"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120 $as_echo "$ac_try_echo"; } >&5
3121 (eval "$ac_link_default") 2>&5
3122 ac_status=$?
3123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124 test $ac_status = 0; }; then :
3125 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3126 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3127 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3128 # so that the user can short-circuit this test for compilers unknown to
3129 # Autoconf.
3130 for ac_file in $ac_files ''
3131 do
3132 test -f "$ac_file" || continue
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3135 ;;
3136 [ab].out )
3137 # We found the default executable, but exeext='' is most
3138 # certainly right.
3139 break;;
3140 *.* )
3141 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3142 then :; else
3143 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 fi
3145 # We set ac_cv_exeext here because the later test for it is not
3146 # safe: cross compilers may not add the suffix if given an `-o'
3147 # argument, so we may need to know it at that point already.
3148 # Even if this section looks crufty: it has the advantage of
3149 # actually working.
3150 break;;
3151 * )
3152 break;;
3153 esac
3154 done
3155 test "$ac_cv_exeext" = no && ac_cv_exeext=
3156
3157 else
3158 ac_file=''
3159 fi
3160 if test -z "$ac_file"; then :
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 $as_echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error 77 "C compiler cannot create executables
3169 See \`config.log' for more details" "$LINENO" 5; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3172 $as_echo "yes" >&6; }
3173 fi
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3175 $as_echo_n "checking for C compiler default output file name... " >&6; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3177 $as_echo "$ac_file" >&6; }
3178 ac_exeext=$ac_cv_exeext
3179
3180 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3181 ac_clean_files=$ac_clean_files_save
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3183 $as_echo_n "checking for suffix of executables... " >&6; }
3184 if { { ac_try="$ac_link"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_link") 2>&5
3192 ac_status=$?
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }; then :
3195 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3196 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3197 # work properly (i.e., refer to `conftest.exe'), while it won't with
3198 # `rm'.
3199 for ac_file in conftest.exe conftest conftest.*; do
3200 test -f "$ac_file" || continue
3201 case $ac_file in
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3203 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3204 break;;
3205 * ) break;;
3206 esac
3207 done
3208 else
3209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3212 See \`config.log' for more details" "$LINENO" 5; }
3213 fi
3214 rm -f conftest conftest$ac_cv_exeext
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3216 $as_echo "$ac_cv_exeext" >&6; }
3217
3218 rm -f conftest.$ac_ext
3219 EXEEXT=$ac_cv_exeext
3220 ac_exeext=$EXEEXT
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3223 #include <stdio.h>
3224 int
3225 main ()
3226 {
3227 FILE *f = fopen ("conftest.out", "w");
3228 return ferror (f) || fclose (f) != 0;
3229
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 ac_clean_files="$ac_clean_files conftest.out"
3235 # Check that the compiler produces executables we can run. If not, either
3236 # the compiler is broken, or we cross compile.
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3238 $as_echo_n "checking whether we are cross compiling... " >&6; }
3239 if test "$cross_compiling" != yes; then
3240 { { ac_try="$ac_link"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_link") 2>&5
3248 ac_status=$?
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }
3251 if { ac_try='./conftest$ac_cv_exeext'
3252 { { case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_try") 2>&5
3259 ac_status=$?
3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261 test $ac_status = 0; }; }; then
3262 cross_compiling=no
3263 else
3264 if test "$cross_compiling" = maybe; then
3265 cross_compiling=yes
3266 else
3267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269 as_fn_error $? "cannot run C compiled programs.
3270 If you meant to cross compile, use \`--host'.
3271 See \`config.log' for more details" "$LINENO" 5; }
3272 fi
3273 fi
3274 fi
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3276 $as_echo "$cross_compiling" >&6; }
3277
3278 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3279 ac_clean_files=$ac_clean_files_save
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3281 $as_echo_n "checking for suffix of object files... " >&6; }
3282 if ${ac_cv_objext+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3287
3288 int
3289 main ()
3290 {
3291
3292 ;
3293 return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.o conftest.obj
3297 if { { ac_try="$ac_compile"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_compile") 2>&5
3305 ac_status=$?
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }; then :
3308 for ac_file in conftest.o conftest.obj conftest.*; do
3309 test -f "$ac_file" || continue;
3310 case $ac_file in
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3312 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3313 break;;
3314 esac
3315 done
3316 else
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error $? "cannot compute suffix of object files: cannot compile
3323 See \`config.log' for more details" "$LINENO" 5; }
3324 fi
3325 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3326 fi
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3328 $as_echo "$ac_cv_objext" >&6; }
3329 OBJEXT=$ac_cv_objext
3330 ac_objext=$OBJEXT
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3332 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3333 if ${ac_cv_c_compiler_gnu+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338
3339 int
3340 main ()
3341 {
3342 #ifndef __GNUC__
3343 choke me
3344 #endif
3345
3346 ;
3347 return 0;
3348 }
3349 _ACEOF
3350 if ac_fn_c_try_compile "$LINENO"; then :
3351 ac_compiler_gnu=yes
3352 else
3353 ac_compiler_gnu=no
3354 fi
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3357
3358 fi
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3360 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3361 if test $ac_compiler_gnu = yes; then
3362 GCC=yes
3363 else
3364 GCC=
3365 fi
3366 ac_test_CFLAGS=${CFLAGS+set}
3367 ac_save_CFLAGS=$CFLAGS
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3369 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3370 if ${ac_cv_prog_cc_g+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 ac_save_c_werror_flag=$ac_c_werror_flag
3374 ac_c_werror_flag=yes
3375 ac_cv_prog_cc_g=no
3376 CFLAGS="-g"
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3379
3380 int
3381 main ()
3382 {
3383
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 if ac_fn_c_try_compile "$LINENO"; then :
3389 ac_cv_prog_cc_g=yes
3390 else
3391 CFLAGS=""
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3394
3395 int
3396 main ()
3397 {
3398
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 if ac_fn_c_try_compile "$LINENO"; then :
3404
3405 else
3406 ac_c_werror_flag=$ac_save_c_werror_flag
3407 CFLAGS="-g"
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410
3411 int
3412 main ()
3413 {
3414
3415 ;
3416 return 0;
3417 }
3418 _ACEOF
3419 if ac_fn_c_try_compile "$LINENO"; then :
3420 ac_cv_prog_cc_g=yes
3421 fi
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 fi
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 fi
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_c_werror_flag=$ac_save_c_werror_flag
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3430 $as_echo "$ac_cv_prog_cc_g" >&6; }
3431 if test "$ac_test_CFLAGS" = set; then
3432 CFLAGS=$ac_save_CFLAGS
3433 elif test $ac_cv_prog_cc_g = yes; then
3434 if test "$GCC" = yes; then
3435 CFLAGS="-g -O2"
3436 else
3437 CFLAGS="-g"
3438 fi
3439 else
3440 if test "$GCC" = yes; then
3441 CFLAGS="-O2"
3442 else
3443 CFLAGS=
3444 fi
3445 fi
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3447 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3448 if ${ac_cv_prog_cc_c89+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 ac_cv_prog_cc_c89=no
3452 ac_save_CC=$CC
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3455 #include <stdarg.h>
3456 #include <stdio.h>
3457 struct stat;
3458 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3459 struct buf { int x; };
3460 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3461 static char *e (p, i)
3462 char **p;
3463 int i;
3464 {
3465 return p[i];
3466 }
3467 static char *f (char * (*g) (char **, int), char **p, ...)
3468 {
3469 char *s;
3470 va_list v;
3471 va_start (v,p);
3472 s = g (p, va_arg (v,int));
3473 va_end (v);
3474 return s;
3475 }
3476
3477 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3478 function prototypes and stuff, but not '\xHH' hex character constants.
3479 These don't provoke an error unfortunately, instead are silently treated
3480 as 'x'. The following induces an error, until -std is added to get
3481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3482 array size at least. It's necessary to write '\x00'==0 to get something
3483 that's true only with -std. */
3484 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3485
3486 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3487 inside strings and character constants. */
3488 #define FOO(x) 'x'
3489 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3490
3491 int test (int i, double x);
3492 struct s1 {int (*f) (int a);};
3493 struct s2 {int (*f) (double a);};
3494 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3495 int argc;
3496 char **argv;
3497 int
3498 main ()
3499 {
3500 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3507 do
3508 CC="$ac_save_CC $ac_arg"
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_cv_prog_cc_c89=$ac_arg
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext
3513 test "x$ac_cv_prog_cc_c89" != "xno" && break
3514 done
3515 rm -f conftest.$ac_ext
3516 CC=$ac_save_CC
3517
3518 fi
3519 # AC_CACHE_VAL
3520 case "x$ac_cv_prog_cc_c89" in
3521 x)
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3523 $as_echo "none needed" >&6; } ;;
3524 xno)
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3526 $as_echo "unsupported" >&6; } ;;
3527 *)
3528 CC="$CC $ac_cv_prog_cc_c89"
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3530 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3531 esac
3532 if test "x$ac_cv_prog_cc_c89" != xno; then :
3533
3534 fi
3535
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 DEPDIR="${am__leading_dot}deps"
3542
3543 ac_config_commands="$ac_config_commands depfiles"
3544
3545
3546 am_make=${MAKE-make}
3547 cat > confinc << 'END'
3548 am__doit:
3549 @echo this is the am__doit target
3550 .PHONY: am__doit
3551 END
3552 # If we don't find an include directive, just comment out the code.
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3554 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3555 am__include="#"
3556 am__quote=
3557 _am_result=none
3558 # First try GNU make style include.
3559 echo "include confinc" > confmf
3560 # Ignore all kinds of additional output from `make'.
3561 case `$am_make -s -f confmf 2> /dev/null` in #(
3562 *the\ am__doit\ target*)
3563 am__include=include
3564 am__quote=
3565 _am_result=GNU
3566 ;;
3567 esac
3568 # Now try BSD make style include.
3569 if test "$am__include" = "#"; then
3570 echo '.include "confinc"' > confmf
3571 case `$am_make -s -f confmf 2> /dev/null` in #(
3572 *the\ am__doit\ target*)
3573 am__include=.include
3574 am__quote="\""
3575 _am_result=BSD
3576 ;;
3577 esac
3578 fi
3579
3580
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3582 $as_echo "$_am_result" >&6; }
3583 rm -f confinc confmf
3584
3585 # Check whether --enable-dependency-tracking was given.
3586 if test "${enable_dependency_tracking+set}" = set; then :
3587 enableval=$enable_dependency_tracking;
3588 fi
3589
3590 if test "x$enable_dependency_tracking" != xno; then
3591 am_depcomp="$ac_aux_dir/depcomp"
3592 AMDEPBACKSLASH='\'
3593 am__nodep='_no'
3594 fi
3595 if test "x$enable_dependency_tracking" != xno; then
3596 AMDEP_TRUE=
3597 AMDEP_FALSE='#'
3598 else
3599 AMDEP_TRUE='#'
3600 AMDEP_FALSE=
3601 fi
3602
3603
3604
3605 depcc="$CC" am_compiler_list=
3606
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3608 $as_echo_n "checking dependency style of $depcc... " >&6; }
3609 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3613 # We make a subdir and do the tests there. Otherwise we can end up
3614 # making bogus files that we don't know about and never remove. For
3615 # instance it was reported that on HP-UX the gcc test will end up
3616 # making a dummy file named `D' -- because `-MD' means `put the output
3617 # in D'.
3618 rm -rf conftest.dir
3619 mkdir conftest.dir
3620 # Copy depcomp to subdir because otherwise we won't find it if we're
3621 # using a relative directory.
3622 cp "$am_depcomp" conftest.dir
3623 cd conftest.dir
3624 # We will build objects and dependencies in a subdirectory because
3625 # it helps to detect inapplicable dependency modes. For instance
3626 # both Tru64's cc and ICC support -MD to output dependencies as a
3627 # side effect of compilation, but ICC will put the dependencies in
3628 # the current directory while Tru64 will put them in the object
3629 # directory.
3630 mkdir sub
3631
3632 am_cv_CC_dependencies_compiler_type=none
3633 if test "$am_compiler_list" = ""; then
3634 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3635 fi
3636 am__universal=false
3637 case " $depcc " in #(
3638 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3639 esac
3640
3641 for depmode in $am_compiler_list; do
3642 # Setup a source with many dependencies, because some compilers
3643 # like to wrap large dependency lists on column 80 (with \), and
3644 # we should not choose a depcomp mode which is confused by this.
3645 #
3646 # We need to recreate these files for each test, as the compiler may
3647 # overwrite some of them when testing with obscure command lines.
3648 # This happens at least with the AIX C compiler.
3649 : > sub/conftest.c
3650 for i in 1 2 3 4 5 6; do
3651 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3652 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3653 # Solaris 8's {/usr,}/bin/sh.
3654 touch sub/conftst$i.h
3655 done
3656 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3657
3658 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3659 # mode. It turns out that the SunPro C++ compiler does not properly
3660 # handle `-M -o', and we need to detect this. Also, some Intel
3661 # versions had trouble with output in subdirs
3662 am__obj=sub/conftest.${OBJEXT-o}
3663 am__minus_obj="-o $am__obj"
3664 case $depmode in
3665 gcc)
3666 # This depmode causes a compiler race in universal mode.
3667 test "$am__universal" = false || continue
3668 ;;
3669 nosideeffect)
3670 # after this tag, mechanisms are not by side-effect, so they'll
3671 # only be used when explicitly requested
3672 if test "x$enable_dependency_tracking" = xyes; then
3673 continue
3674 else
3675 break
3676 fi
3677 ;;
3678 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3679 # This compiler won't grok `-c -o', but also, the minuso test has
3680 # not run yet. These depmodes are late enough in the game, and
3681 # so weak that their functioning should not be impacted.
3682 am__obj=conftest.${OBJEXT-o}
3683 am__minus_obj=
3684 ;;
3685 none) break ;;
3686 esac
3687 if depmode=$depmode \
3688 source=sub/conftest.c object=$am__obj \
3689 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3690 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3691 >/dev/null 2>conftest.err &&
3692 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3693 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3694 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3695 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3696 # icc doesn't choke on unknown options, it will just issue warnings
3697 # or remarks (even with -Werror). So we grep stderr for any message
3698 # that says an option was ignored or not supported.
3699 # When given -MP, icc 7.0 and 7.1 complain thusly:
3700 # icc: Command line warning: ignoring option '-M'; no argument required
3701 # The diagnosis changed in icc 8.0:
3702 # icc: Command line remark: option '-MP' not supported
3703 if (grep 'ignoring option' conftest.err ||
3704 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3705 am_cv_CC_dependencies_compiler_type=$depmode
3706 break
3707 fi
3708 fi
3709 done
3710
3711 cd ..
3712 rm -rf conftest.dir
3713 else
3714 am_cv_CC_dependencies_compiler_type=none
3715 fi
3716
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3719 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3720 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3721
3722 if
3723 test "x$enable_dependency_tracking" != xno \
3724 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3725 am__fastdepCC_TRUE=
3726 am__fastdepCC_FALSE='#'
3727 else
3728 am__fastdepCC_TRUE='#'
3729 am__fastdepCC_FALSE=
3730 fi
3731
3732
3733 case `pwd` in
3734 *\ * | *\ *)
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3736 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3737 esac
3738
3739
3740
3741 macro_version='2.4.2'
3742 macro_revision='1.3337'
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756 ltmain="$ac_aux_dir/ltmain.sh"
3757
3758 # Make sure we can run config.sub.
3759 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3760 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3761
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3763 $as_echo_n "checking build system type... " >&6; }
3764 if ${ac_cv_build+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 ac_build_alias=$build_alias
3768 test "x$ac_build_alias" = x &&
3769 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3770 test "x$ac_build_alias" = x &&
3771 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3772 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3773 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3774
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3777 $as_echo "$ac_cv_build" >&6; }
3778 case $ac_cv_build in
3779 *-*-*) ;;
3780 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3781 esac
3782 build=$ac_cv_build
3783 ac_save_IFS=$IFS; IFS='-'
3784 set x $ac_cv_build
3785 shift
3786 build_cpu=$1
3787 build_vendor=$2
3788 shift; shift
3789 # Remember, the first character of IFS is used to create $*,
3790 # except with old shells:
3791 build_os=$*
3792 IFS=$ac_save_IFS
3793 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3794
3795
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3797 $as_echo_n "checking host system type... " >&6; }
3798 if ${ac_cv_host+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test "x$host_alias" = x; then
3802 ac_cv_host=$ac_cv_build
3803 else
3804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3805 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3806 fi
3807
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3810 $as_echo "$ac_cv_host" >&6; }
3811 case $ac_cv_host in
3812 *-*-*) ;;
3813 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3814 esac
3815 host=$ac_cv_host
3816 ac_save_IFS=$IFS; IFS='-'
3817 set x $ac_cv_host
3818 shift
3819 host_cpu=$1
3820 host_vendor=$2
3821 shift; shift
3822 # Remember, the first character of IFS is used to create $*,
3823 # except with old shells:
3824 host_os=$*
3825 IFS=$ac_save_IFS
3826 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3827
3828
3829 # Backslashify metacharacters that are still active within
3830 # double-quoted strings.
3831 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3832
3833 # Same as above, but do not quote variable references.
3834 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3835
3836 # Sed substitution to delay expansion of an escaped shell variable in a
3837 # double_quote_subst'ed string.
3838 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3839
3840 # Sed substitution to delay expansion of an escaped single quote.
3841 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3842
3843 # Sed substitution to avoid accidental globbing in evaled expressions
3844 no_glob_subst='s/\*/\\\*/g'
3845
3846 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3847 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3848 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3849
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3851 $as_echo_n "checking how to print strings... " >&6; }
3852 # Test print first, because it will be a builtin if present.
3853 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3854 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3855 ECHO='print -r --'
3856 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3857 ECHO='printf %s\n'
3858 else
3859 # Use this function as a fallback that always works.
3860 func_fallback_echo ()
3861 {
3862 eval 'cat <<_LTECHO_EOF
3863 $1
3864 _LTECHO_EOF'
3865 }
3866 ECHO='func_fallback_echo'
3867 fi
3868
3869 # func_echo_all arg...
3870 # Invoke $ECHO with all args, space-separated.
3871 func_echo_all ()
3872 {
3873 $ECHO ""
3874 }
3875
3876 case "$ECHO" in
3877 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3878 $as_echo "printf" >&6; } ;;
3879 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3880 $as_echo "print -r" >&6; } ;;
3881 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3882 $as_echo "cat" >&6; } ;;
3883 esac
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3899 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3900 if ${ac_cv_path_SED+:} false; then :
3901 $as_echo_n "(cached) " >&6
3902 else
3903 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3904 for ac_i in 1 2 3 4 5 6 7; do
3905 ac_script="$ac_script$as_nl$ac_script"
3906 done
3907 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3908 { ac_script=; unset ac_script;}
3909 if test -z "$SED"; then
3910 ac_path_SED_found=false
3911 # Loop through the user's path and test for each of PROGNAME-LIST
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_prog in sed gsed; do
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3920 as_fn_executable_p "$ac_path_SED" || continue
3921 # Check for GNU ac_path_SED and select it if it is found.
3922 # Check for GNU $ac_path_SED
3923 case `"$ac_path_SED" --version 2>&1` in
3924 *GNU*)
3925 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3926 *)
3927 ac_count=0
3928 $as_echo_n 0123456789 >"conftest.in"
3929 while :
3930 do
3931 cat "conftest.in" "conftest.in" >"conftest.tmp"
3932 mv "conftest.tmp" "conftest.in"
3933 cp "conftest.in" "conftest.nl"
3934 $as_echo '' >> "conftest.nl"
3935 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3937 as_fn_arith $ac_count + 1 && ac_count=$as_val
3938 if test $ac_count -gt ${ac_path_SED_max-0}; then
3939 # Best one so far, save it but keep looking for a better one
3940 ac_cv_path_SED="$ac_path_SED"
3941 ac_path_SED_max=$ac_count
3942 fi
3943 # 10*(2^10) chars as input seems more than enough
3944 test $ac_count -gt 10 && break
3945 done
3946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3947 esac
3948
3949 $ac_path_SED_found && break 3
3950 done
3951 done
3952 done
3953 IFS=$as_save_IFS
3954 if test -z "$ac_cv_path_SED"; then
3955 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3956 fi
3957 else
3958 ac_cv_path_SED=$SED
3959 fi
3960
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3963 $as_echo "$ac_cv_path_SED" >&6; }
3964 SED="$ac_cv_path_SED"
3965 rm -f conftest.sed
3966
3967 test -z "$SED" && SED=sed
3968 Xsed="$SED -e 1s/^X//"
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3981 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3982 if ${ac_cv_path_GREP+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -z "$GREP"; then
3986 ac_path_GREP_found=false
3987 # Loop through the user's path and test for each of PROGNAME-LIST
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_prog in grep ggrep; do
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3996 as_fn_executable_p "$ac_path_GREP" || continue
3997 # Check for GNU ac_path_GREP and select it if it is found.
3998 # Check for GNU $ac_path_GREP
3999 case `"$ac_path_GREP" --version 2>&1` in
4000 *GNU*)
4001 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4002 *)
4003 ac_count=0
4004 $as_echo_n 0123456789 >"conftest.in"
4005 while :
4006 do
4007 cat "conftest.in" "conftest.in" >"conftest.tmp"
4008 mv "conftest.tmp" "conftest.in"
4009 cp "conftest.in" "conftest.nl"
4010 $as_echo 'GREP' >> "conftest.nl"
4011 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4013 as_fn_arith $ac_count + 1 && ac_count=$as_val
4014 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4015 # Best one so far, save it but keep looking for a better one
4016 ac_cv_path_GREP="$ac_path_GREP"
4017 ac_path_GREP_max=$ac_count
4018 fi
4019 # 10*(2^10) chars as input seems more than enough
4020 test $ac_count -gt 10 && break
4021 done
4022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023 esac
4024
4025 $ac_path_GREP_found && break 3
4026 done
4027 done
4028 done
4029 IFS=$as_save_IFS
4030 if test -z "$ac_cv_path_GREP"; then
4031 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4032 fi
4033 else
4034 ac_cv_path_GREP=$GREP
4035 fi
4036
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4039 $as_echo "$ac_cv_path_GREP" >&6; }
4040 GREP="$ac_cv_path_GREP"
4041
4042
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4044 $as_echo_n "checking for egrep... " >&6; }
4045 if ${ac_cv_path_EGREP+:} false; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4049 then ac_cv_path_EGREP="$GREP -E"
4050 else
4051 if test -z "$EGREP"; then
4052 ac_path_EGREP_found=false
4053 # Loop through the user's path and test for each of PROGNAME-LIST
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056 do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_prog in egrep; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4062 as_fn_executable_p "$ac_path_EGREP" || continue
4063 # Check for GNU ac_path_EGREP and select it if it is found.
4064 # Check for GNU $ac_path_EGREP
4065 case `"$ac_path_EGREP" --version 2>&1` in
4066 *GNU*)
4067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4068 *)
4069 ac_count=0
4070 $as_echo_n 0123456789 >"conftest.in"
4071 while :
4072 do
4073 cat "conftest.in" "conftest.in" >"conftest.tmp"
4074 mv "conftest.tmp" "conftest.in"
4075 cp "conftest.in" "conftest.nl"
4076 $as_echo 'EGREP' >> "conftest.nl"
4077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079 as_fn_arith $ac_count + 1 && ac_count=$as_val
4080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4081 # Best one so far, save it but keep looking for a better one
4082 ac_cv_path_EGREP="$ac_path_EGREP"
4083 ac_path_EGREP_max=$ac_count
4084 fi
4085 # 10*(2^10) chars as input seems more than enough
4086 test $ac_count -gt 10 && break
4087 done
4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089 esac
4090
4091 $ac_path_EGREP_found && break 3
4092 done
4093 done
4094 done
4095 IFS=$as_save_IFS
4096 if test -z "$ac_cv_path_EGREP"; then
4097 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4098 fi
4099 else
4100 ac_cv_path_EGREP=$EGREP
4101 fi
4102
4103 fi
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4106 $as_echo "$ac_cv_path_EGREP" >&6; }
4107 EGREP="$ac_cv_path_EGREP"
4108
4109
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4111 $as_echo_n "checking for fgrep... " >&6; }
4112 if ${ac_cv_path_FGREP+:} false; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4116 then ac_cv_path_FGREP="$GREP -F"
4117 else
4118 if test -z "$FGREP"; then
4119 ac_path_FGREP_found=false
4120 # Loop through the user's path and test for each of PROGNAME-LIST
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4123 do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_prog in fgrep; do
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4129 as_fn_executable_p "$ac_path_FGREP" || continue
4130 # Check for GNU ac_path_FGREP and select it if it is found.
4131 # Check for GNU $ac_path_FGREP
4132 case `"$ac_path_FGREP" --version 2>&1` in
4133 *GNU*)
4134 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4135 *)
4136 ac_count=0
4137 $as_echo_n 0123456789 >"conftest.in"
4138 while :
4139 do
4140 cat "conftest.in" "conftest.in" >"conftest.tmp"
4141 mv "conftest.tmp" "conftest.in"
4142 cp "conftest.in" "conftest.nl"
4143 $as_echo 'FGREP' >> "conftest.nl"
4144 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4146 as_fn_arith $ac_count + 1 && ac_count=$as_val
4147 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4148 # Best one so far, save it but keep looking for a better one
4149 ac_cv_path_FGREP="$ac_path_FGREP"
4150 ac_path_FGREP_max=$ac_count
4151 fi
4152 # 10*(2^10) chars as input seems more than enough
4153 test $ac_count -gt 10 && break
4154 done
4155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4156 esac
4157
4158 $ac_path_FGREP_found && break 3
4159 done
4160 done
4161 done
4162 IFS=$as_save_IFS
4163 if test -z "$ac_cv_path_FGREP"; then
4164 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4165 fi
4166 else
4167 ac_cv_path_FGREP=$FGREP
4168 fi
4169
4170 fi
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4173 $as_echo "$ac_cv_path_FGREP" >&6; }
4174 FGREP="$ac_cv_path_FGREP"
4175
4176
4177 test -z "$GREP" && GREP=grep
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197 # Check whether --with-gnu-ld was given.
4198 if test "${with_gnu_ld+set}" = set; then :
4199 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4200 else
4201 with_gnu_ld=no
4202 fi
4203
4204 ac_prog=ld
4205 if test "$GCC" = yes; then
4206 # Check if gcc -print-prog-name=ld gives a path.
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4208 $as_echo_n "checking for ld used by $CC... " >&6; }
4209 case $host in
4210 *-*-mingw*)
4211 # gcc leaves a trailing carriage return which upsets mingw
4212 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4213 *)
4214 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4215 esac
4216 case $ac_prog in
4217 # Accept absolute paths.
4218 [\\/]* | ?:[\\/]*)
4219 re_direlt='/[^/][^/]*/\.\./'
4220 # Canonicalize the pathname of ld
4221 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4222 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4223 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4224 done
4225 test -z "$LD" && LD="$ac_prog"
4226 ;;
4227 "")
4228 # If it fails, then pretend we aren't using GCC.
4229 ac_prog=ld
4230 ;;
4231 *)
4232 # If it is relative, then search for the first ld in PATH.
4233 with_gnu_ld=unknown
4234 ;;
4235 esac
4236 elif test "$with_gnu_ld" = yes; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4238 $as_echo_n "checking for GNU ld... " >&6; }
4239 else
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4241 $as_echo_n "checking for non-GNU ld... " >&6; }
4242 fi
4243 if ${lt_cv_path_LD+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -z "$LD"; then
4247 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4248 for ac_dir in $PATH; do
4249 IFS="$lt_save_ifs"
4250 test -z "$ac_dir" && ac_dir=.
4251 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4252 lt_cv_path_LD="$ac_dir/$ac_prog"
4253 # Check to see if the program is GNU ld. I'd rather use --version,
4254 # but apparently some variants of GNU ld only accept -v.
4255 # Break only if it was the GNU/non-GNU ld that we prefer.
4256 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4257 *GNU* | *'with BFD'*)
4258 test "$with_gnu_ld" != no && break
4259 ;;
4260 *)
4261 test "$with_gnu_ld" != yes && break
4262 ;;
4263 esac
4264 fi
4265 done
4266 IFS="$lt_save_ifs"
4267 else
4268 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4269 fi
4270 fi
4271
4272 LD="$lt_cv_path_LD"
4273 if test -n "$LD"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4275 $as_echo "$LD" >&6; }
4276 else
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4279 fi
4280 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4282 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4283 if ${lt_cv_prog_gnu_ld+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4287 case `$LD -v 2>&1 </dev/null` in
4288 *GNU* | *'with BFD'*)
4289 lt_cv_prog_gnu_ld=yes
4290 ;;
4291 *)
4292 lt_cv_prog_gnu_ld=no
4293 ;;
4294 esac
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4297 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4298 with_gnu_ld=$lt_cv_prog_gnu_ld
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4309 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4310 if ${lt_cv_path_NM+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$NM"; then
4314 # Let the user override the test.
4315 lt_cv_path_NM="$NM"
4316 else
4317 lt_nm_to_check="${ac_tool_prefix}nm"
4318 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4319 lt_nm_to_check="$lt_nm_to_check nm"
4320 fi
4321 for lt_tmp_nm in $lt_nm_to_check; do
4322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4323 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4324 IFS="$lt_save_ifs"
4325 test -z "$ac_dir" && ac_dir=.
4326 tmp_nm="$ac_dir/$lt_tmp_nm"
4327 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4328 # Check to see if the nm accepts a BSD-compat flag.
4329 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4330 # nm: unknown option "B" ignored
4331 # Tru64's nm complains that /dev/null is an invalid object file
4332 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4333 */dev/null* | *'Invalid file or object type'*)
4334 lt_cv_path_NM="$tmp_nm -B"
4335 break
4336 ;;
4337 *)
4338 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4339 */dev/null*)
4340 lt_cv_path_NM="$tmp_nm -p"
4341 break
4342 ;;
4343 *)
4344 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4345 continue # so that we can try to find one that supports BSD flags
4346 ;;
4347 esac
4348 ;;
4349 esac
4350 fi
4351 done
4352 IFS="$lt_save_ifs"
4353 done
4354 : ${lt_cv_path_NM=no}
4355 fi
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4358 $as_echo "$lt_cv_path_NM" >&6; }
4359 if test "$lt_cv_path_NM" != "no"; then
4360 NM="$lt_cv_path_NM"
4361 else
4362 # Didn't find any BSD compatible name lister, look for dumpbin.
4363 if test -n "$DUMPBIN"; then :
4364 # Let the user override the test.
4365 else
4366 if test -n "$ac_tool_prefix"; then
4367 for ac_prog in dumpbin "link -dump"
4368 do
4369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if ${ac_cv_prog_DUMPBIN+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 if test -n "$DUMPBIN"; then
4377 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 break 2
4389 fi
4390 done
4391 done
4392 IFS=$as_save_IFS
4393
4394 fi
4395 fi
4396 DUMPBIN=$ac_cv_prog_DUMPBIN
4397 if test -n "$DUMPBIN"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4399 $as_echo "$DUMPBIN" >&6; }
4400 else
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 $as_echo "no" >&6; }
4403 fi
4404
4405
4406 test -n "$DUMPBIN" && break
4407 done
4408 fi
4409 if test -z "$DUMPBIN"; then
4410 ac_ct_DUMPBIN=$DUMPBIN
4411 for ac_prog in dumpbin "link -dump"
4412 do
4413 # Extract the first word of "$ac_prog", so it can be a program name with args.
4414 set dummy $ac_prog; ac_word=$2
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 if test -n "$ac_ct_DUMPBIN"; then
4421 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434 done
4435 done
4436 IFS=$as_save_IFS
4437
4438 fi
4439 fi
4440 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4441 if test -n "$ac_ct_DUMPBIN"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4443 $as_echo "$ac_ct_DUMPBIN" >&6; }
4444 else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4447 fi
4448
4449
4450 test -n "$ac_ct_DUMPBIN" && break
4451 done
4452
4453 if test "x$ac_ct_DUMPBIN" = x; then
4454 DUMPBIN=":"
4455 else
4456 case $cross_compiling:$ac_tool_warned in
4457 yes:)
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4460 ac_tool_warned=yes ;;
4461 esac
4462 DUMPBIN=$ac_ct_DUMPBIN
4463 fi
4464 fi
4465
4466 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4467 *COFF*)
4468 DUMPBIN="$DUMPBIN -symbols"
4469 ;;
4470 *)
4471 DUMPBIN=:
4472 ;;
4473 esac
4474 fi
4475
4476 if test "$DUMPBIN" != ":"; then
4477 NM="$DUMPBIN"
4478 fi
4479 fi
4480 test -z "$NM" && NM=nm
4481
4482
4483
4484
4485
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4488 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4489 if ${lt_cv_nm_interface+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 lt_cv_nm_interface="BSD nm"
4493 echo "int some_variable = 0;" > conftest.$ac_ext
4494 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4495 (eval "$ac_compile" 2>conftest.err)
4496 cat conftest.err >&5
4497 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4498 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4499 cat conftest.err >&5
4500 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4501 cat conftest.out >&5
4502 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4503 lt_cv_nm_interface="MS dumpbin"
4504 fi
4505 rm -f conftest*
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4508 $as_echo "$lt_cv_nm_interface" >&6; }
4509
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4511 $as_echo_n "checking whether ln -s works... " >&6; }
4512 LN_S=$as_ln_s
4513 if test "$LN_S" = "ln -s"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4515 $as_echo "yes" >&6; }
4516 else
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4518 $as_echo "no, using $LN_S" >&6; }
4519 fi
4520
4521 # find the maximum length of command line arguments
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4523 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4524 if ${lt_cv_sys_max_cmd_len+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 i=0
4528 teststring="ABCD"
4529
4530 case $build_os in
4531 msdosdjgpp*)
4532 # On DJGPP, this test can blow up pretty badly due to problems in libc
4533 # (any single argument exceeding 2000 bytes causes a buffer overrun
4534 # during glob expansion). Even if it were fixed, the result of this
4535 # check would be larger than it should be.
4536 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4537 ;;
4538
4539 gnu*)
4540 # Under GNU Hurd, this test is not required because there is
4541 # no limit to the length of command line arguments.
4542 # Libtool will interpret -1 as no limit whatsoever
4543 lt_cv_sys_max_cmd_len=-1;
4544 ;;
4545
4546 cygwin* | mingw* | cegcc*)
4547 # On Win9x/ME, this test blows up -- it succeeds, but takes
4548 # about 5 minutes as the teststring grows exponentially.
4549 # Worse, since 9x/ME are not pre-emptively multitasking,
4550 # you end up with a "frozen" computer, even though with patience
4551 # the test eventually succeeds (with a max line length of 256k).
4552 # Instead, let's just punt: use the minimum linelength reported by
4553 # all of the supported platforms: 8192 (on NT/2K/XP).
4554 lt_cv_sys_max_cmd_len=8192;
4555 ;;
4556
4557 mint*)
4558 # On MiNT this can take a long time and run out of memory.
4559 lt_cv_sys_max_cmd_len=8192;
4560 ;;
4561
4562 amigaos*)
4563 # On AmigaOS with pdksh, this test takes hours, literally.
4564 # So we just punt and use a minimum line length of 8192.
4565 lt_cv_sys_max_cmd_len=8192;
4566 ;;
4567
4568 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4569 # This has been around since 386BSD, at least. Likely further.
4570 if test -x /sbin/sysctl; then
4571 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4572 elif test -x /usr/sbin/sysctl; then
4573 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4574 else
4575 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4576 fi
4577 # And add a safety zone
4578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4580 ;;
4581
4582 interix*)
4583 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4584 lt_cv_sys_max_cmd_len=196608
4585 ;;
4586
4587 os2*)
4588 # The test takes a long time on OS/2.
4589 lt_cv_sys_max_cmd_len=8192
4590 ;;
4591
4592 osf*)
4593 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4594 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4595 # nice to cause kernel panics so lets avoid the loop below.
4596 # First set a reasonable default.
4597 lt_cv_sys_max_cmd_len=16384
4598 #
4599 if test -x /sbin/sysconfig; then
4600 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4601 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4602 esac
4603 fi
4604 ;;
4605 sco3.2v5*)
4606 lt_cv_sys_max_cmd_len=102400
4607 ;;
4608 sysv5* | sco5v6* | sysv4.2uw2*)
4609 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4610 if test -n "$kargmax"; then
4611 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4612 else
4613 lt_cv_sys_max_cmd_len=32768
4614 fi
4615 ;;
4616 *)
4617 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4618 if test -n "$lt_cv_sys_max_cmd_len"; then
4619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4621 else
4622 # Make teststring a little bigger before we do anything with it.
4623 # a 1K string should be a reasonable start.
4624 for i in 1 2 3 4 5 6 7 8 ; do
4625 teststring=$teststring$teststring
4626 done
4627 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4628 # If test is not a shell built-in, we'll probably end up computing a
4629 # maximum length that is only half of the actual maximum length, but
4630 # we can't tell.
4631 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4632 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4633 test $i != 17 # 1/2 MB should be enough
4634 do
4635 i=`expr $i + 1`
4636 teststring=$teststring$teststring
4637 done
4638 # Only check the string length outside the loop.
4639 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4640 teststring=
4641 # Add a significant safety factor because C++ compilers can tack on
4642 # massive amounts of additional arguments before passing them to the
4643 # linker. It appears as though 1/2 is a usable value.
4644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4645 fi
4646 ;;
4647 esac
4648
4649 fi
4650
4651 if test -n $lt_cv_sys_max_cmd_len ; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4653 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4654 else
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4656 $as_echo "none" >&6; }
4657 fi
4658 max_cmd_len=$lt_cv_sys_max_cmd_len
4659
4660
4661
4662
4663
4664
4665 : ${CP="cp -f"}
4666 : ${MV="mv -f"}
4667 : ${RM="rm -f"}
4668
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4670 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4671 # Try some XSI features
4672 xsi_shell=no
4673 ( _lt_dummy="a/b/c"
4674 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4675 = c,a/b,b/c, \
4676 && eval 'test $(( 1 + 1 )) -eq 2 \
4677 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4678 && xsi_shell=yes
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4680 $as_echo "$xsi_shell" >&6; }
4681
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4684 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4685 lt_shell_append=no
4686 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4687 >/dev/null 2>&1 \
4688 && lt_shell_append=yes
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4690 $as_echo "$lt_shell_append" >&6; }
4691
4692
4693 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4694 lt_unset=unset
4695 else
4696 lt_unset=false
4697 fi
4698
4699
4700
4701
4702
4703 # test EBCDIC or ASCII
4704 case `echo X|tr X '\101'` in
4705 A) # ASCII based system
4706 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4707 lt_SP2NL='tr \040 \012'
4708 lt_NL2SP='tr \015\012 \040\040'
4709 ;;
4710 *) # EBCDIC based system
4711 lt_SP2NL='tr \100 \n'
4712 lt_NL2SP='tr \r\n \100\100'
4713 ;;
4714 esac
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4725 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4726 if ${lt_cv_to_host_file_cmd+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 case $host in
4730 *-*-mingw* )
4731 case $build in
4732 *-*-mingw* ) # actually msys
4733 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4734 ;;
4735 *-*-cygwin* )
4736 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4737 ;;
4738 * ) # otherwise, assume *nix
4739 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4740 ;;
4741 esac
4742 ;;
4743 *-*-cygwin* )
4744 case $build in
4745 *-*-mingw* ) # actually msys
4746 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4747 ;;
4748 *-*-cygwin* )
4749 lt_cv_to_host_file_cmd=func_convert_file_noop
4750 ;;
4751 * ) # otherwise, assume *nix
4752 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4753 ;;
4754 esac
4755 ;;
4756 * ) # unhandled hosts (and "normal" native builds)
4757 lt_cv_to_host_file_cmd=func_convert_file_noop
4758 ;;
4759 esac
4760
4761 fi
4762
4763 to_host_file_cmd=$lt_cv_to_host_file_cmd
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4765 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4766
4767
4768
4769
4770
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4772 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4773 if ${lt_cv_to_tool_file_cmd+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 #assume ordinary cross tools, or native build.
4777 lt_cv_to_tool_file_cmd=func_convert_file_noop
4778 case $host in
4779 *-*-mingw* )
4780 case $build in
4781 *-*-mingw* ) # actually msys
4782 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4783 ;;
4784 esac
4785 ;;
4786 esac
4787
4788 fi
4789
4790 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4792 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4793
4794
4795
4796
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4799 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4800 if ${lt_cv_ld_reload_flag+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 lt_cv_ld_reload_flag='-r'
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4806 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4807 reload_flag=$lt_cv_ld_reload_flag
4808 case $reload_flag in
4809 "" | " "*) ;;
4810 *) reload_flag=" $reload_flag" ;;
4811 esac
4812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4813 case $host_os in
4814 cygwin* | mingw* | pw32* | cegcc*)
4815 if test "$GCC" != yes; then
4816 reload_cmds=false
4817 fi
4818 ;;
4819 darwin*)
4820 if test "$GCC" = yes; then
4821 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4822 else
4823 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4824 fi
4825 ;;
4826 esac
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836 if test -n "$ac_tool_prefix"; then
4837 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4838 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if ${ac_cv_prog_OBJDUMP+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 if test -n "$OBJDUMP"; then
4845 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4846 else
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 break 2
4857 fi
4858 done
4859 done
4860 IFS=$as_save_IFS
4861
4862 fi
4863 fi
4864 OBJDUMP=$ac_cv_prog_OBJDUMP
4865 if test -n "$OBJDUMP"; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4867 $as_echo "$OBJDUMP" >&6; }
4868 else
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4871 fi
4872
4873
4874 fi
4875 if test -z "$ac_cv_prog_OBJDUMP"; then
4876 ac_ct_OBJDUMP=$OBJDUMP
4877 # Extract the first word of "objdump", so it can be a program name with args.
4878 set dummy objdump; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 if test -n "$ac_ct_OBJDUMP"; then
4885 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4897 fi
4898 done
4899 done
4900 IFS=$as_save_IFS
4901
4902 fi
4903 fi
4904 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4905 if test -n "$ac_ct_OBJDUMP"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4907 $as_echo "$ac_ct_OBJDUMP" >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4911 fi
4912
4913 if test "x$ac_ct_OBJDUMP" = x; then
4914 OBJDUMP="false"
4915 else
4916 case $cross_compiling:$ac_tool_warned in
4917 yes:)
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4920 ac_tool_warned=yes ;;
4921 esac
4922 OBJDUMP=$ac_ct_OBJDUMP
4923 fi
4924 else
4925 OBJDUMP="$ac_cv_prog_OBJDUMP"
4926 fi
4927
4928 test -z "$OBJDUMP" && OBJDUMP=objdump
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4939 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4940 if ${lt_cv_deplibs_check_method+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 lt_cv_file_magic_cmd='$MAGIC_CMD'
4944 lt_cv_file_magic_test_file=
4945 lt_cv_deplibs_check_method='unknown'
4946 # Need to set the preceding variable on all platforms that support
4947 # interlibrary dependencies.
4948 # 'none' -- dependencies not supported.
4949 # `unknown' -- same as none, but documents that we really don't know.
4950 # 'pass_all' -- all dependencies passed with no checks.
4951 # 'test_compile' -- check by making test program.
4952 # 'file_magic [[regex]]' -- check by looking for files in library path
4953 # which responds to the $file_magic_cmd with a given extended regex.
4954 # If you have `file' or equivalent on your system and you're not sure
4955 # whether `pass_all' will *always* work, you probably want this one.
4956
4957 case $host_os in
4958 aix[4-9]*)
4959 lt_cv_deplibs_check_method=pass_all
4960 ;;
4961
4962 beos*)
4963 lt_cv_deplibs_check_method=pass_all
4964 ;;
4965
4966 bsdi[45]*)
4967 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4968 lt_cv_file_magic_cmd='/usr/bin/file -L'
4969 lt_cv_file_magic_test_file=/shlib/libc.so
4970 ;;
4971
4972 cygwin*)
4973 # func_win32_libid is a shell function defined in ltmain.sh
4974 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4975 lt_cv_file_magic_cmd='func_win32_libid'
4976 ;;
4977
4978 mingw* | pw32*)
4979 # Base MSYS/MinGW do not provide the 'file' command needed by
4980 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4981 # unless we find 'file', for example because we are cross-compiling.
4982 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4983 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4984 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4985 lt_cv_file_magic_cmd='func_win32_libid'
4986 else
4987 # Keep this pattern in sync with the one in func_win32_libid.
4988 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4989 lt_cv_file_magic_cmd='$OBJDUMP -f'
4990 fi
4991 ;;
4992
4993 cegcc*)
4994 # use the weaker test based on 'objdump'. See mingw*.
4995 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4996 lt_cv_file_magic_cmd='$OBJDUMP -f'
4997 ;;
4998
4999 darwin* | rhapsody*)
5000 lt_cv_deplibs_check_method=pass_all
5001 ;;
5002
5003 freebsd* | dragonfly*)
5004 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5005 case $host_cpu in
5006 i*86 )
5007 # Not sure whether the presence of OpenBSD here was a mistake.
5008 # Let's accept both of them until this is cleared up.
5009 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5010 lt_cv_file_magic_cmd=/usr/bin/file
5011 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5012 ;;
5013 esac
5014 else
5015 lt_cv_deplibs_check_method=pass_all
5016 fi
5017 ;;
5018
5019 haiku*)
5020 lt_cv_deplibs_check_method=pass_all
5021 ;;
5022
5023 hpux10.20* | hpux11*)
5024 lt_cv_file_magic_cmd=/usr/bin/file
5025 case $host_cpu in
5026 ia64*)
5027 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5028 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5029 ;;
5030 hppa*64*)
5031 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]'
5032 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5033 ;;
5034 *)
5035 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5036 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5037 ;;
5038 esac
5039 ;;
5040
5041 interix[3-9]*)
5042 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5044 ;;
5045
5046 irix5* | irix6* | nonstopux*)
5047 case $LD in
5048 *-32|*"-32 ") libmagic=32-bit;;
5049 *-n32|*"-n32 ") libmagic=N32;;
5050 *-64|*"-64 ") libmagic=64-bit;;
5051 *) libmagic=never-match;;
5052 esac
5053 lt_cv_deplibs_check_method=pass_all
5054 ;;
5055
5056 # This must be glibc/ELF.
5057 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060
5061 netbsd* | netbsdelf*-gnu)
5062 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5064 else
5065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5066 fi
5067 ;;
5068
5069 newos6*)
5070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5071 lt_cv_file_magic_cmd=/usr/bin/file
5072 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5073 ;;
5074
5075 *nto* | *qnx*)
5076 lt_cv_deplibs_check_method=pass_all
5077 ;;
5078
5079 openbsd*)
5080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5082 else
5083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5084 fi
5085 ;;
5086
5087 osf3* | osf4* | osf5*)
5088 lt_cv_deplibs_check_method=pass_all
5089 ;;
5090
5091 rdos*)
5092 lt_cv_deplibs_check_method=pass_all
5093 ;;
5094
5095 solaris*)
5096 lt_cv_deplibs_check_method=pass_all
5097 ;;
5098
5099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5100 lt_cv_deplibs_check_method=pass_all
5101 ;;
5102
5103 sysv4 | sysv4.3*)
5104 case $host_vendor in
5105 motorola)
5106 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]'
5107 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5108 ;;
5109 ncr)
5110 lt_cv_deplibs_check_method=pass_all
5111 ;;
5112 sequent)
5113 lt_cv_file_magic_cmd='/bin/file'
5114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5115 ;;
5116 sni)
5117 lt_cv_file_magic_cmd='/bin/file'
5118 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5119 lt_cv_file_magic_test_file=/lib/libc.so
5120 ;;
5121 siemens)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124 pc)
5125 lt_cv_deplibs_check_method=pass_all
5126 ;;
5127 esac
5128 ;;
5129
5130 tpf*)
5131 lt_cv_deplibs_check_method=pass_all
5132 ;;
5133 esac
5134
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5137 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5138
5139 file_magic_glob=
5140 want_nocaseglob=no
5141 if test "$build" = "$host"; then
5142 case $host_os in
5143 mingw* | pw32*)
5144 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5145 want_nocaseglob=yes
5146 else
5147 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5148 fi
5149 ;;
5150 esac
5151 fi
5152
5153 file_magic_cmd=$lt_cv_file_magic_cmd
5154 deplibs_check_method=$lt_cv_deplibs_check_method
5155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178 if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5180 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_DLLTOOL+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test -n "$DLLTOOL"; then
5187 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5202 IFS=$as_save_IFS
5203
5204 fi
5205 fi
5206 DLLTOOL=$ac_cv_prog_DLLTOOL
5207 if test -n "$DLLTOOL"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5209 $as_echo "$DLLTOOL" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214
5215
5216 fi
5217 if test -z "$ac_cv_prog_DLLTOOL"; then
5218 ac_ct_DLLTOOL=$DLLTOOL
5219 # Extract the first word of "dlltool", so it can be a program name with args.
5220 set dummy dlltool; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 if test -n "$ac_ct_DLLTOOL"; then
5227 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243
5244 fi
5245 fi
5246 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5247 if test -n "$ac_ct_DLLTOOL"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5249 $as_echo "$ac_ct_DLLTOOL" >&6; }
5250 else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
5254
5255 if test "x$ac_ct_DLLTOOL" = x; then
5256 DLLTOOL="false"
5257 else
5258 case $cross_compiling:$ac_tool_warned in
5259 yes:)
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262 ac_tool_warned=yes ;;
5263 esac
5264 DLLTOOL=$ac_ct_DLLTOOL
5265 fi
5266 else
5267 DLLTOOL="$ac_cv_prog_DLLTOOL"
5268 fi
5269
5270 test -z "$DLLTOOL" && DLLTOOL=dlltool
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5282 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5283 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 lt_cv_sharedlib_from_linklib_cmd='unknown'
5287
5288 case $host_os in
5289 cygwin* | mingw* | pw32* | cegcc*)
5290 # two different shell functions defined in ltmain.sh
5291 # decide which to use based on capabilities of $DLLTOOL
5292 case `$DLLTOOL --help 2>&1` in
5293 *--identify-strict*)
5294 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5295 ;;
5296 *)
5297 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5298 ;;
5299 esac
5300 ;;
5301 *)
5302 # fallback: assume linklib IS sharedlib
5303 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5304 ;;
5305 esac
5306
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5309 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5310 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5311 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5312
5313
5314
5315
5316
5317
5318
5319
5320 if test -n "$ac_tool_prefix"; then
5321 for ac_prog in ar
5322 do
5323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_AR+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -n "$AR"; then
5331 ac_cv_prog_AR="$AR" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5343 fi
5344 done
5345 done
5346 IFS=$as_save_IFS
5347
5348 fi
5349 fi
5350 AR=$ac_cv_prog_AR
5351 if test -n "$AR"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5353 $as_echo "$AR" >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5357 fi
5358
5359
5360 test -n "$AR" && break
5361 done
5362 fi
5363 if test -z "$AR"; then
5364 ac_ct_AR=$AR
5365 for ac_prog in ar
5366 do
5367 # Extract the first word of "$ac_prog", so it can be a program name with args.
5368 set dummy $ac_prog; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -n "$ac_ct_AR"; then
5375 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_ac_ct_AR="$ac_prog"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5387 fi
5388 done
5389 done
5390 IFS=$as_save_IFS
5391
5392 fi
5393 fi
5394 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5395 if test -n "$ac_ct_AR"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5397 $as_echo "$ac_ct_AR" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5401 fi
5402
5403
5404 test -n "$ac_ct_AR" && break
5405 done
5406
5407 if test "x$ac_ct_AR" = x; then
5408 AR="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 AR=$ac_ct_AR
5417 fi
5418 fi
5419
5420 : ${AR=ar}
5421 : ${AR_FLAGS=cru}
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5434 $as_echo_n "checking for archiver @FILE support... " >&6; }
5435 if ${lt_cv_ar_at_file+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 lt_cv_ar_at_file=no
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5441
5442 int
5443 main ()
5444 {
5445
5446 ;
5447 return 0;
5448 }
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451 echo conftest.$ac_objext > conftest.lst
5452 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5454 (eval $lt_ar_try) 2>&5
5455 ac_status=$?
5456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5457 test $ac_status = 0; }
5458 if test "$ac_status" -eq 0; then
5459 # Ensure the archiver fails upon bogus file names.
5460 rm -f conftest.$ac_objext libconftest.a
5461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5462 (eval $lt_ar_try) 2>&5
5463 ac_status=$?
5464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5465 test $ac_status = 0; }
5466 if test "$ac_status" -ne 0; then
5467 lt_cv_ar_at_file=@
5468 fi
5469 fi
5470 rm -f conftest.* libconftest.a
5471
5472 fi
5473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474
5475 fi
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5477 $as_echo "$lt_cv_ar_at_file" >&6; }
5478
5479 if test "x$lt_cv_ar_at_file" = xno; then
5480 archiver_list_spec=
5481 else
5482 archiver_list_spec=$lt_cv_ar_at_file
5483 fi
5484
5485
5486
5487
5488
5489
5490
5491 if test -n "$ac_tool_prefix"; then
5492 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5493 set dummy ${ac_tool_prefix}strip; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_STRIP+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$STRIP"; then
5500 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513 done
5514 done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 STRIP=$ac_cv_prog_STRIP
5520 if test -n "$STRIP"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5522 $as_echo "$STRIP" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528
5529 fi
5530 if test -z "$ac_cv_prog_STRIP"; then
5531 ac_ct_STRIP=$STRIP
5532 # Extract the first word of "strip", so it can be a program name with args.
5533 set dummy strip; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 if test -n "$ac_ct_STRIP"; then
5540 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_ac_ct_STRIP="strip"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5552 fi
5553 done
5554 done
5555 IFS=$as_save_IFS
5556
5557 fi
5558 fi
5559 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5560 if test -n "$ac_ct_STRIP"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5562 $as_echo "$ac_ct_STRIP" >&6; }
5563 else
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566 fi
5567
5568 if test "x$ac_ct_STRIP" = x; then
5569 STRIP=":"
5570 else
5571 case $cross_compiling:$ac_tool_warned in
5572 yes:)
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5575 ac_tool_warned=yes ;;
5576 esac
5577 STRIP=$ac_ct_STRIP
5578 fi
5579 else
5580 STRIP="$ac_cv_prog_STRIP"
5581 fi
5582
5583 test -z "$STRIP" && STRIP=:
5584
5585
5586
5587
5588
5589
5590 if test -n "$ac_tool_prefix"; then
5591 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5592 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if ${ac_cv_prog_RANLIB+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 if test -n "$RANLIB"; then
5599 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5600 else
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612 done
5613 done
5614 IFS=$as_save_IFS
5615
5616 fi
5617 fi
5618 RANLIB=$ac_cv_prog_RANLIB
5619 if test -n "$RANLIB"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5621 $as_echo "$RANLIB" >&6; }
5622 else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626
5627
5628 fi
5629 if test -z "$ac_cv_prog_RANLIB"; then
5630 ac_ct_RANLIB=$RANLIB
5631 # Extract the first word of "ranlib", so it can be a program name with args.
5632 set dummy ranlib; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -n "$ac_ct_RANLIB"; then
5639 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648 ac_cv_prog_ac_ct_RANLIB="ranlib"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652 done
5653 done
5654 IFS=$as_save_IFS
5655
5656 fi
5657 fi
5658 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5659 if test -n "$ac_ct_RANLIB"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5661 $as_echo "$ac_ct_RANLIB" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5665 fi
5666
5667 if test "x$ac_ct_RANLIB" = x; then
5668 RANLIB=":"
5669 else
5670 case $cross_compiling:$ac_tool_warned in
5671 yes:)
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5674 ac_tool_warned=yes ;;
5675 esac
5676 RANLIB=$ac_ct_RANLIB
5677 fi
5678 else
5679 RANLIB="$ac_cv_prog_RANLIB"
5680 fi
5681
5682 test -z "$RANLIB" && RANLIB=:
5683
5684
5685
5686
5687
5688
5689 # Determine commands to create old-style static archives.
5690 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5691 old_postinstall_cmds='chmod 644 $oldlib'
5692 old_postuninstall_cmds=
5693
5694 if test -n "$RANLIB"; then
5695 case $host_os in
5696 openbsd*)
5697 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5698 ;;
5699 *)
5700 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5701 ;;
5702 esac
5703 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5704 fi
5705
5706 case $host_os in
5707 darwin*)
5708 lock_old_archive_extraction=yes ;;
5709 *)
5710 lock_old_archive_extraction=no ;;
5711 esac
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751 # If no C compiler was specified, use CC.
5752 LTCC=${LTCC-"$CC"}
5753
5754 # If no C compiler flags were specified, use CFLAGS.
5755 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5756
5757 # Allow CC to be a program name with arguments.
5758 compiler=$CC
5759
5760
5761 # Check for command to grab the raw symbol name followed by C symbol from nm.
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5763 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5764 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767
5768 # These are sane defaults that work on at least a few old systems.
5769 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5770
5771 # Character class describing NM global symbol codes.
5772 symcode='[BCDEGRST]'
5773
5774 # Regexp to match symbols that can be accessed directly from C.
5775 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5776
5777 # Define system-specific variables.
5778 case $host_os in
5779 aix*)
5780 symcode='[BCDT]'
5781 ;;
5782 cygwin* | mingw* | pw32* | cegcc*)
5783 symcode='[ABCDGISTW]'
5784 ;;
5785 hpux*)
5786 if test "$host_cpu" = ia64; then
5787 symcode='[ABCDEGRST]'
5788 fi
5789 ;;
5790 irix* | nonstopux*)
5791 symcode='[BCDEGRST]'
5792 ;;
5793 osf*)
5794 symcode='[BCDEGQRST]'
5795 ;;
5796 solaris*)
5797 symcode='[BDRT]'
5798 ;;
5799 sco3.2v5*)
5800 symcode='[DT]'
5801 ;;
5802 sysv4.2uw2*)
5803 symcode='[DT]'
5804 ;;
5805 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5806 symcode='[ABDT]'
5807 ;;
5808 sysv4)
5809 symcode='[DFNSTU]'
5810 ;;
5811 esac
5812
5813 # If we're using GNU nm, then use its standard symbol codes.
5814 case `$NM -V 2>&1` in
5815 *GNU* | *'with BFD'*)
5816 symcode='[ABCDGIRSTW]' ;;
5817 esac
5818
5819 # Transform an extracted symbol line into a proper C declaration.
5820 # Some systems (esp. on ia64) link data and code symbols differently,
5821 # so use this general approach.
5822 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5823
5824 # Transform an extracted symbol line into symbol name and symbol address
5825 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5826 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'"
5827
5828 # Handle CRLF in mingw tool chain
5829 opt_cr=
5830 case $build_os in
5831 mingw*)
5832 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5833 ;;
5834 esac
5835
5836 # Try without a prefix underscore, then with it.
5837 for ac_symprfx in "" "_"; do
5838
5839 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5840 symxfrm="\\1 $ac_symprfx\\2 \\2"
5841
5842 # Write the raw and C identifiers.
5843 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5844 # Fake it for dumpbin and say T for any non-static function
5845 # and D for any global variable.
5846 # Also find C++ and __fastcall symbols from MSVC++,
5847 # which start with @ or ?.
5848 lt_cv_sys_global_symbol_pipe="$AWK '"\
5849 " {last_section=section; section=\$ 3};"\
5850 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5851 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5852 " \$ 0!~/External *\|/{next};"\
5853 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5854 " {if(hide[section]) next};"\
5855 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5856 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5857 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5858 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5859 " ' prfx=^$ac_symprfx"
5860 else
5861 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5862 fi
5863 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5864
5865 # Check to see that the pipe works correctly.
5866 pipe_works=no
5867
5868 rm -f conftest*
5869 cat > conftest.$ac_ext <<_LT_EOF
5870 #ifdef __cplusplus
5871 extern "C" {
5872 #endif
5873 char nm_test_var;
5874 void nm_test_func(void);
5875 void nm_test_func(void){}
5876 #ifdef __cplusplus
5877 }
5878 #endif
5879 int main(){nm_test_var='a';nm_test_func();return(0);}
5880 _LT_EOF
5881
5882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5883 (eval $ac_compile) 2>&5
5884 ac_status=$?
5885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5886 test $ac_status = 0; }; then
5887 # Now try to grab the symbols.
5888 nlist=conftest.nm
5889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5890 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5891 ac_status=$?
5892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5893 test $ac_status = 0; } && test -s "$nlist"; then
5894 # Try sorting and uniquifying the output.
5895 if sort "$nlist" | uniq > "$nlist"T; then
5896 mv -f "$nlist"T "$nlist"
5897 else
5898 rm -f "$nlist"T
5899 fi
5900
5901 # Make sure that we snagged all the symbols we need.
5902 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5903 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5904 cat <<_LT_EOF > conftest.$ac_ext
5905 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5906 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5907 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5908 relocations are performed -- see ld's documentation on pseudo-relocs. */
5909 # define LT_DLSYM_CONST
5910 #elif defined(__osf__)
5911 /* This system does not cope well with relocations in const data. */
5912 # define LT_DLSYM_CONST
5913 #else
5914 # define LT_DLSYM_CONST const
5915 #endif
5916
5917 #ifdef __cplusplus
5918 extern "C" {
5919 #endif
5920
5921 _LT_EOF
5922 # Now generate the symbol file.
5923 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5924
5925 cat <<_LT_EOF >> conftest.$ac_ext
5926
5927 /* The mapping between symbol names and symbols. */
5928 LT_DLSYM_CONST struct {
5929 const char *name;
5930 void *address;
5931 }
5932 lt__PROGRAM__LTX_preloaded_symbols[] =
5933 {
5934 { "@PROGRAM@", (void *) 0 },
5935 _LT_EOF
5936 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5937 cat <<\_LT_EOF >> conftest.$ac_ext
5938 {0, (void *) 0}
5939 };
5940
5941 /* This works around a problem in FreeBSD linker */
5942 #ifdef FREEBSD_WORKAROUND
5943 static const void *lt_preloaded_setup() {
5944 return lt__PROGRAM__LTX_preloaded_symbols;
5945 }
5946 #endif
5947
5948 #ifdef __cplusplus
5949 }
5950 #endif
5951 _LT_EOF
5952 # Now try linking the two files.
5953 mv conftest.$ac_objext conftstm.$ac_objext
5954 lt_globsym_save_LIBS=$LIBS
5955 lt_globsym_save_CFLAGS=$CFLAGS
5956 LIBS="conftstm.$ac_objext"
5957 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5959 (eval $ac_link) 2>&5
5960 ac_status=$?
5961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5962 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5963 pipe_works=yes
5964 fi
5965 LIBS=$lt_globsym_save_LIBS
5966 CFLAGS=$lt_globsym_save_CFLAGS
5967 else
5968 echo "cannot find nm_test_func in $nlist" >&5
5969 fi
5970 else
5971 echo "cannot find nm_test_var in $nlist" >&5
5972 fi
5973 else
5974 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5975 fi
5976 else
5977 echo "$progname: failed program was:" >&5
5978 cat conftest.$ac_ext >&5
5979 fi
5980 rm -rf conftest* conftst*
5981
5982 # Do not use the global_symbol_pipe unless it works.
5983 if test "$pipe_works" = yes; then
5984 break
5985 else
5986 lt_cv_sys_global_symbol_pipe=
5987 fi
5988 done
5989
5990 fi
5991
5992 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5993 lt_cv_sys_global_symbol_to_cdecl=
5994 fi
5995 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5997 $as_echo "failed" >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6000 $as_echo "ok" >&6; }
6001 fi
6002
6003 # Response file support.
6004 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6005 nm_file_list_spec='@'
6006 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6007 nm_file_list_spec='@'
6008 fi
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6037 $as_echo_n "checking for sysroot... " >&6; }
6038
6039 # Check whether --with-sysroot was given.
6040 if test "${with_sysroot+set}" = set; then :
6041 withval=$with_sysroot;
6042 else
6043 with_sysroot=no
6044 fi
6045
6046
6047 lt_sysroot=
6048 case ${with_sysroot} in #(
6049 yes)
6050 if test "$GCC" = yes; then
6051 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6052 fi
6053 ;; #(
6054 /*)
6055 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6056 ;; #(
6057 no|'')
6058 ;; #(
6059 *)
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6061 $as_echo "${with_sysroot}" >&6; }
6062 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6063 ;;
6064 esac
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6067 $as_echo "${lt_sysroot:-no}" >&6; }
6068
6069
6070
6071
6072
6073 # Check whether --enable-libtool-lock was given.
6074 if test "${enable_libtool_lock+set}" = set; then :
6075 enableval=$enable_libtool_lock;
6076 fi
6077
6078 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6079
6080 # Some flags need to be propagated to the compiler or linker for good
6081 # libtool support.
6082 case $host in
6083 ia64-*-hpux*)
6084 # Find out which ABI we are using.
6085 echo 'int i;' > conftest.$ac_ext
6086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6087 (eval $ac_compile) 2>&5
6088 ac_status=$?
6089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6090 test $ac_status = 0; }; then
6091 case `/usr/bin/file conftest.$ac_objext` in
6092 *ELF-32*)
6093 HPUX_IA64_MODE="32"
6094 ;;
6095 *ELF-64*)
6096 HPUX_IA64_MODE="64"
6097 ;;
6098 esac
6099 fi
6100 rm -rf conftest*
6101 ;;
6102 *-*-irix6*)
6103 # Find out which ABI we are using.
6104 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6106 (eval $ac_compile) 2>&5
6107 ac_status=$?
6108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109 test $ac_status = 0; }; then
6110 if test "$lt_cv_prog_gnu_ld" = yes; then
6111 case `/usr/bin/file conftest.$ac_objext` in
6112 *32-bit*)
6113 LD="${LD-ld} -melf32bsmip"
6114 ;;
6115 *N32*)
6116 LD="${LD-ld} -melf32bmipn32"
6117 ;;
6118 *64-bit*)
6119 LD="${LD-ld} -melf64bmip"
6120 ;;
6121 esac
6122 else
6123 case `/usr/bin/file conftest.$ac_objext` in
6124 *32-bit*)
6125 LD="${LD-ld} -32"
6126 ;;
6127 *N32*)
6128 LD="${LD-ld} -n32"
6129 ;;
6130 *64-bit*)
6131 LD="${LD-ld} -64"
6132 ;;
6133 esac
6134 fi
6135 fi
6136 rm -rf conftest*
6137 ;;
6138
6139 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6140 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6141 # Find out which ABI we are using.
6142 echo 'int i;' > conftest.$ac_ext
6143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6144 (eval $ac_compile) 2>&5
6145 ac_status=$?
6146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6147 test $ac_status = 0; }; then
6148 case `/usr/bin/file conftest.o` in
6149 *32-bit*)
6150 case $host in
6151 x86_64-*kfreebsd*-gnu)
6152 LD="${LD-ld} -m elf_i386_fbsd"
6153 ;;
6154 x86_64-*linux*)
6155 LD="${LD-ld} -m elf_i386"
6156 ;;
6157 ppc64-*linux*|powerpc64-*linux*)
6158 LD="${LD-ld} -m elf32ppclinux"
6159 ;;
6160 s390x-*linux*)
6161 LD="${LD-ld} -m elf_s390"
6162 ;;
6163 sparc64-*linux*)
6164 LD="${LD-ld} -m elf32_sparc"
6165 ;;
6166 esac
6167 ;;
6168 *64-bit*)
6169 case $host in
6170 x86_64-*kfreebsd*-gnu)
6171 LD="${LD-ld} -m elf_x86_64_fbsd"
6172 ;;
6173 x86_64-*linux*)
6174 LD="${LD-ld} -m elf_x86_64"
6175 ;;
6176 ppc*-*linux*|powerpc*-*linux*)
6177 LD="${LD-ld} -m elf64ppc"
6178 ;;
6179 s390*-*linux*|s390*-*tpf*)
6180 LD="${LD-ld} -m elf64_s390"
6181 ;;
6182 sparc*-*linux*)
6183 LD="${LD-ld} -m elf64_sparc"
6184 ;;
6185 esac
6186 ;;
6187 esac
6188 fi
6189 rm -rf conftest*
6190 ;;
6191
6192 *-*-sco3.2v5*)
6193 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6194 SAVE_CFLAGS="$CFLAGS"
6195 CFLAGS="$CFLAGS -belf"
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6197 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6198 if ${lt_cv_cc_needs_belf+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 ac_ext=c
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209
6210 int
6211 main ()
6212 {
6213
6214 ;
6215 return 0;
6216 }
6217 _ACEOF
6218 if ac_fn_c_try_link "$LINENO"; then :
6219 lt_cv_cc_needs_belf=yes
6220 else
6221 lt_cv_cc_needs_belf=no
6222 fi
6223 rm -f core conftest.err conftest.$ac_objext \
6224 conftest$ac_exeext conftest.$ac_ext
6225 ac_ext=c
6226 ac_cpp='$CPP $CPPFLAGS'
6227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6230
6231 fi
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6233 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6234 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6235 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6236 CFLAGS="$SAVE_CFLAGS"
6237 fi
6238 ;;
6239 *-*solaris*)
6240 # Find out which ABI we are using.
6241 echo 'int i;' > conftest.$ac_ext
6242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6243 (eval $ac_compile) 2>&5
6244 ac_status=$?
6245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6246 test $ac_status = 0; }; then
6247 case `/usr/bin/file conftest.o` in
6248 *64-bit*)
6249 case $lt_cv_prog_gnu_ld in
6250 yes*)
6251 case $host in
6252 i?86-*-solaris*)
6253 LD="${LD-ld} -m elf_x86_64"
6254 ;;
6255 sparc*-*-solaris*)
6256 LD="${LD-ld} -m elf64_sparc"
6257 ;;
6258 esac
6259 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6260 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6261 LD="${LD-ld}_sol2"
6262 fi
6263 ;;
6264 *)
6265 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6266 LD="${LD-ld} -64"
6267 fi
6268 ;;
6269 esac
6270 ;;
6271 esac
6272 fi
6273 rm -rf conftest*
6274 ;;
6275 esac
6276
6277 need_locks="$enable_libtool_lock"
6278
6279 if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}mt; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 if test -n "$MANIFEST_TOOL"; then
6288 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6308 if test -n "$MANIFEST_TOOL"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6310 $as_echo "$MANIFEST_TOOL" >&6; }
6311 else
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316
6317 fi
6318 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6319 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6320 # Extract the first word of "mt", so it can be a program name with args.
6321 set dummy mt; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 if test -n "$ac_ct_MANIFEST_TOOL"; then
6328 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6340 fi
6341 done
6342 done
6343 IFS=$as_save_IFS
6344
6345 fi
6346 fi
6347 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6348 if test -n "$ac_ct_MANIFEST_TOOL"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6350 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6355
6356 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6357 MANIFEST_TOOL=":"
6358 else
6359 case $cross_compiling:$ac_tool_warned in
6360 yes:)
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363 ac_tool_warned=yes ;;
6364 esac
6365 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6366 fi
6367 else
6368 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6369 fi
6370
6371 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6373 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6374 if ${lt_cv_path_mainfest_tool+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 lt_cv_path_mainfest_tool=no
6378 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6379 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6380 cat conftest.err >&5
6381 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6382 lt_cv_path_mainfest_tool=yes
6383 fi
6384 rm -f conftest*
6385 fi
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6387 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6388 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6389 MANIFEST_TOOL=:
6390 fi
6391
6392
6393
6394
6395
6396
6397 case $host_os in
6398 rhapsody* | darwin*)
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 if test -n "$DSYMUTIL"; then
6408 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6412 do
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6420 fi
6421 done
6422 done
6423 IFS=$as_save_IFS
6424
6425 fi
6426 fi
6427 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6428 if test -n "$DSYMUTIL"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6430 $as_echo "$DSYMUTIL" >&6; }
6431 else
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6434 fi
6435
6436
6437 fi
6438 if test -z "$ac_cv_prog_DSYMUTIL"; then
6439 ac_ct_DSYMUTIL=$DSYMUTIL
6440 # Extract the first word of "dsymutil", so it can be a program name with args.
6441 set dummy dsymutil; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 if test -n "$ac_ct_DSYMUTIL"; then
6448 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6460 fi
6461 done
6462 done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6468 if test -n "$ac_ct_DSYMUTIL"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6470 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6471 else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476 if test "x$ac_ct_DSYMUTIL" = x; then
6477 DSYMUTIL=":"
6478 else
6479 case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485 DSYMUTIL=$ac_ct_DSYMUTIL
6486 fi
6487 else
6488 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6489 fi
6490
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if ${ac_cv_prog_NMEDIT+:} false; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 if test -n "$NMEDIT"; then
6500 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6504 do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6512 fi
6513 done
6514 done
6515 IFS=$as_save_IFS
6516
6517 fi
6518 fi
6519 NMEDIT=$ac_cv_prog_NMEDIT
6520 if test -n "$NMEDIT"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6522 $as_echo "$NMEDIT" >&6; }
6523 else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6526 fi
6527
6528
6529 fi
6530 if test -z "$ac_cv_prog_NMEDIT"; then
6531 ac_ct_NMEDIT=$NMEDIT
6532 # Extract the first word of "nmedit", so it can be a program name with args.
6533 set dummy nmedit; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 if test -n "$ac_ct_NMEDIT"; then
6540 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6560 if test -n "$ac_ct_NMEDIT"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6562 $as_echo "$ac_ct_NMEDIT" >&6; }
6563 else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6566 fi
6567
6568 if test "x$ac_ct_NMEDIT" = x; then
6569 NMEDIT=":"
6570 else
6571 case $cross_compiling:$ac_tool_warned in
6572 yes:)
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6576 esac
6577 NMEDIT=$ac_ct_NMEDIT
6578 fi
6579 else
6580 NMEDIT="$ac_cv_prog_NMEDIT"
6581 fi
6582
6583 if test -n "$ac_tool_prefix"; then
6584 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6585 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if ${ac_cv_prog_LIPO+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 if test -n "$LIPO"; then
6592 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6601 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6604 fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609 fi
6610 fi
6611 LIPO=$ac_cv_prog_LIPO
6612 if test -n "$LIPO"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6614 $as_echo "$LIPO" >&6; }
6615 else
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6618 fi
6619
6620
6621 fi
6622 if test -z "$ac_cv_prog_LIPO"; then
6623 ac_ct_LIPO=$LIPO
6624 # Extract the first word of "lipo", so it can be a program name with args.
6625 set dummy lipo; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 if test -n "$ac_ct_LIPO"; then
6632 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_ac_ct_LIPO="lipo"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6644 fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6652 if test -n "$ac_ct_LIPO"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6654 $as_echo "$ac_ct_LIPO" >&6; }
6655 else
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660 if test "x$ac_ct_LIPO" = x; then
6661 LIPO=":"
6662 else
6663 case $cross_compiling:$ac_tool_warned in
6664 yes:)
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667 ac_tool_warned=yes ;;
6668 esac
6669 LIPO=$ac_ct_LIPO
6670 fi
6671 else
6672 LIPO="$ac_cv_prog_LIPO"
6673 fi
6674
6675 if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}otool; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_OTOOL+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 if test -n "$OTOOL"; then
6684 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 OTOOL=$ac_cv_prog_OTOOL
6704 if test -n "$OTOOL"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6706 $as_echo "$OTOOL" >&6; }
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712
6713 fi
6714 if test -z "$ac_cv_prog_OTOOL"; then
6715 ac_ct_OTOOL=$OTOOL
6716 # Extract the first word of "otool", so it can be a program name with args.
6717 set dummy otool; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6721 $as_echo_n "(cached) " >&6
6722 else
6723 if test -n "$ac_ct_OTOOL"; then
6724 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_OTOOL="otool"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6744 if test -n "$ac_ct_OTOOL"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6746 $as_echo "$ac_ct_OTOOL" >&6; }
6747 else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752 if test "x$ac_ct_OTOOL" = x; then
6753 OTOOL=":"
6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756 yes:)
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6760 esac
6761 OTOOL=$ac_ct_OTOOL
6762 fi
6763 else
6764 OTOOL="$ac_cv_prog_OTOOL"
6765 fi
6766
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_OTOOL64+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 if test -n "$OTOOL64"; then
6776 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6788 fi
6789 done
6790 done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 OTOOL64=$ac_cv_prog_OTOOL64
6796 if test -n "$OTOOL64"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6798 $as_echo "$OTOOL64" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803
6804
6805 fi
6806 if test -z "$ac_cv_prog_OTOOL64"; then
6807 ac_ct_OTOOL64=$OTOOL64
6808 # Extract the first word of "otool64", so it can be a program name with args.
6809 set dummy otool64; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 if test -n "$ac_ct_OTOOL64"; then
6816 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_ac_ct_OTOOL64="otool64"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6836 if test -n "$ac_ct_OTOOL64"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6838 $as_echo "$ac_ct_OTOOL64" >&6; }
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844 if test "x$ac_ct_OTOOL64" = x; then
6845 OTOOL64=":"
6846 else
6847 case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6852 esac
6853 OTOOL64=$ac_ct_OTOOL64
6854 fi
6855 else
6856 OTOOL64="$ac_cv_prog_OTOOL64"
6857 fi
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6886 $as_echo_n "checking for -single_module linker flag... " >&6; }
6887 if ${lt_cv_apple_cc_single_mod+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 lt_cv_apple_cc_single_mod=no
6891 if test -z "${LT_MULTI_MODULE}"; then
6892 # By default we will add the -single_module flag. You can override
6893 # by either setting the environment variable LT_MULTI_MODULE
6894 # non-empty at configure time, or by adding -multi_module to the
6895 # link flags.
6896 rm -rf libconftest.dylib*
6897 echo "int foo(void){return 1;}" > conftest.c
6898 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6899 -dynamiclib -Wl,-single_module conftest.c" >&5
6900 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6901 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6902 _lt_result=$?
6903 # If there is a non-empty error log, and "single_module"
6904 # appears in it, assume the flag caused a linker warning
6905 if test -s conftest.err && $GREP single_module conftest.err; then
6906 cat conftest.err >&5
6907 # Otherwise, if the output was created with a 0 exit code from
6908 # the compiler, it worked.
6909 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6910 lt_cv_apple_cc_single_mod=yes
6911 else
6912 cat conftest.err >&5
6913 fi
6914 rm -rf libconftest.dylib*
6915 rm -f conftest.*
6916 fi
6917 fi
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6919 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6920
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6922 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6923 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 lt_cv_ld_exported_symbols_list=no
6927 save_LDFLAGS=$LDFLAGS
6928 echo "_main" > conftest.sym
6929 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932
6933 int
6934 main ()
6935 {
6936
6937 ;
6938 return 0;
6939 }
6940 _ACEOF
6941 if ac_fn_c_try_link "$LINENO"; then :
6942 lt_cv_ld_exported_symbols_list=yes
6943 else
6944 lt_cv_ld_exported_symbols_list=no
6945 fi
6946 rm -f core conftest.err conftest.$ac_objext \
6947 conftest$ac_exeext conftest.$ac_ext
6948 LDFLAGS="$save_LDFLAGS"
6949
6950 fi
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6952 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6953
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6955 $as_echo_n "checking for -force_load linker flag... " >&6; }
6956 if ${lt_cv_ld_force_load+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 lt_cv_ld_force_load=no
6960 cat > conftest.c << _LT_EOF
6961 int forced_loaded() { return 2;}
6962 _LT_EOF
6963 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6964 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6965 echo "$AR cru libconftest.a conftest.o" >&5
6966 $AR cru libconftest.a conftest.o 2>&5
6967 echo "$RANLIB libconftest.a" >&5
6968 $RANLIB libconftest.a 2>&5
6969 cat > conftest.c << _LT_EOF
6970 int main() { return 0;}
6971 _LT_EOF
6972 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6973 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6974 _lt_result=$?
6975 if test -s conftest.err && $GREP force_load conftest.err; then
6976 cat conftest.err >&5
6977 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6978 lt_cv_ld_force_load=yes
6979 else
6980 cat conftest.err >&5
6981 fi
6982 rm -f conftest.err libconftest.a conftest conftest.c
6983 rm -rf conftest.dSYM
6984
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6987 $as_echo "$lt_cv_ld_force_load" >&6; }
6988 case $host_os in
6989 rhapsody* | darwin1.[012])
6990 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6991 darwin1.*)
6992 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6993 darwin*) # darwin 5.x on
6994 # if running on 10.5 or later, the deployment target defaults
6995 # to the OS version, if on x86, and 10.4, the deployment
6996 # target defaults to 10.4. Don't you love it?
6997 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6998 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6999 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7000 10.[012]*)
7001 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7002 10.*)
7003 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7004 esac
7005 ;;
7006 esac
7007 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7008 _lt_dar_single_mod='$single_module'
7009 fi
7010 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7011 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7012 else
7013 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7014 fi
7015 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7016 _lt_dsymutil='~$DSYMUTIL $lib || :'
7017 else
7018 _lt_dsymutil=
7019 fi
7020 ;;
7021 esac
7022
7023 ac_ext=c
7024 ac_cpp='$CPP $CPPFLAGS'
7025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7029 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7030 # On Suns, sometimes $CPP names a directory.
7031 if test -n "$CPP" && test -d "$CPP"; then
7032 CPP=
7033 fi
7034 if test -z "$CPP"; then
7035 if ${ac_cv_prog_CPP+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 # Double quotes because CPP needs to be expanded
7039 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7040 do
7041 ac_preproc_ok=false
7042 for ac_c_preproc_warn_flag in '' yes
7043 do
7044 # Use a header file that comes with gcc, so configuring glibc
7045 # with a fresh cross-compiler works.
7046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047 # <limits.h> exists even on freestanding compilers.
7048 # On the NeXT, cc -E runs the code through the compiler's parser,
7049 # not just through cpp. "Syntax error" is here to catch this case.
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 #ifdef __STDC__
7053 # include <limits.h>
7054 #else
7055 # include <assert.h>
7056 #endif
7057 Syntax error
7058 _ACEOF
7059 if ac_fn_c_try_cpp "$LINENO"; then :
7060
7061 else
7062 # Broken: fails on valid input.
7063 continue
7064 fi
7065 rm -f conftest.err conftest.i conftest.$ac_ext
7066
7067 # OK, works on sane cases. Now check whether nonexistent headers
7068 # can be detected and how.
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7071 #include <ac_nonexistent.h>
7072 _ACEOF
7073 if ac_fn_c_try_cpp "$LINENO"; then :
7074 # Broken: success on invalid input.
7075 continue
7076 else
7077 # Passes both tests.
7078 ac_preproc_ok=:
7079 break
7080 fi
7081 rm -f conftest.err conftest.i conftest.$ac_ext
7082
7083 done
7084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7085 rm -f conftest.i conftest.err conftest.$ac_ext
7086 if $ac_preproc_ok; then :
7087 break
7088 fi
7089
7090 done
7091 ac_cv_prog_CPP=$CPP
7092
7093 fi
7094 CPP=$ac_cv_prog_CPP
7095 else
7096 ac_cv_prog_CPP=$CPP
7097 fi
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7099 $as_echo "$CPP" >&6; }
7100 ac_preproc_ok=false
7101 for ac_c_preproc_warn_flag in '' yes
7102 do
7103 # Use a header file that comes with gcc, so configuring glibc
7104 # with a fresh cross-compiler works.
7105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7106 # <limits.h> exists even on freestanding compilers.
7107 # On the NeXT, cc -E runs the code through the compiler's parser,
7108 # not just through cpp. "Syntax error" is here to catch this case.
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111 #ifdef __STDC__
7112 # include <limits.h>
7113 #else
7114 # include <assert.h>
7115 #endif
7116 Syntax error
7117 _ACEOF
7118 if ac_fn_c_try_cpp "$LINENO"; then :
7119
7120 else
7121 # Broken: fails on valid input.
7122 continue
7123 fi
7124 rm -f conftest.err conftest.i conftest.$ac_ext
7125
7126 # OK, works on sane cases. Now check whether nonexistent headers
7127 # can be detected and how.
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7130 #include <ac_nonexistent.h>
7131 _ACEOF
7132 if ac_fn_c_try_cpp "$LINENO"; then :
7133 # Broken: success on invalid input.
7134 continue
7135 else
7136 # Passes both tests.
7137 ac_preproc_ok=:
7138 break
7139 fi
7140 rm -f conftest.err conftest.i conftest.$ac_ext
7141
7142 done
7143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7144 rm -f conftest.i conftest.err conftest.$ac_ext
7145 if $ac_preproc_ok; then :
7146
7147 else
7148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7150 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7151 See \`config.log' for more details" "$LINENO" 5; }
7152 fi
7153
7154 ac_ext=c
7155 ac_cpp='$CPP $CPPFLAGS'
7156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7159
7160
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7162 $as_echo_n "checking for ANSI C header files... " >&6; }
7163 if ${ac_cv_header_stdc+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 #include <stdlib.h>
7169 #include <stdarg.h>
7170 #include <string.h>
7171 #include <float.h>
7172
7173 int
7174 main ()
7175 {
7176
7177 ;
7178 return 0;
7179 }
7180 _ACEOF
7181 if ac_fn_c_try_compile "$LINENO"; then :
7182 ac_cv_header_stdc=yes
7183 else
7184 ac_cv_header_stdc=no
7185 fi
7186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7187
7188 if test $ac_cv_header_stdc = yes; then
7189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <string.h>
7193
7194 _ACEOF
7195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7196 $EGREP "memchr" >/dev/null 2>&1; then :
7197
7198 else
7199 ac_cv_header_stdc=no
7200 fi
7201 rm -f conftest*
7202
7203 fi
7204
7205 if test $ac_cv_header_stdc = yes; then
7206 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 #include <stdlib.h>
7210
7211 _ACEOF
7212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7213 $EGREP "free" >/dev/null 2>&1; then :
7214
7215 else
7216 ac_cv_header_stdc=no
7217 fi
7218 rm -f conftest*
7219
7220 fi
7221
7222 if test $ac_cv_header_stdc = yes; then
7223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7224 if test "$cross_compiling" = yes; then :
7225 :
7226 else
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229 #include <ctype.h>
7230 #include <stdlib.h>
7231 #if ((' ' & 0x0FF) == 0x020)
7232 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7233 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7234 #else
7235 # define ISLOWER(c) \
7236 (('a' <= (c) && (c) <= 'i') \
7237 || ('j' <= (c) && (c) <= 'r') \
7238 || ('s' <= (c) && (c) <= 'z'))
7239 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7240 #endif
7241
7242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7243 int
7244 main ()
7245 {
7246 int i;
7247 for (i = 0; i < 256; i++)
7248 if (XOR (islower (i), ISLOWER (i))
7249 || toupper (i) != TOUPPER (i))
7250 return 2;
7251 return 0;
7252 }
7253 _ACEOF
7254 if ac_fn_c_try_run "$LINENO"; then :
7255
7256 else
7257 ac_cv_header_stdc=no
7258 fi
7259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7260 conftest.$ac_objext conftest.beam conftest.$ac_ext
7261 fi
7262
7263 fi
7264 fi
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7266 $as_echo "$ac_cv_header_stdc" >&6; }
7267 if test $ac_cv_header_stdc = yes; then
7268
7269 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7270
7271 fi
7272
7273 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7274 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7275 inttypes.h stdint.h unistd.h
7276 do :
7277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7278 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7279 "
7280 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7281 cat >>confdefs.h <<_ACEOF
7282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7283 _ACEOF
7284
7285 fi
7286
7287 done
7288
7289
7290 for ac_header in dlfcn.h
7291 do :
7292 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7293 "
7294 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7295 cat >>confdefs.h <<_ACEOF
7296 #define HAVE_DLFCN_H 1
7297 _ACEOF
7298
7299 fi
7300
7301 done
7302
7303
7304
7305
7306
7307 # Set options
7308
7309
7310
7311 enable_dlopen=no
7312
7313
7314 enable_win32_dll=no
7315
7316
7317 # Check whether --enable-shared was given.
7318 if test "${enable_shared+set}" = set; then :
7319 enableval=$enable_shared; p=${PACKAGE-default}
7320 case $enableval in
7321 yes) enable_shared=yes ;;
7322 no) enable_shared=no ;;
7323 *)
7324 enable_shared=no
7325 # Look at the argument we got. We use all the common list separators.
7326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7327 for pkg in $enableval; do
7328 IFS="$lt_save_ifs"
7329 if test "X$pkg" = "X$p"; then
7330 enable_shared=yes
7331 fi
7332 done
7333 IFS="$lt_save_ifs"
7334 ;;
7335 esac
7336 else
7337 enable_shared=yes
7338 fi
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348 # Check whether --enable-static was given.
7349 if test "${enable_static+set}" = set; then :
7350 enableval=$enable_static; p=${PACKAGE-default}
7351 case $enableval in
7352 yes) enable_static=yes ;;
7353 no) enable_static=no ;;
7354 *)
7355 enable_static=no
7356 # Look at the argument we got. We use all the common list separators.
7357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7358 for pkg in $enableval; do
7359 IFS="$lt_save_ifs"
7360 if test "X$pkg" = "X$p"; then
7361 enable_static=yes
7362 fi
7363 done
7364 IFS="$lt_save_ifs"
7365 ;;
7366 esac
7367 else
7368 enable_static=yes
7369 fi
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380 # Check whether --with-pic was given.
7381 if test "${with_pic+set}" = set; then :
7382 withval=$with_pic; lt_p=${PACKAGE-default}
7383 case $withval in
7384 yes|no) pic_mode=$withval ;;
7385 *)
7386 pic_mode=default
7387 # Look at the argument we got. We use all the common list separators.
7388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7389 for lt_pkg in $withval; do
7390 IFS="$lt_save_ifs"
7391 if test "X$lt_pkg" = "X$lt_p"; then
7392 pic_mode=yes
7393 fi
7394 done
7395 IFS="$lt_save_ifs"
7396 ;;
7397 esac
7398 else
7399 pic_mode=default
7400 fi
7401
7402
7403 test -z "$pic_mode" && pic_mode=default
7404
7405
7406
7407
7408
7409
7410
7411 # Check whether --enable-fast-install was given.
7412 if test "${enable_fast_install+set}" = set; then :
7413 enableval=$enable_fast_install; p=${PACKAGE-default}
7414 case $enableval in
7415 yes) enable_fast_install=yes ;;
7416 no) enable_fast_install=no ;;
7417 *)
7418 enable_fast_install=no
7419 # Look at the argument we got. We use all the common list separators.
7420 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7421 for pkg in $enableval; do
7422 IFS="$lt_save_ifs"
7423 if test "X$pkg" = "X$p"; then
7424 enable_fast_install=yes
7425 fi
7426 done
7427 IFS="$lt_save_ifs"
7428 ;;
7429 esac
7430 else
7431 enable_fast_install=yes
7432 fi
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444 # This can be used to rebuild libtool when needed
7445 LIBTOOL_DEPS="$ltmain"
7446
7447 # Always use our own libtool.
7448 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479 test -z "$LN_S" && LN_S="ln -s"
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494 if test -n "${ZSH_VERSION+set}" ; then
7495 setopt NO_GLOB_SUBST
7496 fi
7497
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7499 $as_echo_n "checking for objdir... " >&6; }
7500 if ${lt_cv_objdir+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 rm -f .libs 2>/dev/null
7504 mkdir .libs 2>/dev/null
7505 if test -d .libs; then
7506 lt_cv_objdir=.libs
7507 else
7508 # MS-DOS does not allow filenames that begin with a dot.
7509 lt_cv_objdir=_libs
7510 fi
7511 rmdir .libs 2>/dev/null
7512 fi
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7514 $as_echo "$lt_cv_objdir" >&6; }
7515 objdir=$lt_cv_objdir
7516
7517
7518
7519
7520
7521 cat >>confdefs.h <<_ACEOF
7522 #define LT_OBJDIR "$lt_cv_objdir/"
7523 _ACEOF
7524
7525
7526
7527
7528 case $host_os in
7529 aix3*)
7530 # AIX sometimes has problems with the GCC collect2 program. For some
7531 # reason, if we set the COLLECT_NAMES environment variable, the problems
7532 # vanish in a puff of smoke.
7533 if test "X${COLLECT_NAMES+set}" != Xset; then
7534 COLLECT_NAMES=
7535 export COLLECT_NAMES
7536 fi
7537 ;;
7538 esac
7539
7540 # Global variables:
7541 ofile=libtool
7542 can_build_shared=yes
7543
7544 # All known linkers require a `.a' archive for static linking (except MSVC,
7545 # which needs '.lib').
7546 libext=a
7547
7548 with_gnu_ld="$lt_cv_prog_gnu_ld"
7549
7550 old_CC="$CC"
7551 old_CFLAGS="$CFLAGS"
7552
7553 # Set sane defaults for various variables
7554 test -z "$CC" && CC=cc
7555 test -z "$LTCC" && LTCC=$CC
7556 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7557 test -z "$LD" && LD=ld
7558 test -z "$ac_objext" && ac_objext=o
7559
7560 for cc_temp in $compiler""; do
7561 case $cc_temp in
7562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7564 \-*) ;;
7565 *) break;;
7566 esac
7567 done
7568 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7569
7570
7571 # Only perform the check for file, if the check method requires it
7572 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7573 case $deplibs_check_method in
7574 file_magic*)
7575 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7577 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7578 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 case $MAGIC_CMD in
7582 [\\/*] | ?:[\\/]*)
7583 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7584 ;;
7585 *)
7586 lt_save_MAGIC_CMD="$MAGIC_CMD"
7587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7588 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7589 for ac_dir in $ac_dummy; do
7590 IFS="$lt_save_ifs"
7591 test -z "$ac_dir" && ac_dir=.
7592 if test -f $ac_dir/${ac_tool_prefix}file; then
7593 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7594 if test -n "$file_magic_test_file"; then
7595 case $deplibs_check_method in
7596 "file_magic "*)
7597 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7598 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7599 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7600 $EGREP "$file_magic_regex" > /dev/null; then
7601 :
7602 else
7603 cat <<_LT_EOF 1>&2
7604
7605 *** Warning: the command libtool uses to detect shared libraries,
7606 *** $file_magic_cmd, produces output that libtool cannot recognize.
7607 *** The result is that libtool may fail to recognize shared libraries
7608 *** as such. This will affect the creation of libtool libraries that
7609 *** depend on shared libraries, but programs linked with such libtool
7610 *** libraries will work regardless of this problem. Nevertheless, you
7611 *** may want to report the problem to your system manager and/or to
7612 *** [email protected]
7613
7614 _LT_EOF
7615 fi ;;
7616 esac
7617 fi
7618 break
7619 fi
7620 done
7621 IFS="$lt_save_ifs"
7622 MAGIC_CMD="$lt_save_MAGIC_CMD"
7623 ;;
7624 esac
7625 fi
7626
7627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7628 if test -n "$MAGIC_CMD"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7630 $as_echo "$MAGIC_CMD" >&6; }
7631 else
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7634 fi
7635
7636
7637
7638
7639
7640 if test -z "$lt_cv_path_MAGIC_CMD"; then
7641 if test -n "$ac_tool_prefix"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7643 $as_echo_n "checking for file... " >&6; }
7644 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 case $MAGIC_CMD in
7648 [\\/*] | ?:[\\/]*)
7649 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7650 ;;
7651 *)
7652 lt_save_MAGIC_CMD="$MAGIC_CMD"
7653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7654 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7655 for ac_dir in $ac_dummy; do
7656 IFS="$lt_save_ifs"
7657 test -z "$ac_dir" && ac_dir=.
7658 if test -f $ac_dir/file; then
7659 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7660 if test -n "$file_magic_test_file"; then
7661 case $deplibs_check_method in
7662 "file_magic "*)
7663 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7665 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7666 $EGREP "$file_magic_regex" > /dev/null; then
7667 :
7668 else
7669 cat <<_LT_EOF 1>&2
7670
7671 *** Warning: the command libtool uses to detect shared libraries,
7672 *** $file_magic_cmd, produces output that libtool cannot recognize.
7673 *** The result is that libtool may fail to recognize shared libraries
7674 *** as such. This will affect the creation of libtool libraries that
7675 *** depend on shared libraries, but programs linked with such libtool
7676 *** libraries will work regardless of this problem. Nevertheless, you
7677 *** may want to report the problem to your system manager and/or to
7678 *** [email protected]
7679
7680 _LT_EOF
7681 fi ;;
7682 esac
7683 fi
7684 break
7685 fi
7686 done
7687 IFS="$lt_save_ifs"
7688 MAGIC_CMD="$lt_save_MAGIC_CMD"
7689 ;;
7690 esac
7691 fi
7692
7693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7694 if test -n "$MAGIC_CMD"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7696 $as_echo "$MAGIC_CMD" >&6; }
7697 else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7700 fi
7701
7702
7703 else
7704 MAGIC_CMD=:
7705 fi
7706 fi
7707
7708 fi
7709 ;;
7710 esac
7711
7712 # Use C for the default configuration in the libtool script
7713
7714 lt_save_CC="$CC"
7715 ac_ext=c
7716 ac_cpp='$CPP $CPPFLAGS'
7717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7720
7721
7722 # Source file extension for C test sources.
7723 ac_ext=c
7724
7725 # Object file extension for compiled C test sources.
7726 objext=o
7727 objext=$objext
7728
7729 # Code to be used in simple compile tests
7730 lt_simple_compile_test_code="int some_variable = 0;"
7731
7732 # Code to be used in simple link tests
7733 lt_simple_link_test_code='int main(){return(0);}'
7734
7735
7736
7737
7738
7739
7740
7741 # If no C compiler was specified, use CC.
7742 LTCC=${LTCC-"$CC"}
7743
7744 # If no C compiler flags were specified, use CFLAGS.
7745 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7746
7747 # Allow CC to be a program name with arguments.
7748 compiler=$CC
7749
7750 # Save the default compiler, since it gets overwritten when the other
7751 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7752 compiler_DEFAULT=$CC
7753
7754 # save warnings/boilerplate of simple test code
7755 ac_outfile=conftest.$ac_objext
7756 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7757 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7758 _lt_compiler_boilerplate=`cat conftest.err`
7759 $RM conftest*
7760
7761 ac_outfile=conftest.$ac_objext
7762 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7763 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7764 _lt_linker_boilerplate=`cat conftest.err`
7765 $RM -r conftest*
7766
7767
7768 ## CAVEAT EMPTOR:
7769 ## There is no encapsulation within the following macros, do not change
7770 ## the running order or otherwise move them around unless you know exactly
7771 ## what you are doing...
7772 if test -n "$compiler"; then
7773
7774 lt_prog_compiler_no_builtin_flag=
7775
7776 if test "$GCC" = yes; then
7777 case $cc_basename in
7778 nvcc*)
7779 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7780 *)
7781 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7782 esac
7783
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7785 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7786 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 lt_cv_prog_compiler_rtti_exceptions=no
7790 ac_outfile=conftest.$ac_objext
7791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7792 lt_compiler_flag="-fno-rtti -fno-exceptions"
7793 # Insert the option either (1) after the last *FLAGS variable, or
7794 # (2) before a word containing "conftest.", or (3) at the end.
7795 # Note that $ac_compile itself does not contain backslashes and begins
7796 # with a dollar sign (not a hyphen), so the echo should work correctly.
7797 # The option is referenced via a variable to avoid confusing sed.
7798 lt_compile=`echo "$ac_compile" | $SED \
7799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7801 -e 's:$: $lt_compiler_flag:'`
7802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7803 (eval "$lt_compile" 2>conftest.err)
7804 ac_status=$?
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 if (exit $ac_status) && test -s "$ac_outfile"; then
7808 # The compiler can only warn and ignore the option if not recognized
7809 # So say no if there are warnings other than the usual output.
7810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7813 lt_cv_prog_compiler_rtti_exceptions=yes
7814 fi
7815 fi
7816 $RM conftest*
7817
7818 fi
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7820 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7821
7822 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7823 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7824 else
7825 :
7826 fi
7827
7828 fi
7829
7830
7831
7832
7833
7834
7835 lt_prog_compiler_wl=
7836 lt_prog_compiler_pic=
7837 lt_prog_compiler_static=
7838
7839
7840 if test "$GCC" = yes; then
7841 lt_prog_compiler_wl='-Wl,'
7842 lt_prog_compiler_static='-static'
7843
7844 case $host_os in
7845 aix*)
7846 # All AIX code is PIC.
7847 if test "$host_cpu" = ia64; then
7848 # AIX 5 now supports IA64 processor
7849 lt_prog_compiler_static='-Bstatic'
7850 fi
7851 ;;
7852
7853 amigaos*)
7854 case $host_cpu in
7855 powerpc)
7856 # see comment about AmigaOS4 .so support
7857 lt_prog_compiler_pic='-fPIC'
7858 ;;
7859 m68k)
7860 # FIXME: we need at least 68020 code to build shared libraries, but
7861 # adding the `-m68020' flag to GCC prevents building anything better,
7862 # like `-m68040'.
7863 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7864 ;;
7865 esac
7866 ;;
7867
7868 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7869 # PIC is the default for these OSes.
7870 ;;
7871
7872 mingw* | cygwin* | pw32* | os2* | cegcc*)
7873 # This hack is so that the source file can tell whether it is being
7874 # built for inclusion in a dll (and should export symbols for example).
7875 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7876 # (--disable-auto-import) libraries
7877 lt_prog_compiler_pic='-DDLL_EXPORT'
7878 ;;
7879
7880 darwin* | rhapsody*)
7881 # PIC is the default on this platform
7882 # Common symbols not allowed in MH_DYLIB files
7883 lt_prog_compiler_pic='-fno-common'
7884 ;;
7885
7886 haiku*)
7887 # PIC is the default for Haiku.
7888 # The "-static" flag exists, but is broken.
7889 lt_prog_compiler_static=
7890 ;;
7891
7892 hpux*)
7893 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7894 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7895 # sets the default TLS model and affects inlining.
7896 case $host_cpu in
7897 hppa*64*)
7898 # +Z the default
7899 ;;
7900 *)
7901 lt_prog_compiler_pic='-fPIC'
7902 ;;
7903 esac
7904 ;;
7905
7906 interix[3-9]*)
7907 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7908 # Instead, we relocate shared libraries at runtime.
7909 ;;
7910
7911 msdosdjgpp*)
7912 # Just because we use GCC doesn't mean we suddenly get shared libraries
7913 # on systems that don't support them.
7914 lt_prog_compiler_can_build_shared=no
7915 enable_shared=no
7916 ;;
7917
7918 *nto* | *qnx*)
7919 # QNX uses GNU C++, but need to define -shared option too, otherwise
7920 # it will coredump.
7921 lt_prog_compiler_pic='-fPIC -shared'
7922 ;;
7923
7924 sysv4*MP*)
7925 if test -d /usr/nec; then
7926 lt_prog_compiler_pic=-Kconform_pic
7927 fi
7928 ;;
7929
7930 *)
7931 lt_prog_compiler_pic='-fPIC'
7932 ;;
7933 esac
7934
7935 case $cc_basename in
7936 nvcc*) # Cuda Compiler Driver 2.2
7937 lt_prog_compiler_wl='-Xlinker '
7938 if test -n "$lt_prog_compiler_pic"; then
7939 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7940 fi
7941 ;;
7942 esac
7943 else
7944 # PORTME Check for flag to pass linker flags through the system compiler.
7945 case $host_os in
7946 aix*)
7947 lt_prog_compiler_wl='-Wl,'
7948 if test "$host_cpu" = ia64; then
7949 # AIX 5 now supports IA64 processor
7950 lt_prog_compiler_static='-Bstatic'
7951 else
7952 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7953 fi
7954 ;;
7955
7956 mingw* | cygwin* | pw32* | os2* | cegcc*)
7957 # This hack is so that the source file can tell whether it is being
7958 # built for inclusion in a dll (and should export symbols for example).
7959 lt_prog_compiler_pic='-DDLL_EXPORT'
7960 ;;
7961
7962 hpux9* | hpux10* | hpux11*)
7963 lt_prog_compiler_wl='-Wl,'
7964 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7965 # not for PA HP-UX.
7966 case $host_cpu in
7967 hppa*64*|ia64*)
7968 # +Z the default
7969 ;;
7970 *)
7971 lt_prog_compiler_pic='+Z'
7972 ;;
7973 esac
7974 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7975 lt_prog_compiler_static='${wl}-a ${wl}archive'
7976 ;;
7977
7978 irix5* | irix6* | nonstopux*)
7979 lt_prog_compiler_wl='-Wl,'
7980 # PIC (with -KPIC) is the default.
7981 lt_prog_compiler_static='-non_shared'
7982 ;;
7983
7984 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7985 case $cc_basename in
7986 # old Intel for x86_64 which still supported -KPIC.
7987 ecc*)
7988 lt_prog_compiler_wl='-Wl,'
7989 lt_prog_compiler_pic='-KPIC'
7990 lt_prog_compiler_static='-static'
7991 ;;
7992 # icc used to be incompatible with GCC.
7993 # ICC 10 doesn't accept -KPIC any more.
7994 icc* | ifort*)
7995 lt_prog_compiler_wl='-Wl,'
7996 lt_prog_compiler_pic='-fPIC'
7997 lt_prog_compiler_static='-static'
7998 ;;
7999 # Lahey Fortran 8.1.
8000 lf95*)
8001 lt_prog_compiler_wl='-Wl,'
8002 lt_prog_compiler_pic='--shared'
8003 lt_prog_compiler_static='--static'
8004 ;;
8005 nagfor*)
8006 # NAG Fortran compiler
8007 lt_prog_compiler_wl='-Wl,-Wl,,'
8008 lt_prog_compiler_pic='-PIC'
8009 lt_prog_compiler_static='-Bstatic'
8010 ;;
8011 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8012 # Portland Group compilers (*not* the Pentium gcc compiler,
8013 # which looks to be a dead project)
8014 lt_prog_compiler_wl='-Wl,'
8015 lt_prog_compiler_pic='-fpic'
8016 lt_prog_compiler_static='-Bstatic'
8017 ;;
8018 ccc*)
8019 lt_prog_compiler_wl='-Wl,'
8020 # All Alpha code is PIC.
8021 lt_prog_compiler_static='-non_shared'
8022 ;;
8023 xl* | bgxl* | bgf* | mpixl*)
8024 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8025 lt_prog_compiler_wl='-Wl,'
8026 lt_prog_compiler_pic='-qpic'
8027 lt_prog_compiler_static='-qstaticlink'
8028 ;;
8029 *)
8030 case `$CC -V 2>&1 | sed 5q` in
8031 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8032 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8033 lt_prog_compiler_pic='-KPIC'
8034 lt_prog_compiler_static='-Bstatic'
8035 lt_prog_compiler_wl=''
8036 ;;
8037 *Sun\ F* | *Sun*Fortran*)
8038 lt_prog_compiler_pic='-KPIC'
8039 lt_prog_compiler_static='-Bstatic'
8040 lt_prog_compiler_wl='-Qoption ld '
8041 ;;
8042 *Sun\ C*)
8043 # Sun C 5.9
8044 lt_prog_compiler_pic='-KPIC'
8045 lt_prog_compiler_static='-Bstatic'
8046 lt_prog_compiler_wl='-Wl,'
8047 ;;
8048 *Intel*\ [CF]*Compiler*)
8049 lt_prog_compiler_wl='-Wl,'
8050 lt_prog_compiler_pic='-fPIC'
8051 lt_prog_compiler_static='-static'
8052 ;;
8053 *Portland\ Group*)
8054 lt_prog_compiler_wl='-Wl,'
8055 lt_prog_compiler_pic='-fpic'
8056 lt_prog_compiler_static='-Bstatic'
8057 ;;
8058 esac
8059 ;;
8060 esac
8061 ;;
8062
8063 newsos6)
8064 lt_prog_compiler_pic='-KPIC'
8065 lt_prog_compiler_static='-Bstatic'
8066 ;;
8067
8068 *nto* | *qnx*)
8069 # QNX uses GNU C++, but need to define -shared option too, otherwise
8070 # it will coredump.
8071 lt_prog_compiler_pic='-fPIC -shared'
8072 ;;
8073
8074 osf3* | osf4* | osf5*)
8075 lt_prog_compiler_wl='-Wl,'
8076 # All OSF/1 code is PIC.
8077 lt_prog_compiler_static='-non_shared'
8078 ;;
8079
8080 rdos*)
8081 lt_prog_compiler_static='-non_shared'
8082 ;;
8083
8084 solaris*)
8085 lt_prog_compiler_pic='-KPIC'
8086 lt_prog_compiler_static='-Bstatic'
8087 case $cc_basename in
8088 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8089 lt_prog_compiler_wl='-Qoption ld ';;
8090 *)
8091 lt_prog_compiler_wl='-Wl,';;
8092 esac
8093 ;;
8094
8095 sunos4*)
8096 lt_prog_compiler_wl='-Qoption ld '
8097 lt_prog_compiler_pic='-PIC'
8098 lt_prog_compiler_static='-Bstatic'
8099 ;;
8100
8101 sysv4 | sysv4.2uw2* | sysv4.3*)
8102 lt_prog_compiler_wl='-Wl,'
8103 lt_prog_compiler_pic='-KPIC'
8104 lt_prog_compiler_static='-Bstatic'
8105 ;;
8106
8107 sysv4*MP*)
8108 if test -d /usr/nec ;then
8109 lt_prog_compiler_pic='-Kconform_pic'
8110 lt_prog_compiler_static='-Bstatic'
8111 fi
8112 ;;
8113
8114 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8115 lt_prog_compiler_wl='-Wl,'
8116 lt_prog_compiler_pic='-KPIC'
8117 lt_prog_compiler_static='-Bstatic'
8118 ;;
8119
8120 unicos*)
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_can_build_shared=no
8123 ;;
8124
8125 uts4*)
8126 lt_prog_compiler_pic='-pic'
8127 lt_prog_compiler_static='-Bstatic'
8128 ;;
8129
8130 *)
8131 lt_prog_compiler_can_build_shared=no
8132 ;;
8133 esac
8134 fi
8135
8136 case $host_os in
8137 # For platforms which do not support PIC, -DPIC is meaningless:
8138 *djgpp*)
8139 lt_prog_compiler_pic=
8140 ;;
8141 *)
8142 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8143 ;;
8144 esac
8145
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8147 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8148 if ${lt_cv_prog_compiler_pic+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8152 fi
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8154 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8155 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8156
8157 #
8158 # Check to make sure the PIC flag actually works.
8159 #
8160 if test -n "$lt_prog_compiler_pic"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8162 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8163 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 lt_cv_prog_compiler_pic_works=no
8167 ac_outfile=conftest.$ac_objext
8168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8169 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8170 # Insert the option either (1) after the last *FLAGS variable, or
8171 # (2) before a word containing "conftest.", or (3) at the end.
8172 # Note that $ac_compile itself does not contain backslashes and begins
8173 # with a dollar sign (not a hyphen), so the echo should work correctly.
8174 # The option is referenced via a variable to avoid confusing sed.
8175 lt_compile=`echo "$ac_compile" | $SED \
8176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8178 -e 's:$: $lt_compiler_flag:'`
8179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8180 (eval "$lt_compile" 2>conftest.err)
8181 ac_status=$?
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 if (exit $ac_status) && test -s "$ac_outfile"; then
8185 # The compiler can only warn and ignore the option if not recognized
8186 # So say no if there are warnings other than the usual output.
8187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8190 lt_cv_prog_compiler_pic_works=yes
8191 fi
8192 fi
8193 $RM conftest*
8194
8195 fi
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8197 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8198
8199 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8200 case $lt_prog_compiler_pic in
8201 "" | " "*) ;;
8202 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8203 esac
8204 else
8205 lt_prog_compiler_pic=
8206 lt_prog_compiler_can_build_shared=no
8207 fi
8208
8209 fi
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221 #
8222 # Check to make sure the static flag actually works.
8223 #
8224 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8226 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8227 if ${lt_cv_prog_compiler_static_works+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 lt_cv_prog_compiler_static_works=no
8231 save_LDFLAGS="$LDFLAGS"
8232 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8233 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8234 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8235 # The linker can only warn and ignore the option if not recognized
8236 # So say no if there are warnings
8237 if test -s conftest.err; then
8238 # Append any errors to the config.log.
8239 cat conftest.err 1>&5
8240 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8242 if diff conftest.exp conftest.er2 >/dev/null; then
8243 lt_cv_prog_compiler_static_works=yes
8244 fi
8245 else
8246 lt_cv_prog_compiler_static_works=yes
8247 fi
8248 fi
8249 $RM -r conftest*
8250 LDFLAGS="$save_LDFLAGS"
8251
8252 fi
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8254 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8255
8256 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8257 :
8258 else
8259 lt_prog_compiler_static=
8260 fi
8261
8262
8263
8264
8265
8266
8267
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8269 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8270 if ${lt_cv_prog_compiler_c_o+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 lt_cv_prog_compiler_c_o=no
8274 $RM -r conftest 2>/dev/null
8275 mkdir conftest
8276 cd conftest
8277 mkdir out
8278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8279
8280 lt_compiler_flag="-o out/conftest2.$ac_objext"
8281 # Insert the option either (1) after the last *FLAGS variable, or
8282 # (2) before a word containing "conftest.", or (3) at the end.
8283 # Note that $ac_compile itself does not contain backslashes and begins
8284 # with a dollar sign (not a hyphen), so the echo should work correctly.
8285 lt_compile=`echo "$ac_compile" | $SED \
8286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8288 -e 's:$: $lt_compiler_flag:'`
8289 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8290 (eval "$lt_compile" 2>out/conftest.err)
8291 ac_status=$?
8292 cat out/conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8295 then
8296 # The compiler can only warn and ignore the option if not recognized
8297 # So say no if there are warnings
8298 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8299 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8300 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8301 lt_cv_prog_compiler_c_o=yes
8302 fi
8303 fi
8304 chmod u+w . 2>&5
8305 $RM conftest*
8306 # SGI C++ compiler will create directory out/ii_files/ for
8307 # template instantiation
8308 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8309 $RM out/* && rmdir out
8310 cd ..
8311 $RM -r conftest
8312 $RM conftest*
8313
8314 fi
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8316 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8317
8318
8319
8320
8321
8322
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8324 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8325 if ${lt_cv_prog_compiler_c_o+:} false; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 lt_cv_prog_compiler_c_o=no
8329 $RM -r conftest 2>/dev/null
8330 mkdir conftest
8331 cd conftest
8332 mkdir out
8333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8334
8335 lt_compiler_flag="-o out/conftest2.$ac_objext"
8336 # Insert the option either (1) after the last *FLAGS variable, or
8337 # (2) before a word containing "conftest.", or (3) at the end.
8338 # Note that $ac_compile itself does not contain backslashes and begins
8339 # with a dollar sign (not a hyphen), so the echo should work correctly.
8340 lt_compile=`echo "$ac_compile" | $SED \
8341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8343 -e 's:$: $lt_compiler_flag:'`
8344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8345 (eval "$lt_compile" 2>out/conftest.err)
8346 ac_status=$?
8347 cat out/conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8350 then
8351 # The compiler can only warn and ignore the option if not recognized
8352 # So say no if there are warnings
8353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8356 lt_cv_prog_compiler_c_o=yes
8357 fi
8358 fi
8359 chmod u+w . 2>&5
8360 $RM conftest*
8361 # SGI C++ compiler will create directory out/ii_files/ for
8362 # template instantiation
8363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8364 $RM out/* && rmdir out
8365 cd ..
8366 $RM -r conftest
8367 $RM conftest*
8368
8369 fi
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8371 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8372
8373
8374
8375
8376 hard_links="nottested"
8377 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8378 # do not overwrite the value of need_locks provided by the user
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8380 $as_echo_n "checking if we can lock with hard links... " >&6; }
8381 hard_links=yes
8382 $RM conftest*
8383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8384 touch conftest.a
8385 ln conftest.a conftest.b 2>&5 || hard_links=no
8386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8388 $as_echo "$hard_links" >&6; }
8389 if test "$hard_links" = no; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8391 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8392 need_locks=warn
8393 fi
8394 else
8395 need_locks=no
8396 fi
8397
8398
8399
8400
8401
8402
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8404 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8405
8406 runpath_var=
8407 allow_undefined_flag=
8408 always_export_symbols=no
8409 archive_cmds=
8410 archive_expsym_cmds=
8411 compiler_needs_object=no
8412 enable_shared_with_static_runtimes=no
8413 export_dynamic_flag_spec=
8414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8415 hardcode_automatic=no
8416 hardcode_direct=no
8417 hardcode_direct_absolute=no
8418 hardcode_libdir_flag_spec=
8419 hardcode_libdir_separator=
8420 hardcode_minus_L=no
8421 hardcode_shlibpath_var=unsupported
8422 inherit_rpath=no
8423 link_all_deplibs=unknown
8424 module_cmds=
8425 module_expsym_cmds=
8426 old_archive_from_new_cmds=
8427 old_archive_from_expsyms_cmds=
8428 thread_safe_flag_spec=
8429 whole_archive_flag_spec=
8430 # include_expsyms should be a list of space-separated symbols to be *always*
8431 # included in the symbol list
8432 include_expsyms=
8433 # exclude_expsyms can be an extended regexp of symbols to exclude
8434 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8435 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8436 # as well as any symbol that contains `d'.
8437 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8439 # platforms (ab)use it in PIC code, but their linkers get confused if
8440 # the symbol is explicitly referenced. Since portable code cannot
8441 # rely on this symbol name, it's probably fine to never include it in
8442 # preloaded symbol tables.
8443 # Exclude shared library initialization/finalization symbols.
8444 extract_expsyms_cmds=
8445
8446 case $host_os in
8447 cygwin* | mingw* | pw32* | cegcc*)
8448 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8449 # When not using gcc, we currently assume that we are using
8450 # Microsoft Visual C++.
8451 if test "$GCC" != yes; then
8452 with_gnu_ld=no
8453 fi
8454 ;;
8455 interix*)
8456 # we just hope/assume this is gcc and not c89 (= MSVC++)
8457 with_gnu_ld=yes
8458 ;;
8459 openbsd*)
8460 with_gnu_ld=no
8461 ;;
8462 linux* | k*bsd*-gnu | gnu*)
8463 link_all_deplibs=no
8464 ;;
8465 esac
8466
8467 ld_shlibs=yes
8468
8469 # On some targets, GNU ld is compatible enough with the native linker
8470 # that we're better off using the native interface for both.
8471 lt_use_gnu_ld_interface=no
8472 if test "$with_gnu_ld" = yes; then
8473 case $host_os in
8474 aix*)
8475 # The AIX port of GNU ld has always aspired to compatibility
8476 # with the native linker. However, as the warning in the GNU ld
8477 # block says, versions before 2.19.5* couldn't really create working
8478 # shared libraries, regardless of the interface used.
8479 case `$LD -v 2>&1` in
8480 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8481 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8482 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8483 *)
8484 lt_use_gnu_ld_interface=yes
8485 ;;
8486 esac
8487 ;;
8488 *)
8489 lt_use_gnu_ld_interface=yes
8490 ;;
8491 esac
8492 fi
8493
8494 if test "$lt_use_gnu_ld_interface" = yes; then
8495 # If archive_cmds runs LD, not CC, wlarc should be empty
8496 wlarc='${wl}'
8497
8498 # Set some defaults for GNU ld with shared library support. These
8499 # are reset later if shared libraries are not supported. Putting them
8500 # here allows them to be overridden if necessary.
8501 runpath_var=LD_RUN_PATH
8502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8503 export_dynamic_flag_spec='${wl}--export-dynamic'
8504 # ancient GNU ld didn't support --whole-archive et. al.
8505 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8506 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8507 else
8508 whole_archive_flag_spec=
8509 fi
8510 supports_anon_versioning=no
8511 case `$LD -v 2>&1` in
8512 *GNU\ gold*) supports_anon_versioning=yes ;;
8513 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8514 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8515 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8516 *\ 2.11.*) ;; # other 2.11 versions
8517 *) supports_anon_versioning=yes ;;
8518 esac
8519
8520 # See if GNU ld supports shared libraries.
8521 case $host_os in
8522 aix[3-9]*)
8523 # On AIX/PPC, the GNU linker is very broken
8524 if test "$host_cpu" != ia64; then
8525 ld_shlibs=no
8526 cat <<_LT_EOF 1>&2
8527
8528 *** Warning: the GNU linker, at least up to release 2.19, is reported
8529 *** to be unable to reliably create shared libraries on AIX.
8530 *** Therefore, libtool is disabling shared libraries support. If you
8531 *** really care for shared libraries, you may want to install binutils
8532 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8533 *** You will then need to restart the configuration process.
8534
8535 _LT_EOF
8536 fi
8537 ;;
8538
8539 amigaos*)
8540 case $host_cpu in
8541 powerpc)
8542 # see comment about AmigaOS4 .so support
8543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8544 archive_expsym_cmds=''
8545 ;;
8546 m68k)
8547 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)'
8548 hardcode_libdir_flag_spec='-L$libdir'
8549 hardcode_minus_L=yes
8550 ;;
8551 esac
8552 ;;
8553
8554 beos*)
8555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8556 allow_undefined_flag=unsupported
8557 # Joseph Beckenbach <[email protected]> says some releases of gcc
8558 # support --undefined. This deserves some investigation. FIXME
8559 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8560 else
8561 ld_shlibs=no
8562 fi
8563 ;;
8564
8565 cygwin* | mingw* | pw32* | cegcc*)
8566 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8567 # as there is no search path for DLLs.
8568 hardcode_libdir_flag_spec='-L$libdir'
8569 export_dynamic_flag_spec='${wl}--export-all-symbols'
8570 allow_undefined_flag=unsupported
8571 always_export_symbols=no
8572 enable_shared_with_static_runtimes=yes
8573 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'
8574 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8575
8576 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8578 # If the export-symbols file already is a .def file (1st line
8579 # is EXPORTS), use it as is; otherwise, prepend...
8580 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8581 cp $export_symbols $output_objdir/$soname.def;
8582 else
8583 echo EXPORTS > $output_objdir/$soname.def;
8584 cat $export_symbols >> $output_objdir/$soname.def;
8585 fi~
8586 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8587 else
8588 ld_shlibs=no
8589 fi
8590 ;;
8591
8592 haiku*)
8593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594 link_all_deplibs=yes
8595 ;;
8596
8597 interix[3-9]*)
8598 hardcode_direct=no
8599 hardcode_shlibpath_var=no
8600 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8601 export_dynamic_flag_spec='${wl}-E'
8602 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8603 # Instead, shared libraries are loaded at an image base (0x10000000 by
8604 # default) and relocated if they conflict, which is a slow very memory
8605 # consuming and fragmenting process. To avoid this, we pick a random,
8606 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8607 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8609 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'
8610 ;;
8611
8612 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8613 tmp_diet=no
8614 if test "$host_os" = linux-dietlibc; then
8615 case $cc_basename in
8616 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8617 esac
8618 fi
8619 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8620 && test "$tmp_diet" = no
8621 then
8622 tmp_addflag=' $pic_flag'
8623 tmp_sharedflag='-shared'
8624 case $cc_basename,$host_cpu in
8625 pgcc*) # Portland Group C compiler
8626 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'
8627 tmp_addflag=' $pic_flag'
8628 ;;
8629 pgf77* | pgf90* | pgf95* | pgfortran*)
8630 # Portland Group f77 and f90 compilers
8631 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'
8632 tmp_addflag=' $pic_flag -Mnomain' ;;
8633 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8634 tmp_addflag=' -i_dynamic' ;;
8635 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8636 tmp_addflag=' -i_dynamic -nofor_main' ;;
8637 ifc* | ifort*) # Intel Fortran compiler
8638 tmp_addflag=' -nofor_main' ;;
8639 lf95*) # Lahey Fortran 8.1
8640 whole_archive_flag_spec=
8641 tmp_sharedflag='--shared' ;;
8642 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8643 tmp_sharedflag='-qmkshrobj'
8644 tmp_addflag= ;;
8645 nvcc*) # Cuda Compiler Driver 2.2
8646 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'
8647 compiler_needs_object=yes
8648 ;;
8649 esac
8650 case `$CC -V 2>&1 | sed 5q` in
8651 *Sun\ C*) # Sun C 5.9
8652 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'
8653 compiler_needs_object=yes
8654 tmp_sharedflag='-G' ;;
8655 *Sun\ F*) # Sun Fortran 8.3
8656 tmp_sharedflag='-G' ;;
8657 esac
8658 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8659
8660 if test "x$supports_anon_versioning" = xyes; then
8661 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8663 echo "local: *; };" >> $output_objdir/$libname.ver~
8664 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8665 fi
8666
8667 case $cc_basename in
8668 xlf* | bgf* | bgxlf* | mpixlf*)
8669 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8670 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8672 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8673 if test "x$supports_anon_versioning" = xyes; then
8674 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8676 echo "local: *; };" >> $output_objdir/$libname.ver~
8677 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8678 fi
8679 ;;
8680 esac
8681 else
8682 ld_shlibs=no
8683 fi
8684 ;;
8685
8686 netbsd* | netbsdelf*-gnu)
8687 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8688 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8689 wlarc=
8690 else
8691 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8693 fi
8694 ;;
8695
8696 solaris*)
8697 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8698 ld_shlibs=no
8699 cat <<_LT_EOF 1>&2
8700
8701 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8702 *** create shared libraries on Solaris systems. Therefore, libtool
8703 *** is disabling shared libraries support. We urge you to upgrade GNU
8704 *** binutils to release 2.9.1 or newer. Another option is to modify
8705 *** your PATH or compiler configuration so that the native linker is
8706 *** used, and then restart.
8707
8708 _LT_EOF
8709 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8710 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8711 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8712 else
8713 ld_shlibs=no
8714 fi
8715 ;;
8716
8717 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8718 case `$LD -v 2>&1` in
8719 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8720 ld_shlibs=no
8721 cat <<_LT_EOF 1>&2
8722
8723 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8724 *** reliably create shared libraries on SCO systems. Therefore, libtool
8725 *** is disabling shared libraries support. We urge you to upgrade GNU
8726 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8727 *** your PATH or compiler configuration so that the native linker is
8728 *** used, and then restart.
8729
8730 _LT_EOF
8731 ;;
8732 *)
8733 # For security reasons, it is highly recommended that you always
8734 # use absolute paths for naming shared libraries, and exclude the
8735 # DT_RUNPATH tag from executables and libraries. But doing so
8736 # requires that you compile everything twice, which is a pain.
8737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8741 else
8742 ld_shlibs=no
8743 fi
8744 ;;
8745 esac
8746 ;;
8747
8748 sunos4*)
8749 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8750 wlarc=
8751 hardcode_direct=yes
8752 hardcode_shlibpath_var=no
8753 ;;
8754
8755 *)
8756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8758 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8759 else
8760 ld_shlibs=no
8761 fi
8762 ;;
8763 esac
8764
8765 if test "$ld_shlibs" = no; then
8766 runpath_var=
8767 hardcode_libdir_flag_spec=
8768 export_dynamic_flag_spec=
8769 whole_archive_flag_spec=
8770 fi
8771 else
8772 # PORTME fill in a description of your system's linker (not GNU ld)
8773 case $host_os in
8774 aix3*)
8775 allow_undefined_flag=unsupported
8776 always_export_symbols=yes
8777 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'
8778 # Note: this linker hardcodes the directories in LIBPATH if there
8779 # are no directories specified by -L.
8780 hardcode_minus_L=yes
8781 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8782 # Neither direct hardcoding nor static linking is supported with a
8783 # broken collect2.
8784 hardcode_direct=unsupported
8785 fi
8786 ;;
8787
8788 aix[4-9]*)
8789 if test "$host_cpu" = ia64; then
8790 # On IA64, the linker does run time linking by default, so we don't
8791 # have to do anything special.
8792 aix_use_runtimelinking=no
8793 exp_sym_flag='-Bexport'
8794 no_entry_flag=""
8795 else
8796 # If we're using GNU nm, then we don't want the "-C" option.
8797 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8798 # Also, AIX nm treats weak defined symbols like other global
8799 # defined symbols, whereas GNU nm marks them as "W".
8800 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8801 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'
8802 else
8803 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'
8804 fi
8805 aix_use_runtimelinking=no
8806
8807 # Test if we are trying to use run time linking or normal
8808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8809 # need to do runtime linking.
8810 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8811 for ld_flag in $LDFLAGS; do
8812 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8813 aix_use_runtimelinking=yes
8814 break
8815 fi
8816 done
8817 ;;
8818 esac
8819
8820 exp_sym_flag='-bexport'
8821 no_entry_flag='-bnoentry'
8822 fi
8823
8824 # When large executables or shared objects are built, AIX ld can
8825 # have problems creating the table of contents. If linking a library
8826 # or program results in "error TOC overflow" add -mminimal-toc to
8827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8829
8830 archive_cmds=''
8831 hardcode_direct=yes
8832 hardcode_direct_absolute=yes
8833 hardcode_libdir_separator=':'
8834 link_all_deplibs=yes
8835 file_list_spec='${wl}-f,'
8836
8837 if test "$GCC" = yes; then
8838 case $host_os in aix4.[012]|aix4.[012].*)
8839 # We only want to do this on AIX 4.2 and lower, the check
8840 # below for broken collect2 doesn't work under 4.3+
8841 collect2name=`${CC} -print-prog-name=collect2`
8842 if test -f "$collect2name" &&
8843 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8844 then
8845 # We have reworked collect2
8846 :
8847 else
8848 # We have old collect2
8849 hardcode_direct=unsupported
8850 # It fails to find uninstalled libraries when the uninstalled
8851 # path is not listed in the libpath. Setting hardcode_minus_L
8852 # to unsupported forces relinking
8853 hardcode_minus_L=yes
8854 hardcode_libdir_flag_spec='-L$libdir'
8855 hardcode_libdir_separator=
8856 fi
8857 ;;
8858 esac
8859 shared_flag='-shared'
8860 if test "$aix_use_runtimelinking" = yes; then
8861 shared_flag="$shared_flag "'${wl}-G'
8862 fi
8863 link_all_deplibs=no
8864 else
8865 # not using gcc
8866 if test "$host_cpu" = ia64; then
8867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8868 # chokes on -Wl,-G. The following line is correct:
8869 shared_flag='-G'
8870 else
8871 if test "$aix_use_runtimelinking" = yes; then
8872 shared_flag='${wl}-G'
8873 else
8874 shared_flag='${wl}-bM:SRE'
8875 fi
8876 fi
8877 fi
8878
8879 export_dynamic_flag_spec='${wl}-bexpall'
8880 # It seems that -bexpall does not export symbols beginning with
8881 # underscore (_), so it is better to generate a list of symbols to export.
8882 always_export_symbols=yes
8883 if test "$aix_use_runtimelinking" = yes; then
8884 # Warning - without using the other runtime loading flags (-brtl),
8885 # -berok will link without error, but may produce a broken library.
8886 allow_undefined_flag='-berok'
8887 # Determine the default libpath from the value encoded in an
8888 # empty executable.
8889 if test "${lt_cv_aix_libpath+set}" = set; then
8890 aix_libpath=$lt_cv_aix_libpath
8891 else
8892 if ${lt_cv_aix_libpath_+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8897
8898 int
8899 main ()
8900 {
8901
8902 ;
8903 return 0;
8904 }
8905 _ACEOF
8906 if ac_fn_c_try_link "$LINENO"; then :
8907
8908 lt_aix_libpath_sed='
8909 /Import File Strings/,/^$/ {
8910 /^0/ {
8911 s/^0 *\([^ ]*\) *$/\1/
8912 p
8913 }
8914 }'
8915 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8916 # Check for a 64-bit object if we didn't find anything.
8917 if test -z "$lt_cv_aix_libpath_"; then
8918 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8919 fi
8920 fi
8921 rm -f core conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext conftest.$ac_ext
8923 if test -z "$lt_cv_aix_libpath_"; then
8924 lt_cv_aix_libpath_="/usr/lib:/lib"
8925 fi
8926
8927 fi
8928
8929 aix_libpath=$lt_cv_aix_libpath_
8930 fi
8931
8932 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8933 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"
8934 else
8935 if test "$host_cpu" = ia64; then
8936 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8937 allow_undefined_flag="-z nodefs"
8938 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"
8939 else
8940 # Determine the default libpath from the value encoded in an
8941 # empty executable.
8942 if test "${lt_cv_aix_libpath+set}" = set; then
8943 aix_libpath=$lt_cv_aix_libpath
8944 else
8945 if ${lt_cv_aix_libpath_+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950
8951 int
8952 main ()
8953 {
8954
8955 ;
8956 return 0;
8957 }
8958 _ACEOF
8959 if ac_fn_c_try_link "$LINENO"; then :
8960
8961 lt_aix_libpath_sed='
8962 /Import File Strings/,/^$/ {
8963 /^0/ {
8964 s/^0 *\([^ ]*\) *$/\1/
8965 p
8966 }
8967 }'
8968 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8969 # Check for a 64-bit object if we didn't find anything.
8970 if test -z "$lt_cv_aix_libpath_"; then
8971 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8972 fi
8973 fi
8974 rm -f core conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976 if test -z "$lt_cv_aix_libpath_"; then
8977 lt_cv_aix_libpath_="/usr/lib:/lib"
8978 fi
8979
8980 fi
8981
8982 aix_libpath=$lt_cv_aix_libpath_
8983 fi
8984
8985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8986 # Warning - without using the other run time loading flags,
8987 # -berok will link without error, but may produce a broken library.
8988 no_undefined_flag=' ${wl}-bernotok'
8989 allow_undefined_flag=' ${wl}-berok'
8990 if test "$with_gnu_ld" = yes; then
8991 # We only use this code for GNU lds that support --whole-archive.
8992 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8993 else
8994 # Exported symbols can be pulled into shared objects from archives
8995 whole_archive_flag_spec='$convenience'
8996 fi
8997 archive_cmds_need_lc=yes
8998 # This is similar to how AIX traditionally builds its shared libraries.
8999 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'
9000 fi
9001 fi
9002 ;;
9003
9004 amigaos*)
9005 case $host_cpu in
9006 powerpc)
9007 # see comment about AmigaOS4 .so support
9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009 archive_expsym_cmds=''
9010 ;;
9011 m68k)
9012 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)'
9013 hardcode_libdir_flag_spec='-L$libdir'
9014 hardcode_minus_L=yes
9015 ;;
9016 esac
9017 ;;
9018
9019 bsdi[45]*)
9020 export_dynamic_flag_spec=-rdynamic
9021 ;;
9022
9023 cygwin* | mingw* | pw32* | cegcc*)
9024 # When not using gcc, we currently assume that we are using
9025 # Microsoft Visual C++.
9026 # hardcode_libdir_flag_spec is actually meaningless, as there is
9027 # no search path for DLLs.
9028 case $cc_basename in
9029 cl*)
9030 # Native MSVC
9031 hardcode_libdir_flag_spec=' '
9032 allow_undefined_flag=unsupported
9033 always_export_symbols=yes
9034 file_list_spec='@'
9035 # Tell ltmain to make .lib files, not .a files.
9036 libext=lib
9037 # Tell ltmain to make .dll files, not .so files.
9038 shrext_cmds=".dll"
9039 # FIXME: Setting linknames here is a bad hack.
9040 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9041 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9042 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9043 else
9044 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9045 fi~
9046 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9047 linknames='
9048 # The linker will not automatically build a static lib if we build a DLL.
9049 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9050 enable_shared_with_static_runtimes=yes
9051 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9053 # Don't use ranlib
9054 old_postinstall_cmds='chmod 644 $oldlib'
9055 postlink_cmds='lt_outputfile="@OUTPUT@"~
9056 lt_tool_outputfile="@TOOL_OUTPUT@"~
9057 case $lt_outputfile in
9058 *.exe|*.EXE) ;;
9059 *)
9060 lt_outputfile="$lt_outputfile.exe"
9061 lt_tool_outputfile="$lt_tool_outputfile.exe"
9062 ;;
9063 esac~
9064 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9065 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9066 $RM "$lt_outputfile.manifest";
9067 fi'
9068 ;;
9069 *)
9070 # Assume MSVC wrapper
9071 hardcode_libdir_flag_spec=' '
9072 allow_undefined_flag=unsupported
9073 # Tell ltmain to make .lib files, not .a files.
9074 libext=lib
9075 # Tell ltmain to make .dll files, not .so files.
9076 shrext_cmds=".dll"
9077 # FIXME: Setting linknames here is a bad hack.
9078 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9079 # The linker will automatically build a .lib file if we build a DLL.
9080 old_archive_from_new_cmds='true'
9081 # FIXME: Should let the user specify the lib program.
9082 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9083 enable_shared_with_static_runtimes=yes
9084 ;;
9085 esac
9086 ;;
9087
9088 darwin* | rhapsody*)
9089
9090
9091 archive_cmds_need_lc=no
9092 hardcode_direct=no
9093 hardcode_automatic=yes
9094 hardcode_shlibpath_var=unsupported
9095 if test "$lt_cv_ld_force_load" = "yes"; then
9096 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\"`'
9097
9098 else
9099 whole_archive_flag_spec=''
9100 fi
9101 link_all_deplibs=yes
9102 allow_undefined_flag="$_lt_dar_allow_undefined"
9103 case $cc_basename in
9104 ifort*) _lt_dar_can_shared=yes ;;
9105 *) _lt_dar_can_shared=$GCC ;;
9106 esac
9107 if test "$_lt_dar_can_shared" = "yes"; then
9108 output_verbose_link_cmd=func_echo_all
9109 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9110 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9111 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}"
9112 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}"
9113
9114 else
9115 ld_shlibs=no
9116 fi
9117
9118 ;;
9119
9120 dgux*)
9121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_libdir_flag_spec='-L$libdir'
9123 hardcode_shlibpath_var=no
9124 ;;
9125
9126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9127 # support. Future versions do this automatically, but an explicit c++rt0.o
9128 # does not break anything, and helps significantly (at the cost of a little
9129 # extra space).
9130 freebsd2.2*)
9131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9132 hardcode_libdir_flag_spec='-R$libdir'
9133 hardcode_direct=yes
9134 hardcode_shlibpath_var=no
9135 ;;
9136
9137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9138 freebsd2.*)
9139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_direct=yes
9141 hardcode_minus_L=yes
9142 hardcode_shlibpath_var=no
9143 ;;
9144
9145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9146 freebsd* | dragonfly*)
9147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9148 hardcode_libdir_flag_spec='-R$libdir'
9149 hardcode_direct=yes
9150 hardcode_shlibpath_var=no
9151 ;;
9152
9153 hpux9*)
9154 if test "$GCC" = yes; then
9155 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'
9156 else
9157 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'
9158 fi
9159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9160 hardcode_libdir_separator=:
9161 hardcode_direct=yes
9162
9163 # hardcode_minus_L: Not really in the search PATH,
9164 # but as the default location of the library.
9165 hardcode_minus_L=yes
9166 export_dynamic_flag_spec='${wl}-E'
9167 ;;
9168
9169 hpux10*)
9170 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9171 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9172 else
9173 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9174 fi
9175 if test "$with_gnu_ld" = no; then
9176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177 hardcode_libdir_separator=:
9178 hardcode_direct=yes
9179 hardcode_direct_absolute=yes
9180 export_dynamic_flag_spec='${wl}-E'
9181 # hardcode_minus_L: Not really in the search PATH,
9182 # but as the default location of the library.
9183 hardcode_minus_L=yes
9184 fi
9185 ;;
9186
9187 hpux11*)
9188 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9189 case $host_cpu in
9190 hppa*64*)
9191 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9192 ;;
9193 ia64*)
9194 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9195 ;;
9196 *)
9197 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9198 ;;
9199 esac
9200 else
9201 case $host_cpu in
9202 hppa*64*)
9203 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204 ;;
9205 ia64*)
9206 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9207 ;;
9208 *)
9209
9210 # Older versions of the 11.00 compiler do not understand -b yet
9211 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9213 $as_echo_n "checking if $CC understands -b... " >&6; }
9214 if ${lt_cv_prog_compiler__b+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 lt_cv_prog_compiler__b=no
9218 save_LDFLAGS="$LDFLAGS"
9219 LDFLAGS="$LDFLAGS -b"
9220 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9222 # The linker can only warn and ignore the option if not recognized
9223 # So say no if there are warnings
9224 if test -s conftest.err; then
9225 # Append any errors to the config.log.
9226 cat conftest.err 1>&5
9227 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9229 if diff conftest.exp conftest.er2 >/dev/null; then
9230 lt_cv_prog_compiler__b=yes
9231 fi
9232 else
9233 lt_cv_prog_compiler__b=yes
9234 fi
9235 fi
9236 $RM -r conftest*
9237 LDFLAGS="$save_LDFLAGS"
9238
9239 fi
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9241 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9242
9243 if test x"$lt_cv_prog_compiler__b" = xyes; then
9244 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9245 else
9246 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9247 fi
9248
9249 ;;
9250 esac
9251 fi
9252 if test "$with_gnu_ld" = no; then
9253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9254 hardcode_libdir_separator=:
9255
9256 case $host_cpu in
9257 hppa*64*|ia64*)
9258 hardcode_direct=no
9259 hardcode_shlibpath_var=no
9260 ;;
9261 *)
9262 hardcode_direct=yes
9263 hardcode_direct_absolute=yes
9264 export_dynamic_flag_spec='${wl}-E'
9265
9266 # hardcode_minus_L: Not really in the search PATH,
9267 # but as the default location of the library.
9268 hardcode_minus_L=yes
9269 ;;
9270 esac
9271 fi
9272 ;;
9273
9274 irix5* | irix6* | nonstopux*)
9275 if test "$GCC" = yes; then
9276 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'
9277 # Try to use the -exported_symbol ld option, if it does not
9278 # work, assume that -exports_file does not work either and
9279 # implicitly export all symbols.
9280 # This should be the same for all languages, so no per-tag cache variable.
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9282 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9283 if ${lt_cv_irix_exported_symbol+:} false; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 save_LDFLAGS="$LDFLAGS"
9287 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 int foo (void) { return 0; }
9291 _ACEOF
9292 if ac_fn_c_try_link "$LINENO"; then :
9293 lt_cv_irix_exported_symbol=yes
9294 else
9295 lt_cv_irix_exported_symbol=no
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 LDFLAGS="$save_LDFLAGS"
9300 fi
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9302 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9303 if test "$lt_cv_irix_exported_symbol" = yes; then
9304 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'
9305 fi
9306 else
9307 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'
9308 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'
9309 fi
9310 archive_cmds_need_lc='no'
9311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9312 hardcode_libdir_separator=:
9313 inherit_rpath=yes
9314 link_all_deplibs=yes
9315 ;;
9316
9317 netbsd* | netbsdelf*-gnu)
9318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9320 else
9321 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9322 fi
9323 hardcode_libdir_flag_spec='-R$libdir'
9324 hardcode_direct=yes
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 newsos6)
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_direct=yes
9331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9332 hardcode_libdir_separator=:
9333 hardcode_shlibpath_var=no
9334 ;;
9335
9336 *nto* | *qnx*)
9337 ;;
9338
9339 openbsd*)
9340 if test -f /usr/libexec/ld.so; then
9341 hardcode_direct=yes
9342 hardcode_shlibpath_var=no
9343 hardcode_direct_absolute=yes
9344 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9348 export_dynamic_flag_spec='${wl}-E'
9349 else
9350 case $host_os in
9351 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9353 hardcode_libdir_flag_spec='-R$libdir'
9354 ;;
9355 *)
9356 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9357 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9358 ;;
9359 esac
9360 fi
9361 else
9362 ld_shlibs=no
9363 fi
9364 ;;
9365
9366 os2*)
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_minus_L=yes
9369 allow_undefined_flag=unsupported
9370 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'
9371 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9372 ;;
9373
9374 osf3*)
9375 if test "$GCC" = yes; then
9376 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9377 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'
9378 else
9379 allow_undefined_flag=' -expect_unresolved \*'
9380 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'
9381 fi
9382 archive_cmds_need_lc='no'
9383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9384 hardcode_libdir_separator=:
9385 ;;
9386
9387 osf4* | osf5*) # as osf3* with the addition of -msym flag
9388 if test "$GCC" = yes; then
9389 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9390 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'
9391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9392 else
9393 allow_undefined_flag=' -expect_unresolved \*'
9394 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'
9395 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~
9396 $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'
9397
9398 # Both c and cxx compiler support -rpath directly
9399 hardcode_libdir_flag_spec='-rpath $libdir'
9400 fi
9401 archive_cmds_need_lc='no'
9402 hardcode_libdir_separator=:
9403 ;;
9404
9405 solaris*)
9406 no_undefined_flag=' -z defs'
9407 if test "$GCC" = yes; then
9408 wlarc='${wl}'
9409 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9411 $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'
9412 else
9413 case `$CC -V 2>&1` in
9414 *"Compilers 5.0"*)
9415 wlarc=''
9416 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9418 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9419 ;;
9420 *)
9421 wlarc='${wl}'
9422 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9423 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9424 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9425 ;;
9426 esac
9427 fi
9428 hardcode_libdir_flag_spec='-R$libdir'
9429 hardcode_shlibpath_var=no
9430 case $host_os in
9431 solaris2.[0-5] | solaris2.[0-5].*) ;;
9432 *)
9433 # The compiler driver will combine and reorder linker options,
9434 # but understands `-z linker_flag'. GCC discards it without `$wl',
9435 # but is careful enough not to reorder.
9436 # Supported since Solaris 2.6 (maybe 2.5.1?)
9437 if test "$GCC" = yes; then
9438 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9439 else
9440 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9441 fi
9442 ;;
9443 esac
9444 link_all_deplibs=yes
9445 ;;
9446
9447 sunos4*)
9448 if test "x$host_vendor" = xsequent; then
9449 # Use $CC to link under sequent, because it throws in some extra .o
9450 # files that make .init and .fini sections work.
9451 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9452 else
9453 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9454 fi
9455 hardcode_libdir_flag_spec='-L$libdir'
9456 hardcode_direct=yes
9457 hardcode_minus_L=yes
9458 hardcode_shlibpath_var=no
9459 ;;
9460
9461 sysv4)
9462 case $host_vendor in
9463 sni)
9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_direct=yes # is this really true???
9466 ;;
9467 siemens)
9468 ## LD is ld it makes a PLAMLIB
9469 ## CC just makes a GrossModule.
9470 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9471 reload_cmds='$CC -r -o $output$reload_objs'
9472 hardcode_direct=no
9473 ;;
9474 motorola)
9475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9477 ;;
9478 esac
9479 runpath_var='LD_RUN_PATH'
9480 hardcode_shlibpath_var=no
9481 ;;
9482
9483 sysv4.3*)
9484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485 hardcode_shlibpath_var=no
9486 export_dynamic_flag_spec='-Bexport'
9487 ;;
9488
9489 sysv4*MP*)
9490 if test -d /usr/nec; then
9491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492 hardcode_shlibpath_var=no
9493 runpath_var=LD_RUN_PATH
9494 hardcode_runpath_var=yes
9495 ld_shlibs=yes
9496 fi
9497 ;;
9498
9499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9500 no_undefined_flag='${wl}-z,text'
9501 archive_cmds_need_lc=no
9502 hardcode_shlibpath_var=no
9503 runpath_var='LD_RUN_PATH'
9504
9505 if test "$GCC" = yes; then
9506 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508 else
9509 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 fi
9512 ;;
9513
9514 sysv5* | sco3.2v5* | sco5v6*)
9515 # Note: We can NOT use -z defs as we might desire, because we do not
9516 # link with -lc, and that would cause any symbols used from libc to
9517 # always be unresolved, which means just about no library would
9518 # ever link correctly. If we're not using GNU ld we use -z text
9519 # though, which does catch some bad symbols but isn't as heavy-handed
9520 # as -z defs.
9521 no_undefined_flag='${wl}-z,text'
9522 allow_undefined_flag='${wl}-z,nodefs'
9523 archive_cmds_need_lc=no
9524 hardcode_shlibpath_var=no
9525 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9526 hardcode_libdir_separator=':'
9527 link_all_deplibs=yes
9528 export_dynamic_flag_spec='${wl}-Bexport'
9529 runpath_var='LD_RUN_PATH'
9530
9531 if test "$GCC" = yes; then
9532 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534 else
9535 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537 fi
9538 ;;
9539
9540 uts4*)
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_libdir_flag_spec='-L$libdir'
9543 hardcode_shlibpath_var=no
9544 ;;
9545
9546 *)
9547 ld_shlibs=no
9548 ;;
9549 esac
9550
9551 if test x$host_vendor = xsni; then
9552 case $host in
9553 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9554 export_dynamic_flag_spec='${wl}-Blargedynsym'
9555 ;;
9556 esac
9557 fi
9558 fi
9559
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9561 $as_echo "$ld_shlibs" >&6; }
9562 test "$ld_shlibs" = no && can_build_shared=no
9563
9564 with_gnu_ld=$with_gnu_ld
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580 #
9581 # Do we need to explicitly link libc?
9582 #
9583 case "x$archive_cmds_need_lc" in
9584 x|xyes)
9585 # Assume -lc should be added
9586 archive_cmds_need_lc=yes
9587
9588 if test "$enable_shared" = yes && test "$GCC" = yes; then
9589 case $archive_cmds in
9590 *'~'*)
9591 # FIXME: we may have to deal with multi-command sequences.
9592 ;;
9593 '$CC '*)
9594 # Test whether the compiler implicitly links with -lc since on some
9595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9596 # to ld, don't add -lc before -lgcc.
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9598 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9599 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 $RM conftest*
9603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9604
9605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9606 (eval $ac_compile) 2>&5
9607 ac_status=$?
9608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9609 test $ac_status = 0; } 2>conftest.err; then
9610 soname=conftest
9611 lib=conftest
9612 libobjs=conftest.$ac_objext
9613 deplibs=
9614 wl=$lt_prog_compiler_wl
9615 pic_flag=$lt_prog_compiler_pic
9616 compiler_flags=-v
9617 linker_flags=-v
9618 verstring=
9619 output_objdir=.
9620 libname=conftest
9621 lt_save_allow_undefined_flag=$allow_undefined_flag
9622 allow_undefined_flag=
9623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9624 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9625 ac_status=$?
9626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9627 test $ac_status = 0; }
9628 then
9629 lt_cv_archive_cmds_need_lc=no
9630 else
9631 lt_cv_archive_cmds_need_lc=yes
9632 fi
9633 allow_undefined_flag=$lt_save_allow_undefined_flag
9634 else
9635 cat conftest.err 1>&5
9636 fi
9637 $RM conftest*
9638
9639 fi
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9641 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9642 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9643 ;;
9644 esac
9645 fi
9646 ;;
9647 esac
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9801 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9802
9803 if test "$GCC" = yes; then
9804 case $host_os in
9805 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9806 *) lt_awk_arg="/^libraries:/" ;;
9807 esac
9808 case $host_os in
9809 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9810 *) lt_sed_strip_eq="s,=/,/,g" ;;
9811 esac
9812 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9813 case $lt_search_path_spec in
9814 *\;*)
9815 # if the path contains ";" then we assume it to be the separator
9816 # otherwise default to the standard path separator (i.e. ":") - it is
9817 # assumed that no part of a normal pathname contains ";" but that should
9818 # okay in the real world where ";" in dirpaths is itself problematic.
9819 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9820 ;;
9821 *)
9822 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9823 ;;
9824 esac
9825 # Ok, now we have the path, separated by spaces, we can step through it
9826 # and add multilib dir if necessary.
9827 lt_tmp_lt_search_path_spec=
9828 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9829 for lt_sys_path in $lt_search_path_spec; do
9830 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9831 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9832 else
9833 test -d "$lt_sys_path" && \
9834 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9835 fi
9836 done
9837 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9838 BEGIN {RS=" "; FS="/|\n";} {
9839 lt_foo="";
9840 lt_count=0;
9841 for (lt_i = NF; lt_i > 0; lt_i--) {
9842 if ($lt_i != "" && $lt_i != ".") {
9843 if ($lt_i == "..") {
9844 lt_count++;
9845 } else {
9846 if (lt_count == 0) {
9847 lt_foo="/" $lt_i lt_foo;
9848 } else {
9849 lt_count--;
9850 }
9851 }
9852 }
9853 }
9854 if (lt_foo != "") { lt_freq[lt_foo]++; }
9855 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9856 }'`
9857 # AWK program above erroneously prepends '/' to C:/dos/paths
9858 # for these hosts.
9859 case $host_os in
9860 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9861 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9862 esac
9863 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9864 else
9865 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9866 fi
9867 library_names_spec=
9868 libname_spec='lib$name'
9869 soname_spec=
9870 shrext_cmds=".so"
9871 postinstall_cmds=
9872 postuninstall_cmds=
9873 finish_cmds=
9874 finish_eval=
9875 shlibpath_var=
9876 shlibpath_overrides_runpath=unknown
9877 version_type=none
9878 dynamic_linker="$host_os ld.so"
9879 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9880 need_lib_prefix=unknown
9881 hardcode_into_libs=no
9882
9883 # when you set need_version to no, make sure it does not cause -set_version
9884 # flags to be left without arguments
9885 need_version=unknown
9886
9887 case $host_os in
9888 aix3*)
9889 version_type=linux # correct to gnu/linux during the next big refactor
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9891 shlibpath_var=LIBPATH
9892
9893 # AIX 3 has no versioning support, so we append a major version to the name.
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 ;;
9896
9897 aix[4-9]*)
9898 version_type=linux # correct to gnu/linux during the next big refactor
9899 need_lib_prefix=no
9900 need_version=no
9901 hardcode_into_libs=yes
9902 if test "$host_cpu" = ia64; then
9903 # AIX 5 supports IA64
9904 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 else
9907 # With GCC up to 2.95.x, collect2 would create an import file
9908 # for dependence libraries. The import file would start with
9909 # the line `#! .'. This would cause the generated library to
9910 # depend on `.', always an invalid library. This was fixed in
9911 # development snapshots of GCC prior to 3.0.
9912 case $host_os in
9913 aix4 | aix4.[01] | aix4.[01].*)
9914 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9915 echo ' yes '
9916 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9917 :
9918 else
9919 can_build_shared=no
9920 fi
9921 ;;
9922 esac
9923 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9924 # soname into executable. Probably we can add versioning support to
9925 # collect2, so additional links can be useful in future.
9926 if test "$aix_use_runtimelinking" = yes; then
9927 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9928 # instead of lib<name>.a to let people know that these are not
9929 # typical AIX shared libraries.
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 else
9932 # We preserve .a as extension for shared libraries through AIX4.2
9933 # and later when we are not doing run time linking.
9934 library_names_spec='${libname}${release}.a $libname.a'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9936 fi
9937 shlibpath_var=LIBPATH
9938 fi
9939 ;;
9940
9941 amigaos*)
9942 case $host_cpu in
9943 powerpc)
9944 # Since July 2007 AmigaOS4 officially supports .so libraries.
9945 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947 ;;
9948 m68k)
9949 library_names_spec='$libname.ixlibrary $libname.a'
9950 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9951 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'
9952 ;;
9953 esac
9954 ;;
9955
9956 beos*)
9957 library_names_spec='${libname}${shared_ext}'
9958 dynamic_linker="$host_os ld.so"
9959 shlibpath_var=LIBRARY_PATH
9960 ;;
9961
9962 bsdi[45]*)
9963 version_type=linux # correct to gnu/linux during the next big refactor
9964 need_version=no
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9971 # the default ld.so.conf also contains /usr/contrib/lib and
9972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9973 # libtool to hard-code these into programs
9974 ;;
9975
9976 cygwin* | mingw* | pw32* | cegcc*)
9977 version_type=windows
9978 shrext_cmds=".dll"
9979 need_version=no
9980 need_lib_prefix=no
9981
9982 case $GCC,$cc_basename in
9983 yes,*)
9984 # gcc
9985 library_names_spec='$libname.dll.a'
9986 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9987 postinstall_cmds='base_file=`basename \${file}`~
9988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9989 dldir=$destdir/`dirname \$dlpath`~
9990 test -d \$dldir || mkdir -p \$dldir~
9991 $install_prog $dir/$dlname \$dldir/$dlname~
9992 chmod a+x \$dldir/$dlname~
9993 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9994 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9995 fi'
9996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9997 dlpath=$dir/\$dldll~
9998 $RM \$dlpath'
9999 shlibpath_overrides_runpath=yes
10000
10001 case $host_os in
10002 cygwin*)
10003 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10004 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10005
10006 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10007 ;;
10008 mingw* | cegcc*)
10009 # MinGW DLLs use traditional 'lib' prefix
10010 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10011 ;;
10012 pw32*)
10013 # pw32 DLLs use 'pw' prefix rather than 'lib'
10014 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10015 ;;
10016 esac
10017 dynamic_linker='Win32 ld.exe'
10018 ;;
10019
10020 *,cl*)
10021 # Native MSVC
10022 libname_spec='$name'
10023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10024 library_names_spec='${libname}.dll.lib'
10025
10026 case $build_os in
10027 mingw*)
10028 sys_lib_search_path_spec=
10029 lt_save_ifs=$IFS
10030 IFS=';'
10031 for lt_path in $LIB
10032 do
10033 IFS=$lt_save_ifs
10034 # Let DOS variable expansion print the short 8.3 style file name.
10035 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10036 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10037 done
10038 IFS=$lt_save_ifs
10039 # Convert to MSYS style.
10040 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10041 ;;
10042 cygwin*)
10043 # Convert to unix form, then to dos form, then back to unix form
10044 # but this time dos style (no spaces!) so that the unix form looks
10045 # like /cygdrive/c/PROGRA~1:/cygdr...
10046 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10047 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10048 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10049 ;;
10050 *)
10051 sys_lib_search_path_spec="$LIB"
10052 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10053 # It is most probably a Windows format PATH.
10054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10055 else
10056 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10057 fi
10058 # FIXME: find the short name or the path components, as spaces are
10059 # common. (e.g. "Program Files" -> "PROGRA~1")
10060 ;;
10061 esac
10062
10063 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10064 postinstall_cmds='base_file=`basename \${file}`~
10065 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10066 dldir=$destdir/`dirname \$dlpath`~
10067 test -d \$dldir || mkdir -p \$dldir~
10068 $install_prog $dir/$dlname \$dldir/$dlname'
10069 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10070 dlpath=$dir/\$dldll~
10071 $RM \$dlpath'
10072 shlibpath_overrides_runpath=yes
10073 dynamic_linker='Win32 link.exe'
10074 ;;
10075
10076 *)
10077 # Assume MSVC wrapper
10078 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10079 dynamic_linker='Win32 ld.exe'
10080 ;;
10081 esac
10082 # FIXME: first we should search . and the directory the executable is in
10083 shlibpath_var=PATH
10084 ;;
10085
10086 darwin* | rhapsody*)
10087 dynamic_linker="$host_os dyld"
10088 version_type=darwin
10089 need_lib_prefix=no
10090 need_version=no
10091 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10092 soname_spec='${libname}${release}${major}$shared_ext'
10093 shlibpath_overrides_runpath=yes
10094 shlibpath_var=DYLD_LIBRARY_PATH
10095 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10096
10097 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10099 ;;
10100
10101 dgux*)
10102 version_type=linux # correct to gnu/linux during the next big refactor
10103 need_lib_prefix=no
10104 need_version=no
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 ;;
10109
10110 freebsd* | dragonfly*)
10111 # DragonFly does not have aout. When/if they implement a new
10112 # versioning mechanism, adjust this.
10113 if test -x /usr/bin/objformat; then
10114 objformat=`/usr/bin/objformat`
10115 else
10116 case $host_os in
10117 freebsd[23].*) objformat=aout ;;
10118 *) objformat=elf ;;
10119 esac
10120 fi
10121 version_type=freebsd-$objformat
10122 case $version_type in
10123 freebsd-elf*)
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10125 need_version=no
10126 need_lib_prefix=no
10127 ;;
10128 freebsd-*)
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10130 need_version=yes
10131 ;;
10132 esac
10133 shlibpath_var=LD_LIBRARY_PATH
10134 case $host_os in
10135 freebsd2.*)
10136 shlibpath_overrides_runpath=yes
10137 ;;
10138 freebsd3.[01]* | freebsdelf3.[01]*)
10139 shlibpath_overrides_runpath=yes
10140 hardcode_into_libs=yes
10141 ;;
10142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10144 shlibpath_overrides_runpath=no
10145 hardcode_into_libs=yes
10146 ;;
10147 *) # from 4.6 on, and DragonFly
10148 shlibpath_overrides_runpath=yes
10149 hardcode_into_libs=yes
10150 ;;
10151 esac
10152 ;;
10153
10154 haiku*)
10155 version_type=linux # correct to gnu/linux during the next big refactor
10156 need_lib_prefix=no
10157 need_version=no
10158 dynamic_linker="$host_os runtime_loader"
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 shlibpath_var=LIBRARY_PATH
10162 shlibpath_overrides_runpath=yes
10163 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10164 hardcode_into_libs=yes
10165 ;;
10166
10167 hpux9* | hpux10* | hpux11*)
10168 # Give a soname corresponding to the major version so that dld.sl refuses to
10169 # link against other versions.
10170 version_type=sunos
10171 need_lib_prefix=no
10172 need_version=no
10173 case $host_cpu in
10174 ia64*)
10175 shrext_cmds='.so'
10176 hardcode_into_libs=yes
10177 dynamic_linker="$host_os dld.so"
10178 shlibpath_var=LD_LIBRARY_PATH
10179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 if test "X$HPUX_IA64_MODE" = X32; then
10183 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10184 else
10185 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10186 fi
10187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10188 ;;
10189 hppa*64*)
10190 shrext_cmds='.sl'
10191 hardcode_into_libs=yes
10192 dynamic_linker="$host_os dld.sl"
10193 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10199 ;;
10200 *)
10201 shrext_cmds='.sl'
10202 dynamic_linker="$host_os dld.sl"
10203 shlibpath_var=SHLIB_PATH
10204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 ;;
10208 esac
10209 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10210 postinstall_cmds='chmod 555 $lib'
10211 # or fails outright, so override atomically:
10212 install_override_mode=555
10213 ;;
10214
10215 interix[3-9]*)
10216 version_type=linux # correct to gnu/linux during the next big refactor
10217 need_lib_prefix=no
10218 need_version=no
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10222 shlibpath_var=LD_LIBRARY_PATH
10223 shlibpath_overrides_runpath=no
10224 hardcode_into_libs=yes
10225 ;;
10226
10227 irix5* | irix6* | nonstopux*)
10228 case $host_os in
10229 nonstopux*) version_type=nonstopux ;;
10230 *)
10231 if test "$lt_cv_prog_gnu_ld" = yes; then
10232 version_type=linux # correct to gnu/linux during the next big refactor
10233 else
10234 version_type=irix
10235 fi ;;
10236 esac
10237 need_lib_prefix=no
10238 need_version=no
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10241 case $host_os in
10242 irix5* | nonstopux*)
10243 libsuff= shlibsuff=
10244 ;;
10245 *)
10246 case $LD in # libtool.m4 will add one of these switches to LD
10247 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10248 libsuff= shlibsuff= libmagic=32-bit;;
10249 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10250 libsuff=32 shlibsuff=N32 libmagic=N32;;
10251 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10252 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10253 *) libsuff= shlibsuff= libmagic=never-match;;
10254 esac
10255 ;;
10256 esac
10257 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10258 shlibpath_overrides_runpath=no
10259 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10260 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10261 hardcode_into_libs=yes
10262 ;;
10263
10264 # No shared lib support for Linux oldld, aout, or coff.
10265 linux*oldld* | linux*aout* | linux*coff*)
10266 dynamic_linker=no
10267 ;;
10268
10269 # This must be glibc/ELF.
10270 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10271 version_type=linux # correct to gnu/linux during the next big refactor
10272 need_lib_prefix=no
10273 need_version=no
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=no
10279
10280 # Some binutils ld are patched to set DT_RUNPATH
10281 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 lt_cv_shlibpath_overrides_runpath=no
10285 save_LDFLAGS=$LDFLAGS
10286 save_libdir=$libdir
10287 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10288 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10291
10292 int
10293 main ()
10294 {
10295
10296 ;
10297 return 0;
10298 }
10299 _ACEOF
10300 if ac_fn_c_try_link "$LINENO"; then :
10301 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10302 lt_cv_shlibpath_overrides_runpath=yes
10303 fi
10304 fi
10305 rm -f core conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10307 LDFLAGS=$save_LDFLAGS
10308 libdir=$save_libdir
10309
10310 fi
10311
10312 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10313
10314 # This implies no fast_install, which is unacceptable.
10315 # Some rework will be needed to allow for fast_install
10316 # before this can be enabled.
10317 hardcode_into_libs=yes
10318
10319 # Append ld.so.conf contents to the search path
10320 if test -f /etc/ld.so.conf; then
10321 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' ' '`
10322 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10323 fi
10324
10325 # We used to test for /lib/ld.so.1 and disable shared libraries on
10326 # powerpc, because MkLinux only supported shared libraries with the
10327 # GNU dynamic linker. Since this was broken with cross compilers,
10328 # most powerpc-linux boxes support dynamic linking these days and
10329 # people can always --disable-shared, the test was removed, and we
10330 # assume the GNU/Linux dynamic linker is in use.
10331 dynamic_linker='GNU/Linux ld.so'
10332 ;;
10333
10334 netbsdelf*-gnu)
10335 version_type=linux
10336 need_lib_prefix=no
10337 need_version=no
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 shlibpath_overrides_runpath=no
10342 hardcode_into_libs=yes
10343 dynamic_linker='NetBSD ld.elf_so'
10344 ;;
10345
10346 netbsd*)
10347 version_type=sunos
10348 need_lib_prefix=no
10349 need_version=no
10350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10353 dynamic_linker='NetBSD (a.out) ld.so'
10354 else
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 dynamic_linker='NetBSD ld.elf_so'
10358 fi
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10362 ;;
10363
10364 newsos6)
10365 version_type=linux # correct to gnu/linux during the next big refactor
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=yes
10369 ;;
10370
10371 *nto* | *qnx*)
10372 version_type=qnx
10373 need_lib_prefix=no
10374 need_version=no
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=no
10379 hardcode_into_libs=yes
10380 dynamic_linker='ldqnx.so'
10381 ;;
10382
10383 openbsd*)
10384 version_type=sunos
10385 sys_lib_dlsearch_path_spec="/usr/lib"
10386 need_lib_prefix=no
10387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10388 case $host_os in
10389 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10390 *) need_version=no ;;
10391 esac
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10396 case $host_os in
10397 openbsd2.[89] | openbsd2.[89].*)
10398 shlibpath_overrides_runpath=no
10399 ;;
10400 *)
10401 shlibpath_overrides_runpath=yes
10402 ;;
10403 esac
10404 else
10405 shlibpath_overrides_runpath=yes
10406 fi
10407 ;;
10408
10409 os2*)
10410 libname_spec='$name'
10411 shrext_cmds=".dll"
10412 need_lib_prefix=no
10413 library_names_spec='$libname${shared_ext} $libname.a'
10414 dynamic_linker='OS/2 ld.exe'
10415 shlibpath_var=LIBPATH
10416 ;;
10417
10418 osf3* | osf4* | osf5*)
10419 version_type=osf
10420 need_lib_prefix=no
10421 need_version=no
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 shlibpath_var=LD_LIBRARY_PATH
10425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10427 ;;
10428
10429 rdos*)
10430 dynamic_linker=no
10431 ;;
10432
10433 solaris*)
10434 version_type=linux # correct to gnu/linux during the next big refactor
10435 need_lib_prefix=no
10436 need_version=no
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=yes
10441 hardcode_into_libs=yes
10442 # ldd complains unless libraries are executable
10443 postinstall_cmds='chmod +x $lib'
10444 ;;
10445
10446 sunos4*)
10447 version_type=sunos
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=yes
10452 if test "$with_gnu_ld" = yes; then
10453 need_lib_prefix=no
10454 fi
10455 need_version=yes
10456 ;;
10457
10458 sysv4 | sysv4.3*)
10459 version_type=linux # correct to gnu/linux during the next big refactor
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 case $host_vendor in
10464 sni)
10465 shlibpath_overrides_runpath=no
10466 need_lib_prefix=no
10467 runpath_var=LD_RUN_PATH
10468 ;;
10469 siemens)
10470 need_lib_prefix=no
10471 ;;
10472 motorola)
10473 need_lib_prefix=no
10474 need_version=no
10475 shlibpath_overrides_runpath=no
10476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10477 ;;
10478 esac
10479 ;;
10480
10481 sysv4*MP*)
10482 if test -d /usr/nec ;then
10483 version_type=linux # correct to gnu/linux during the next big refactor
10484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10485 soname_spec='$libname${shared_ext}.$major'
10486 shlibpath_var=LD_LIBRARY_PATH
10487 fi
10488 ;;
10489
10490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10491 version_type=freebsd-elf
10492 need_lib_prefix=no
10493 need_version=no
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes
10498 hardcode_into_libs=yes
10499 if test "$with_gnu_ld" = yes; then
10500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10501 else
10502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10503 case $host_os in
10504 sco3.2v5*)
10505 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10506 ;;
10507 esac
10508 fi
10509 sys_lib_dlsearch_path_spec='/usr/lib'
10510 ;;
10511
10512 tpf*)
10513 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10514 version_type=linux # correct to gnu/linux during the next big refactor
10515 need_lib_prefix=no
10516 need_version=no
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=no
10520 hardcode_into_libs=yes
10521 ;;
10522
10523 uts4*)
10524 version_type=linux # correct to gnu/linux during the next big refactor
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 ;;
10529
10530 *)
10531 dynamic_linker=no
10532 ;;
10533 esac
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10535 $as_echo "$dynamic_linker" >&6; }
10536 test "$dynamic_linker" = no && can_build_shared=no
10537
10538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10539 if test "$GCC" = yes; then
10540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10541 fi
10542
10543 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10544 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10545 fi
10546 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10547 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10548 fi
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10642 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10643 hardcode_action=
10644 if test -n "$hardcode_libdir_flag_spec" ||
10645 test -n "$runpath_var" ||
10646 test "X$hardcode_automatic" = "Xyes" ; then
10647
10648 # We can hardcode non-existent directories.
10649 if test "$hardcode_direct" != no &&
10650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10651 # have to relink, otherwise we might link with an installed library
10652 # when we should be linking with a yet-to-be-installed one
10653 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10654 test "$hardcode_minus_L" != no; then
10655 # Linking always hardcodes the temporary library directory.
10656 hardcode_action=relink
10657 else
10658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10659 hardcode_action=immediate
10660 fi
10661 else
10662 # We cannot hardcode anything, or else we can only hardcode existing
10663 # directories.
10664 hardcode_action=unsupported
10665 fi
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10667 $as_echo "$hardcode_action" >&6; }
10668
10669 if test "$hardcode_action" = relink ||
10670 test "$inherit_rpath" = yes; then
10671 # Fast installation is not supported
10672 enable_fast_install=no
10673 elif test "$shlibpath_overrides_runpath" = yes ||
10674 test "$enable_shared" = no; then
10675 # Fast installation is not necessary
10676 enable_fast_install=needless
10677 fi
10678
10679
10680
10681
10682
10683
10684 if test "x$enable_dlopen" != xyes; then
10685 enable_dlopen=unknown
10686 enable_dlopen_self=unknown
10687 enable_dlopen_self_static=unknown
10688 else
10689 lt_cv_dlopen=no
10690 lt_cv_dlopen_libs=
10691
10692 case $host_os in
10693 beos*)
10694 lt_cv_dlopen="load_add_on"
10695 lt_cv_dlopen_libs=
10696 lt_cv_dlopen_self=yes
10697 ;;
10698
10699 mingw* | pw32* | cegcc*)
10700 lt_cv_dlopen="LoadLibrary"
10701 lt_cv_dlopen_libs=
10702 ;;
10703
10704 cygwin*)
10705 lt_cv_dlopen="dlopen"
10706 lt_cv_dlopen_libs=
10707 ;;
10708
10709 darwin*)
10710 # if libdl is installed we need to link against it
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10713 if ${ac_cv_lib_dl_dlopen+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 ac_check_lib_save_LIBS=$LIBS
10717 LIBS="-ldl $LIBS"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10724 #ifdef __cplusplus
10725 extern "C"
10726 #endif
10727 char dlopen ();
10728 int
10729 main ()
10730 {
10731 return dlopen ();
10732 ;
10733 return 0;
10734 }
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 ac_cv_lib_dl_dlopen=yes
10738 else
10739 ac_cv_lib_dl_dlopen=no
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10744 fi
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10747 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10749 else
10750
10751 lt_cv_dlopen="dyld"
10752 lt_cv_dlopen_libs=
10753 lt_cv_dlopen_self=yes
10754
10755 fi
10756
10757 ;;
10758
10759 *)
10760 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10761 if test "x$ac_cv_func_shl_load" = xyes; then :
10762 lt_cv_dlopen="shl_load"
10763 else
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10765 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10766 if ${ac_cv_lib_dld_shl_load+:} false; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 ac_check_lib_save_LIBS=$LIBS
10770 LIBS="-ldld $LIBS"
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773
10774 /* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 char shl_load ();
10781 int
10782 main ()
10783 {
10784 return shl_load ();
10785 ;
10786 return 0;
10787 }
10788 _ACEOF
10789 if ac_fn_c_try_link "$LINENO"; then :
10790 ac_cv_lib_dld_shl_load=yes
10791 else
10792 ac_cv_lib_dld_shl_load=no
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10796 LIBS=$ac_check_lib_save_LIBS
10797 fi
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10799 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10800 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10801 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10802 else
10803 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10804 if test "x$ac_cv_func_dlopen" = xyes; then :
10805 lt_cv_dlopen="dlopen"
10806 else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10808 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10809 if ${ac_cv_lib_dl_dlopen+:} false; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-ldl $LIBS"
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10816
10817 /* Override any GCC internal prototype to avoid an error.
10818 Use char because int might match the return type of a GCC
10819 builtin and then its argument prototype would still apply. */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 char dlopen ();
10824 int
10825 main ()
10826 {
10827 return dlopen ();
10828 ;
10829 return 0;
10830 }
10831 _ACEOF
10832 if ac_fn_c_try_link "$LINENO"; then :
10833 ac_cv_lib_dl_dlopen=yes
10834 else
10835 ac_cv_lib_dl_dlopen=no
10836 fi
10837 rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839 LIBS=$ac_check_lib_save_LIBS
10840 fi
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10842 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10843 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10845 else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10847 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10848 if ${ac_cv_lib_svld_dlopen+:} false; then :
10849 $as_echo_n "(cached) " >&6
10850 else
10851 ac_check_lib_save_LIBS=$LIBS
10852 LIBS="-lsvld $LIBS"
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10855
10856 /* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 char dlopen ();
10863 int
10864 main ()
10865 {
10866 return dlopen ();
10867 ;
10868 return 0;
10869 }
10870 _ACEOF
10871 if ac_fn_c_try_link "$LINENO"; then :
10872 ac_cv_lib_svld_dlopen=yes
10873 else
10874 ac_cv_lib_svld_dlopen=no
10875 fi
10876 rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10878 LIBS=$ac_check_lib_save_LIBS
10879 fi
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10881 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10882 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10883 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10886 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10887 if ${ac_cv_lib_dld_dld_link+:} false; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 ac_check_lib_save_LIBS=$LIBS
10891 LIBS="-ldld $LIBS"
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10894
10895 /* Override any GCC internal prototype to avoid an error.
10896 Use char because int might match the return type of a GCC
10897 builtin and then its argument prototype would still apply. */
10898 #ifdef __cplusplus
10899 extern "C"
10900 #endif
10901 char dld_link ();
10902 int
10903 main ()
10904 {
10905 return dld_link ();
10906 ;
10907 return 0;
10908 }
10909 _ACEOF
10910 if ac_fn_c_try_link "$LINENO"; then :
10911 ac_cv_lib_dld_dld_link=yes
10912 else
10913 ac_cv_lib_dld_dld_link=no
10914 fi
10915 rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_lib_save_LIBS
10918 fi
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10920 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10921 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10922 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10923 fi
10924
10925
10926 fi
10927
10928
10929 fi
10930
10931
10932 fi
10933
10934
10935 fi
10936
10937
10938 fi
10939
10940 ;;
10941 esac
10942
10943 if test "x$lt_cv_dlopen" != xno; then
10944 enable_dlopen=yes
10945 else
10946 enable_dlopen=no
10947 fi
10948
10949 case $lt_cv_dlopen in
10950 dlopen)
10951 save_CPPFLAGS="$CPPFLAGS"
10952 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10953
10954 save_LDFLAGS="$LDFLAGS"
10955 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10956
10957 save_LIBS="$LIBS"
10958 LIBS="$lt_cv_dlopen_libs $LIBS"
10959
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10961 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10962 if ${lt_cv_dlopen_self+:} false; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 if test "$cross_compiling" = yes; then :
10966 lt_cv_dlopen_self=cross
10967 else
10968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10969 lt_status=$lt_dlunknown
10970 cat > conftest.$ac_ext <<_LT_EOF
10971 #line $LINENO "configure"
10972 #include "confdefs.h"
10973
10974 #if HAVE_DLFCN_H
10975 #include <dlfcn.h>
10976 #endif
10977
10978 #include <stdio.h>
10979
10980 #ifdef RTLD_GLOBAL
10981 # define LT_DLGLOBAL RTLD_GLOBAL
10982 #else
10983 # ifdef DL_GLOBAL
10984 # define LT_DLGLOBAL DL_GLOBAL
10985 # else
10986 # define LT_DLGLOBAL 0
10987 # endif
10988 #endif
10989
10990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10991 find out it does not work in some platform. */
10992 #ifndef LT_DLLAZY_OR_NOW
10993 # ifdef RTLD_LAZY
10994 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10995 # else
10996 # ifdef DL_LAZY
10997 # define LT_DLLAZY_OR_NOW DL_LAZY
10998 # else
10999 # ifdef RTLD_NOW
11000 # define LT_DLLAZY_OR_NOW RTLD_NOW
11001 # else
11002 # ifdef DL_NOW
11003 # define LT_DLLAZY_OR_NOW DL_NOW
11004 # else
11005 # define LT_DLLAZY_OR_NOW 0
11006 # endif
11007 # endif
11008 # endif
11009 # endif
11010 #endif
11011
11012 /* When -fvisbility=hidden is used, assume the code has been annotated
11013 correspondingly for the symbols needed. */
11014 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11015 int fnord () __attribute__((visibility("default")));
11016 #endif
11017
11018 int fnord () { return 42; }
11019 int main ()
11020 {
11021 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11022 int status = $lt_dlunknown;
11023
11024 if (self)
11025 {
11026 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11027 else
11028 {
11029 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11030 else puts (dlerror ());
11031 }
11032 /* dlclose (self); */
11033 }
11034 else
11035 puts (dlerror ());
11036
11037 return status;
11038 }
11039 _LT_EOF
11040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11041 (eval $ac_link) 2>&5
11042 ac_status=$?
11043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11044 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11045 (./conftest; exit; ) >&5 2>/dev/null
11046 lt_status=$?
11047 case x$lt_status in
11048 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11049 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11050 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11051 esac
11052 else :
11053 # compilation failed
11054 lt_cv_dlopen_self=no
11055 fi
11056 fi
11057 rm -fr conftest*
11058
11059
11060 fi
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11062 $as_echo "$lt_cv_dlopen_self" >&6; }
11063
11064 if test "x$lt_cv_dlopen_self" = xyes; then
11065 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11067 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11068 if ${lt_cv_dlopen_self_static+:} false; then :
11069 $as_echo_n "(cached) " >&6
11070 else
11071 if test "$cross_compiling" = yes; then :
11072 lt_cv_dlopen_self_static=cross
11073 else
11074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11075 lt_status=$lt_dlunknown
11076 cat > conftest.$ac_ext <<_LT_EOF
11077 #line $LINENO "configure"
11078 #include "confdefs.h"
11079
11080 #if HAVE_DLFCN_H
11081 #include <dlfcn.h>
11082 #endif
11083
11084 #include <stdio.h>
11085
11086 #ifdef RTLD_GLOBAL
11087 # define LT_DLGLOBAL RTLD_GLOBAL
11088 #else
11089 # ifdef DL_GLOBAL
11090 # define LT_DLGLOBAL DL_GLOBAL
11091 # else
11092 # define LT_DLGLOBAL 0
11093 # endif
11094 #endif
11095
11096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11097 find out it does not work in some platform. */
11098 #ifndef LT_DLLAZY_OR_NOW
11099 # ifdef RTLD_LAZY
11100 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11101 # else
11102 # ifdef DL_LAZY
11103 # define LT_DLLAZY_OR_NOW DL_LAZY
11104 # else
11105 # ifdef RTLD_NOW
11106 # define LT_DLLAZY_OR_NOW RTLD_NOW
11107 # else
11108 # ifdef DL_NOW
11109 # define LT_DLLAZY_OR_NOW DL_NOW
11110 # else
11111 # define LT_DLLAZY_OR_NOW 0
11112 # endif
11113 # endif
11114 # endif
11115 # endif
11116 #endif
11117
11118 /* When -fvisbility=hidden is used, assume the code has been annotated
11119 correspondingly for the symbols needed. */
11120 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11121 int fnord () __attribute__((visibility("default")));
11122 #endif
11123
11124 int fnord () { return 42; }
11125 int main ()
11126 {
11127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11128 int status = $lt_dlunknown;
11129
11130 if (self)
11131 {
11132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11133 else
11134 {
11135 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11136 else puts (dlerror ());
11137 }
11138 /* dlclose (self); */
11139 }
11140 else
11141 puts (dlerror ());
11142
11143 return status;
11144 }
11145 _LT_EOF
11146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11147 (eval $ac_link) 2>&5
11148 ac_status=$?
11149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11150 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11151 (./conftest; exit; ) >&5 2>/dev/null
11152 lt_status=$?
11153 case x$lt_status in
11154 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11155 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11156 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11157 esac
11158 else :
11159 # compilation failed
11160 lt_cv_dlopen_self_static=no
11161 fi
11162 fi
11163 rm -fr conftest*
11164
11165
11166 fi
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11168 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11169 fi
11170
11171 CPPFLAGS="$save_CPPFLAGS"
11172 LDFLAGS="$save_LDFLAGS"
11173 LIBS="$save_LIBS"
11174 ;;
11175 esac
11176
11177 case $lt_cv_dlopen_self in
11178 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11179 *) enable_dlopen_self=unknown ;;
11180 esac
11181
11182 case $lt_cv_dlopen_self_static in
11183 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11184 *) enable_dlopen_self_static=unknown ;;
11185 esac
11186 fi
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204 striplib=
11205 old_striplib=
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11207 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11208 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212 $as_echo "yes" >&6; }
11213 else
11214 # FIXME - insert some real tests, host_os isn't really good enough
11215 case $host_os in
11216 darwin*)
11217 if test -n "$STRIP" ; then
11218 striplib="$STRIP -x"
11219 old_striplib="$STRIP -S"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11221 $as_echo "yes" >&6; }
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11225 fi
11226 ;;
11227 *)
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11230 ;;
11231 esac
11232 fi
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245 # Report which library types will actually be built
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11247 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11249 $as_echo "$can_build_shared" >&6; }
11250
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11252 $as_echo_n "checking whether to build shared libraries... " >&6; }
11253 test "$can_build_shared" = "no" && enable_shared=no
11254
11255 # On AIX, shared libraries and static libraries use the same namespace, and
11256 # are all built from PIC.
11257 case $host_os in
11258 aix3*)
11259 test "$enable_shared" = yes && enable_static=no
11260 if test -n "$RANLIB"; then
11261 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11262 postinstall_cmds='$RANLIB $lib'
11263 fi
11264 ;;
11265
11266 aix[4-9]*)
11267 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11268 test "$enable_shared" = yes && enable_static=no
11269 fi
11270 ;;
11271 esac
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11273 $as_echo "$enable_shared" >&6; }
11274
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11276 $as_echo_n "checking whether to build static libraries... " >&6; }
11277 # Make sure either enable_shared or enable_static is yes.
11278 test "$enable_shared" = yes || enable_static=yes
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11280 $as_echo "$enable_static" >&6; }
11281
11282
11283
11284
11285 fi
11286 ac_ext=c
11287 ac_cpp='$CPP $CPPFLAGS'
11288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11291
11292 CC="$lt_save_CC"
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308 ac_config_commands="$ac_config_commands libtool"
11309
11310
11311
11312
11313 # Only expand once:
11314
11315
11316
11317 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
11318 if test "x$ac_cv_func_gethostbyaddr_r" = xyes; then :
11319 $as_echo "#define HAS_GETHOSTBYADDR_R 1" >>confdefs.h
11320
11321 fi
11322
11323 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
11324 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
11325 $as_echo "#define HAS_GETHOSTBYNAME_R 1" >>confdefs.h
11326
11327 fi
11328
11329 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
11330 if test "x$ac_cv_func_poll" = xyes; then :
11331 $as_echo "#define HAS_POLL 1" >>confdefs.h
11332
11333 fi
11334
11335 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
11336 if test "x$ac_cv_func_fcntl" = xyes; then :
11337 $as_echo "#define HAS_FCNTL 1" >>confdefs.h
11338
11339 fi
11340
11341 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
11342 if test "x$ac_cv_func_inet_pton" = xyes; then :
11343 $as_echo "#define HAS_INET_PTON 1" >>confdefs.h
11344
11345 fi
11346
11347 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
11348 if test "x$ac_cv_func_inet_ntop" = xyes; then :
11349 $as_echo "#define HAS_INET_NTOP 1" >>confdefs.h
11350
11351 fi
11352
11353
11354 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "#include <sys/socket.h>
11355 "
11356 if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes; then :
11357 $as_echo "#define HAS_MSGHDR_FLAGS 1" >>confdefs.h
11358
11359 fi
11360
11361
11362 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11363 #include <sys/socket.h>
11364
11365 "
11366 if test "x$ac_cv_type_socklen_t" = xyes; then :
11367 $as_echo "#define HAS_SOCKLEN_T 1" >>confdefs.h
11368
11369 fi
11370
11371
11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11374 #include </usr/include/sys/socket.h>
11375
11376 _ACEOF
11377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11378 $EGREP "MSG_MAXIOVLEN" >/dev/null 2>&1; then :
11379 $as_echo "#define ENET_BUFFER_MAXIMUM MSG_MAXIOVLEN" >>confdefs.h
11380
11381 fi
11382 rm -f conftest*
11383
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11386 #include <socket.h>
11387
11388 _ACEOF
11389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11390 $EGREP "MSG_MAXIOVLEN" >/dev/null 2>&1; then :
11391 $as_echo "#define ENET_BUFFER_MAXIMUM MSG_MAXIOVLEN" >>confdefs.h
11392
11393 fi
11394 rm -f conftest*
11395
11396
11397 ac_config_files="$ac_config_files Makefile libenet.pc"
11398
11399 cat >confcache <<\_ACEOF
11400 # This file is a shell script that caches the results of configure
11401 # tests run on this system so they can be shared between configure
11402 # scripts and configure runs, see configure's option --config-cache.
11403 # It is not useful on other systems. If it contains results you don't
11404 # want to keep, you may remove or edit it.
11405 #
11406 # config.status only pays attention to the cache file if you give it
11407 # the --recheck option to rerun configure.
11408 #
11409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11411 # following values.
11412
11413 _ACEOF
11414
11415 # The following way of writing the cache mishandles newlines in values,
11416 # but we know of no workaround that is simple, portable, and efficient.
11417 # So, we kill variables containing newlines.
11418 # Ultrix sh set writes to stderr and can't be redirected directly,
11419 # and sets the high bit in the cache file unless we assign to the vars.
11420 (
11421 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11422 eval ac_val=\$$ac_var
11423 case $ac_val in #(
11424 *${as_nl}*)
11425 case $ac_var in #(
11426 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11428 esac
11429 case $ac_var in #(
11430 _ | IFS | as_nl) ;; #(
11431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11432 *) { eval $ac_var=; unset $ac_var;} ;;
11433 esac ;;
11434 esac
11435 done
11436
11437 (set) 2>&1 |
11438 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11439 *${as_nl}ac_space=\ *)
11440 # `set' does not quote correctly, so add quotes: double-quote
11441 # substitution turns \\\\ into \\, and sed turns \\ into \.
11442 sed -n \
11443 "s/'/'\\\\''/g;
11444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11445 ;; #(
11446 *)
11447 # `set' quotes correctly as required by POSIX, so do not add quotes.
11448 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11449 ;;
11450 esac |
11451 sort
11452 ) |
11453 sed '
11454 /^ac_cv_env_/b end
11455 t clear
11456 :clear
11457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11458 t end
11459 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11460 :end' >>confcache
11461 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11462 if test -w "$cache_file"; then
11463 if test "x$cache_file" != "x/dev/null"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11465 $as_echo "$as_me: updating cache $cache_file" >&6;}
11466 if test ! -f "$cache_file" || test -h "$cache_file"; then
11467 cat confcache >"$cache_file"
11468 else
11469 case $cache_file in #(
11470 */* | ?:*)
11471 mv -f confcache "$cache_file"$$ &&
11472 mv -f "$cache_file"$$ "$cache_file" ;; #(
11473 *)
11474 mv -f confcache "$cache_file" ;;
11475 esac
11476 fi
11477 fi
11478 else
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11480 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11481 fi
11482 fi
11483 rm -f confcache
11484
11485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11486 # Let make expand exec_prefix.
11487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11488
11489 # Transform confdefs.h into DEFS.
11490 # Protect against shell expansion while executing Makefile rules.
11491 # Protect against Makefile macro expansion.
11492 #
11493 # If the first sed substitution is executed (which looks for macros that
11494 # take arguments), then branch to the quote section. Otherwise,
11495 # look for a macro that doesn't take arguments.
11496 ac_script='
11497 :mline
11498 /\\$/{
11499 N
11500 s,\\\n,,
11501 b mline
11502 }
11503 t clear
11504 :clear
11505 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11506 t quote
11507 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11508 t quote
11509 b any
11510 :quote
11511 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11512 s/\[/\\&/g
11513 s/\]/\\&/g
11514 s/\$/$$/g
11515 H
11516 :any
11517 ${
11518 g
11519 s/^\n//
11520 s/\n/ /g
11521 p
11522 }
11523 '
11524 DEFS=`sed -n "$ac_script" confdefs.h`
11525
11526
11527 ac_libobjs=
11528 ac_ltlibobjs=
11529 U=
11530 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11531 # 1. Remove the extension, and $U if already installed.
11532 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11533 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11534 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11535 # will be set to the directory where LIBOBJS objects are built.
11536 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11537 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11538 done
11539 LIBOBJS=$ac_libobjs
11540
11541 LTLIBOBJS=$ac_ltlibobjs
11542
11543
11544 if test -n "$EXEEXT"; then
11545 am__EXEEXT_TRUE=
11546 am__EXEEXT_FALSE='#'
11547 else
11548 am__EXEEXT_TRUE='#'
11549 am__EXEEXT_FALSE=
11550 fi
11551
11552 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11553 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11555 fi
11556 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11557 as_fn_error $? "conditional \"AMDEP\" was never defined.
11558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11559 fi
11560 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11561 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11563 fi
11564
11565 : "${CONFIG_STATUS=./config.status}"
11566 ac_write_fail=0
11567 ac_clean_files_save=$ac_clean_files
11568 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11571 as_write_fail=0
11572 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11573 #! $SHELL
11574 # Generated by $as_me.
11575 # Run this file to recreate the current configuration.
11576 # Compiler output produced by configure, useful for debugging
11577 # configure, is in config.log if it exists.
11578
11579 debug=false
11580 ac_cs_recheck=false
11581 ac_cs_silent=false
11582
11583 SHELL=\${CONFIG_SHELL-$SHELL}
11584 export SHELL
11585 _ASEOF
11586 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11587 ## -------------------- ##
11588 ## M4sh Initialization. ##
11589 ## -------------------- ##
11590
11591 # Be more Bourne compatible
11592 DUALCASE=1; export DUALCASE # for MKS sh
11593 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11594 emulate sh
11595 NULLCMD=:
11596 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11597 # is contrary to our usage. Disable this feature.
11598 alias -g '${1+"$@"}'='"$@"'
11599 setopt NO_GLOB_SUBST
11600 else
11601 case `(set -o) 2>/dev/null` in #(
11602 *posix*) :
11603 set -o posix ;; #(
11604 *) :
11605 ;;
11606 esac
11607 fi
11608
11609
11610 as_nl='
11611 '
11612 export as_nl
11613 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11614 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11617 # Prefer a ksh shell builtin over an external printf program on Solaris,
11618 # but without wasting forks for bash or zsh.
11619 if test -z "$BASH_VERSION$ZSH_VERSION" \
11620 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11621 as_echo='print -r --'
11622 as_echo_n='print -rn --'
11623 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11624 as_echo='printf %s\n'
11625 as_echo_n='printf %s'
11626 else
11627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11628 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11629 as_echo_n='/usr/ucb/echo -n'
11630 else
11631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11632 as_echo_n_body='eval
11633 arg=$1;
11634 case $arg in #(
11635 *"$as_nl"*)
11636 expr "X$arg" : "X\\(.*\\)$as_nl";
11637 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11638 esac;
11639 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11640 '
11641 export as_echo_n_body
11642 as_echo_n='sh -c $as_echo_n_body as_echo'
11643 fi
11644 export as_echo_body
11645 as_echo='sh -c $as_echo_body as_echo'
11646 fi
11647
11648 # The user is always right.
11649 if test "${PATH_SEPARATOR+set}" != set; then
11650 PATH_SEPARATOR=:
11651 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11652 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11653 PATH_SEPARATOR=';'
11654 }
11655 fi
11656
11657
11658 # IFS
11659 # We need space, tab and new line, in precisely that order. Quoting is
11660 # there to prevent editors from complaining about space-tab.
11661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11662 # splitting by setting IFS to empty value.)
11663 IFS=" "" $as_nl"
11664
11665 # Find who we are. Look in the path if we contain no directory separator.
11666 as_myself=
11667 case $0 in #((
11668 *[\\/]* ) as_myself=$0 ;;
11669 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670 for as_dir in $PATH
11671 do
11672 IFS=$as_save_IFS
11673 test -z "$as_dir" && as_dir=.
11674 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11675 done
11676 IFS=$as_save_IFS
11677
11678 ;;
11679 esac
11680 # We did not find ourselves, most probably we were run as `sh COMMAND'
11681 # in which case we are not to be found in the path.
11682 if test "x$as_myself" = x; then
11683 as_myself=$0
11684 fi
11685 if test ! -f "$as_myself"; then
11686 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11687 exit 1
11688 fi
11689
11690 # Unset variables that we do not need and which cause bugs (e.g. in
11691 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11692 # suppresses any "Segmentation fault" message there. '((' could
11693 # trigger a bug in pdksh 5.2.14.
11694 for as_var in BASH_ENV ENV MAIL MAILPATH
11695 do eval test x\${$as_var+set} = xset \
11696 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11697 done
11698 PS1='$ '
11699 PS2='> '
11700 PS4='+ '
11701
11702 # NLS nuisances.
11703 LC_ALL=C
11704 export LC_ALL
11705 LANGUAGE=C
11706 export LANGUAGE
11707
11708 # CDPATH.
11709 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11710
11711
11712 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11713 # ----------------------------------------
11714 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11715 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11716 # script with STATUS, using 1 if that was 0.
11717 as_fn_error ()
11718 {
11719 as_status=$1; test $as_status -eq 0 && as_status=1
11720 if test "$4"; then
11721 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11722 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11723 fi
11724 $as_echo "$as_me: error: $2" >&2
11725 as_fn_exit $as_status
11726 } # as_fn_error
11727
11728
11729 # as_fn_set_status STATUS
11730 # -----------------------
11731 # Set $? to STATUS, without forking.
11732 as_fn_set_status ()
11733 {
11734 return $1
11735 } # as_fn_set_status
11736
11737 # as_fn_exit STATUS
11738 # -----------------
11739 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11740 as_fn_exit ()
11741 {
11742 set +e
11743 as_fn_set_status $1
11744 exit $1
11745 } # as_fn_exit
11746
11747 # as_fn_unset VAR
11748 # ---------------
11749 # Portably unset VAR.
11750 as_fn_unset ()
11751 {
11752 { eval $1=; unset $1;}
11753 }
11754 as_unset=as_fn_unset
11755 # as_fn_append VAR VALUE
11756 # ----------------------
11757 # Append the text in VALUE to the end of the definition contained in VAR. Take
11758 # advantage of any shell optimizations that allow amortized linear growth over
11759 # repeated appends, instead of the typical quadratic growth present in naive
11760 # implementations.
11761 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11762 eval 'as_fn_append ()
11763 {
11764 eval $1+=\$2
11765 }'
11766 else
11767 as_fn_append ()
11768 {
11769 eval $1=\$$1\$2
11770 }
11771 fi # as_fn_append
11772
11773 # as_fn_arith ARG...
11774 # ------------------
11775 # Perform arithmetic evaluation on the ARGs, and store the result in the
11776 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11777 # must be portable across $(()) and expr.
11778 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11779 eval 'as_fn_arith ()
11780 {
11781 as_val=$(( $* ))
11782 }'
11783 else
11784 as_fn_arith ()
11785 {
11786 as_val=`expr "$@" || test $? -eq 1`
11787 }
11788 fi # as_fn_arith
11789
11790
11791 if expr a : '\(a\)' >/dev/null 2>&1 &&
11792 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11793 as_expr=expr
11794 else
11795 as_expr=false
11796 fi
11797
11798 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11799 as_basename=basename
11800 else
11801 as_basename=false
11802 fi
11803
11804 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11805 as_dirname=dirname
11806 else
11807 as_dirname=false
11808 fi
11809
11810 as_me=`$as_basename -- "$0" ||
11811 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11812 X"$0" : 'X\(//\)$' \| \
11813 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11814 $as_echo X/"$0" |
11815 sed '/^.*\/\([^/][^/]*\)\/*$/{
11816 s//\1/
11817 q
11818 }
11819 /^X\/\(\/\/\)$/{
11820 s//\1/
11821 q
11822 }
11823 /^X\/\(\/\).*/{
11824 s//\1/
11825 q
11826 }
11827 s/.*/./; q'`
11828
11829 # Avoid depending upon Character Ranges.
11830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11833 as_cr_digits='0123456789'
11834 as_cr_alnum=$as_cr_Letters$as_cr_digits
11835
11836 ECHO_C= ECHO_N= ECHO_T=
11837 case `echo -n x` in #(((((
11838 -n*)
11839 case `echo 'xy\c'` in
11840 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11841 xy) ECHO_C='\c';;
11842 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11843 ECHO_T=' ';;
11844 esac;;
11845 *)
11846 ECHO_N='-n';;
11847 esac
11848
11849 rm -f conf$$ conf$$.exe conf$$.file
11850 if test -d conf$$.dir; then
11851 rm -f conf$$.dir/conf$$.file
11852 else
11853 rm -f conf$$.dir
11854 mkdir conf$$.dir 2>/dev/null
11855 fi
11856 if (echo >conf$$.file) 2>/dev/null; then
11857 if ln -s conf$$.file conf$$ 2>/dev/null; then
11858 as_ln_s='ln -s'
11859 # ... but there are two gotchas:
11860 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11861 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11862 # In both cases, we have to default to `cp -pR'.
11863 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11864 as_ln_s='cp -pR'
11865 elif ln conf$$.file conf$$ 2>/dev/null; then
11866 as_ln_s=ln
11867 else
11868 as_ln_s='cp -pR'
11869 fi
11870 else
11871 as_ln_s='cp -pR'
11872 fi
11873 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11874 rmdir conf$$.dir 2>/dev/null
11875
11876
11877 # as_fn_mkdir_p
11878 # -------------
11879 # Create "$as_dir" as a directory, including parents if necessary.
11880 as_fn_mkdir_p ()
11881 {
11882
11883 case $as_dir in #(
11884 -*) as_dir=./$as_dir;;
11885 esac
11886 test -d "$as_dir" || eval $as_mkdir_p || {
11887 as_dirs=
11888 while :; do
11889 case $as_dir in #(
11890 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11891 *) as_qdir=$as_dir;;
11892 esac
11893 as_dirs="'$as_qdir' $as_dirs"
11894 as_dir=`$as_dirname -- "$as_dir" ||
11895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11896 X"$as_dir" : 'X\(//\)[^/]' \| \
11897 X"$as_dir" : 'X\(//\)$' \| \
11898 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11899 $as_echo X"$as_dir" |
11900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11901 s//\1/
11902 q
11903 }
11904 /^X\(\/\/\)[^/].*/{
11905 s//\1/
11906 q
11907 }
11908 /^X\(\/\/\)$/{
11909 s//\1/
11910 q
11911 }
11912 /^X\(\/\).*/{
11913 s//\1/
11914 q
11915 }
11916 s/.*/./; q'`
11917 test -d "$as_dir" && break
11918 done
11919 test -z "$as_dirs" || eval "mkdir $as_dirs"
11920 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11921
11922
11923 } # as_fn_mkdir_p
11924 if mkdir -p . 2>/dev/null; then
11925 as_mkdir_p='mkdir -p "$as_dir"'
11926 else
11927 test -d ./-p && rmdir ./-p
11928 as_mkdir_p=false
11929 fi
11930
11931
11932 # as_fn_executable_p FILE
11933 # -----------------------
11934 # Test if FILE is an executable regular file.
11935 as_fn_executable_p ()
11936 {
11937 test -f "$1" && test -x "$1"
11938 } # as_fn_executable_p
11939 as_test_x='test -x'
11940 as_executable_p=as_fn_executable_p
11941
11942 # Sed expression to map a string onto a valid CPP name.
11943 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11944
11945 # Sed expression to map a string onto a valid variable name.
11946 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11947
11948
11949 exec 6>&1
11950 ## ----------------------------------- ##
11951 ## Main body of $CONFIG_STATUS script. ##
11952 ## ----------------------------------- ##
11953 _ASEOF
11954 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11955
11956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11957 # Save the log message, to keep $0 and so on meaningful, and to
11958 # report actual input values of CONFIG_FILES etc. instead of their
11959 # values after options handling.
11960 ac_log="
11961 This file was extended by libenet $as_me 1.3.6, which was
11962 generated by GNU Autoconf 2.69. Invocation command line was
11963
11964 CONFIG_FILES = $CONFIG_FILES
11965 CONFIG_HEADERS = $CONFIG_HEADERS
11966 CONFIG_LINKS = $CONFIG_LINKS
11967 CONFIG_COMMANDS = $CONFIG_COMMANDS
11968 $ $0 $@
11969
11970 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11971 "
11972
11973 _ACEOF
11974
11975 case $ac_config_files in *"
11976 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11977 esac
11978
11979
11980
11981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11982 # Files that config.status was made for.
11983 config_files="$ac_config_files"
11984 config_commands="$ac_config_commands"
11985
11986 _ACEOF
11987
11988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11989 ac_cs_usage="\
11990 \`$as_me' instantiates files and other configuration actions
11991 from templates according to the current configuration. Unless the files
11992 and actions are specified as TAGs, all are instantiated by default.
11993
11994 Usage: $0 [OPTION]... [TAG]...
11995
11996 -h, --help print this help, then exit
11997 -V, --version print version number and configuration settings, then exit
11998 --config print configuration, then exit
11999 -q, --quiet, --silent
12000 do not print progress messages
12001 -d, --debug don't remove temporary files
12002 --recheck update $as_me by reconfiguring in the same conditions
12003 --file=FILE[:TEMPLATE]
12004 instantiate the configuration file FILE
12005
12006 Configuration files:
12007 $config_files
12008
12009 Configuration commands:
12010 $config_commands
12011
12012 Report bugs to the package provider."
12013
12014 _ACEOF
12015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12016 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12017 ac_cs_version="\\
12018 libenet config.status 1.3.6
12019 configured by $0, generated by GNU Autoconf 2.69,
12020 with options \\"\$ac_cs_config\\"
12021
12022 Copyright (C) 2012 Free Software Foundation, Inc.
12023 This config.status script is free software; the Free Software Foundation
12024 gives unlimited permission to copy, distribute and modify it."
12025
12026 ac_pwd='$ac_pwd'
12027 srcdir='$srcdir'
12028 INSTALL='$INSTALL'
12029 MKDIR_P='$MKDIR_P'
12030 AWK='$AWK'
12031 test -n "\$AWK" || AWK=awk
12032 _ACEOF
12033
12034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12035 # The default lists apply if the user does not specify any file.
12036 ac_need_defaults=:
12037 while test $# != 0
12038 do
12039 case $1 in
12040 --*=?*)
12041 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12042 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12043 ac_shift=:
12044 ;;
12045 --*=)
12046 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12047 ac_optarg=
12048 ac_shift=:
12049 ;;
12050 *)
12051 ac_option=$1
12052 ac_optarg=$2
12053 ac_shift=shift
12054 ;;
12055 esac
12056
12057 case $ac_option in
12058 # Handling of the options.
12059 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12060 ac_cs_recheck=: ;;
12061 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12062 $as_echo "$ac_cs_version"; exit ;;
12063 --config | --confi | --conf | --con | --co | --c )
12064 $as_echo "$ac_cs_config"; exit ;;
12065 --debug | --debu | --deb | --de | --d | -d )
12066 debug=: ;;
12067 --file | --fil | --fi | --f )
12068 $ac_shift
12069 case $ac_optarg in
12070 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12071 '') as_fn_error $? "missing file argument" ;;
12072 esac
12073 as_fn_append CONFIG_FILES " '$ac_optarg'"
12074 ac_need_defaults=false;;
12075 --he | --h | --help | --hel | -h )
12076 $as_echo "$ac_cs_usage"; exit ;;
12077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12078 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12079 ac_cs_silent=: ;;
12080
12081 # This is an error.
12082 -*) as_fn_error $? "unrecognized option: \`$1'
12083 Try \`$0 --help' for more information." ;;
12084
12085 *) as_fn_append ac_config_targets " $1"
12086 ac_need_defaults=false ;;
12087
12088 esac
12089 shift
12090 done
12091
12092 ac_configure_extra_args=
12093
12094 if $ac_cs_silent; then
12095 exec 6>/dev/null
12096 ac_configure_extra_args="$ac_configure_extra_args --silent"
12097 fi
12098
12099 _ACEOF
12100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12101 if \$ac_cs_recheck; then
12102 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12103 shift
12104 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12105 CONFIG_SHELL='$SHELL'
12106 export CONFIG_SHELL
12107 exec "\$@"
12108 fi
12109
12110 _ACEOF
12111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12112 exec 5>>config.log
12113 {
12114 echo
12115 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12116 ## Running $as_me. ##
12117 _ASBOX
12118 $as_echo "$ac_log"
12119 } >&5
12120
12121 _ACEOF
12122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12123 #
12124 # INIT-COMMANDS
12125 #
12126 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12127
12128
12129 # The HP-UX ksh and POSIX shell print the target directory to stdout
12130 # if CDPATH is set.
12131 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12132
12133 sed_quote_subst='$sed_quote_subst'
12134 double_quote_subst='$double_quote_subst'
12135 delay_variable_subst='$delay_variable_subst'
12136 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12137 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12138 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12139 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12140 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12141 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12142 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12143 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12144 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12145 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12146 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12147 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12148 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12149 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12150 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12151 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12152 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12153 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12154 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12155 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12156 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12157 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12158 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12159 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12160 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12161 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12162 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12163 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12164 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12165 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12166 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12167 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12168 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12169 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12170 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12171 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12172 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12173 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12174 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12175 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12176 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12177 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12178 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12179 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12180 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12181 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12182 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12183 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12184 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12185 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12186 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12187 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12188 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12189 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12190 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12191 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12192 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"`'
12193 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12194 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12195 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12196 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12197 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12198 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12199 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12200 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12201 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12202 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12203 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12204 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12205 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12206 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12207 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12208 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12209 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12210 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12211 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12212 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12213 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12214 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12215 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12216 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12217 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12218 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12219 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12220 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12221 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12222 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12223 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12224 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12225 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12226 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12227 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12228 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12229 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12230 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12231 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12232 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12233 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12234 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12235 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12236 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12237 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12238 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12239 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12240 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12241 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12242 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12243 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12244 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12245 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12246 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12247 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12248 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12249 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12250 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12251 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12252 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12253 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12254 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12255 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12256 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12257 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12258 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12259 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12260 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12261 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12262 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12263 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12264 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12265 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12266
12267 LTCC='$LTCC'
12268 LTCFLAGS='$LTCFLAGS'
12269 compiler='$compiler_DEFAULT'
12270
12271 # A function that is used when there is no print builtin or printf.
12272 func_fallback_echo ()
12273 {
12274 eval 'cat <<_LTECHO_EOF
12275 \$1
12276 _LTECHO_EOF'
12277 }
12278
12279 # Quote evaled strings.
12280 for var in SHELL \
12281 ECHO \
12282 PATH_SEPARATOR \
12283 SED \
12284 GREP \
12285 EGREP \
12286 FGREP \
12287 LD \
12288 NM \
12289 LN_S \
12290 lt_SP2NL \
12291 lt_NL2SP \
12292 reload_flag \
12293 OBJDUMP \
12294 deplibs_check_method \
12295 file_magic_cmd \
12296 file_magic_glob \
12297 want_nocaseglob \
12298 DLLTOOL \
12299 sharedlib_from_linklib_cmd \
12300 AR \
12301 AR_FLAGS \
12302 archiver_list_spec \
12303 STRIP \
12304 RANLIB \
12305 CC \
12306 CFLAGS \
12307 compiler \
12308 lt_cv_sys_global_symbol_pipe \
12309 lt_cv_sys_global_symbol_to_cdecl \
12310 lt_cv_sys_global_symbol_to_c_name_address \
12311 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12312 nm_file_list_spec \
12313 lt_prog_compiler_no_builtin_flag \
12314 lt_prog_compiler_pic \
12315 lt_prog_compiler_wl \
12316 lt_prog_compiler_static \
12317 lt_cv_prog_compiler_c_o \
12318 need_locks \
12319 MANIFEST_TOOL \
12320 DSYMUTIL \
12321 NMEDIT \
12322 LIPO \
12323 OTOOL \
12324 OTOOL64 \
12325 shrext_cmds \
12326 export_dynamic_flag_spec \
12327 whole_archive_flag_spec \
12328 compiler_needs_object \
12329 with_gnu_ld \
12330 allow_undefined_flag \
12331 no_undefined_flag \
12332 hardcode_libdir_flag_spec \
12333 hardcode_libdir_separator \
12334 exclude_expsyms \
12335 include_expsyms \
12336 file_list_spec \
12337 variables_saved_for_relink \
12338 libname_spec \
12339 library_names_spec \
12340 soname_spec \
12341 install_override_mode \
12342 finish_eval \
12343 old_striplib \
12344 striplib; do
12345 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12346 *[\\\\\\\`\\"\\\$]*)
12347 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12348 ;;
12349 *)
12350 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12351 ;;
12352 esac
12353 done
12354
12355 # Double-quote double-evaled strings.
12356 for var in reload_cmds \
12357 old_postinstall_cmds \
12358 old_postuninstall_cmds \
12359 old_archive_cmds \
12360 extract_expsyms_cmds \
12361 old_archive_from_new_cmds \
12362 old_archive_from_expsyms_cmds \
12363 archive_cmds \
12364 archive_expsym_cmds \
12365 module_cmds \
12366 module_expsym_cmds \
12367 export_symbols_cmds \
12368 prelink_cmds \
12369 postlink_cmds \
12370 postinstall_cmds \
12371 postuninstall_cmds \
12372 finish_cmds \
12373 sys_lib_search_path_spec \
12374 sys_lib_dlsearch_path_spec; do
12375 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12376 *[\\\\\\\`\\"\\\$]*)
12377 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12378 ;;
12379 *)
12380 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12381 ;;
12382 esac
12383 done
12384
12385 ac_aux_dir='$ac_aux_dir'
12386 xsi_shell='$xsi_shell'
12387 lt_shell_append='$lt_shell_append'
12388
12389 # See if we are running on zsh, and set the options which allow our
12390 # commands through without removal of \ escapes INIT.
12391 if test -n "\${ZSH_VERSION+set}" ; then
12392 setopt NO_GLOB_SUBST
12393 fi
12394
12395
12396 PACKAGE='$PACKAGE'
12397 VERSION='$VERSION'
12398 TIMESTAMP='$TIMESTAMP'
12399 RM='$RM'
12400 ofile='$ofile'
12401
12402
12403
12404
12405 _ACEOF
12406
12407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408
12409 # Handling of arguments.
12410 for ac_config_target in $ac_config_targets
12411 do
12412 case $ac_config_target in
12413 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12414 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12415 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12416 "libenet.pc") CONFIG_FILES="$CONFIG_FILES libenet.pc" ;;
12417
12418 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12419 esac
12420 done
12421
12422
12423 # If the user did not use the arguments to specify the items to instantiate,
12424 # then the envvar interface is used. Set only those that are not.
12425 # We use the long form for the default assignment because of an extremely
12426 # bizarre bug on SunOS 4.1.3.
12427 if $ac_need_defaults; then
12428 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12429 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12430 fi
12431
12432 # Have a temporary directory for convenience. Make it in the build tree
12433 # simply because there is no reason against having it here, and in addition,
12434 # creating and moving files from /tmp can sometimes cause problems.
12435 # Hook for its removal unless debugging.
12436 # Note that there is a small window in which the directory will not be cleaned:
12437 # after its creation but before its name has been assigned to `$tmp'.
12438 $debug ||
12439 {
12440 tmp= ac_tmp=
12441 trap 'exit_status=$?
12442 : "${ac_tmp:=$tmp}"
12443 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12444 ' 0
12445 trap 'as_fn_exit 1' 1 2 13 15
12446 }
12447 # Create a (secure) tmp directory for tmp files.
12448
12449 {
12450 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12451 test -d "$tmp"
12452 } ||
12453 {
12454 tmp=./conf$$-$RANDOM
12455 (umask 077 && mkdir "$tmp")
12456 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12457 ac_tmp=$tmp
12458
12459 # Set up the scripts for CONFIG_FILES section.
12460 # No need to generate them if there are no CONFIG_FILES.
12461 # This happens for instance with `./config.status config.h'.
12462 if test -n "$CONFIG_FILES"; then
12463
12464
12465 ac_cr=`echo X | tr X '\015'`
12466 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12467 # But we know of no other shell where ac_cr would be empty at this
12468 # point, so we can use a bashism as a fallback.
12469 if test "x$ac_cr" = x; then
12470 eval ac_cr=\$\'\\r\'
12471 fi
12472 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12473 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12474 ac_cs_awk_cr='\\r'
12475 else
12476 ac_cs_awk_cr=$ac_cr
12477 fi
12478
12479 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12480 _ACEOF
12481
12482
12483 {
12484 echo "cat >conf$$subs.awk <<_ACEOF" &&
12485 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12486 echo "_ACEOF"
12487 } >conf$$subs.sh ||
12488 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12489 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12490 ac_delim='%!_!# '
12491 for ac_last_try in false false false false false :; do
12492 . ./conf$$subs.sh ||
12493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12494
12495 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12496 if test $ac_delim_n = $ac_delim_num; then
12497 break
12498 elif $ac_last_try; then
12499 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12500 else
12501 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12502 fi
12503 done
12504 rm -f conf$$subs.sh
12505
12506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12507 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12508 _ACEOF
12509 sed -n '
12510 h
12511 s/^/S["/; s/!.*/"]=/
12512 p
12513 g
12514 s/^[^!]*!//
12515 :repl
12516 t repl
12517 s/'"$ac_delim"'$//
12518 t delim
12519 :nl
12520 h
12521 s/\(.\{148\}\)..*/\1/
12522 t more1
12523 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12524 p
12525 n
12526 b repl
12527 :more1
12528 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12529 p
12530 g
12531 s/.\{148\}//
12532 t nl
12533 :delim
12534 h
12535 s/\(.\{148\}\)..*/\1/
12536 t more2
12537 s/["\\]/\\&/g; s/^/"/; s/$/"/
12538 p
12539 b
12540 :more2
12541 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12542 p
12543 g
12544 s/.\{148\}//
12545 t delim
12546 ' <conf$$subs.awk | sed '
12547 /^[^""]/{
12548 N
12549 s/\n//
12550 }
12551 ' >>$CONFIG_STATUS || ac_write_fail=1
12552 rm -f conf$$subs.awk
12553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12554 _ACAWK
12555 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12556 for (key in S) S_is_set[key] = 1
12557 FS = ""
12558
12559 }
12560 {
12561 line = $ 0
12562 nfields = split(line, field, "@")
12563 substed = 0
12564 len = length(field[1])
12565 for (i = 2; i < nfields; i++) {
12566 key = field[i]
12567 keylen = length(key)
12568 if (S_is_set[key]) {
12569 value = S[key]
12570 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12571 len += length(value) + length(field[++i])
12572 substed = 1
12573 } else
12574 len += 1 + keylen
12575 }
12576
12577 print line
12578 }
12579
12580 _ACAWK
12581 _ACEOF
12582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12583 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12584 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12585 else
12586 cat
12587 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12588 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12589 _ACEOF
12590
12591 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12592 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12593 # trailing colons and then remove the whole line if VPATH becomes empty
12594 # (actually we leave an empty line to preserve line numbers).
12595 if test "x$srcdir" = x.; then
12596 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12597 h
12598 s///
12599 s/^/:/
12600 s/[ ]*$/:/
12601 s/:\$(srcdir):/:/g
12602 s/:\${srcdir}:/:/g
12603 s/:@srcdir@:/:/g
12604 s/^:*//
12605 s/:*$//
12606 x
12607 s/\(=[ ]*\).*/\1/
12608 G
12609 s/\n//
12610 s/^[^=]*=[ ]*$//
12611 }'
12612 fi
12613
12614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12615 fi # test -n "$CONFIG_FILES"
12616
12617
12618 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12619 shift
12620 for ac_tag
12621 do
12622 case $ac_tag in
12623 :[FHLC]) ac_mode=$ac_tag; continue;;
12624 esac
12625 case $ac_mode$ac_tag in
12626 :[FHL]*:*);;
12627 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12628 :[FH]-) ac_tag=-:-;;
12629 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12630 esac
12631 ac_save_IFS=$IFS
12632 IFS=:
12633 set x $ac_tag
12634 IFS=$ac_save_IFS
12635 shift
12636 ac_file=$1
12637 shift
12638
12639 case $ac_mode in
12640 :L) ac_source=$1;;
12641 :[FH])
12642 ac_file_inputs=
12643 for ac_f
12644 do
12645 case $ac_f in
12646 -) ac_f="$ac_tmp/stdin";;
12647 *) # Look for the file first in the build tree, then in the source tree
12648 # (if the path is not absolute). The absolute path cannot be DOS-style,
12649 # because $ac_f cannot contain `:'.
12650 test -f "$ac_f" ||
12651 case $ac_f in
12652 [\\/$]*) false;;
12653 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12654 esac ||
12655 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12656 esac
12657 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12658 as_fn_append ac_file_inputs " '$ac_f'"
12659 done
12660
12661 # Let's still pretend it is `configure' which instantiates (i.e., don't
12662 # use $as_me), people would be surprised to read:
12663 # /* config.h. Generated by config.status. */
12664 configure_input='Generated from '`
12665 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12666 `' by configure.'
12667 if test x"$ac_file" != x-; then
12668 configure_input="$ac_file. $configure_input"
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12670 $as_echo "$as_me: creating $ac_file" >&6;}
12671 fi
12672 # Neutralize special characters interpreted by sed in replacement strings.
12673 case $configure_input in #(
12674 *\&* | *\|* | *\\* )
12675 ac_sed_conf_input=`$as_echo "$configure_input" |
12676 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12677 *) ac_sed_conf_input=$configure_input;;
12678 esac
12679
12680 case $ac_tag in
12681 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12682 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12683 esac
12684 ;;
12685 esac
12686
12687 ac_dir=`$as_dirname -- "$ac_file" ||
12688 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12689 X"$ac_file" : 'X\(//\)[^/]' \| \
12690 X"$ac_file" : 'X\(//\)$' \| \
12691 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12692 $as_echo X"$ac_file" |
12693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12694 s//\1/
12695 q
12696 }
12697 /^X\(\/\/\)[^/].*/{
12698 s//\1/
12699 q
12700 }
12701 /^X\(\/\/\)$/{
12702 s//\1/
12703 q
12704 }
12705 /^X\(\/\).*/{
12706 s//\1/
12707 q
12708 }
12709 s/.*/./; q'`
12710 as_dir="$ac_dir"; as_fn_mkdir_p
12711 ac_builddir=.
12712
12713 case "$ac_dir" in
12714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12715 *)
12716 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12717 # A ".." for each directory in $ac_dir_suffix.
12718 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12719 case $ac_top_builddir_sub in
12720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12722 esac ;;
12723 esac
12724 ac_abs_top_builddir=$ac_pwd
12725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12726 # for backward compatibility:
12727 ac_top_builddir=$ac_top_build_prefix
12728
12729 case $srcdir in
12730 .) # We are building in place.
12731 ac_srcdir=.
12732 ac_top_srcdir=$ac_top_builddir_sub
12733 ac_abs_top_srcdir=$ac_pwd ;;
12734 [\\/]* | ?:[\\/]* ) # Absolute name.
12735 ac_srcdir=$srcdir$ac_dir_suffix;
12736 ac_top_srcdir=$srcdir
12737 ac_abs_top_srcdir=$srcdir ;;
12738 *) # Relative name.
12739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12740 ac_top_srcdir=$ac_top_build_prefix$srcdir
12741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12742 esac
12743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12744
12745
12746 case $ac_mode in
12747 :F)
12748 #
12749 # CONFIG_FILE
12750 #
12751
12752 case $INSTALL in
12753 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12754 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12755 esac
12756 ac_MKDIR_P=$MKDIR_P
12757 case $MKDIR_P in
12758 [\\/$]* | ?:[\\/]* ) ;;
12759 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12760 esac
12761 _ACEOF
12762
12763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12764 # If the template does not know about datarootdir, expand it.
12765 # FIXME: This hack should be removed a few years after 2.60.
12766 ac_datarootdir_hack=; ac_datarootdir_seen=
12767 ac_sed_dataroot='
12768 /datarootdir/ {
12769 p
12770 q
12771 }
12772 /@datadir@/p
12773 /@docdir@/p
12774 /@infodir@/p
12775 /@localedir@/p
12776 /@mandir@/p'
12777 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12778 *datarootdir*) ac_datarootdir_seen=yes;;
12779 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12781 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12782 _ACEOF
12783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12784 ac_datarootdir_hack='
12785 s&@datadir@&$datadir&g
12786 s&@docdir@&$docdir&g
12787 s&@infodir@&$infodir&g
12788 s&@localedir@&$localedir&g
12789 s&@mandir@&$mandir&g
12790 s&\\\${datarootdir}&$datarootdir&g' ;;
12791 esac
12792 _ACEOF
12793
12794 # Neutralize VPATH when `$srcdir' = `.'.
12795 # Shell code in configure.ac might set extrasub.
12796 # FIXME: do we really want to maintain this feature?
12797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12798 ac_sed_extra="$ac_vpsub
12799 $extrasub
12800 _ACEOF
12801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12802 :t
12803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12804 s|@configure_input@|$ac_sed_conf_input|;t t
12805 s&@top_builddir@&$ac_top_builddir_sub&;t t
12806 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12807 s&@srcdir@&$ac_srcdir&;t t
12808 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12809 s&@top_srcdir@&$ac_top_srcdir&;t t
12810 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12811 s&@builddir@&$ac_builddir&;t t
12812 s&@abs_builddir@&$ac_abs_builddir&;t t
12813 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12814 s&@INSTALL@&$ac_INSTALL&;t t
12815 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12816 $ac_datarootdir_hack
12817 "
12818 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12819 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12820
12821 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12822 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12823 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12824 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12826 which seems to be undefined. Please make sure it is defined" >&5
12827 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12828 which seems to be undefined. Please make sure it is defined" >&2;}
12829
12830 rm -f "$ac_tmp/stdin"
12831 case $ac_file in
12832 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12833 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12834 esac \
12835 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12836 ;;
12837
12838
12839 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12840 $as_echo "$as_me: executing $ac_file commands" >&6;}
12841 ;;
12842 esac
12843
12844
12845 case $ac_file$ac_mode in
12846 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12847 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12848 # are listed without --file. Let's play safe and only enable the eval
12849 # if we detect the quoting.
12850 case $CONFIG_FILES in
12851 *\'*) eval set x "$CONFIG_FILES" ;;
12852 *) set x $CONFIG_FILES ;;
12853 esac
12854 shift
12855 for mf
12856 do
12857 # Strip MF so we end up with the name of the file.
12858 mf=`echo "$mf" | sed -e 's/:.*$//'`
12859 # Check whether this is an Automake generated Makefile or not.
12860 # We used to match only the files named `Makefile.in', but
12861 # some people rename them; so instead we look at the file content.
12862 # Grep'ing the first line is not enough: some people post-process
12863 # each Makefile.in and add a new line on top of each file to say so.
12864 # Grep'ing the whole file is not good either: AIX grep has a line
12865 # limit of 2048, but all sed's we know have understand at least 4000.
12866 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12867 dirpart=`$as_dirname -- "$mf" ||
12868 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12869 X"$mf" : 'X\(//\)[^/]' \| \
12870 X"$mf" : 'X\(//\)$' \| \
12871 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12872 $as_echo X"$mf" |
12873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12874 s//\1/
12875 q
12876 }
12877 /^X\(\/\/\)[^/].*/{
12878 s//\1/
12879 q
12880 }
12881 /^X\(\/\/\)$/{
12882 s//\1/
12883 q
12884 }
12885 /^X\(\/\).*/{
12886 s//\1/
12887 q
12888 }
12889 s/.*/./; q'`
12890 else
12891 continue
12892 fi
12893 # Extract the definition of DEPDIR, am__include, and am__quote
12894 # from the Makefile without running `make'.
12895 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12896 test -z "$DEPDIR" && continue
12897 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12898 test -z "am__include" && continue
12899 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12900 # When using ansi2knr, U may be empty or an underscore; expand it
12901 U=`sed -n 's/^U = //p' < "$mf"`
12902 # Find all dependency output files, they are included files with
12903 # $(DEPDIR) in their names. We invoke sed twice because it is the
12904 # simplest approach to changing $(DEPDIR) to its actual value in the
12905 # expansion.
12906 for file in `sed -n "
12907 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12908 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12909 # Make sure the directory exists.
12910 test -f "$dirpart/$file" && continue
12911 fdir=`$as_dirname -- "$file" ||
12912 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12913 X"$file" : 'X\(//\)[^/]' \| \
12914 X"$file" : 'X\(//\)$' \| \
12915 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12916 $as_echo X"$file" |
12917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12918 s//\1/
12919 q
12920 }
12921 /^X\(\/\/\)[^/].*/{
12922 s//\1/
12923 q
12924 }
12925 /^X\(\/\/\)$/{
12926 s//\1/
12927 q
12928 }
12929 /^X\(\/\).*/{
12930 s//\1/
12931 q
12932 }
12933 s/.*/./; q'`
12934 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12935 # echo "creating $dirpart/$file"
12936 echo '# dummy' > "$dirpart/$file"
12937 done
12938 done
12939 }
12940 ;;
12941 "libtool":C)
12942
12943 # See if we are running on zsh, and set the options which allow our
12944 # commands through without removal of \ escapes.
12945 if test -n "${ZSH_VERSION+set}" ; then
12946 setopt NO_GLOB_SUBST
12947 fi
12948
12949 cfgfile="${ofile}T"
12950 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12951 $RM "$cfgfile"
12952
12953 cat <<_LT_EOF >> "$cfgfile"
12954 #! $SHELL
12955
12956 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12957 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12958 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12959 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12960 #
12961 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12962 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
12963 # Foundation, Inc.
12964 # Written by Gordon Matzigkeit, 1996
12965 #
12966 # This file is part of GNU Libtool.
12967 #
12968 # GNU Libtool is free software; you can redistribute it and/or
12969 # modify it under the terms of the GNU General Public License as
12970 # published by the Free Software Foundation; either version 2 of
12971 # the License, or (at your option) any later version.
12972 #
12973 # As a special exception to the GNU General Public License,
12974 # if you distribute this file as part of a program or library that
12975 # is built using GNU Libtool, you may include this file under the
12976 # same distribution terms that you use for the rest of that program.
12977 #
12978 # GNU Libtool is distributed in the hope that it will be useful,
12979 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12980 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12981 # GNU General Public License for more details.
12982 #
12983 # You should have received a copy of the GNU General Public License
12984 # along with GNU Libtool; see the file COPYING. If not, a copy
12985 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12986 # obtained by writing to the Free Software Foundation, Inc.,
12987 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12988
12989
12990 # The names of the tagged configurations supported by this script.
12991 available_tags=""
12992
12993 # ### BEGIN LIBTOOL CONFIG
12994
12995 # Which release of libtool.m4 was used?
12996 macro_version=$macro_version
12997 macro_revision=$macro_revision
12998
12999 # Whether or not to build shared libraries.
13000 build_libtool_libs=$enable_shared
13001
13002 # Whether or not to build static libraries.
13003 build_old_libs=$enable_static
13004
13005 # What type of objects to build.
13006 pic_mode=$pic_mode
13007
13008 # Whether or not to optimize for fast installation.
13009 fast_install=$enable_fast_install
13010
13011 # Shell to use when invoking shell scripts.
13012 SHELL=$lt_SHELL
13013
13014 # An echo program that protects backslashes.
13015 ECHO=$lt_ECHO
13016
13017 # The PATH separator for the build system.
13018 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13019
13020 # The host system.
13021 host_alias=$host_alias
13022 host=$host
13023 host_os=$host_os
13024
13025 # The build system.
13026 build_alias=$build_alias
13027 build=$build
13028 build_os=$build_os
13029
13030 # A sed program that does not truncate output.
13031 SED=$lt_SED
13032
13033 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13034 Xsed="\$SED -e 1s/^X//"
13035
13036 # A grep program that handles long lines.
13037 GREP=$lt_GREP
13038
13039 # An ERE matcher.
13040 EGREP=$lt_EGREP
13041
13042 # A literal string matcher.
13043 FGREP=$lt_FGREP
13044
13045 # A BSD- or MS-compatible name lister.
13046 NM=$lt_NM
13047
13048 # Whether we need soft or hard links.
13049 LN_S=$lt_LN_S
13050
13051 # What is the maximum length of a command?
13052 max_cmd_len=$max_cmd_len
13053
13054 # Object file suffix (normally "o").
13055 objext=$ac_objext
13056
13057 # Executable file suffix (normally "").
13058 exeext=$exeext
13059
13060 # whether the shell understands "unset".
13061 lt_unset=$lt_unset
13062
13063 # turn spaces into newlines.
13064 SP2NL=$lt_lt_SP2NL
13065
13066 # turn newlines into spaces.
13067 NL2SP=$lt_lt_NL2SP
13068
13069 # convert \$build file names to \$host format.
13070 to_host_file_cmd=$lt_cv_to_host_file_cmd
13071
13072 # convert \$build files to toolchain format.
13073 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13074
13075 # An object symbol dumper.
13076 OBJDUMP=$lt_OBJDUMP
13077
13078 # Method to check whether dependent libraries are shared objects.
13079 deplibs_check_method=$lt_deplibs_check_method
13080
13081 # Command to use when deplibs_check_method = "file_magic".
13082 file_magic_cmd=$lt_file_magic_cmd
13083
13084 # How to find potential files when deplibs_check_method = "file_magic".
13085 file_magic_glob=$lt_file_magic_glob
13086
13087 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13088 want_nocaseglob=$lt_want_nocaseglob
13089
13090 # DLL creation program.
13091 DLLTOOL=$lt_DLLTOOL
13092
13093 # Command to associate shared and link libraries.
13094 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13095
13096 # The archiver.
13097 AR=$lt_AR
13098
13099 # Flags to create an archive.
13100 AR_FLAGS=$lt_AR_FLAGS
13101
13102 # How to feed a file listing to the archiver.
13103 archiver_list_spec=$lt_archiver_list_spec
13104
13105 # A symbol stripping program.
13106 STRIP=$lt_STRIP
13107
13108 # Commands used to install an old-style archive.
13109 RANLIB=$lt_RANLIB
13110 old_postinstall_cmds=$lt_old_postinstall_cmds
13111 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13112
13113 # Whether to use a lock for old archive extraction.
13114 lock_old_archive_extraction=$lock_old_archive_extraction
13115
13116 # A C compiler.
13117 LTCC=$lt_CC
13118
13119 # LTCC compiler flags.
13120 LTCFLAGS=$lt_CFLAGS
13121
13122 # Take the output of nm and produce a listing of raw symbols and C names.
13123 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13124
13125 # Transform the output of nm in a proper C declaration.
13126 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13127
13128 # Transform the output of nm in a C name address pair.
13129 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13130
13131 # Transform the output of nm in a C name address pair when lib prefix is needed.
13132 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13133
13134 # Specify filename containing input files for \$NM.
13135 nm_file_list_spec=$lt_nm_file_list_spec
13136
13137 # The root where to search for dependent libraries,and in which our libraries should be installed.
13138 lt_sysroot=$lt_sysroot
13139
13140 # The name of the directory that contains temporary libtool files.
13141 objdir=$objdir
13142
13143 # Used to examine libraries when file_magic_cmd begins with "file".
13144 MAGIC_CMD=$MAGIC_CMD
13145
13146 # Must we lock files when doing compilation?
13147 need_locks=$lt_need_locks
13148
13149 # Manifest tool.
13150 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13151
13152 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13153 DSYMUTIL=$lt_DSYMUTIL
13154
13155 # Tool to change global to local symbols on Mac OS X.
13156 NMEDIT=$lt_NMEDIT
13157
13158 # Tool to manipulate fat objects and archives on Mac OS X.
13159 LIPO=$lt_LIPO
13160
13161 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13162 OTOOL=$lt_OTOOL
13163
13164 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13165 OTOOL64=$lt_OTOOL64
13166
13167 # Old archive suffix (normally "a").
13168 libext=$libext
13169
13170 # Shared library suffix (normally ".so").
13171 shrext_cmds=$lt_shrext_cmds
13172
13173 # The commands to extract the exported symbol list from a shared archive.
13174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13175
13176 # Variables whose values should be saved in libtool wrapper scripts and
13177 # restored at link time.
13178 variables_saved_for_relink=$lt_variables_saved_for_relink
13179
13180 # Do we need the "lib" prefix for modules?
13181 need_lib_prefix=$need_lib_prefix
13182
13183 # Do we need a version for libraries?
13184 need_version=$need_version
13185
13186 # Library versioning type.
13187 version_type=$version_type
13188
13189 # Shared library runtime path variable.
13190 runpath_var=$runpath_var
13191
13192 # Shared library path variable.
13193 shlibpath_var=$shlibpath_var
13194
13195 # Is shlibpath searched before the hard-coded library search path?
13196 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13197
13198 # Format of library name prefix.
13199 libname_spec=$lt_libname_spec
13200
13201 # List of archive names. First name is the real one, the rest are links.
13202 # The last name is the one that the linker finds with -lNAME
13203 library_names_spec=$lt_library_names_spec
13204
13205 # The coded name of the library, if different from the real name.
13206 soname_spec=$lt_soname_spec
13207
13208 # Permission mode override for installation of shared libraries.
13209 install_override_mode=$lt_install_override_mode
13210
13211 # Command to use after installation of a shared archive.
13212 postinstall_cmds=$lt_postinstall_cmds
13213
13214 # Command to use after uninstallation of a shared archive.
13215 postuninstall_cmds=$lt_postuninstall_cmds
13216
13217 # Commands used to finish a libtool library installation in a directory.
13218 finish_cmds=$lt_finish_cmds
13219
13220 # As "finish_cmds", except a single script fragment to be evaled but
13221 # not shown.
13222 finish_eval=$lt_finish_eval
13223
13224 # Whether we should hardcode library paths into libraries.
13225 hardcode_into_libs=$hardcode_into_libs
13226
13227 # Compile-time system search path for libraries.
13228 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13229
13230 # Run-time system search path for libraries.
13231 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13232
13233 # Whether dlopen is supported.
13234 dlopen_support=$enable_dlopen
13235
13236 # Whether dlopen of programs is supported.
13237 dlopen_self=$enable_dlopen_self
13238
13239 # Whether dlopen of statically linked programs is supported.
13240 dlopen_self_static=$enable_dlopen_self_static
13241
13242 # Commands to strip libraries.
13243 old_striplib=$lt_old_striplib
13244 striplib=$lt_striplib
13245
13246
13247 # The linker used to build libraries.
13248 LD=$lt_LD
13249
13250 # How to create reloadable object files.
13251 reload_flag=$lt_reload_flag
13252 reload_cmds=$lt_reload_cmds
13253
13254 # Commands used to build an old-style archive.
13255 old_archive_cmds=$lt_old_archive_cmds
13256
13257 # A language specific compiler.
13258 CC=$lt_compiler
13259
13260 # Is the compiler the GNU compiler?
13261 with_gcc=$GCC
13262
13263 # Compiler flag to turn off builtin functions.
13264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13265
13266 # Additional compiler flags for building library objects.
13267 pic_flag=$lt_lt_prog_compiler_pic
13268
13269 # How to pass a linker flag through the compiler.
13270 wl=$lt_lt_prog_compiler_wl
13271
13272 # Compiler flag to prevent dynamic linking.
13273 link_static_flag=$lt_lt_prog_compiler_static
13274
13275 # Does compiler simultaneously support -c and -o options?
13276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13277
13278 # Whether or not to add -lc for building shared libraries.
13279 build_libtool_need_lc=$archive_cmds_need_lc
13280
13281 # Whether or not to disallow shared libs when runtime libs are static.
13282 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13283
13284 # Compiler flag to allow reflexive dlopens.
13285 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13286
13287 # Compiler flag to generate shared objects directly from archives.
13288 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13289
13290 # Whether the compiler copes with passing no objects directly.
13291 compiler_needs_object=$lt_compiler_needs_object
13292
13293 # Create an old-style archive from a shared archive.
13294 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13295
13296 # Create a temporary old-style archive to link instead of a shared archive.
13297 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13298
13299 # Commands used to build a shared archive.
13300 archive_cmds=$lt_archive_cmds
13301 archive_expsym_cmds=$lt_archive_expsym_cmds
13302
13303 # Commands used to build a loadable module if different from building
13304 # a shared archive.
13305 module_cmds=$lt_module_cmds
13306 module_expsym_cmds=$lt_module_expsym_cmds
13307
13308 # Whether we are building with GNU ld or not.
13309 with_gnu_ld=$lt_with_gnu_ld
13310
13311 # Flag that allows shared libraries with undefined symbols to be built.
13312 allow_undefined_flag=$lt_allow_undefined_flag
13313
13314 # Flag that enforces no undefined symbols.
13315 no_undefined_flag=$lt_no_undefined_flag
13316
13317 # Flag to hardcode \$libdir into a binary during linking.
13318 # This must work even if \$libdir does not exist
13319 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13320
13321 # Whether we need a single "-rpath" flag with a separated argument.
13322 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13323
13324 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13325 # DIR into the resulting binary.
13326 hardcode_direct=$hardcode_direct
13327
13328 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13329 # DIR into the resulting binary and the resulting library dependency is
13330 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13331 # library is relocated.
13332 hardcode_direct_absolute=$hardcode_direct_absolute
13333
13334 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13335 # into the resulting binary.
13336 hardcode_minus_L=$hardcode_minus_L
13337
13338 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13339 # into the resulting binary.
13340 hardcode_shlibpath_var=$hardcode_shlibpath_var
13341
13342 # Set to "yes" if building a shared library automatically hardcodes DIR
13343 # into the library and all subsequent libraries and executables linked
13344 # against it.
13345 hardcode_automatic=$hardcode_automatic
13346
13347 # Set to yes if linker adds runtime paths of dependent libraries
13348 # to runtime path list.
13349 inherit_rpath=$inherit_rpath
13350
13351 # Whether libtool must link a program against all its dependency libraries.
13352 link_all_deplibs=$link_all_deplibs
13353
13354 # Set to "yes" if exported symbols are required.
13355 always_export_symbols=$always_export_symbols
13356
13357 # The commands to list exported symbols.
13358 export_symbols_cmds=$lt_export_symbols_cmds
13359
13360 # Symbols that should not be listed in the preloaded symbols.
13361 exclude_expsyms=$lt_exclude_expsyms
13362
13363 # Symbols that must always be exported.
13364 include_expsyms=$lt_include_expsyms
13365
13366 # Commands necessary for linking programs (against libraries) with templates.
13367 prelink_cmds=$lt_prelink_cmds
13368
13369 # Commands necessary for finishing linking programs.
13370 postlink_cmds=$lt_postlink_cmds
13371
13372 # Specify filename containing input files.
13373 file_list_spec=$lt_file_list_spec
13374
13375 # How to hardcode a shared library path into an executable.
13376 hardcode_action=$hardcode_action
13377
13378 # ### END LIBTOOL CONFIG
13379
13380 _LT_EOF
13381
13382 case $host_os in
13383 aix3*)
13384 cat <<\_LT_EOF >> "$cfgfile"
13385 # AIX sometimes has problems with the GCC collect2 program. For some
13386 # reason, if we set the COLLECT_NAMES environment variable, the problems
13387 # vanish in a puff of smoke.
13388 if test "X${COLLECT_NAMES+set}" != Xset; then
13389 COLLECT_NAMES=
13390 export COLLECT_NAMES
13391 fi
13392 _LT_EOF
13393 ;;
13394 esac
13395
13396
13397 ltmain="$ac_aux_dir/ltmain.sh"
13398
13399
13400 # We use sed instead of cat because bash on DJGPP gets confused if
13401 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13402 # text mode, it properly converts lines to CR/LF. This bash problem
13403 # is reportedly fixed, but why not run on old versions too?
13404 sed '$q' "$ltmain" >> "$cfgfile" \
13405 || (rm -f "$cfgfile"; exit 1)
13406
13407 if test x"$xsi_shell" = xyes; then
13408 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13409 func_dirname ()\
13410 {\
13411 \ case ${1} in\
13412 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13413 \ * ) func_dirname_result="${3}" ;;\
13414 \ esac\
13415 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13416 && mv -f "$cfgfile.tmp" "$cfgfile" \
13417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13418 test 0 -eq $? || _lt_function_replace_fail=:
13419
13420
13421 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13422 func_basename ()\
13423 {\
13424 \ func_basename_result="${1##*/}"\
13425 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13426 && mv -f "$cfgfile.tmp" "$cfgfile" \
13427 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13428 test 0 -eq $? || _lt_function_replace_fail=:
13429
13430
13431 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13432 func_dirname_and_basename ()\
13433 {\
13434 \ case ${1} in\
13435 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13436 \ * ) func_dirname_result="${3}" ;;\
13437 \ esac\
13438 \ func_basename_result="${1##*/}"\
13439 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13440 && mv -f "$cfgfile.tmp" "$cfgfile" \
13441 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13442 test 0 -eq $? || _lt_function_replace_fail=:
13443
13444
13445 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13446 func_stripname ()\
13447 {\
13448 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13449 \ # positional parameters, so assign one to ordinary parameter first.\
13450 \ func_stripname_result=${3}\
13451 \ func_stripname_result=${func_stripname_result#"${1}"}\
13452 \ func_stripname_result=${func_stripname_result%"${2}"}\
13453 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13454 && mv -f "$cfgfile.tmp" "$cfgfile" \
13455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13456 test 0 -eq $? || _lt_function_replace_fail=:
13457
13458
13459 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13460 func_split_long_opt ()\
13461 {\
13462 \ func_split_long_opt_name=${1%%=*}\
13463 \ func_split_long_opt_arg=${1#*=}\
13464 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13465 && mv -f "$cfgfile.tmp" "$cfgfile" \
13466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13467 test 0 -eq $? || _lt_function_replace_fail=:
13468
13469
13470 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13471 func_split_short_opt ()\
13472 {\
13473 \ func_split_short_opt_arg=${1#??}\
13474 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13475 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13476 && mv -f "$cfgfile.tmp" "$cfgfile" \
13477 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13478 test 0 -eq $? || _lt_function_replace_fail=:
13479
13480
13481 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13482 func_lo2o ()\
13483 {\
13484 \ case ${1} in\
13485 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13486 \ *) func_lo2o_result=${1} ;;\
13487 \ esac\
13488 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13489 && mv -f "$cfgfile.tmp" "$cfgfile" \
13490 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13491 test 0 -eq $? || _lt_function_replace_fail=:
13492
13493
13494 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13495 func_xform ()\
13496 {\
13497 func_xform_result=${1%.*}.lo\
13498 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13499 && mv -f "$cfgfile.tmp" "$cfgfile" \
13500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13501 test 0 -eq $? || _lt_function_replace_fail=:
13502
13503
13504 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13505 func_arith ()\
13506 {\
13507 func_arith_result=$(( $* ))\
13508 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13509 && mv -f "$cfgfile.tmp" "$cfgfile" \
13510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13511 test 0 -eq $? || _lt_function_replace_fail=:
13512
13513
13514 sed -e '/^func_len ()$/,/^} # func_len /c\
13515 func_len ()\
13516 {\
13517 func_len_result=${#1}\
13518 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13519 && mv -f "$cfgfile.tmp" "$cfgfile" \
13520 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13521 test 0 -eq $? || _lt_function_replace_fail=:
13522
13523 fi
13524
13525 if test x"$lt_shell_append" = xyes; then
13526 sed -e '/^func_append ()$/,/^} # func_append /c\
13527 func_append ()\
13528 {\
13529 eval "${1}+=\\${2}"\
13530 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13531 && mv -f "$cfgfile.tmp" "$cfgfile" \
13532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13533 test 0 -eq $? || _lt_function_replace_fail=:
13534
13535
13536 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13537 func_append_quoted ()\
13538 {\
13539 \ func_quote_for_eval "${2}"\
13540 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13541 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13542 && mv -f "$cfgfile.tmp" "$cfgfile" \
13543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13544 test 0 -eq $? || _lt_function_replace_fail=:
13545
13546
13547 # Save a `func_append' function call where possible by direct use of '+='
13548 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13549 && mv -f "$cfgfile.tmp" "$cfgfile" \
13550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13551 test 0 -eq $? || _lt_function_replace_fail=:
13552 else
13553 # Save a `func_append' function call even when '+=' is not available
13554 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13555 && mv -f "$cfgfile.tmp" "$cfgfile" \
13556 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13557 test 0 -eq $? || _lt_function_replace_fail=:
13558 fi
13559
13560 if test x"$_lt_function_replace_fail" = x":"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13562 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13563 fi
13564
13565
13566 mv -f "$cfgfile" "$ofile" ||
13567 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13568 chmod +x "$ofile"
13569
13570 ;;
13571
13572 esac
13573 done # for ac_tag
13574
13575
13576 as_fn_exit 0
13577 _ACEOF
13578 ac_clean_files=$ac_clean_files_save
13579
13580 test $ac_write_fail = 0 ||
13581 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13582
13583
13584 # configure is writing to config.log, and then calls config.status.
13585 # config.status does its own redirection, appending to config.log.
13586 # Unfortunately, on DOS this fails, as config.log is still kept open
13587 # by configure, so config.status won't be able to write to it; its
13588 # output is simply discarded. So we exec the FD to /dev/null,
13589 # effectively closing config.log, so it can be properly (re)opened and
13590 # appended to by config.status. When coming back to configure, we
13591 # need to make the FD available again.
13592 if test "$no_create" != yes; then
13593 ac_cs_success=:
13594 ac_config_status_args=
13595 test "$silent" = yes &&
13596 ac_config_status_args="$ac_config_status_args --quiet"
13597 exec 5>/dev/null
13598 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13599 exec 5>>config.log
13600 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13601 # would make configure fail if this is the last instruction.
13602 $ac_cs_success || as_fn_exit 1
13603 fi
13604 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13606 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13607 fi
13608