Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for quadrule 0~20121001.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell [email protected] and
234 $0: [email protected] about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238 fi
239 exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257 { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266 return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337 else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354 else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464 *)
465 ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489 else
490 as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553 else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562 $*
563 _LT_EOF
564 exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='quadrule'
703 PACKAGE_TARNAME='quadrule'
704 PACKAGE_VERSION='0~20121001'
705 PACKAGE_STRING='quadrule 0~20121001'
706 PACKAGE_BUGREPORT='[email protected]'
707 PACKAGE_URL=''
708
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 # include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 # include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 ac_subst_vars='am__EXEEXT_FALSE
746 am__EXEEXT_TRUE
747 LTLIBOBJS
748 LIBOBJS
749 CPP
750 OTOOL64
751 OTOOL
752 LIPO
753 NMEDIT
754 DSYMUTIL
755 lt_ECHO
756 RANLIB
757 AR
758 OBJDUMP
759 LN_S
760 NM
761 ac_ct_DUMPBIN
762 DUMPBIN
763 LD
764 FGREP
765 EGREP
766 GREP
767 SED
768 am__fastdepCC_FALSE
769 am__fastdepCC_TRUE
770 CCDEPMODE
771 AMDEPBACKSLASH
772 AMDEP_FALSE
773 AMDEP_TRUE
774 am__quote
775 am__include
776 DEPDIR
777 OBJEXT
778 EXEEXT
779 ac_ct_CC
780 CPPFLAGS
781 LDFLAGS
782 CFLAGS
783 CC
784 host_os
785 host_vendor
786 host_cpu
787 host
788 build_os
789 build_vendor
790 build_cpu
791 build
792 LIBTOOL
793 am__untar
794 am__tar
795 AMTAR
796 am__leading_dot
797 SET_MAKE
798 AWK
799 mkdir_p
800 MKDIR_P
801 INSTALL_STRIP_PROGRAM
802 STRIP
803 install_sh
804 MAKEINFO
805 AUTOHEADER
806 AUTOMAKE
807 AUTOCONF
808 ACLOCAL
809 VERSION
810 PACKAGE
811 CYGPATH_W
812 am__isrc
813 INSTALL_DATA
814 INSTALL_SCRIPT
815 INSTALL_PROGRAM
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files=''
855 ac_user_opts='
856 enable_option_checking
857 enable_shared
858 enable_static
859 with_pic
860 enable_fast_install
861 enable_dependency_tracking
862 with_gnu_ld
863 enable_libtool_lock
864 '
865 ac_precious_vars='build_alias
866 host_alias
867 target_alias
868 CC
869 CFLAGS
870 LDFLAGS
871 LIBS
872 CPPFLAGS
873 CPP'
874
875
876 # Initialize some variables set by options.
877 ac_init_help=
878 ac_init_version=false
879 ac_unrecognized_opts=
880 ac_unrecognized_sep=
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
883 cache_file=/dev/null
884 exec_prefix=NONE
885 no_create=
886 no_recursion=
887 prefix=NONE
888 program_prefix=NONE
889 program_suffix=NONE
890 program_transform_name=s,x,x,
891 silent=
892 site=
893 srcdir=
894 verbose=
895 x_includes=NONE
896 x_libraries=NONE
897
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
915 infodir='${datarootdir}/info'
916 htmldir='${docdir}'
917 dvidir='${docdir}'
918 pdfdir='${docdir}'
919 psdir='${docdir}'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
923
924 ac_prev=
925 ac_dashdash=
926 for ac_option
927 do
928 # If the previous option needs an argument, assign it.
929 if test -n "$ac_prev"; then
930 eval $ac_prev=\$ac_option
931 ac_prev=
932 continue
933 fi
934
935 case $ac_option in
936 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937 *) ac_optarg=yes ;;
938 esac
939
940 # Accept the important Cygnus configure options, so we can diagnose typos.
941
942 case $ac_dashdash$ac_option in
943 --)
944 ac_dashdash=yes ;;
945
946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 ac_prev=bindir ;;
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949 bindir=$ac_optarg ;;
950
951 -build | --build | --buil | --bui | --bu)
952 ac_prev=build_alias ;;
953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954 build_alias=$ac_optarg ;;
955
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961 cache_file=$ac_optarg ;;
962
963 --config-cache | -C)
964 cache_file=config.cache ;;
965
966 -datadir | --datadir | --datadi | --datad)
967 ac_prev=datadir ;;
968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
969 datadir=$ac_optarg ;;
970
971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
977
978 -disable-* | --disable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
986 *"
987 "enable_$ac_useropt"
988 "*) ;;
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
991 esac
992 eval enable_$ac_useropt=no ;;
993
994 -docdir | --docdir | --docdi | --doc | --do)
995 ac_prev=docdir ;;
996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997 docdir=$ac_optarg ;;
998
999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 ac_prev=dvidir ;;
1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002 dvidir=$ac_optarg ;;
1003
1004 -enable-* | --enable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=\$ac_optarg ;;
1019
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
1027 exec_prefix=$ac_optarg ;;
1028
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1031 with_gas=yes ;;
1032
1033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
1039
1040 -host | --host | --hos | --ho)
1041 ac_prev=host_alias ;;
1042 -host=* | --host=* | --hos=* | --ho=*)
1043 host_alias=$ac_optarg ;;
1044
1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 ac_prev=htmldir ;;
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 | --ht=*)
1049 htmldir=$ac_optarg ;;
1050
1051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
1056 includedir=$ac_optarg ;;
1057
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 ac_prev=infodir ;;
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061 infodir=$ac_optarg ;;
1062
1063 -libdir | --libdir | --libdi | --libd)
1064 ac_prev=libdir ;;
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066 libdir=$ac_optarg ;;
1067
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
1073 libexecdir=$ac_optarg ;;
1074
1075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1079
1080 -localstatedir | --localstatedir | --localstatedi | --localstated \
1081 | --localstate | --localstat | --localsta | --localst | --locals)
1082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085 localstatedir=$ac_optarg ;;
1086
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 ac_prev=mandir ;;
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090 mandir=$ac_optarg ;;
1091
1092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1094 with_fp=no ;;
1095
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097 | --no-cr | --no-c | -n)
1098 no_create=yes ;;
1099
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102 no_recursion=yes ;;
1103
1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111 oldincludedir=$ac_optarg ;;
1112
1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 ac_prev=prefix ;;
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116 prefix=$ac_optarg ;;
1117
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123 program_prefix=$ac_optarg ;;
1124
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130 program_suffix=$ac_optarg ;;
1131
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
1147 program_transform_name=$ac_optarg ;;
1148
1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 ac_prev=pdfdir ;;
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1153
1154 -psdir | --psdir | --psdi | --psd | --ps)
1155 ac_prev=psdir ;;
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157 psdir=$ac_optarg ;;
1158
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1161 silent=yes ;;
1162
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 ac_prev=sbindir ;;
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 | --sbi=* | --sb=*)
1167 sbindir=$ac_optarg ;;
1168
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1172 | --sha | --sh)
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 | --sha=* | --sh=*)
1178 sharedstatedir=$ac_optarg ;;
1179
1180 -site | --site | --sit)
1181 ac_prev=site ;;
1182 -site=* | --site=* | --sit=*)
1183 site=$ac_optarg ;;
1184
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 ac_prev=srcdir ;;
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1189
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1196
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1201
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 verbose=yes ;;
1204
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1207
1208 -with-* | --with-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=\$ac_optarg ;;
1223
1224 -without-* | --without-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=no ;;
1239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1257
1258 -*) as_fn_error "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information."
1260 ;;
1261
1262 *=*)
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
1267 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1268 esac
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1271
1272 *)
1273 # FIXME: should be removed in autoconf 3.0.
1274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 ;;
1279
1280 esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 as_fn_error "missing argument to $ac_option"
1286 fi
1287
1288 if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1290 no) ;;
1291 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 esac
1294 fi
1295
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1301 do
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1304 case $ac_val in
1305 */ )
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1308 esac
1309 # Be sure to have absolute directory names.
1310 case $ac_val in
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 esac
1314 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1315 done
1316
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1323
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1329 If a cross compiler is detected then cross compile mode will be used." >&2
1330 elif test "x$build_alias" != "x$host_alias"; then
1331 cross_compiling=yes
1332 fi
1333 fi
1334
1335 ac_tool_prefix=
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338 test "$silent" = yes && exec 6>/dev/null
1339
1340
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 as_fn_error "working directory cannot be determined"
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 as_fn_error "pwd does not report name of working directory"
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 $as_echo X"$as_myself" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)[^/].*/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\).*/{
1372 s//\1/
1373 q
1374 }
1375 s/.*/./; q'`
1376 srcdir=$ac_confdir
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 srcdir=..
1379 fi
1380 else
1381 ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1390 pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1394 fi
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1407
1408 #
1409 # Report the --help message.
1410 #
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415 \`configure' configures quadrule 0~20121001 to adapt to many kinds of systems.
1416
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1421
1422 Defaults for the options are specified in brackets.
1423
1424 Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1440
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1445
1446 For better control, use the options below.
1447
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/quadrule]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1469
1470 cat <<\_ACEOF
1471
1472 Program names:
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476
1477 System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of quadrule 0~20121001:";;
1486 esac
1487 cat <<\_ACEOF
1488
1489 Optional Features:
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-static[=PKGS] build static libraries [default=yes]
1495 --enable-fast-install[=PKGS]
1496 optimize for fast installation [default=yes]
1497 --disable-dependency-tracking speeds up one-time build
1498 --enable-dependency-tracking do not reject slow dependency extractors
1499 --disable-libtool-lock avoid locking (might break parallel builds)
1500
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-pic try to use only PIC/non-PIC objects [default=use
1505 both]
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507
1508 Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 CPP C preprocessor
1517
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 Report bugs to <[email protected]>.
1522 _ACEOF
1523 ac_status=$?
1524 fi
1525
1526 if test "$ac_init_help" = "recursive"; then
1527 # If there are subdirs, report their specific --help.
1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529 test -d "$ac_dir" ||
1530 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1531 continue
1532 ac_builddir=.
1533
1534 case "$ac_dir" in
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *)
1537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1538 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 esac ;;
1544 esac
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1549
1550 case $srcdir in
1551 .) # We are building in place.
1552 ac_srcdir=.
1553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
1556 ac_srcdir=$srcdir$ac_dir_suffix;
1557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1559 *) # Relative name.
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 esac
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565
1566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1574 else
1575 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 fi || ac_status=$?
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1578 done
1579 fi
1580
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1583 cat <<\_ACEOF
1584 quadrule configure 0~20121001
1585 generated by GNU Autoconf 2.65
1586
1587 Copyright (C) 2009 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591 exit
1592 fi
1593
1594 ## ------------------------ ##
1595 ## Autoconf initialization. ##
1596 ## ------------------------ ##
1597
1598 # ac_fn_c_try_compile LINENO
1599 # --------------------------
1600 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext
1605 if { { ac_try="$ac_compile"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_compile") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest.$ac_objext; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_compile
1635
1636 # ac_fn_c_try_link LINENO
1637 # -----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_link ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest$ac_exeext
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest$ac_exeext && {
1662 test "$cross_compiling" = yes ||
1663 $as_test_x conftest$ac_exeext
1664 }; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671 fi
1672 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1673 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1674 # interfere with the next link command; also delete a directory that is
1675 # left behind by Apple's compiler. We do this before executing the actions.
1676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678 as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_link
1681
1682 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists and can be compiled using the include files in
1685 # INCLUDES, setting the cache variable VAR accordingly.
1686 ac_fn_c_check_header_compile ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1692 $as_echo_n "(cached) " >&6
1693 else
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1696 $4
1697 #include <$2>
1698 _ACEOF
1699 if ac_fn_c_try_compile "$LINENO"; then :
1700 eval "$3=yes"
1701 else
1702 eval "$3=no"
1703 fi
1704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705 fi
1706 eval ac_res=\$$3
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710
1711 } # ac_fn_c_check_header_compile
1712
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_cpp ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_cpp conftest.$ac_ext"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } >/dev/null && {
1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_cpp
1749
1750 # ac_fn_c_try_run LINENO
1751 # ----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753 # that executables *can* be run.
1754 ac_fn_c_try_run ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>&5
1765 ac_status=$?
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768 { { case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_try") 2>&5
1775 ac_status=$?
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; }; }; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: program exited with status $ac_status" >&5
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=$ac_status
1785 fi
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_run
1791
1792 # ac_fn_c_check_func LINENO FUNC VAR
1793 # ----------------------------------
1794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795 ac_fn_c_check_func ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801 $as_echo_n "(cached) " >&6
1802 else
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807 #define $2 innocuous_$2
1808
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below.
1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812 <limits.h> exists even on freestanding compilers. */
1813
1814 #ifdef __STDC__
1815 # include <limits.h>
1816 #else
1817 # include <assert.h>
1818 #endif
1819
1820 #undef $2
1821
1822 /* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1825 #ifdef __cplusplus
1826 extern "C"
1827 #endif
1828 char $2 ();
1829 /* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832 #if defined __stub_$2 || defined __stub___$2
1833 choke me
1834 #endif
1835
1836 int
1837 main ()
1838 {
1839 return $2 ();
1840 ;
1841 return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_link "$LINENO"; then :
1845 eval "$3=yes"
1846 else
1847 eval "$3=no"
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext \
1850 conftest$ac_exeext conftest.$ac_ext
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856
1857 } # ac_fn_c_check_func
1858 cat >config.log <<_ACEOF
1859 This file contains any messages produced by compilers while
1860 running configure, to aid debugging if configure makes a mistake.
1861
1862 It was created by quadrule $as_me 0~20121001, which was
1863 generated by GNU Autoconf 2.65. Invocation command line was
1864
1865 $ $0 $@
1866
1867 _ACEOF
1868 exec 5>>config.log
1869 {
1870 cat <<_ASUNAME
1871 ## --------- ##
1872 ## Platform. ##
1873 ## --------- ##
1874
1875 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1876 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1877 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1878 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1879 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1880
1881 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1882 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1883
1884 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1885 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1886 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1887 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1888 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1889 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1890 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1891
1892 _ASUNAME
1893
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 $as_echo "PATH: $as_dir"
1900 done
1901 IFS=$as_save_IFS
1902
1903 } >&5
1904
1905 cat >&5 <<_ACEOF
1906
1907
1908 ## ----------- ##
1909 ## Core tests. ##
1910 ## ----------- ##
1911
1912 _ACEOF
1913
1914
1915 # Keep a trace of the command line.
1916 # Strip out --no-create and --no-recursion so they do not pile up.
1917 # Strip out --silent because we don't want to record it for future runs.
1918 # Also quote any args containing shell meta-characters.
1919 # Make two passes to allow for proper duplicate-argument suppression.
1920 ac_configure_args=
1921 ac_configure_args0=
1922 ac_configure_args1=
1923 ac_must_keep_next=false
1924 for ac_pass in 1 2
1925 do
1926 for ac_arg
1927 do
1928 case $ac_arg in
1929 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1930 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1931 | -silent | --silent | --silen | --sile | --sil)
1932 continue ;;
1933 *\'*)
1934 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935 esac
1936 case $ac_pass in
1937 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1938 2)
1939 as_fn_append ac_configure_args1 " '$ac_arg'"
1940 if test $ac_must_keep_next = true; then
1941 ac_must_keep_next=false # Got value, back to normal.
1942 else
1943 case $ac_arg in
1944 *=* | --config-cache | -C | -disable-* | --disable-* \
1945 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1946 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1947 | -with-* | --with-* | -without-* | --without-* | --x)
1948 case "$ac_configure_args0 " in
1949 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1950 esac
1951 ;;
1952 -* ) ac_must_keep_next=true ;;
1953 esac
1954 fi
1955 as_fn_append ac_configure_args " '$ac_arg'"
1956 ;;
1957 esac
1958 done
1959 done
1960 { ac_configure_args0=; unset ac_configure_args0;}
1961 { ac_configure_args1=; unset ac_configure_args1;}
1962
1963 # When interrupted or exit'd, cleanup temporary files, and complete
1964 # config.log. We remove comments because anyway the quotes in there
1965 # would cause problems or look ugly.
1966 # WARNING: Use '\'' to represent an apostrophe within the trap.
1967 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1968 trap 'exit_status=$?
1969 # Save into config.log some information that might help in debugging.
1970 {
1971 echo
1972
1973 cat <<\_ASBOX
1974 ## ---------------- ##
1975 ## Cache variables. ##
1976 ## ---------------- ##
1977 _ASBOX
1978 echo
1979 # The following way of writing the cache mishandles newlines in values,
1980 (
1981 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1982 eval ac_val=\$$ac_var
1983 case $ac_val in #(
1984 *${as_nl}*)
1985 case $ac_var in #(
1986 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1987 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988 esac
1989 case $ac_var in #(
1990 _ | IFS | as_nl) ;; #(
1991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1992 *) { eval $ac_var=; unset $ac_var;} ;;
1993 esac ;;
1994 esac
1995 done
1996 (set) 2>&1 |
1997 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1998 *${as_nl}ac_space=\ *)
1999 sed -n \
2000 "s/'\''/'\''\\\\'\'''\''/g;
2001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002 ;; #(
2003 *)
2004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2005 ;;
2006 esac |
2007 sort
2008 )
2009 echo
2010
2011 cat <<\_ASBOX
2012 ## ----------------- ##
2013 ## Output variables. ##
2014 ## ----------------- ##
2015 _ASBOX
2016 echo
2017 for ac_var in $ac_subst_vars
2018 do
2019 eval ac_val=\$$ac_var
2020 case $ac_val in
2021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022 esac
2023 $as_echo "$ac_var='\''$ac_val'\''"
2024 done | sort
2025 echo
2026
2027 if test -n "$ac_subst_files"; then
2028 cat <<\_ASBOX
2029 ## ------------------- ##
2030 ## File substitutions. ##
2031 ## ------------------- ##
2032 _ASBOX
2033 echo
2034 for ac_var in $ac_subst_files
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 $as_echo "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2043 fi
2044
2045 if test -s confdefs.h; then
2046 cat <<\_ASBOX
2047 ## ----------- ##
2048 ## confdefs.h. ##
2049 ## ----------- ##
2050 _ASBOX
2051 echo
2052 cat confdefs.h
2053 echo
2054 fi
2055 test "$ac_signal" != 0 &&
2056 $as_echo "$as_me: caught signal $ac_signal"
2057 $as_echo "$as_me: exit $exit_status"
2058 } >&5
2059 rm -f core *.core core.conftest.* &&
2060 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2061 exit $exit_status
2062 ' 0
2063 for ac_signal in 1 2 13 15; do
2064 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2065 done
2066 ac_signal=0
2067
2068 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2069 rm -f -r conftest* confdefs.h
2070
2071 $as_echo "/* confdefs.h */" > confdefs.h
2072
2073 # Predefined preprocessor variables.
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_NAME "$PACKAGE_NAME"
2077 _ACEOF
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2081 _ACEOF
2082
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2085 _ACEOF
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_STRING "$PACKAGE_STRING"
2089 _ACEOF
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2093 _ACEOF
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_URL "$PACKAGE_URL"
2097 _ACEOF
2098
2099
2100 # Let the site file select an alternate cache file if it wants to.
2101 # Prefer an explicitly selected file to automatically selected ones.
2102 ac_site_file1=NONE
2103 ac_site_file2=NONE
2104 if test -n "$CONFIG_SITE"; then
2105 ac_site_file1=$CONFIG_SITE
2106 elif test "x$prefix" != xNONE; then
2107 ac_site_file1=$prefix/share/config.site
2108 ac_site_file2=$prefix/etc/config.site
2109 else
2110 ac_site_file1=$ac_default_prefix/share/config.site
2111 ac_site_file2=$ac_default_prefix/etc/config.site
2112 fi
2113 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2114 do
2115 test "x$ac_site_file" = xNONE && continue
2116 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2118 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2119 sed 's/^/| /' "$ac_site_file" >&5
2120 . "$ac_site_file"
2121 fi
2122 done
2123
2124 if test -r "$cache_file"; then
2125 # Some versions of bash will fail to source /dev/null (special files
2126 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2127 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2129 $as_echo "$as_me: loading cache $cache_file" >&6;}
2130 case $cache_file in
2131 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2132 *) . "./$cache_file";;
2133 esac
2134 fi
2135 else
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2137 $as_echo "$as_me: creating cache $cache_file" >&6;}
2138 >$cache_file
2139 fi
2140
2141 # Check that the precious variables saved in the cache have kept the same
2142 # value.
2143 ac_cache_corrupted=false
2144 for ac_var in $ac_precious_vars; do
2145 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2146 eval ac_new_set=\$ac_env_${ac_var}_set
2147 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2148 eval ac_new_val=\$ac_env_${ac_var}_value
2149 case $ac_old_set,$ac_new_set in
2150 set,)
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2154 ,set)
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2157 ac_cache_corrupted=: ;;
2158 ,);;
2159 *)
2160 if test "x$ac_old_val" != "x$ac_new_val"; then
2161 # differences in whitespace do not lead to failure.
2162 ac_old_val_w=`echo x $ac_old_val`
2163 ac_new_val_w=`echo x $ac_new_val`
2164 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2166 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2167 ac_cache_corrupted=:
2168 else
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2170 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2171 eval $ac_var=\$ac_old_val
2172 fi
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2174 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2176 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2177 fi;;
2178 esac
2179 # Pass precious variables to config.status.
2180 if test "$ac_new_set" = set; then
2181 case $ac_new_val in
2182 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2183 *) ac_arg=$ac_var=$ac_new_val ;;
2184 esac
2185 case " $ac_configure_args " in
2186 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2187 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2188 esac
2189 fi
2190 done
2191 if $ac_cache_corrupted; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2195 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2196 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2197 fi
2198 ## -------------------- ##
2199 ## Main body of script. ##
2200 ## -------------------- ##
2201
2202 ac_ext=c
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2207
2208
2209 ac_aux_dir=
2210 for ac_dir in build-aux "$srcdir"/build-aux; do
2211 for ac_t in install-sh install.sh shtool; do
2212 if test -f "$ac_dir/$ac_t"; then
2213 ac_aux_dir=$ac_dir
2214 ac_install_sh="$ac_aux_dir/$ac_t -c"
2215 break 2
2216 fi
2217 done
2218 done
2219 if test -z "$ac_aux_dir"; then
2220 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2221 fi
2222
2223 # These three variables are undocumented and unsupported,
2224 # and are intended to be withdrawn in a future Autoconf release.
2225 # They can cause serious problems if a builder's source tree is in a directory
2226 # whose full name contains unusual characters.
2227 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2228 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2229 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2230
2231
2232
2233 am__api_version='1.11'
2234
2235 # Find a good install program. We prefer a C program (faster),
2236 # so one script is as good as another. But avoid the broken or
2237 # incompatible versions:
2238 # SysV /etc/install, /usr/sbin/install
2239 # SunOS /usr/etc/install
2240 # IRIX /sbin/install
2241 # AIX /bin/install
2242 # AmigaOS /C/install, which installs bootblocks on floppy discs
2243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246 # OS/2's system install, which has a completely different semantic
2247 # ./install, which can be erroneously created by make from ./install.sh.
2248 # Reject install programs that cannot install multiple files.
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2250 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2251 if test -z "$INSTALL"; then
2252 if test "${ac_cv_path_install+set}" = set; then :
2253 $as_echo_n "(cached) " >&6
2254 else
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
2260 # Account for people who put trailing slashes in PATH elements.
2261 case $as_dir/ in #((
2262 ./ | .// | /[cC]/* | \
2263 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2264 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2265 /usr/ucb/* ) ;;
2266 *)
2267 # OSF1 and SCO ODT 3.0 have their own names for install.
2268 # Don't use installbsd from OSF since it installs stuff as root
2269 # by default.
2270 for ac_prog in ginstall scoinst install; do
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2273 if test $ac_prog = install &&
2274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275 # AIX install. It has an incompatible calling convention.
2276 :
2277 elif test $ac_prog = install &&
2278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279 # program-specific install script used by HP pwplus--don't use.
2280 :
2281 else
2282 rm -rf conftest.one conftest.two conftest.dir
2283 echo one > conftest.one
2284 echo two > conftest.two
2285 mkdir conftest.dir
2286 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2287 test -s conftest.one && test -s conftest.two &&
2288 test -s conftest.dir/conftest.one &&
2289 test -s conftest.dir/conftest.two
2290 then
2291 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2292 break 3
2293 fi
2294 fi
2295 fi
2296 done
2297 done
2298 ;;
2299 esac
2300
2301 done
2302 IFS=$as_save_IFS
2303
2304 rm -rf conftest.one conftest.two conftest.dir
2305
2306 fi
2307 if test "${ac_cv_path_install+set}" = set; then
2308 INSTALL=$ac_cv_path_install
2309 else
2310 # As a last resort, use the slow shell script. Don't cache a
2311 # value for INSTALL within a source directory, because that will
2312 # break other packages using the cache if that directory is
2313 # removed, or if the value is a relative name.
2314 INSTALL=$ac_install_sh
2315 fi
2316 fi
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2318 $as_echo "$INSTALL" >&6; }
2319
2320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2321 # It thinks the first close brace ends the variable substitution.
2322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2323
2324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2325
2326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2327
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2329 $as_echo_n "checking whether build environment is sane... " >&6; }
2330 # Just in case
2331 sleep 1
2332 echo timestamp > conftest.file
2333 # Reject unsafe characters in $srcdir or the absolute working directory
2334 # name. Accept space and tab only in the latter.
2335 am_lf='
2336 '
2337 case `pwd` in
2338 *[\\\"\#\$\&\'\`$am_lf]*)
2339 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2340 esac
2341 case $srcdir in
2342 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2343 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2344 esac
2345
2346 # Do `set' in a subshell so we don't clobber the current shell's
2347 # arguments. Must try -L first in case configure is actually a
2348 # symlink; some systems play weird games with the mod time of symlinks
2349 # (eg FreeBSD returns the mod time of the symlink's containing
2350 # directory).
2351 if (
2352 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2353 if test "$*" = "X"; then
2354 # -L didn't work.
2355 set X `ls -t "$srcdir/configure" conftest.file`
2356 fi
2357 rm -f conftest.file
2358 if test "$*" != "X $srcdir/configure conftest.file" \
2359 && test "$*" != "X conftest.file $srcdir/configure"; then
2360
2361 # If neither matched, then we have a broken ls. This can happen
2362 # if, for instance, CONFIG_SHELL is bash and it inherits a
2363 # broken ls alias from the environment. This has actually
2364 # happened. Such a system could not be considered "sane".
2365 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2366 alias in your environment" "$LINENO" 5
2367 fi
2368
2369 test "$2" = conftest.file
2370 )
2371 then
2372 # Ok.
2373 :
2374 else
2375 as_fn_error "newly created file is older than distributed files!
2376 Check your system clock" "$LINENO" 5
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2379 $as_echo "yes" >&6; }
2380 test "$program_prefix" != NONE &&
2381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2382 # Use a double $ so make ignores it.
2383 test "$program_suffix" != NONE &&
2384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2385 # Double any \ or $.
2386 # By default was `s,x,x', remove it if useless.
2387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2389
2390 # expand $ac_aux_dir to an absolute path
2391 am_aux_dir=`cd $ac_aux_dir && pwd`
2392
2393 if test x"${MISSING+set}" != xset; then
2394 case $am_aux_dir in
2395 *\ * | *\ *)
2396 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2397 *)
2398 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2399 esac
2400 fi
2401 # Use eval to expand $SHELL
2402 if eval "$MISSING --run true"; then
2403 am_missing_run="$MISSING --run "
2404 else
2405 am_missing_run=
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2407 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2408 fi
2409
2410 if test x"${install_sh}" != xset; then
2411 case $am_aux_dir in
2412 *\ * | *\ *)
2413 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2414 *)
2415 install_sh="\${SHELL} $am_aux_dir/install-sh"
2416 esac
2417 fi
2418
2419 # Installed binaries are usually stripped using `strip' when the user
2420 # run `make install-strip'. However `strip' might not be the right
2421 # tool to use in cross-compilation environments, therefore Automake
2422 # will honor the `STRIP' environment variable to overrule this program.
2423 if test "$cross_compiling" != no; then
2424 if test -n "$ac_tool_prefix"; then
2425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2426 set dummy ${ac_tool_prefix}strip; ac_word=$2
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if test "${ac_cv_prog_STRIP+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 if test -n "$STRIP"; then
2433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2445 fi
2446 done
2447 done
2448 IFS=$as_save_IFS
2449
2450 fi
2451 fi
2452 STRIP=$ac_cv_prog_STRIP
2453 if test -n "$STRIP"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2455 $as_echo "$STRIP" >&6; }
2456 else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458 $as_echo "no" >&6; }
2459 fi
2460
2461
2462 fi
2463 if test -z "$ac_cv_prog_STRIP"; then
2464 ac_ct_STRIP=$STRIP
2465 # Extract the first word of "strip", so it can be a program name with args.
2466 set dummy strip; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 if test -n "$ac_ct_STRIP"; then
2473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_ac_ct_STRIP="strip"
2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2485 fi
2486 done
2487 done
2488 IFS=$as_save_IFS
2489
2490 fi
2491 fi
2492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2493 if test -n "$ac_ct_STRIP"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2495 $as_echo "$ac_ct_STRIP" >&6; }
2496 else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2499 fi
2500
2501 if test "x$ac_ct_STRIP" = x; then
2502 STRIP=":"
2503 else
2504 case $cross_compiling:$ac_tool_warned in
2505 yes:)
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508 ac_tool_warned=yes ;;
2509 esac
2510 STRIP=$ac_ct_STRIP
2511 fi
2512 else
2513 STRIP="$ac_cv_prog_STRIP"
2514 fi
2515
2516 fi
2517 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2518
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2520 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2521 if test -z "$MKDIR_P"; then
2522 if test "${ac_cv_path_mkdir+set}" = set; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_prog in mkdir gmkdir; do
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2533 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2534 'mkdir (GNU coreutils) '* | \
2535 'mkdir (coreutils) '* | \
2536 'mkdir (fileutils) '4.1*)
2537 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2538 break 3;;
2539 esac
2540 done
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546
2547 test -d ./--version && rmdir ./--version
2548 if test "${ac_cv_path_mkdir+set}" = set; then
2549 MKDIR_P="$ac_cv_path_mkdir -p"
2550 else
2551 # As a last resort, use the slow shell script. Don't cache a
2552 # value for MKDIR_P within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the value is a relative name.
2555 MKDIR_P="$ac_install_sh -d"
2556 fi
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2559 $as_echo "$MKDIR_P" >&6; }
2560
2561 mkdir_p="$MKDIR_P"
2562 case $mkdir_p in
2563 [\\/$]* | ?:[\\/]*) ;;
2564 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2565 esac
2566
2567 for ac_prog in gawk mawk nawk awk
2568 do
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if test "${ac_cv_prog_AWK+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$AWK"; then
2577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AWK="$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 AWK=$ac_cv_prog_AWK
2597 if test -n "$AWK"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599 $as_echo "$AWK" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606 test -n "$AWK" && break
2607 done
2608
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2610 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2611 set x ${MAKE-make}
2612 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2613 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 cat >conftest.make <<\_ACEOF
2617 SHELL = /bin/sh
2618 all:
2619 @echo '@@@%%%=$(MAKE)=@@@%%%'
2620 _ACEOF
2621 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2622 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2623 *@@@%%%=?*=@@@%%%*)
2624 eval ac_cv_prog_make_${ac_make}_set=yes;;
2625 *)
2626 eval ac_cv_prog_make_${ac_make}_set=no;;
2627 esac
2628 rm -f conftest.make
2629 fi
2630 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632 $as_echo "yes" >&6; }
2633 SET_MAKE=
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637 SET_MAKE="MAKE=${MAKE-make}"
2638 fi
2639
2640 rm -rf .tst 2>/dev/null
2641 mkdir .tst 2>/dev/null
2642 if test -d .tst; then
2643 am__leading_dot=.
2644 else
2645 am__leading_dot=_
2646 fi
2647 rmdir .tst 2>/dev/null
2648
2649 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2650 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2651 # is not polluted with repeated "-I."
2652 am__isrc=' -I$(srcdir)'
2653 # test to see if srcdir already configured
2654 if test -f $srcdir/config.status; then
2655 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2656 fi
2657 fi
2658
2659 # test whether we have cygpath
2660 if test -z "$CYGPATH_W"; then
2661 if (cygpath --version) >/dev/null 2>/dev/null; then
2662 CYGPATH_W='cygpath -w'
2663 else
2664 CYGPATH_W=echo
2665 fi
2666 fi
2667
2668
2669 # Define the identity of the package.
2670 PACKAGE='quadrule'
2671 VERSION='0~20121001'
2672
2673
2674 cat >>confdefs.h <<_ACEOF
2675 #define PACKAGE "$PACKAGE"
2676 _ACEOF
2677
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define VERSION "$VERSION"
2681 _ACEOF
2682
2683 # Some tools Automake needs.
2684
2685 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2686
2687
2688 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2689
2690
2691 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2692
2693
2694 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2695
2696
2697 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2698
2699 # We need awk for the "check" target. The system "awk" is bad on
2700 # some platforms.
2701 # Always define AMTAR for backward compatibility.
2702
2703 AMTAR=${AMTAR-"${am_missing_run}tar"}
2704
2705 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2706
2707
2708
2709
2710
2711 case `pwd` in
2712 *\ * | *\ *)
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2714 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2715 esac
2716
2717
2718
2719 macro_version='2.2.6b'
2720 macro_revision='1.3017'
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734 ltmain="$ac_aux_dir/ltmain.sh"
2735
2736 # Make sure we can run config.sub.
2737 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2738 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2741 $as_echo_n "checking build system type... " >&6; }
2742 if test "${ac_cv_build+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 ac_build_alias=$build_alias
2746 test "x$ac_build_alias" = x &&
2747 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2748 test "x$ac_build_alias" = x &&
2749 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2750 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2751 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2752
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2755 $as_echo "$ac_cv_build" >&6; }
2756 case $ac_cv_build in
2757 *-*-*) ;;
2758 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2759 esac
2760 build=$ac_cv_build
2761 ac_save_IFS=$IFS; IFS='-'
2762 set x $ac_cv_build
2763 shift
2764 build_cpu=$1
2765 build_vendor=$2
2766 shift; shift
2767 # Remember, the first character of IFS is used to create $*,
2768 # except with old shells:
2769 build_os=$*
2770 IFS=$ac_save_IFS
2771 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2772
2773
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2775 $as_echo_n "checking host system type... " >&6; }
2776 if test "${ac_cv_host+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test "x$host_alias" = x; then
2780 ac_cv_host=$ac_cv_build
2781 else
2782 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2783 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2784 fi
2785
2786 fi
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2788 $as_echo "$ac_cv_host" >&6; }
2789 case $ac_cv_host in
2790 *-*-*) ;;
2791 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2792 esac
2793 host=$ac_cv_host
2794 ac_save_IFS=$IFS; IFS='-'
2795 set x $ac_cv_host
2796 shift
2797 host_cpu=$1
2798 host_vendor=$2
2799 shift; shift
2800 # Remember, the first character of IFS is used to create $*,
2801 # except with old shells:
2802 host_os=$*
2803 IFS=$ac_save_IFS
2804 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2805
2806
2807 DEPDIR="${am__leading_dot}deps"
2808
2809 ac_config_commands="$ac_config_commands depfiles"
2810
2811
2812 am_make=${MAKE-make}
2813 cat > confinc << 'END'
2814 am__doit:
2815 @echo this is the am__doit target
2816 .PHONY: am__doit
2817 END
2818 # If we don't find an include directive, just comment out the code.
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2820 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2821 am__include="#"
2822 am__quote=
2823 _am_result=none
2824 # First try GNU make style include.
2825 echo "include confinc" > confmf
2826 # Ignore all kinds of additional output from `make'.
2827 case `$am_make -s -f confmf 2> /dev/null` in #(
2828 *the\ am__doit\ target*)
2829 am__include=include
2830 am__quote=
2831 _am_result=GNU
2832 ;;
2833 esac
2834 # Now try BSD make style include.
2835 if test "$am__include" = "#"; then
2836 echo '.include "confinc"' > confmf
2837 case `$am_make -s -f confmf 2> /dev/null` in #(
2838 *the\ am__doit\ target*)
2839 am__include=.include
2840 am__quote="\""
2841 _am_result=BSD
2842 ;;
2843 esac
2844 fi
2845
2846
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2848 $as_echo "$_am_result" >&6; }
2849 rm -f confinc confmf
2850
2851 # Check whether --enable-dependency-tracking was given.
2852 if test "${enable_dependency_tracking+set}" = set; then :
2853 enableval=$enable_dependency_tracking;
2854 fi
2855
2856 if test "x$enable_dependency_tracking" != xno; then
2857 am_depcomp="$ac_aux_dir/depcomp"
2858 AMDEPBACKSLASH='\'
2859 fi
2860 if test "x$enable_dependency_tracking" != xno; then
2861 AMDEP_TRUE=
2862 AMDEP_FALSE='#'
2863 else
2864 AMDEP_TRUE='#'
2865 AMDEP_FALSE=
2866 fi
2867
2868
2869 ac_ext=c
2870 ac_cpp='$CPP $CPPFLAGS'
2871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912 fi
2913 if test -z "$ac_cv_prog_CC"; then
2914 ac_ct_CC=$CC
2915 # Extract the first word of "gcc", so it can be a program name with args.
2916 set dummy gcc; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$ac_ct_CC"; then
2923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_ac_ct_CC="gcc"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2943 if test -n "$ac_ct_CC"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2945 $as_echo "$ac_ct_CC" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951 if test "x$ac_ct_CC" = x; then
2952 CC=""
2953 else
2954 case $cross_compiling:$ac_tool_warned in
2955 yes:)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958 ac_tool_warned=yes ;;
2959 esac
2960 CC=$ac_ct_CC
2961 fi
2962 else
2963 CC="$ac_cv_prog_CC"
2964 fi
2965
2966 if test -z "$CC"; then
2967 if test -n "$ac_tool_prefix"; then
2968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}cc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_CC="${ac_tool_prefix}cc"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005 fi
3006 fi
3007 if test -z "$CC"; then
3008 # Extract the first word of "cc", so it can be a program name with args.
3009 set dummy cc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if test "${ac_cv_prog_CC+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018 ac_prog_rejected=no
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3027 ac_prog_rejected=yes
3028 continue
3029 fi
3030 ac_cv_prog_CC="cc"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3033 fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 if test $ac_prog_rejected = yes; then
3039 # We found a bogon in the path, so make sure we never use it.
3040 set dummy $ac_cv_prog_CC
3041 shift
3042 if test $# != 0; then
3043 # We chose a different compiler from the bogus one.
3044 # However, it has the same basename, so the bogon will be chosen
3045 # first if we set CC to just the basename; use the full file name.
3046 shift
3047 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3048 fi
3049 fi
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$CC"; then
3064 if test -n "$ac_tool_prefix"; then
3065 for ac_prog in cl.exe
3066 do
3067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if test "${ac_cv_prog_CC+set}" = set; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$CC"; then
3075 ac_cv_prog_CC="$CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 CC=$ac_cv_prog_CC
3095 if test -n "$CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097 $as_echo "$CC" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 fi
3102
3103
3104 test -n "$CC" && break
3105 done
3106 fi
3107 if test -z "$CC"; then
3108 ac_ct_CC=$CC
3109 for ac_prog in cl.exe
3110 do
3111 # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$ac_ct_CC"; then
3119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128 ac_cv_prog_ac_ct_CC="$ac_prog"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3131 fi
3132 done
3133 done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147
3148 test -n "$ac_ct_CC" && break
3149 done
3150
3151 if test "x$ac_ct_CC" = x; then
3152 CC=""
3153 else
3154 case $cross_compiling:$ac_tool_warned in
3155 yes:)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 ac_tool_warned=yes ;;
3159 esac
3160 CC=$ac_ct_CC
3161 fi
3162 fi
3163
3164 fi
3165
3166
3167 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error "no acceptable C compiler found in \$PATH
3170 See \`config.log' for more details." "$LINENO" 5; }
3171
3172 # Provide some information about the compiler.
3173 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3174 set X $ac_compile
3175 ac_compiler=$2
3176 for ac_option in --version -v -V -qversion; do
3177 { { ac_try="$ac_compiler $ac_option >&5"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3185 ac_status=$?
3186 if test -s conftest.err; then
3187 sed '10a\
3188 ... rest of stderr output deleted ...
3189 10q' conftest.err >conftest.er1
3190 cat conftest.er1 >&5
3191 fi
3192 rm -f conftest.er1 conftest.err
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }
3195 done
3196
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3199
3200 int
3201 main ()
3202 {
3203
3204 ;
3205 return 0;
3206 }
3207 _ACEOF
3208 ac_clean_files_save=$ac_clean_files
3209 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3210 # Try to create an executable without -o first, disregard a.out.
3211 # It will help us diagnose broken compilers, and finding out an intuition
3212 # of exeext.
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3214 $as_echo_n "checking whether the C compiler works... " >&6; }
3215 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3216
3217 # The possible output files:
3218 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3219
3220 ac_rmfiles=
3221 for ac_file in $ac_files
3222 do
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3225 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3226 esac
3227 done
3228 rm -f $ac_rmfiles
3229
3230 if { { ac_try="$ac_link_default"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_link_default") 2>&5
3238 ac_status=$?
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; then :
3241 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3242 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3243 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3244 # so that the user can short-circuit this test for compilers unknown to
3245 # Autoconf.
3246 for ac_file in $ac_files ''
3247 do
3248 test -f "$ac_file" || continue
3249 case $ac_file in
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3251 ;;
3252 [ab].out )
3253 # We found the default executable, but exeext='' is most
3254 # certainly right.
3255 break;;
3256 *.* )
3257 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3258 then :; else
3259 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260 fi
3261 # We set ac_cv_exeext here because the later test for it is not
3262 # safe: cross compilers may not add the suffix if given an `-o'
3263 # argument, so we may need to know it at that point already.
3264 # Even if this section looks crufty: it has the advantage of
3265 # actually working.
3266 break;;
3267 * )
3268 break;;
3269 esac
3270 done
3271 test "$ac_cv_exeext" = no && ac_cv_exeext=
3272
3273 else
3274 ac_file=''
3275 fi
3276 if test -z "$ac_file"; then :
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 $as_echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 { as_fn_set_status 77
3285 as_fn_error "C compiler cannot create executables
3286 See \`config.log' for more details." "$LINENO" 5; }; }
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289 $as_echo "yes" >&6; }
3290 fi
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3292 $as_echo_n "checking for C compiler default output file name... " >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3294 $as_echo "$ac_file" >&6; }
3295 ac_exeext=$ac_cv_exeext
3296
3297 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3298 ac_clean_files=$ac_clean_files_save
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3300 $as_echo_n "checking for suffix of executables... " >&6; }
3301 if { { ac_try="$ac_link"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308 (eval "$ac_link") 2>&5
3309 ac_status=$?
3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311 test $ac_status = 0; }; then :
3312 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3313 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3314 # work properly (i.e., refer to `conftest.exe'), while it won't with
3315 # `rm'.
3316 for ac_file in conftest.exe conftest conftest.*; do
3317 test -f "$ac_file" || continue
3318 case $ac_file in
3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3321 break;;
3322 * ) break;;
3323 esac
3324 done
3325 else
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error "cannot compute suffix of executables: cannot compile and link
3329 See \`config.log' for more details." "$LINENO" 5; }
3330 fi
3331 rm -f conftest conftest$ac_cv_exeext
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3333 $as_echo "$ac_cv_exeext" >&6; }
3334
3335 rm -f conftest.$ac_ext
3336 EXEEXT=$ac_cv_exeext
3337 ac_exeext=$EXEEXT
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3340 #include <stdio.h>
3341 int
3342 main ()
3343 {
3344 FILE *f = fopen ("conftest.out", "w");
3345 return ferror (f) || fclose (f) != 0;
3346
3347 ;
3348 return 0;
3349 }
3350 _ACEOF
3351 ac_clean_files="$ac_clean_files conftest.out"
3352 # Check that the compiler produces executables we can run. If not, either
3353 # the compiler is broken, or we cross compile.
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3355 $as_echo_n "checking whether we are cross compiling... " >&6; }
3356 if test "$cross_compiling" != yes; then
3357 { { ac_try="$ac_link"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364 (eval "$ac_link") 2>&5
3365 ac_status=$?
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }
3368 if { ac_try='./conftest$ac_cv_exeext'
3369 { { case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_try") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; }; then
3379 cross_compiling=no
3380 else
3381 if test "$cross_compiling" = maybe; then
3382 cross_compiling=yes
3383 else
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error "cannot run C compiled programs.
3387 If you meant to cross compile, use \`--host'.
3388 See \`config.log' for more details." "$LINENO" 5; }
3389 fi
3390 fi
3391 fi
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3393 $as_echo "$cross_compiling" >&6; }
3394
3395 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3396 ac_clean_files=$ac_clean_files_save
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3398 $as_echo_n "checking for suffix of object files... " >&6; }
3399 if test "${ac_cv_objext+set}" = set; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3404
3405 int
3406 main ()
3407 {
3408
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 rm -f conftest.o conftest.obj
3414 if { { ac_try="$ac_compile"
3415 case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_compile") 2>&5
3422 ac_status=$?
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }; then :
3425 for ac_file in conftest.o conftest.obj conftest.*; do
3426 test -f "$ac_file" || continue;
3427 case $ac_file in
3428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3429 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3430 break;;
3431 esac
3432 done
3433 else
3434 $as_echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error "cannot compute suffix of object files: cannot compile
3440 See \`config.log' for more details." "$LINENO" 5; }
3441 fi
3442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3443 fi
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3445 $as_echo "$ac_cv_objext" >&6; }
3446 OBJEXT=$ac_cv_objext
3447 ac_objext=$OBJEXT
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3449 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3450 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3455
3456 int
3457 main ()
3458 {
3459 #ifndef __GNUC__
3460 choke me
3461 #endif
3462
3463 ;
3464 return 0;
3465 }
3466 _ACEOF
3467 if ac_fn_c_try_compile "$LINENO"; then :
3468 ac_compiler_gnu=yes
3469 else
3470 ac_compiler_gnu=no
3471 fi
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3474
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3477 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3478 if test $ac_compiler_gnu = yes; then
3479 GCC=yes
3480 else
3481 GCC=
3482 fi
3483 ac_test_CFLAGS=${CFLAGS+set}
3484 ac_save_CFLAGS=$CFLAGS
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3486 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3487 if test "${ac_cv_prog_cc_g+set}" = set; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 ac_save_c_werror_flag=$ac_c_werror_flag
3491 ac_c_werror_flag=yes
3492 ac_cv_prog_cc_g=no
3493 CFLAGS="-g"
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496
3497 int
3498 main ()
3499 {
3500
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 if ac_fn_c_try_compile "$LINENO"; then :
3506 ac_cv_prog_cc_g=yes
3507 else
3508 CFLAGS=""
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511
3512 int
3513 main ()
3514 {
3515
3516 ;
3517 return 0;
3518 }
3519 _ACEOF
3520 if ac_fn_c_try_compile "$LINENO"; then :
3521
3522 else
3523 ac_c_werror_flag=$ac_save_c_werror_flag
3524 CFLAGS="-g"
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3527
3528 int
3529 main ()
3530 {
3531
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_c_try_compile "$LINENO"; then :
3537 ac_cv_prog_cc_g=yes
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 fi
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 fi
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 ac_c_werror_flag=$ac_save_c_werror_flag
3545 fi
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3547 $as_echo "$ac_cv_prog_cc_g" >&6; }
3548 if test "$ac_test_CFLAGS" = set; then
3549 CFLAGS=$ac_save_CFLAGS
3550 elif test $ac_cv_prog_cc_g = yes; then
3551 if test "$GCC" = yes; then
3552 CFLAGS="-g -O2"
3553 else
3554 CFLAGS="-g"
3555 fi
3556 else
3557 if test "$GCC" = yes; then
3558 CFLAGS="-O2"
3559 else
3560 CFLAGS=
3561 fi
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3564 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3565 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 ac_cv_prog_cc_c89=no
3569 ac_save_CC=$CC
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572 #include <stdarg.h>
3573 #include <stdio.h>
3574 #include <sys/types.h>
3575 #include <sys/stat.h>
3576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3577 struct buf { int x; };
3578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3579 static char *e (p, i)
3580 char **p;
3581 int i;
3582 {
3583 return p[i];
3584 }
3585 static char *f (char * (*g) (char **, int), char **p, ...)
3586 {
3587 char *s;
3588 va_list v;
3589 va_start (v,p);
3590 s = g (p, va_arg (v,int));
3591 va_end (v);
3592 return s;
3593 }
3594
3595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3596 function prototypes and stuff, but not '\xHH' hex character constants.
3597 These don't provoke an error unfortunately, instead are silently treated
3598 as 'x'. The following induces an error, until -std is added to get
3599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3600 array size at least. It's necessary to write '\x00'==0 to get something
3601 that's true only with -std. */
3602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3603
3604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3605 inside strings and character constants. */
3606 #define FOO(x) 'x'
3607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3608
3609 int test (int i, double x);
3610 struct s1 {int (*f) (int a);};
3611 struct s2 {int (*f) (double a);};
3612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3613 int argc;
3614 char **argv;
3615 int
3616 main ()
3617 {
3618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3619 ;
3620 return 0;
3621 }
3622 _ACEOF
3623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3625 do
3626 CC="$ac_save_CC $ac_arg"
3627 if ac_fn_c_try_compile "$LINENO"; then :
3628 ac_cv_prog_cc_c89=$ac_arg
3629 fi
3630 rm -f core conftest.err conftest.$ac_objext
3631 test "x$ac_cv_prog_cc_c89" != "xno" && break
3632 done
3633 rm -f conftest.$ac_ext
3634 CC=$ac_save_CC
3635
3636 fi
3637 # AC_CACHE_VAL
3638 case "x$ac_cv_prog_cc_c89" in
3639 x)
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3641 $as_echo "none needed" >&6; } ;;
3642 xno)
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3644 $as_echo "unsupported" >&6; } ;;
3645 *)
3646 CC="$CC $ac_cv_prog_cc_c89"
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3648 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3649 esac
3650 if test "x$ac_cv_prog_cc_c89" != xno; then :
3651
3652 fi
3653
3654 ac_ext=c
3655 ac_cpp='$CPP $CPPFLAGS'
3656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659
3660 depcc="$CC" am_compiler_list=
3661
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3663 $as_echo_n "checking dependency style of $depcc... " >&6; }
3664 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3668 # We make a subdir and do the tests there. Otherwise we can end up
3669 # making bogus files that we don't know about and never remove. For
3670 # instance it was reported that on HP-UX the gcc test will end up
3671 # making a dummy file named `D' -- because `-MD' means `put the output
3672 # in D'.
3673 mkdir conftest.dir
3674 # Copy depcomp to subdir because otherwise we won't find it if we're
3675 # using a relative directory.
3676 cp "$am_depcomp" conftest.dir
3677 cd conftest.dir
3678 # We will build objects and dependencies in a subdirectory because
3679 # it helps to detect inapplicable dependency modes. For instance
3680 # both Tru64's cc and ICC support -MD to output dependencies as a
3681 # side effect of compilation, but ICC will put the dependencies in
3682 # the current directory while Tru64 will put them in the object
3683 # directory.
3684 mkdir sub
3685
3686 am_cv_CC_dependencies_compiler_type=none
3687 if test "$am_compiler_list" = ""; then
3688 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3689 fi
3690 am__universal=false
3691 case " $depcc " in #(
3692 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3693 esac
3694
3695 for depmode in $am_compiler_list; do
3696 # Setup a source with many dependencies, because some compilers
3697 # like to wrap large dependency lists on column 80 (with \), and
3698 # we should not choose a depcomp mode which is confused by this.
3699 #
3700 # We need to recreate these files for each test, as the compiler may
3701 # overwrite some of them when testing with obscure command lines.
3702 # This happens at least with the AIX C compiler.
3703 : > sub/conftest.c
3704 for i in 1 2 3 4 5 6; do
3705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3706 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3707 # Solaris 8's {/usr,}/bin/sh.
3708 touch sub/conftst$i.h
3709 done
3710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3711
3712 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3713 # mode. It turns out that the SunPro C++ compiler does not properly
3714 # handle `-M -o', and we need to detect this. Also, some Intel
3715 # versions had trouble with output in subdirs
3716 am__obj=sub/conftest.${OBJEXT-o}
3717 am__minus_obj="-o $am__obj"
3718 case $depmode in
3719 gcc)
3720 # This depmode causes a compiler race in universal mode.
3721 test "$am__universal" = false || continue
3722 ;;
3723 nosideeffect)
3724 # after this tag, mechanisms are not by side-effect, so they'll
3725 # only be used when explicitly requested
3726 if test "x$enable_dependency_tracking" = xyes; then
3727 continue
3728 else
3729 break
3730 fi
3731 ;;
3732 msvisualcpp | msvcmsys)
3733 # This compiler won't grok `-c -o', but also, the minuso test has
3734 # not run yet. These depmodes are late enough in the game, and
3735 # so weak that their functioning should not be impacted.
3736 am__obj=conftest.${OBJEXT-o}
3737 am__minus_obj=
3738 ;;
3739 none) break ;;
3740 esac
3741 if depmode=$depmode \
3742 source=sub/conftest.c object=$am__obj \
3743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3745 >/dev/null 2>conftest.err &&
3746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3750 # icc doesn't choke on unknown options, it will just issue warnings
3751 # or remarks (even with -Werror). So we grep stderr for any message
3752 # that says an option was ignored or not supported.
3753 # When given -MP, icc 7.0 and 7.1 complain thusly:
3754 # icc: Command line warning: ignoring option '-M'; no argument required
3755 # The diagnosis changed in icc 8.0:
3756 # icc: Command line remark: option '-MP' not supported
3757 if (grep 'ignoring option' conftest.err ||
3758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3759 am_cv_CC_dependencies_compiler_type=$depmode
3760 break
3761 fi
3762 fi
3763 done
3764
3765 cd ..
3766 rm -rf conftest.dir
3767 else
3768 am_cv_CC_dependencies_compiler_type=none
3769 fi
3770
3771 fi
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3773 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3774 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3775
3776 if
3777 test "x$enable_dependency_tracking" != xno \
3778 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3779 am__fastdepCC_TRUE=
3780 am__fastdepCC_FALSE='#'
3781 else
3782 am__fastdepCC_TRUE='#'
3783 am__fastdepCC_FALSE=
3784 fi
3785
3786
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3788 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3789 if test "${ac_cv_path_SED+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3793 for ac_i in 1 2 3 4 5 6 7; do
3794 ac_script="$ac_script$as_nl$ac_script"
3795 done
3796 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3797 { ac_script=; unset ac_script;}
3798 if test -z "$SED"; then
3799 ac_path_SED_found=false
3800 # Loop through the user's path and test for each of PROGNAME-LIST
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_prog in sed gsed; do
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3809 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3810 # Check for GNU ac_path_SED and select it if it is found.
3811 # Check for GNU $ac_path_SED
3812 case `"$ac_path_SED" --version 2>&1` in
3813 *GNU*)
3814 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3815 *)
3816 ac_count=0
3817 $as_echo_n 0123456789 >"conftest.in"
3818 while :
3819 do
3820 cat "conftest.in" "conftest.in" >"conftest.tmp"
3821 mv "conftest.tmp" "conftest.in"
3822 cp "conftest.in" "conftest.nl"
3823 $as_echo '' >> "conftest.nl"
3824 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3826 as_fn_arith $ac_count + 1 && ac_count=$as_val
3827 if test $ac_count -gt ${ac_path_SED_max-0}; then
3828 # Best one so far, save it but keep looking for a better one
3829 ac_cv_path_SED="$ac_path_SED"
3830 ac_path_SED_max=$ac_count
3831 fi
3832 # 10*(2^10) chars as input seems more than enough
3833 test $ac_count -gt 10 && break
3834 done
3835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3836 esac
3837
3838 $ac_path_SED_found && break 3
3839 done
3840 done
3841 done
3842 IFS=$as_save_IFS
3843 if test -z "$ac_cv_path_SED"; then
3844 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3845 fi
3846 else
3847 ac_cv_path_SED=$SED
3848 fi
3849
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3852 $as_echo "$ac_cv_path_SED" >&6; }
3853 SED="$ac_cv_path_SED"
3854 rm -f conftest.sed
3855
3856 test -z "$SED" && SED=sed
3857 Xsed="$SED -e 1s/^X//"
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3870 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3871 if test "${ac_cv_path_GREP+set}" = set; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 if test -z "$GREP"; then
3875 ac_path_GREP_found=false
3876 # Loop through the user's path and test for each of PROGNAME-LIST
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3879 do
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
3882 for ac_prog in grep ggrep; do
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3885 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3886 # Check for GNU ac_path_GREP and select it if it is found.
3887 # Check for GNU $ac_path_GREP
3888 case `"$ac_path_GREP" --version 2>&1` in
3889 *GNU*)
3890 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3891 *)
3892 ac_count=0
3893 $as_echo_n 0123456789 >"conftest.in"
3894 while :
3895 do
3896 cat "conftest.in" "conftest.in" >"conftest.tmp"
3897 mv "conftest.tmp" "conftest.in"
3898 cp "conftest.in" "conftest.nl"
3899 $as_echo 'GREP' >> "conftest.nl"
3900 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3902 as_fn_arith $ac_count + 1 && ac_count=$as_val
3903 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3904 # Best one so far, save it but keep looking for a better one
3905 ac_cv_path_GREP="$ac_path_GREP"
3906 ac_path_GREP_max=$ac_count
3907 fi
3908 # 10*(2^10) chars as input seems more than enough
3909 test $ac_count -gt 10 && break
3910 done
3911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3912 esac
3913
3914 $ac_path_GREP_found && break 3
3915 done
3916 done
3917 done
3918 IFS=$as_save_IFS
3919 if test -z "$ac_cv_path_GREP"; then
3920 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3921 fi
3922 else
3923 ac_cv_path_GREP=$GREP
3924 fi
3925
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3928 $as_echo "$ac_cv_path_GREP" >&6; }
3929 GREP="$ac_cv_path_GREP"
3930
3931
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3933 $as_echo_n "checking for egrep... " >&6; }
3934 if test "${ac_cv_path_EGREP+set}" = set; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3938 then ac_cv_path_EGREP="$GREP -E"
3939 else
3940 if test -z "$EGREP"; then
3941 ac_path_EGREP_found=false
3942 # Loop through the user's path and test for each of PROGNAME-LIST
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3945 do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_prog in egrep; do
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3951 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3952 # Check for GNU ac_path_EGREP and select it if it is found.
3953 # Check for GNU $ac_path_EGREP
3954 case `"$ac_path_EGREP" --version 2>&1` in
3955 *GNU*)
3956 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3957 *)
3958 ac_count=0
3959 $as_echo_n 0123456789 >"conftest.in"
3960 while :
3961 do
3962 cat "conftest.in" "conftest.in" >"conftest.tmp"
3963 mv "conftest.tmp" "conftest.in"
3964 cp "conftest.in" "conftest.nl"
3965 $as_echo 'EGREP' >> "conftest.nl"
3966 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3968 as_fn_arith $ac_count + 1 && ac_count=$as_val
3969 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3970 # Best one so far, save it but keep looking for a better one
3971 ac_cv_path_EGREP="$ac_path_EGREP"
3972 ac_path_EGREP_max=$ac_count
3973 fi
3974 # 10*(2^10) chars as input seems more than enough
3975 test $ac_count -gt 10 && break
3976 done
3977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3978 esac
3979
3980 $ac_path_EGREP_found && break 3
3981 done
3982 done
3983 done
3984 IFS=$as_save_IFS
3985 if test -z "$ac_cv_path_EGREP"; then
3986 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3987 fi
3988 else
3989 ac_cv_path_EGREP=$EGREP
3990 fi
3991
3992 fi
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3995 $as_echo "$ac_cv_path_EGREP" >&6; }
3996 EGREP="$ac_cv_path_EGREP"
3997
3998
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4000 $as_echo_n "checking for fgrep... " >&6; }
4001 if test "${ac_cv_path_FGREP+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4005 then ac_cv_path_FGREP="$GREP -F"
4006 else
4007 if test -z "$FGREP"; then
4008 ac_path_FGREP_found=false
4009 # Loop through the user's path and test for each of PROGNAME-LIST
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4012 do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_prog in fgrep; do
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4018 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4019 # Check for GNU ac_path_FGREP and select it if it is found.
4020 # Check for GNU $ac_path_FGREP
4021 case `"$ac_path_FGREP" --version 2>&1` in
4022 *GNU*)
4023 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4024 *)
4025 ac_count=0
4026 $as_echo_n 0123456789 >"conftest.in"
4027 while :
4028 do
4029 cat "conftest.in" "conftest.in" >"conftest.tmp"
4030 mv "conftest.tmp" "conftest.in"
4031 cp "conftest.in" "conftest.nl"
4032 $as_echo 'FGREP' >> "conftest.nl"
4033 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035 as_fn_arith $ac_count + 1 && ac_count=$as_val
4036 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4037 # Best one so far, save it but keep looking for a better one
4038 ac_cv_path_FGREP="$ac_path_FGREP"
4039 ac_path_FGREP_max=$ac_count
4040 fi
4041 # 10*(2^10) chars as input seems more than enough
4042 test $ac_count -gt 10 && break
4043 done
4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045 esac
4046
4047 $ac_path_FGREP_found && break 3
4048 done
4049 done
4050 done
4051 IFS=$as_save_IFS
4052 if test -z "$ac_cv_path_FGREP"; then
4053 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4054 fi
4055 else
4056 ac_cv_path_FGREP=$FGREP
4057 fi
4058
4059 fi
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4062 $as_echo "$ac_cv_path_FGREP" >&6; }
4063 FGREP="$ac_cv_path_FGREP"
4064
4065
4066 test -z "$GREP" && GREP=grep
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086 # Check whether --with-gnu-ld was given.
4087 if test "${with_gnu_ld+set}" = set; then :
4088 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4089 else
4090 with_gnu_ld=no
4091 fi
4092
4093 ac_prog=ld
4094 if test "$GCC" = yes; then
4095 # Check if gcc -print-prog-name=ld gives a path.
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4097 $as_echo_n "checking for ld used by $CC... " >&6; }
4098 case $host in
4099 *-*-mingw*)
4100 # gcc leaves a trailing carriage return which upsets mingw
4101 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4102 *)
4103 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4104 esac
4105 case $ac_prog in
4106 # Accept absolute paths.
4107 [\\/]* | ?:[\\/]*)
4108 re_direlt='/[^/][^/]*/\.\./'
4109 # Canonicalize the pathname of ld
4110 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4111 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4112 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4113 done
4114 test -z "$LD" && LD="$ac_prog"
4115 ;;
4116 "")
4117 # If it fails, then pretend we aren't using GCC.
4118 ac_prog=ld
4119 ;;
4120 *)
4121 # If it is relative, then search for the first ld in PATH.
4122 with_gnu_ld=unknown
4123 ;;
4124 esac
4125 elif test "$with_gnu_ld" = yes; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4127 $as_echo_n "checking for GNU ld... " >&6; }
4128 else
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4130 $as_echo_n "checking for non-GNU ld... " >&6; }
4131 fi
4132 if test "${lt_cv_path_LD+set}" = set; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 if test -z "$LD"; then
4136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4137 for ac_dir in $PATH; do
4138 IFS="$lt_save_ifs"
4139 test -z "$ac_dir" && ac_dir=.
4140 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4141 lt_cv_path_LD="$ac_dir/$ac_prog"
4142 # Check to see if the program is GNU ld. I'd rather use --version,
4143 # but apparently some variants of GNU ld only accept -v.
4144 # Break only if it was the GNU/non-GNU ld that we prefer.
4145 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4146 *GNU* | *'with BFD'*)
4147 test "$with_gnu_ld" != no && break
4148 ;;
4149 *)
4150 test "$with_gnu_ld" != yes && break
4151 ;;
4152 esac
4153 fi
4154 done
4155 IFS="$lt_save_ifs"
4156 else
4157 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4158 fi
4159 fi
4160
4161 LD="$lt_cv_path_LD"
4162 if test -n "$LD"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4164 $as_echo "$LD" >&6; }
4165 else
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4168 fi
4169 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4171 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4172 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4176 case `$LD -v 2>&1 </dev/null` in
4177 *GNU* | *'with BFD'*)
4178 lt_cv_prog_gnu_ld=yes
4179 ;;
4180 *)
4181 lt_cv_prog_gnu_ld=no
4182 ;;
4183 esac
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4186 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4187 with_gnu_ld=$lt_cv_prog_gnu_ld
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4198 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4199 if test "${lt_cv_path_NM+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 if test -n "$NM"; then
4203 # Let the user override the test.
4204 lt_cv_path_NM="$NM"
4205 else
4206 lt_nm_to_check="${ac_tool_prefix}nm"
4207 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4208 lt_nm_to_check="$lt_nm_to_check nm"
4209 fi
4210 for lt_tmp_nm in $lt_nm_to_check; do
4211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4212 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4213 IFS="$lt_save_ifs"
4214 test -z "$ac_dir" && ac_dir=.
4215 tmp_nm="$ac_dir/$lt_tmp_nm"
4216 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4217 # Check to see if the nm accepts a BSD-compat flag.
4218 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4219 # nm: unknown option "B" ignored
4220 # Tru64's nm complains that /dev/null is an invalid object file
4221 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4222 */dev/null* | *'Invalid file or object type'*)
4223 lt_cv_path_NM="$tmp_nm -B"
4224 break
4225 ;;
4226 *)
4227 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4228 */dev/null*)
4229 lt_cv_path_NM="$tmp_nm -p"
4230 break
4231 ;;
4232 *)
4233 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4234 continue # so that we can try to find one that supports BSD flags
4235 ;;
4236 esac
4237 ;;
4238 esac
4239 fi
4240 done
4241 IFS="$lt_save_ifs"
4242 done
4243 : ${lt_cv_path_NM=no}
4244 fi
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4247 $as_echo "$lt_cv_path_NM" >&6; }
4248 if test "$lt_cv_path_NM" != "no"; then
4249 NM="$lt_cv_path_NM"
4250 else
4251 # Didn't find any BSD compatible name lister, look for dumpbin.
4252 if test -n "$ac_tool_prefix"; then
4253 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4254 do
4255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if test -n "$DUMPBIN"; then
4263 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276 done
4277 done
4278 IFS=$as_save_IFS
4279
4280 fi
4281 fi
4282 DUMPBIN=$ac_cv_prog_DUMPBIN
4283 if test -n "$DUMPBIN"; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4285 $as_echo "$DUMPBIN" >&6; }
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 fi
4290
4291
4292 test -n "$DUMPBIN" && break
4293 done
4294 fi
4295 if test -z "$DUMPBIN"; then
4296 ac_ct_DUMPBIN=$DUMPBIN
4297 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4298 do
4299 # Extract the first word of "$ac_prog", so it can be a program name with args.
4300 set dummy $ac_prog; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 if test -n "$ac_ct_DUMPBIN"; then
4307 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4319 fi
4320 done
4321 done
4322 IFS=$as_save_IFS
4323
4324 fi
4325 fi
4326 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4327 if test -n "$ac_ct_DUMPBIN"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4329 $as_echo "$ac_ct_DUMPBIN" >&6; }
4330 else
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4333 fi
4334
4335
4336 test -n "$ac_ct_DUMPBIN" && break
4337 done
4338
4339 if test "x$ac_ct_DUMPBIN" = x; then
4340 DUMPBIN=":"
4341 else
4342 case $cross_compiling:$ac_tool_warned in
4343 yes:)
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346 ac_tool_warned=yes ;;
4347 esac
4348 DUMPBIN=$ac_ct_DUMPBIN
4349 fi
4350 fi
4351
4352
4353 if test "$DUMPBIN" != ":"; then
4354 NM="$DUMPBIN"
4355 fi
4356 fi
4357 test -z "$NM" && NM=nm
4358
4359
4360
4361
4362
4363
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4365 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4366 if test "${lt_cv_nm_interface+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 lt_cv_nm_interface="BSD nm"
4370 echo "int some_variable = 0;" > conftest.$ac_ext
4371 (eval echo "\"\$as_me:4371: $ac_compile\"" >&5)
4372 (eval "$ac_compile" 2>conftest.err)
4373 cat conftest.err >&5
4374 (eval echo "\"\$as_me:4374: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4375 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4376 cat conftest.err >&5
4377 (eval echo "\"\$as_me:4377: output\"" >&5)
4378 cat conftest.out >&5
4379 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4380 lt_cv_nm_interface="MS dumpbin"
4381 fi
4382 rm -f conftest*
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4385 $as_echo "$lt_cv_nm_interface" >&6; }
4386
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4388 $as_echo_n "checking whether ln -s works... " >&6; }
4389 LN_S=$as_ln_s
4390 if test "$LN_S" = "ln -s"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4392 $as_echo "yes" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4395 $as_echo "no, using $LN_S" >&6; }
4396 fi
4397
4398 # find the maximum length of command line arguments
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4400 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4401 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 i=0
4405 teststring="ABCD"
4406
4407 case $build_os in
4408 msdosdjgpp*)
4409 # On DJGPP, this test can blow up pretty badly due to problems in libc
4410 # (any single argument exceeding 2000 bytes causes a buffer overrun
4411 # during glob expansion). Even if it were fixed, the result of this
4412 # check would be larger than it should be.
4413 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4414 ;;
4415
4416 gnu*)
4417 # Under GNU Hurd, this test is not required because there is
4418 # no limit to the length of command line arguments.
4419 # Libtool will interpret -1 as no limit whatsoever
4420 lt_cv_sys_max_cmd_len=-1;
4421 ;;
4422
4423 cygwin* | mingw* | cegcc*)
4424 # On Win9x/ME, this test blows up -- it succeeds, but takes
4425 # about 5 minutes as the teststring grows exponentially.
4426 # Worse, since 9x/ME are not pre-emptively multitasking,
4427 # you end up with a "frozen" computer, even though with patience
4428 # the test eventually succeeds (with a max line length of 256k).
4429 # Instead, let's just punt: use the minimum linelength reported by
4430 # all of the supported platforms: 8192 (on NT/2K/XP).
4431 lt_cv_sys_max_cmd_len=8192;
4432 ;;
4433
4434 amigaos*)
4435 # On AmigaOS with pdksh, this test takes hours, literally.
4436 # So we just punt and use a minimum line length of 8192.
4437 lt_cv_sys_max_cmd_len=8192;
4438 ;;
4439
4440 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4441 # This has been around since 386BSD, at least. Likely further.
4442 if test -x /sbin/sysctl; then
4443 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4444 elif test -x /usr/sbin/sysctl; then
4445 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4446 else
4447 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4448 fi
4449 # And add a safety zone
4450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4452 ;;
4453
4454 interix*)
4455 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4456 lt_cv_sys_max_cmd_len=196608
4457 ;;
4458
4459 osf*)
4460 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4461 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4462 # nice to cause kernel panics so lets avoid the loop below.
4463 # First set a reasonable default.
4464 lt_cv_sys_max_cmd_len=16384
4465 #
4466 if test -x /sbin/sysconfig; then
4467 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4468 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4469 esac
4470 fi
4471 ;;
4472 sco3.2v5*)
4473 lt_cv_sys_max_cmd_len=102400
4474 ;;
4475 sysv5* | sco5v6* | sysv4.2uw2*)
4476 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4477 if test -n "$kargmax"; then
4478 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4479 else
4480 lt_cv_sys_max_cmd_len=32768
4481 fi
4482 ;;
4483 *)
4484 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4485 if test -n "$lt_cv_sys_max_cmd_len"; then
4486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4488 else
4489 # Make teststring a little bigger before we do anything with it.
4490 # a 1K string should be a reasonable start.
4491 for i in 1 2 3 4 5 6 7 8 ; do
4492 teststring=$teststring$teststring
4493 done
4494 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4495 # If test is not a shell built-in, we'll probably end up computing a
4496 # maximum length that is only half of the actual maximum length, but
4497 # we can't tell.
4498 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4499 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4500 test $i != 17 # 1/2 MB should be enough
4501 do
4502 i=`expr $i + 1`
4503 teststring=$teststring$teststring
4504 done
4505 # Only check the string length outside the loop.
4506 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4507 teststring=
4508 # Add a significant safety factor because C++ compilers can tack on
4509 # massive amounts of additional arguments before passing them to the
4510 # linker. It appears as though 1/2 is a usable value.
4511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4512 fi
4513 ;;
4514 esac
4515
4516 fi
4517
4518 if test -n $lt_cv_sys_max_cmd_len ; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4520 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4521 else
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4523 $as_echo "none" >&6; }
4524 fi
4525 max_cmd_len=$lt_cv_sys_max_cmd_len
4526
4527
4528
4529
4530
4531
4532 : ${CP="cp -f"}
4533 : ${MV="mv -f"}
4534 : ${RM="rm -f"}
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4537 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4538 # Try some XSI features
4539 xsi_shell=no
4540 ( _lt_dummy="a/b/c"
4541 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4542 = c,a/b,, \
4543 && eval 'test $(( 1 + 1 )) -eq 2 \
4544 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4545 && xsi_shell=yes
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4547 $as_echo "$xsi_shell" >&6; }
4548
4549
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4551 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4552 lt_shell_append=no
4553 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4554 >/dev/null 2>&1 \
4555 && lt_shell_append=yes
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4557 $as_echo "$lt_shell_append" >&6; }
4558
4559
4560 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4561 lt_unset=unset
4562 else
4563 lt_unset=false
4564 fi
4565
4566
4567
4568
4569
4570 # test EBCDIC or ASCII
4571 case `echo X|tr X '\101'` in
4572 A) # ASCII based system
4573 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4574 lt_SP2NL='tr \040 \012'
4575 lt_NL2SP='tr \015\012 \040\040'
4576 ;;
4577 *) # EBCDIC based system
4578 lt_SP2NL='tr \100 \n'
4579 lt_NL2SP='tr \r\n \100\100'
4580 ;;
4581 esac
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4592 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4593 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 lt_cv_ld_reload_flag='-r'
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4599 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4600 reload_flag=$lt_cv_ld_reload_flag
4601 case $reload_flag in
4602 "" | " "*) ;;
4603 *) reload_flag=" $reload_flag" ;;
4604 esac
4605 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4606 case $host_os in
4607 darwin*)
4608 if test "$GCC" = yes; then
4609 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4610 else
4611 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4612 fi
4613 ;;
4614 esac
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624 if test -n "$ac_tool_prefix"; then
4625 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4626 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4632 if test -n "$OBJDUMP"; then
4633 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646 done
4647 done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 OBJDUMP=$ac_cv_prog_OBJDUMP
4653 if test -n "$OBJDUMP"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4655 $as_echo "$OBJDUMP" >&6; }
4656 else
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4659 fi
4660
4661
4662 fi
4663 if test -z "$ac_cv_prog_OBJDUMP"; then
4664 ac_ct_OBJDUMP=$OBJDUMP
4665 # Extract the first word of "objdump", so it can be a program name with args.
4666 set dummy objdump; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if test -n "$ac_ct_OBJDUMP"; then
4673 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4677 do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686 done
4687 done
4688 IFS=$as_save_IFS
4689
4690 fi
4691 fi
4692 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4693 if test -n "$ac_ct_OBJDUMP"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4695 $as_echo "$ac_ct_OBJDUMP" >&6; }
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699 fi
4700
4701 if test "x$ac_ct_OBJDUMP" = x; then
4702 OBJDUMP="false"
4703 else
4704 case $cross_compiling:$ac_tool_warned in
4705 yes:)
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4708 ac_tool_warned=yes ;;
4709 esac
4710 OBJDUMP=$ac_ct_OBJDUMP
4711 fi
4712 else
4713 OBJDUMP="$ac_cv_prog_OBJDUMP"
4714 fi
4715
4716 test -z "$OBJDUMP" && OBJDUMP=objdump
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4727 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4728 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 lt_cv_file_magic_cmd='$MAGIC_CMD'
4732 lt_cv_file_magic_test_file=
4733 lt_cv_deplibs_check_method='unknown'
4734 # Need to set the preceding variable on all platforms that support
4735 # interlibrary dependencies.
4736 # 'none' -- dependencies not supported.
4737 # `unknown' -- same as none, but documents that we really don't know.
4738 # 'pass_all' -- all dependencies passed with no checks.
4739 # 'test_compile' -- check by making test program.
4740 # 'file_magic [[regex]]' -- check by looking for files in library path
4741 # which responds to the $file_magic_cmd with a given extended regex.
4742 # If you have `file' or equivalent on your system and you're not sure
4743 # whether `pass_all' will *always* work, you probably want this one.
4744
4745 case $host_os in
4746 aix[4-9]*)
4747 lt_cv_deplibs_check_method=pass_all
4748 ;;
4749
4750 beos*)
4751 lt_cv_deplibs_check_method=pass_all
4752 ;;
4753
4754 bsdi[45]*)
4755 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4756 lt_cv_file_magic_cmd='/usr/bin/file -L'
4757 lt_cv_file_magic_test_file=/shlib/libc.so
4758 ;;
4759
4760 cygwin*)
4761 # func_win32_libid is a shell function defined in ltmain.sh
4762 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4763 lt_cv_file_magic_cmd='func_win32_libid'
4764 ;;
4765
4766 mingw* | pw32*)
4767 # Base MSYS/MinGW do not provide the 'file' command needed by
4768 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4769 # unless we find 'file', for example because we are cross-compiling.
4770 if ( file / ) >/dev/null 2>&1; then
4771 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4772 lt_cv_file_magic_cmd='func_win32_libid'
4773 else
4774 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4775 lt_cv_file_magic_cmd='$OBJDUMP -f'
4776 fi
4777 ;;
4778
4779 cegcc)
4780 # use the weaker test based on 'objdump'. See mingw*.
4781 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4782 lt_cv_file_magic_cmd='$OBJDUMP -f'
4783 ;;
4784
4785 darwin* | rhapsody*)
4786 lt_cv_deplibs_check_method=pass_all
4787 ;;
4788
4789 freebsd* | dragonfly*)
4790 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4791 case $host_cpu in
4792 i*86 )
4793 # Not sure whether the presence of OpenBSD here was a mistake.
4794 # Let's accept both of them until this is cleared up.
4795 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4796 lt_cv_file_magic_cmd=/usr/bin/file
4797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4798 ;;
4799 esac
4800 else
4801 lt_cv_deplibs_check_method=pass_all
4802 fi
4803 ;;
4804
4805 gnu*)
4806 lt_cv_deplibs_check_method=pass_all
4807 ;;
4808
4809 hpux10.20* | hpux11*)
4810 lt_cv_file_magic_cmd=/usr/bin/file
4811 case $host_cpu in
4812 ia64*)
4813 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4814 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4815 ;;
4816 hppa*64*)
4817 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4818 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4819 ;;
4820 *)
4821 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4822 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4823 ;;
4824 esac
4825 ;;
4826
4827 interix[3-9]*)
4828 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4830 ;;
4831
4832 irix5* | irix6* | nonstopux*)
4833 case $LD in
4834 *-32|*"-32 ") libmagic=32-bit;;
4835 *-n32|*"-n32 ") libmagic=N32;;
4836 *-64|*"-64 ") libmagic=64-bit;;
4837 *) libmagic=never-match;;
4838 esac
4839 lt_cv_deplibs_check_method=pass_all
4840 ;;
4841
4842 # This must be Linux ELF.
4843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4844 lt_cv_deplibs_check_method=pass_all
4845 ;;
4846
4847 netbsd* | netbsdelf*-gnu)
4848 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4850 else
4851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4852 fi
4853 ;;
4854
4855 newos6*)
4856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4857 lt_cv_file_magic_cmd=/usr/bin/file
4858 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4859 ;;
4860
4861 *nto* | *qnx*)
4862 lt_cv_deplibs_check_method=pass_all
4863 ;;
4864
4865 openbsd*)
4866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4868 else
4869 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4870 fi
4871 ;;
4872
4873 osf3* | osf4* | osf5*)
4874 lt_cv_deplibs_check_method=pass_all
4875 ;;
4876
4877 rdos*)
4878 lt_cv_deplibs_check_method=pass_all
4879 ;;
4880
4881 solaris*)
4882 lt_cv_deplibs_check_method=pass_all
4883 ;;
4884
4885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4886 lt_cv_deplibs_check_method=pass_all
4887 ;;
4888
4889 sysv4 | sysv4.3*)
4890 case $host_vendor in
4891 motorola)
4892 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]'
4893 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4894 ;;
4895 ncr)
4896 lt_cv_deplibs_check_method=pass_all
4897 ;;
4898 sequent)
4899 lt_cv_file_magic_cmd='/bin/file'
4900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4901 ;;
4902 sni)
4903 lt_cv_file_magic_cmd='/bin/file'
4904 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4905 lt_cv_file_magic_test_file=/lib/libc.so
4906 ;;
4907 siemens)
4908 lt_cv_deplibs_check_method=pass_all
4909 ;;
4910 pc)
4911 lt_cv_deplibs_check_method=pass_all
4912 ;;
4913 esac
4914 ;;
4915
4916 tpf*)
4917 lt_cv_deplibs_check_method=pass_all
4918 ;;
4919 esac
4920
4921 fi
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4923 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4924 file_magic_cmd=$lt_cv_file_magic_cmd
4925 deplibs_check_method=$lt_cv_deplibs_check_method
4926 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939 if test -n "$ac_tool_prefix"; then
4940 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4941 set dummy ${ac_tool_prefix}ar; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if test "${ac_cv_prog_AR+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if test -n "$AR"; then
4948 ac_cv_prog_AR="$AR" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 ac_cv_prog_AR="${ac_tool_prefix}ar"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961 done
4962 done
4963 IFS=$as_save_IFS
4964
4965 fi
4966 fi
4967 AR=$ac_cv_prog_AR
4968 if test -n "$AR"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4970 $as_echo "$AR" >&6; }
4971 else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4974 fi
4975
4976
4977 fi
4978 if test -z "$ac_cv_prog_AR"; then
4979 ac_ct_AR=$AR
4980 # Extract the first word of "ar", so it can be a program name with args.
4981 set dummy ar; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -n "$ac_ct_AR"; then
4988 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_prog_ac_ct_AR="ar"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5000 fi
5001 done
5002 done
5003 IFS=$as_save_IFS
5004
5005 fi
5006 fi
5007 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5008 if test -n "$ac_ct_AR"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5010 $as_echo "$ac_ct_AR" >&6; }
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5014 fi
5015
5016 if test "x$ac_ct_AR" = x; then
5017 AR="false"
5018 else
5019 case $cross_compiling:$ac_tool_warned in
5020 yes:)
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5023 ac_tool_warned=yes ;;
5024 esac
5025 AR=$ac_ct_AR
5026 fi
5027 else
5028 AR="$ac_cv_prog_AR"
5029 fi
5030
5031 test -z "$AR" && AR=ar
5032 test -z "$AR_FLAGS" && AR_FLAGS=cru
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044 if test -n "$ac_tool_prefix"; then
5045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5046 set dummy ${ac_tool_prefix}strip; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if test "${ac_cv_prog_STRIP+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$STRIP"; then
5053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5065 fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070 fi
5071 fi
5072 STRIP=$ac_cv_prog_STRIP
5073 if test -n "$STRIP"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5075 $as_echo "$STRIP" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5079 fi
5080
5081
5082 fi
5083 if test -z "$ac_cv_prog_STRIP"; then
5084 ac_ct_STRIP=$STRIP
5085 # Extract the first word of "strip", so it can be a program name with args.
5086 set dummy strip; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$ac_ct_STRIP"; then
5093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_ac_ct_STRIP="strip"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5105 fi
5106 done
5107 done
5108 IFS=$as_save_IFS
5109
5110 fi
5111 fi
5112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5113 if test -n "$ac_ct_STRIP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5115 $as_echo "$ac_ct_STRIP" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121 if test "x$ac_ct_STRIP" = x; then
5122 STRIP=":"
5123 else
5124 case $cross_compiling:$ac_tool_warned in
5125 yes:)
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5128 ac_tool_warned=yes ;;
5129 esac
5130 STRIP=$ac_ct_STRIP
5131 fi
5132 else
5133 STRIP="$ac_cv_prog_STRIP"
5134 fi
5135
5136 test -z "$STRIP" && STRIP=:
5137
5138
5139
5140
5141
5142
5143 if test -n "$ac_tool_prefix"; then
5144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5145 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -n "$RANLIB"; then
5152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165 done
5166 done
5167 IFS=$as_save_IFS
5168
5169 fi
5170 fi
5171 RANLIB=$ac_cv_prog_RANLIB
5172 if test -n "$RANLIB"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5174 $as_echo "$RANLIB" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180
5181 fi
5182 if test -z "$ac_cv_prog_RANLIB"; then
5183 ac_ct_RANLIB=$RANLIB
5184 # Extract the first word of "ranlib", so it can be a program name with args.
5185 set dummy ranlib; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$ac_ct_RANLIB"; then
5192 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_prog_ac_ct_RANLIB="ranlib"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205 done
5206 done
5207 IFS=$as_save_IFS
5208
5209 fi
5210 fi
5211 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5212 if test -n "$ac_ct_RANLIB"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5214 $as_echo "$ac_ct_RANLIB" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220 if test "x$ac_ct_RANLIB" = x; then
5221 RANLIB=":"
5222 else
5223 case $cross_compiling:$ac_tool_warned in
5224 yes:)
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227 ac_tool_warned=yes ;;
5228 esac
5229 RANLIB=$ac_ct_RANLIB
5230 fi
5231 else
5232 RANLIB="$ac_cv_prog_RANLIB"
5233 fi
5234
5235 test -z "$RANLIB" && RANLIB=:
5236
5237
5238
5239
5240
5241
5242 # Determine commands to create old-style static archives.
5243 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5244 old_postinstall_cmds='chmod 644 $oldlib'
5245 old_postuninstall_cmds=
5246
5247 if test -n "$RANLIB"; then
5248 case $host_os in
5249 openbsd*)
5250 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5251 ;;
5252 *)
5253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5254 ;;
5255 esac
5256 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5257 fi
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292 # If no C compiler was specified, use CC.
5293 LTCC=${LTCC-"$CC"}
5294
5295 # If no C compiler flags were specified, use CFLAGS.
5296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5297
5298 # Allow CC to be a program name with arguments.
5299 compiler=$CC
5300
5301
5302 # Check for command to grab the raw symbol name followed by C symbol from nm.
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5304 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5305 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308
5309 # These are sane defaults that work on at least a few old systems.
5310 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5311
5312 # Character class describing NM global symbol codes.
5313 symcode='[BCDEGRST]'
5314
5315 # Regexp to match symbols that can be accessed directly from C.
5316 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5317
5318 # Define system-specific variables.
5319 case $host_os in
5320 aix*)
5321 symcode='[BCDT]'
5322 ;;
5323 cygwin* | mingw* | pw32* | cegcc*)
5324 symcode='[ABCDGISTW]'
5325 ;;
5326 hpux*)
5327 if test "$host_cpu" = ia64; then
5328 symcode='[ABCDEGRST]'
5329 fi
5330 ;;
5331 irix* | nonstopux*)
5332 symcode='[BCDEGRST]'
5333 ;;
5334 osf*)
5335 symcode='[BCDEGQRST]'
5336 ;;
5337 solaris*)
5338 symcode='[BDRT]'
5339 ;;
5340 sco3.2v5*)
5341 symcode='[DT]'
5342 ;;
5343 sysv4.2uw2*)
5344 symcode='[DT]'
5345 ;;
5346 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5347 symcode='[ABDT]'
5348 ;;
5349 sysv4)
5350 symcode='[DFNSTU]'
5351 ;;
5352 esac
5353
5354 # If we're using GNU nm, then use its standard symbol codes.
5355 case `$NM -V 2>&1` in
5356 *GNU* | *'with BFD'*)
5357 symcode='[ABCDGIRSTW]' ;;
5358 esac
5359
5360 # Transform an extracted symbol line into a proper C declaration.
5361 # Some systems (esp. on ia64) link data and code symbols differently,
5362 # so use this general approach.
5363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5364
5365 # Transform an extracted symbol line into symbol name and symbol address
5366 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5367 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'"
5368
5369 # Handle CRLF in mingw tool chain
5370 opt_cr=
5371 case $build_os in
5372 mingw*)
5373 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5374 ;;
5375 esac
5376
5377 # Try without a prefix underscore, then with it.
5378 for ac_symprfx in "" "_"; do
5379
5380 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5381 symxfrm="\\1 $ac_symprfx\\2 \\2"
5382
5383 # Write the raw and C identifiers.
5384 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5385 # Fake it for dumpbin and say T for any non-static function
5386 # and D for any global variable.
5387 # Also find C++ and __fastcall symbols from MSVC++,
5388 # which start with @ or ?.
5389 lt_cv_sys_global_symbol_pipe="$AWK '"\
5390 " {last_section=section; section=\$ 3};"\
5391 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5392 " \$ 0!~/External *\|/{next};"\
5393 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5394 " {if(hide[section]) next};"\
5395 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5396 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5397 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5398 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5399 " ' prfx=^$ac_symprfx"
5400 else
5401 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5402 fi
5403
5404 # Check to see that the pipe works correctly.
5405 pipe_works=no
5406
5407 rm -f conftest*
5408 cat > conftest.$ac_ext <<_LT_EOF
5409 #ifdef __cplusplus
5410 extern "C" {
5411 #endif
5412 char nm_test_var;
5413 void nm_test_func(void);
5414 void nm_test_func(void){}
5415 #ifdef __cplusplus
5416 }
5417 #endif
5418 int main(){nm_test_var='a';nm_test_func();return(0);}
5419 _LT_EOF
5420
5421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5422 (eval $ac_compile) 2>&5
5423 ac_status=$?
5424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5425 test $ac_status = 0; }; then
5426 # Now try to grab the symbols.
5427 nlist=conftest.nm
5428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5429 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5430 ac_status=$?
5431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5432 test $ac_status = 0; } && test -s "$nlist"; then
5433 # Try sorting and uniquifying the output.
5434 if sort "$nlist" | uniq > "$nlist"T; then
5435 mv -f "$nlist"T "$nlist"
5436 else
5437 rm -f "$nlist"T
5438 fi
5439
5440 # Make sure that we snagged all the symbols we need.
5441 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5442 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5443 cat <<_LT_EOF > conftest.$ac_ext
5444 #ifdef __cplusplus
5445 extern "C" {
5446 #endif
5447
5448 _LT_EOF
5449 # Now generate the symbol file.
5450 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5451
5452 cat <<_LT_EOF >> conftest.$ac_ext
5453
5454 /* The mapping between symbol names and symbols. */
5455 const struct {
5456 const char *name;
5457 void *address;
5458 }
5459 lt__PROGRAM__LTX_preloaded_symbols[] =
5460 {
5461 { "@PROGRAM@", (void *) 0 },
5462 _LT_EOF
5463 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5464 cat <<\_LT_EOF >> conftest.$ac_ext
5465 {0, (void *) 0}
5466 };
5467
5468 /* This works around a problem in FreeBSD linker */
5469 #ifdef FREEBSD_WORKAROUND
5470 static const void *lt_preloaded_setup() {
5471 return lt__PROGRAM__LTX_preloaded_symbols;
5472 }
5473 #endif
5474
5475 #ifdef __cplusplus
5476 }
5477 #endif
5478 _LT_EOF
5479 # Now try linking the two files.
5480 mv conftest.$ac_objext conftstm.$ac_objext
5481 lt_save_LIBS="$LIBS"
5482 lt_save_CFLAGS="$CFLAGS"
5483 LIBS="conftstm.$ac_objext"
5484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5486 (eval $ac_link) 2>&5
5487 ac_status=$?
5488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5489 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5490 pipe_works=yes
5491 fi
5492 LIBS="$lt_save_LIBS"
5493 CFLAGS="$lt_save_CFLAGS"
5494 else
5495 echo "cannot find nm_test_func in $nlist" >&5
5496 fi
5497 else
5498 echo "cannot find nm_test_var in $nlist" >&5
5499 fi
5500 else
5501 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5502 fi
5503 else
5504 echo "$progname: failed program was:" >&5
5505 cat conftest.$ac_ext >&5
5506 fi
5507 rm -rf conftest* conftst*
5508
5509 # Do not use the global_symbol_pipe unless it works.
5510 if test "$pipe_works" = yes; then
5511 break
5512 else
5513 lt_cv_sys_global_symbol_pipe=
5514 fi
5515 done
5516
5517 fi
5518
5519 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5520 lt_cv_sys_global_symbol_to_cdecl=
5521 fi
5522 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5524 $as_echo "failed" >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5527 $as_echo "ok" >&6; }
5528 fi
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 # Check whether --enable-libtool-lock was given.
5553 if test "${enable_libtool_lock+set}" = set; then :
5554 enableval=$enable_libtool_lock;
5555 fi
5556
5557 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5558
5559 # Some flags need to be propagated to the compiler or linker for good
5560 # libtool support.
5561 case $host in
5562 ia64-*-hpux*)
5563 # Find out which ABI we are using.
5564 echo 'int i;' > conftest.$ac_ext
5565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5566 (eval $ac_compile) 2>&5
5567 ac_status=$?
5568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5569 test $ac_status = 0; }; then
5570 case `/usr/bin/file conftest.$ac_objext` in
5571 *ELF-32*)
5572 HPUX_IA64_MODE="32"
5573 ;;
5574 *ELF-64*)
5575 HPUX_IA64_MODE="64"
5576 ;;
5577 esac
5578 fi
5579 rm -rf conftest*
5580 ;;
5581 *-*-irix6*)
5582 # Find out which ABI we are using.
5583 echo '#line 5583 "configure"' > conftest.$ac_ext
5584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5585 (eval $ac_compile) 2>&5
5586 ac_status=$?
5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588 test $ac_status = 0; }; then
5589 if test "$lt_cv_prog_gnu_ld" = yes; then
5590 case `/usr/bin/file conftest.$ac_objext` in
5591 *32-bit*)
5592 LD="${LD-ld} -melf32bsmip"
5593 ;;
5594 *N32*)
5595 LD="${LD-ld} -melf32bmipn32"
5596 ;;
5597 *64-bit*)
5598 LD="${LD-ld} -melf64bmip"
5599 ;;
5600 esac
5601 else
5602 case `/usr/bin/file conftest.$ac_objext` in
5603 *32-bit*)
5604 LD="${LD-ld} -32"
5605 ;;
5606 *N32*)
5607 LD="${LD-ld} -n32"
5608 ;;
5609 *64-bit*)
5610 LD="${LD-ld} -64"
5611 ;;
5612 esac
5613 fi
5614 fi
5615 rm -rf conftest*
5616 ;;
5617
5618 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5619 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5620 # Find out which ABI we are using.
5621 echo 'int i;' > conftest.$ac_ext
5622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5623 (eval $ac_compile) 2>&5
5624 ac_status=$?
5625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5626 test $ac_status = 0; }; then
5627 case `/usr/bin/file conftest.o` in
5628 *32-bit*)
5629 case $host in
5630 x86_64-*kfreebsd*-gnu)
5631 LD="${LD-ld} -m elf_i386_fbsd"
5632 ;;
5633 x86_64-*linux*)
5634 LD="${LD-ld} -m elf_i386"
5635 ;;
5636 ppc64-*linux*|powerpc64-*linux*)
5637 LD="${LD-ld} -m elf32ppclinux"
5638 ;;
5639 s390x-*linux*)
5640 LD="${LD-ld} -m elf_s390"
5641 ;;
5642 sparc64-*linux*)
5643 LD="${LD-ld} -m elf32_sparc"
5644 ;;
5645 esac
5646 ;;
5647 *64-bit*)
5648 case $host in
5649 x86_64-*kfreebsd*-gnu)
5650 LD="${LD-ld} -m elf_x86_64_fbsd"
5651 ;;
5652 x86_64-*linux*)
5653 LD="${LD-ld} -m elf_x86_64"
5654 ;;
5655 ppc*-*linux*|powerpc*-*linux*)
5656 LD="${LD-ld} -m elf64ppc"
5657 ;;
5658 s390*-*linux*|s390*-*tpf*)
5659 LD="${LD-ld} -m elf64_s390"
5660 ;;
5661 sparc*-*linux*)
5662 LD="${LD-ld} -m elf64_sparc"
5663 ;;
5664 esac
5665 ;;
5666 esac
5667 fi
5668 rm -rf conftest*
5669 ;;
5670
5671 *-*-sco3.2v5*)
5672 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5673 SAVE_CFLAGS="$CFLAGS"
5674 CFLAGS="$CFLAGS -belf"
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5676 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5677 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 ac_ext=c
5681 ac_cpp='$CPP $CPPFLAGS'
5682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5685
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688
5689 int
5690 main ()
5691 {
5692
5693 ;
5694 return 0;
5695 }
5696 _ACEOF
5697 if ac_fn_c_try_link "$LINENO"; then :
5698 lt_cv_cc_needs_belf=yes
5699 else
5700 lt_cv_cc_needs_belf=no
5701 fi
5702 rm -f core conftest.err conftest.$ac_objext \
5703 conftest$ac_exeext conftest.$ac_ext
5704 ac_ext=c
5705 ac_cpp='$CPP $CPPFLAGS'
5706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5709
5710 fi
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5712 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5713 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5714 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5715 CFLAGS="$SAVE_CFLAGS"
5716 fi
5717 ;;
5718 sparc*-*solaris*)
5719 # Find out which ABI we are using.
5720 echo 'int i;' > conftest.$ac_ext
5721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5722 (eval $ac_compile) 2>&5
5723 ac_status=$?
5724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5725 test $ac_status = 0; }; then
5726 case `/usr/bin/file conftest.o` in
5727 *64-bit*)
5728 case $lt_cv_prog_gnu_ld in
5729 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5730 *)
5731 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5732 LD="${LD-ld} -64"
5733 fi
5734 ;;
5735 esac
5736 ;;
5737 esac
5738 fi
5739 rm -rf conftest*
5740 ;;
5741 esac
5742
5743 need_locks="$enable_libtool_lock"
5744
5745
5746 case $host_os in
5747 rhapsody* | darwin*)
5748 if test -n "$ac_tool_prefix"; then
5749 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5750 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 if test -n "$DSYMUTIL"; then
5757 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5758 else
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5761 do
5762 IFS=$as_save_IFS
5763 test -z "$as_dir" && as_dir=.
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5766 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 break 2
5769 fi
5770 done
5771 done
5772 IFS=$as_save_IFS
5773
5774 fi
5775 fi
5776 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5777 if test -n "$DSYMUTIL"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5779 $as_echo "$DSYMUTIL" >&6; }
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5783 fi
5784
5785
5786 fi
5787 if test -z "$ac_cv_prog_DSYMUTIL"; then
5788 ac_ct_DSYMUTIL=$DSYMUTIL
5789 # Extract the first word of "dsymutil", so it can be a program name with args.
5790 set dummy dsymutil; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 if test -n "$ac_ct_DSYMUTIL"; then
5797 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810 done
5811 done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5817 if test -n "$ac_ct_DSYMUTIL"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5819 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5820 else
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823 fi
5824
5825 if test "x$ac_ct_DSYMUTIL" = x; then
5826 DSYMUTIL=":"
5827 else
5828 case $cross_compiling:$ac_tool_warned in
5829 yes:)
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5832 ac_tool_warned=yes ;;
5833 esac
5834 DSYMUTIL=$ac_ct_DSYMUTIL
5835 fi
5836 else
5837 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5838 fi
5839
5840 if test -n "$ac_tool_prefix"; then
5841 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5842 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 if test -n "$NMEDIT"; then
5849 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 NMEDIT=$ac_cv_prog_NMEDIT
5869 if test -n "$NMEDIT"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5871 $as_echo "$NMEDIT" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876
5877
5878 fi
5879 if test -z "$ac_cv_prog_NMEDIT"; then
5880 ac_ct_NMEDIT=$NMEDIT
5881 # Extract the first word of "nmedit", so it can be a program name with args.
5882 set dummy nmedit; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 if test -n "$ac_ct_NMEDIT"; then
5889 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 break 2
5901 fi
5902 done
5903 done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5909 if test -n "$ac_ct_NMEDIT"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5911 $as_echo "$ac_ct_NMEDIT" >&6; }
5912 else
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5915 fi
5916
5917 if test "x$ac_ct_NMEDIT" = x; then
5918 NMEDIT=":"
5919 else
5920 case $cross_compiling:$ac_tool_warned in
5921 yes:)
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924 ac_tool_warned=yes ;;
5925 esac
5926 NMEDIT=$ac_ct_NMEDIT
5927 fi
5928 else
5929 NMEDIT="$ac_cv_prog_NMEDIT"
5930 fi
5931
5932 if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_LIPO+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if test -n "$LIPO"; then
5941 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954 done
5955 done
5956 IFS=$as_save_IFS
5957
5958 fi
5959 fi
5960 LIPO=$ac_cv_prog_LIPO
5961 if test -n "$LIPO"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5963 $as_echo "$LIPO" >&6; }
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5967 fi
5968
5969
5970 fi
5971 if test -z "$ac_cv_prog_LIPO"; then
5972 ac_ct_LIPO=$LIPO
5973 # Extract the first word of "lipo", so it can be a program name with args.
5974 set dummy lipo; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$ac_ct_LIPO"; then
5981 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_ac_ct_LIPO="lipo"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6001 if test -n "$ac_ct_LIPO"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6003 $as_echo "$ac_ct_LIPO" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009 if test "x$ac_ct_LIPO" = x; then
6010 LIPO=":"
6011 else
6012 case $cross_compiling:$ac_tool_warned in
6013 yes:)
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 ac_tool_warned=yes ;;
6017 esac
6018 LIPO=$ac_ct_LIPO
6019 fi
6020 else
6021 LIPO="$ac_cv_prog_LIPO"
6022 fi
6023
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}otool; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$OTOOL"; then
6033 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046 done
6047 done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 OTOOL=$ac_cv_prog_OTOOL
6053 if test -n "$OTOOL"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6055 $as_echo "$OTOOL" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062 fi
6063 if test -z "$ac_cv_prog_OTOOL"; then
6064 ac_ct_OTOOL=$OTOOL
6065 # Extract the first word of "otool", so it can be a program name with args.
6066 set dummy otool; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$ac_ct_OTOOL"; then
6073 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_OTOOL="otool"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086 done
6087 done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6093 if test -n "$ac_ct_OTOOL"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6095 $as_echo "$ac_ct_OTOOL" >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101 if test "x$ac_ct_OTOOL" = x; then
6102 OTOOL=":"
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 OTOOL=$ac_ct_OTOOL
6111 fi
6112 else
6113 OTOOL="$ac_cv_prog_OTOOL"
6114 fi
6115
6116 if test -n "$ac_tool_prefix"; then
6117 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6118 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if test -n "$OTOOL64"; then
6125 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6137 fi
6138 done
6139 done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 OTOOL64=$ac_cv_prog_OTOOL64
6145 if test -n "$OTOOL64"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6147 $as_echo "$OTOOL64" >&6; }
6148 else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6151 fi
6152
6153
6154 fi
6155 if test -z "$ac_cv_prog_OTOOL64"; then
6156 ac_ct_OTOOL64=$OTOOL64
6157 # Extract the first word of "otool64", so it can be a program name with args.
6158 set dummy otool64; ac_word=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 if test -n "$ac_ct_OTOOL64"; then
6165 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6166 else
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6169 do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_prog_ac_ct_OTOOL64="otool64"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178 done
6179 done
6180 IFS=$as_save_IFS
6181
6182 fi
6183 fi
6184 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6185 if test -n "$ac_ct_OTOOL64"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6187 $as_echo "$ac_ct_OTOOL64" >&6; }
6188 else
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6191 fi
6192
6193 if test "x$ac_ct_OTOOL64" = x; then
6194 OTOOL64=":"
6195 else
6196 case $cross_compiling:$ac_tool_warned in
6197 yes:)
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200 ac_tool_warned=yes ;;
6201 esac
6202 OTOOL64=$ac_ct_OTOOL64
6203 fi
6204 else
6205 OTOOL64="$ac_cv_prog_OTOOL64"
6206 fi
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6235 $as_echo_n "checking for -single_module linker flag... " >&6; }
6236 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 lt_cv_apple_cc_single_mod=no
6240 if test -z "${LT_MULTI_MODULE}"; then
6241 # By default we will add the -single_module flag. You can override
6242 # by either setting the environment variable LT_MULTI_MODULE
6243 # non-empty at configure time, or by adding -multi_module to the
6244 # link flags.
6245 rm -rf libconftest.dylib*
6246 echo "int foo(void){return 1;}" > conftest.c
6247 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6248 -dynamiclib -Wl,-single_module conftest.c" >&5
6249 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6250 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6251 _lt_result=$?
6252 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6253 lt_cv_apple_cc_single_mod=yes
6254 else
6255 cat conftest.err >&5
6256 fi
6257 rm -rf libconftest.dylib*
6258 rm -f conftest.*
6259 fi
6260 fi
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6262 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6264 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6265 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 lt_cv_ld_exported_symbols_list=no
6269 save_LDFLAGS=$LDFLAGS
6270 echo "_main" > conftest.sym
6271 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274
6275 int
6276 main ()
6277 {
6278
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 if ac_fn_c_try_link "$LINENO"; then :
6284 lt_cv_ld_exported_symbols_list=yes
6285 else
6286 lt_cv_ld_exported_symbols_list=no
6287 fi
6288 rm -f core conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6290 LDFLAGS="$save_LDFLAGS"
6291
6292 fi
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6294 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6295 case $host_os in
6296 rhapsody* | darwin1.[012])
6297 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6298 darwin1.*)
6299 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6300 darwin*) # darwin 5.x on
6301 # if running on 10.5 or later, the deployment target defaults
6302 # to the OS version, if on x86, and 10.4, the deployment
6303 # target defaults to 10.4. Don't you love it?
6304 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6305 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6306 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6307 10.[012]*)
6308 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6309 10.*)
6310 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6311 esac
6312 ;;
6313 esac
6314 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6315 _lt_dar_single_mod='$single_module'
6316 fi
6317 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6318 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6319 else
6320 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6321 fi
6322 if test "$DSYMUTIL" != ":"; then
6323 _lt_dsymutil='~$DSYMUTIL $lib || :'
6324 else
6325 _lt_dsymutil=
6326 fi
6327 ;;
6328 esac
6329
6330 ac_ext=c
6331 ac_cpp='$CPP $CPPFLAGS'
6332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6336 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6337 # On Suns, sometimes $CPP names a directory.
6338 if test -n "$CPP" && test -d "$CPP"; then
6339 CPP=
6340 fi
6341 if test -z "$CPP"; then
6342 if test "${ac_cv_prog_CPP+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 # Double quotes because CPP needs to be expanded
6346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6347 do
6348 ac_preproc_ok=false
6349 for ac_c_preproc_warn_flag in '' yes
6350 do
6351 # Use a header file that comes with gcc, so configuring glibc
6352 # with a fresh cross-compiler works.
6353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6354 # <limits.h> exists even on freestanding compilers.
6355 # On the NeXT, cc -E runs the code through the compiler's parser,
6356 # not just through cpp. "Syntax error" is here to catch this case.
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 #ifdef __STDC__
6360 # include <limits.h>
6361 #else
6362 # include <assert.h>
6363 #endif
6364 Syntax error
6365 _ACEOF
6366 if ac_fn_c_try_cpp "$LINENO"; then :
6367
6368 else
6369 # Broken: fails on valid input.
6370 continue
6371 fi
6372 rm -f conftest.err conftest.$ac_ext
6373
6374 # OK, works on sane cases. Now check whether nonexistent headers
6375 # can be detected and how.
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6378 #include <ac_nonexistent.h>
6379 _ACEOF
6380 if ac_fn_c_try_cpp "$LINENO"; then :
6381 # Broken: success on invalid input.
6382 continue
6383 else
6384 # Passes both tests.
6385 ac_preproc_ok=:
6386 break
6387 fi
6388 rm -f conftest.err conftest.$ac_ext
6389
6390 done
6391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6392 rm -f conftest.err conftest.$ac_ext
6393 if $ac_preproc_ok; then :
6394 break
6395 fi
6396
6397 done
6398 ac_cv_prog_CPP=$CPP
6399
6400 fi
6401 CPP=$ac_cv_prog_CPP
6402 else
6403 ac_cv_prog_CPP=$CPP
6404 fi
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6406 $as_echo "$CPP" >&6; }
6407 ac_preproc_ok=false
6408 for ac_c_preproc_warn_flag in '' yes
6409 do
6410 # Use a header file that comes with gcc, so configuring glibc
6411 # with a fresh cross-compiler works.
6412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6413 # <limits.h> exists even on freestanding compilers.
6414 # On the NeXT, cc -E runs the code through the compiler's parser,
6415 # not just through cpp. "Syntax error" is here to catch this case.
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6418 #ifdef __STDC__
6419 # include <limits.h>
6420 #else
6421 # include <assert.h>
6422 #endif
6423 Syntax error
6424 _ACEOF
6425 if ac_fn_c_try_cpp "$LINENO"; then :
6426
6427 else
6428 # Broken: fails on valid input.
6429 continue
6430 fi
6431 rm -f conftest.err conftest.$ac_ext
6432
6433 # OK, works on sane cases. Now check whether nonexistent headers
6434 # can be detected and how.
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 #include <ac_nonexistent.h>
6438 _ACEOF
6439 if ac_fn_c_try_cpp "$LINENO"; then :
6440 # Broken: success on invalid input.
6441 continue
6442 else
6443 # Passes both tests.
6444 ac_preproc_ok=:
6445 break
6446 fi
6447 rm -f conftest.err conftest.$ac_ext
6448
6449 done
6450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6451 rm -f conftest.err conftest.$ac_ext
6452 if $ac_preproc_ok; then :
6453
6454 else
6455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6457 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6458 See \`config.log' for more details." "$LINENO" 5; }
6459 fi
6460
6461 ac_ext=c
6462 ac_cpp='$CPP $CPPFLAGS'
6463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6466
6467
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6469 $as_echo_n "checking for ANSI C header files... " >&6; }
6470 if test "${ac_cv_header_stdc+set}" = set; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6475 #include <stdlib.h>
6476 #include <stdarg.h>
6477 #include <string.h>
6478 #include <float.h>
6479
6480 int
6481 main ()
6482 {
6483
6484 ;
6485 return 0;
6486 }
6487 _ACEOF
6488 if ac_fn_c_try_compile "$LINENO"; then :
6489 ac_cv_header_stdc=yes
6490 else
6491 ac_cv_header_stdc=no
6492 fi
6493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494
6495 if test $ac_cv_header_stdc = yes; then
6496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499 #include <string.h>
6500
6501 _ACEOF
6502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6503 $EGREP "memchr" >/dev/null 2>&1; then :
6504
6505 else
6506 ac_cv_header_stdc=no
6507 fi
6508 rm -f conftest*
6509
6510 fi
6511
6512 if test $ac_cv_header_stdc = yes; then
6513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6516 #include <stdlib.h>
6517
6518 _ACEOF
6519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6520 $EGREP "free" >/dev/null 2>&1; then :
6521
6522 else
6523 ac_cv_header_stdc=no
6524 fi
6525 rm -f conftest*
6526
6527 fi
6528
6529 if test $ac_cv_header_stdc = yes; then
6530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6531 if test "$cross_compiling" = yes; then :
6532 :
6533 else
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #include <ctype.h>
6537 #include <stdlib.h>
6538 #if ((' ' & 0x0FF) == 0x020)
6539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6541 #else
6542 # define ISLOWER(c) \
6543 (('a' <= (c) && (c) <= 'i') \
6544 || ('j' <= (c) && (c) <= 'r') \
6545 || ('s' <= (c) && (c) <= 'z'))
6546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6547 #endif
6548
6549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6550 int
6551 main ()
6552 {
6553 int i;
6554 for (i = 0; i < 256; i++)
6555 if (XOR (islower (i), ISLOWER (i))
6556 || toupper (i) != TOUPPER (i))
6557 return 2;
6558 return 0;
6559 }
6560 _ACEOF
6561 if ac_fn_c_try_run "$LINENO"; then :
6562
6563 else
6564 ac_cv_header_stdc=no
6565 fi
6566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6567 conftest.$ac_objext conftest.beam conftest.$ac_ext
6568 fi
6569
6570 fi
6571 fi
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6573 $as_echo "$ac_cv_header_stdc" >&6; }
6574 if test $ac_cv_header_stdc = yes; then
6575
6576 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6577
6578 fi
6579
6580 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6581 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6582 inttypes.h stdint.h unistd.h
6583 do :
6584 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6585 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6586 "
6587 eval as_val=\$$as_ac_Header
6588 if test "x$as_val" = x""yes; then :
6589 cat >>confdefs.h <<_ACEOF
6590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6591 _ACEOF
6592
6593 fi
6594
6595 done
6596
6597
6598 for ac_header in dlfcn.h
6599 do :
6600 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6601 "
6602 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6603 cat >>confdefs.h <<_ACEOF
6604 #define HAVE_DLFCN_H 1
6605 _ACEOF
6606
6607 fi
6608
6609 done
6610
6611
6612
6613 # Set options
6614
6615
6616
6617 enable_dlopen=no
6618
6619
6620 enable_win32_dll=no
6621
6622
6623 # Check whether --enable-shared was given.
6624 if test "${enable_shared+set}" = set; then :
6625 enableval=$enable_shared; p=${PACKAGE-default}
6626 case $enableval in
6627 yes) enable_shared=yes ;;
6628 no) enable_shared=no ;;
6629 *)
6630 enable_shared=no
6631 # Look at the argument we got. We use all the common list separators.
6632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6633 for pkg in $enableval; do
6634 IFS="$lt_save_ifs"
6635 if test "X$pkg" = "X$p"; then
6636 enable_shared=yes
6637 fi
6638 done
6639 IFS="$lt_save_ifs"
6640 ;;
6641 esac
6642 else
6643 enable_shared=yes
6644 fi
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654 # Check whether --enable-static was given.
6655 if test "${enable_static+set}" = set; then :
6656 enableval=$enable_static; p=${PACKAGE-default}
6657 case $enableval in
6658 yes) enable_static=yes ;;
6659 no) enable_static=no ;;
6660 *)
6661 enable_static=no
6662 # Look at the argument we got. We use all the common list separators.
6663 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6664 for pkg in $enableval; do
6665 IFS="$lt_save_ifs"
6666 if test "X$pkg" = "X$p"; then
6667 enable_static=yes
6668 fi
6669 done
6670 IFS="$lt_save_ifs"
6671 ;;
6672 esac
6673 else
6674 enable_static=yes
6675 fi
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686 # Check whether --with-pic was given.
6687 if test "${with_pic+set}" = set; then :
6688 withval=$with_pic; pic_mode="$withval"
6689 else
6690 pic_mode=default
6691 fi
6692
6693
6694 test -z "$pic_mode" && pic_mode=default
6695
6696
6697
6698
6699
6700
6701
6702 # Check whether --enable-fast-install was given.
6703 if test "${enable_fast_install+set}" = set; then :
6704 enableval=$enable_fast_install; p=${PACKAGE-default}
6705 case $enableval in
6706 yes) enable_fast_install=yes ;;
6707 no) enable_fast_install=no ;;
6708 *)
6709 enable_fast_install=no
6710 # Look at the argument we got. We use all the common list separators.
6711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6712 for pkg in $enableval; do
6713 IFS="$lt_save_ifs"
6714 if test "X$pkg" = "X$p"; then
6715 enable_fast_install=yes
6716 fi
6717 done
6718 IFS="$lt_save_ifs"
6719 ;;
6720 esac
6721 else
6722 enable_fast_install=yes
6723 fi
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735 # This can be used to rebuild libtool when needed
6736 LIBTOOL_DEPS="$ltmain"
6737
6738 # Always use our own libtool.
6739 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765 test -z "$LN_S" && LN_S="ln -s"
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780 if test -n "${ZSH_VERSION+set}" ; then
6781 setopt NO_GLOB_SUBST
6782 fi
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6785 $as_echo_n "checking for objdir... " >&6; }
6786 if test "${lt_cv_objdir+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 rm -f .libs 2>/dev/null
6790 mkdir .libs 2>/dev/null
6791 if test -d .libs; then
6792 lt_cv_objdir=.libs
6793 else
6794 # MS-DOS does not allow filenames that begin with a dot.
6795 lt_cv_objdir=_libs
6796 fi
6797 rmdir .libs 2>/dev/null
6798 fi
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6800 $as_echo "$lt_cv_objdir" >&6; }
6801 objdir=$lt_cv_objdir
6802
6803
6804
6805
6806
6807 cat >>confdefs.h <<_ACEOF
6808 #define LT_OBJDIR "$lt_cv_objdir/"
6809 _ACEOF
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827 case $host_os in
6828 aix3*)
6829 # AIX sometimes has problems with the GCC collect2 program. For some
6830 # reason, if we set the COLLECT_NAMES environment variable, the problems
6831 # vanish in a puff of smoke.
6832 if test "X${COLLECT_NAMES+set}" != Xset; then
6833 COLLECT_NAMES=
6834 export COLLECT_NAMES
6835 fi
6836 ;;
6837 esac
6838
6839 # Sed substitution that helps us do robust quoting. It backslashifies
6840 # metacharacters that are still active within double-quoted strings.
6841 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6842
6843 # Same as above, but do not quote variable references.
6844 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6845
6846 # Sed substitution to delay expansion of an escaped shell variable in a
6847 # double_quote_subst'ed string.
6848 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6849
6850 # Sed substitution to delay expansion of an escaped single quote.
6851 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6852
6853 # Sed substitution to avoid accidental globbing in evaled expressions
6854 no_glob_subst='s/\*/\\\*/g'
6855
6856 # Global variables:
6857 ofile=libtool
6858 can_build_shared=yes
6859
6860 # All known linkers require a `.a' archive for static linking (except MSVC,
6861 # which needs '.lib').
6862 libext=a
6863
6864 with_gnu_ld="$lt_cv_prog_gnu_ld"
6865
6866 old_CC="$CC"
6867 old_CFLAGS="$CFLAGS"
6868
6869 # Set sane defaults for various variables
6870 test -z "$CC" && CC=cc
6871 test -z "$LTCC" && LTCC=$CC
6872 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6873 test -z "$LD" && LD=ld
6874 test -z "$ac_objext" && ac_objext=o
6875
6876 for cc_temp in $compiler""; do
6877 case $cc_temp in
6878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6880 \-*) ;;
6881 *) break;;
6882 esac
6883 done
6884 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6885
6886
6887 # Only perform the check for file, if the check method requires it
6888 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6889 case $deplibs_check_method in
6890 file_magic*)
6891 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6893 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6894 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 case $MAGIC_CMD in
6898 [\\/*] | ?:[\\/]*)
6899 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6900 ;;
6901 *)
6902 lt_save_MAGIC_CMD="$MAGIC_CMD"
6903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6904 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6905 for ac_dir in $ac_dummy; do
6906 IFS="$lt_save_ifs"
6907 test -z "$ac_dir" && ac_dir=.
6908 if test -f $ac_dir/${ac_tool_prefix}file; then
6909 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6910 if test -n "$file_magic_test_file"; then
6911 case $deplibs_check_method in
6912 "file_magic "*)
6913 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6915 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6916 $EGREP "$file_magic_regex" > /dev/null; then
6917 :
6918 else
6919 cat <<_LT_EOF 1>&2
6920
6921 *** Warning: the command libtool uses to detect shared libraries,
6922 *** $file_magic_cmd, produces output that libtool cannot recognize.
6923 *** The result is that libtool may fail to recognize shared libraries
6924 *** as such. This will affect the creation of libtool libraries that
6925 *** depend on shared libraries, but programs linked with such libtool
6926 *** libraries will work regardless of this problem. Nevertheless, you
6927 *** may want to report the problem to your system manager and/or to
6928 *** [email protected]
6929
6930 _LT_EOF
6931 fi ;;
6932 esac
6933 fi
6934 break
6935 fi
6936 done
6937 IFS="$lt_save_ifs"
6938 MAGIC_CMD="$lt_save_MAGIC_CMD"
6939 ;;
6940 esac
6941 fi
6942
6943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6944 if test -n "$MAGIC_CMD"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6946 $as_echo "$MAGIC_CMD" >&6; }
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6950 fi
6951
6952
6953
6954
6955
6956 if test -z "$lt_cv_path_MAGIC_CMD"; then
6957 if test -n "$ac_tool_prefix"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6959 $as_echo_n "checking for file... " >&6; }
6960 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 case $MAGIC_CMD in
6964 [\\/*] | ?:[\\/]*)
6965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6966 ;;
6967 *)
6968 lt_save_MAGIC_CMD="$MAGIC_CMD"
6969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6971 for ac_dir in $ac_dummy; do
6972 IFS="$lt_save_ifs"
6973 test -z "$ac_dir" && ac_dir=.
6974 if test -f $ac_dir/file; then
6975 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6976 if test -n "$file_magic_test_file"; then
6977 case $deplibs_check_method in
6978 "file_magic "*)
6979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6982 $EGREP "$file_magic_regex" > /dev/null; then
6983 :
6984 else
6985 cat <<_LT_EOF 1>&2
6986
6987 *** Warning: the command libtool uses to detect shared libraries,
6988 *** $file_magic_cmd, produces output that libtool cannot recognize.
6989 *** The result is that libtool may fail to recognize shared libraries
6990 *** as such. This will affect the creation of libtool libraries that
6991 *** depend on shared libraries, but programs linked with such libtool
6992 *** libraries will work regardless of this problem. Nevertheless, you
6993 *** may want to report the problem to your system manager and/or to
6994 *** [email protected]
6995
6996 _LT_EOF
6997 fi ;;
6998 esac
6999 fi
7000 break
7001 fi
7002 done
7003 IFS="$lt_save_ifs"
7004 MAGIC_CMD="$lt_save_MAGIC_CMD"
7005 ;;
7006 esac
7007 fi
7008
7009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7010 if test -n "$MAGIC_CMD"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7012 $as_echo "$MAGIC_CMD" >&6; }
7013 else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018
7019 else
7020 MAGIC_CMD=:
7021 fi
7022 fi
7023
7024 fi
7025 ;;
7026 esac
7027
7028 # Use C for the default configuration in the libtool script
7029
7030 lt_save_CC="$CC"
7031 ac_ext=c
7032 ac_cpp='$CPP $CPPFLAGS'
7033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
7037
7038 # Source file extension for C test sources.
7039 ac_ext=c
7040
7041 # Object file extension for compiled C test sources.
7042 objext=o
7043 objext=$objext
7044
7045 # Code to be used in simple compile tests
7046 lt_simple_compile_test_code="int some_variable = 0;"
7047
7048 # Code to be used in simple link tests
7049 lt_simple_link_test_code='int main(){return(0);}'
7050
7051
7052
7053
7054
7055
7056
7057 # If no C compiler was specified, use CC.
7058 LTCC=${LTCC-"$CC"}
7059
7060 # If no C compiler flags were specified, use CFLAGS.
7061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7062
7063 # Allow CC to be a program name with arguments.
7064 compiler=$CC
7065
7066 # Save the default compiler, since it gets overwritten when the other
7067 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7068 compiler_DEFAULT=$CC
7069
7070 # save warnings/boilerplate of simple test code
7071 ac_outfile=conftest.$ac_objext
7072 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7073 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7074 _lt_compiler_boilerplate=`cat conftest.err`
7075 $RM conftest*
7076
7077 ac_outfile=conftest.$ac_objext
7078 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7079 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7080 _lt_linker_boilerplate=`cat conftest.err`
7081 $RM -r conftest*
7082
7083
7084 ## CAVEAT EMPTOR:
7085 ## There is no encapsulation within the following macros, do not change
7086 ## the running order or otherwise move them around unless you know exactly
7087 ## what you are doing...
7088 if test -n "$compiler"; then
7089
7090 lt_prog_compiler_no_builtin_flag=
7091
7092 if test "$GCC" = yes; then
7093 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7094
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7096 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7097 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 lt_cv_prog_compiler_rtti_exceptions=no
7101 ac_outfile=conftest.$ac_objext
7102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7103 lt_compiler_flag="-fno-rtti -fno-exceptions"
7104 # Insert the option either (1) after the last *FLAGS variable, or
7105 # (2) before a word containing "conftest.", or (3) at the end.
7106 # Note that $ac_compile itself does not contain backslashes and begins
7107 # with a dollar sign (not a hyphen), so the echo should work correctly.
7108 # The option is referenced via a variable to avoid confusing sed.
7109 lt_compile=`echo "$ac_compile" | $SED \
7110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7112 -e 's:$: $lt_compiler_flag:'`
7113 (eval echo "\"\$as_me:7113: $lt_compile\"" >&5)
7114 (eval "$lt_compile" 2>conftest.err)
7115 ac_status=$?
7116 cat conftest.err >&5
7117 echo "$as_me:7117: \$? = $ac_status" >&5
7118 if (exit $ac_status) && test -s "$ac_outfile"; then
7119 # The compiler can only warn and ignore the option if not recognized
7120 # So say no if there are warnings other than the usual output.
7121 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7124 lt_cv_prog_compiler_rtti_exceptions=yes
7125 fi
7126 fi
7127 $RM conftest*
7128
7129 fi
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7131 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7132
7133 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7134 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7135 else
7136 :
7137 fi
7138
7139 fi
7140
7141
7142
7143
7144
7145
7146 lt_prog_compiler_wl=
7147 lt_prog_compiler_pic=
7148 lt_prog_compiler_static=
7149
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7151 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7152
7153 if test "$GCC" = yes; then
7154 lt_prog_compiler_wl='-Wl,'
7155 lt_prog_compiler_static='-static'
7156
7157 case $host_os in
7158 aix*)
7159 # All AIX code is PIC.
7160 if test "$host_cpu" = ia64; then
7161 # AIX 5 now supports IA64 processor
7162 lt_prog_compiler_static='-Bstatic'
7163 fi
7164 ;;
7165
7166 amigaos*)
7167 case $host_cpu in
7168 powerpc)
7169 # see comment about AmigaOS4 .so support
7170 lt_prog_compiler_pic='-fPIC'
7171 ;;
7172 m68k)
7173 # FIXME: we need at least 68020 code to build shared libraries, but
7174 # adding the `-m68020' flag to GCC prevents building anything better,
7175 # like `-m68040'.
7176 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7177 ;;
7178 esac
7179 ;;
7180
7181 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7182 # PIC is the default for these OSes.
7183 ;;
7184
7185 mingw* | cygwin* | pw32* | os2* | cegcc*)
7186 # This hack is so that the source file can tell whether it is being
7187 # built for inclusion in a dll (and should export symbols for example).
7188 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7189 # (--disable-auto-import) libraries
7190 lt_prog_compiler_pic='-DDLL_EXPORT'
7191 ;;
7192
7193 darwin* | rhapsody*)
7194 # PIC is the default on this platform
7195 # Common symbols not allowed in MH_DYLIB files
7196 lt_prog_compiler_pic='-fno-common'
7197 ;;
7198
7199 hpux*)
7200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7202 # sets the default TLS model and affects inlining.
7203 case $host_cpu in
7204 hppa*64*)
7205 # +Z the default
7206 ;;
7207 *)
7208 lt_prog_compiler_pic='-fPIC'
7209 ;;
7210 esac
7211 ;;
7212
7213 interix[3-9]*)
7214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7215 # Instead, we relocate shared libraries at runtime.
7216 ;;
7217
7218 msdosdjgpp*)
7219 # Just because we use GCC doesn't mean we suddenly get shared libraries
7220 # on systems that don't support them.
7221 lt_prog_compiler_can_build_shared=no
7222 enable_shared=no
7223 ;;
7224
7225 *nto* | *qnx*)
7226 # QNX uses GNU C++, but need to define -shared option too, otherwise
7227 # it will coredump.
7228 lt_prog_compiler_pic='-fPIC -shared'
7229 ;;
7230
7231 sysv4*MP*)
7232 if test -d /usr/nec; then
7233 lt_prog_compiler_pic=-Kconform_pic
7234 fi
7235 ;;
7236
7237 *)
7238 lt_prog_compiler_pic='-fPIC'
7239 ;;
7240 esac
7241 else
7242 # PORTME Check for flag to pass linker flags through the system compiler.
7243 case $host_os in
7244 aix*)
7245 lt_prog_compiler_wl='-Wl,'
7246 if test "$host_cpu" = ia64; then
7247 # AIX 5 now supports IA64 processor
7248 lt_prog_compiler_static='-Bstatic'
7249 else
7250 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7251 fi
7252 ;;
7253
7254 mingw* | cygwin* | pw32* | os2* | cegcc*)
7255 # This hack is so that the source file can tell whether it is being
7256 # built for inclusion in a dll (and should export symbols for example).
7257 lt_prog_compiler_pic='-DDLL_EXPORT'
7258 ;;
7259
7260 hpux9* | hpux10* | hpux11*)
7261 lt_prog_compiler_wl='-Wl,'
7262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7263 # not for PA HP-UX.
7264 case $host_cpu in
7265 hppa*64*|ia64*)
7266 # +Z the default
7267 ;;
7268 *)
7269 lt_prog_compiler_pic='+Z'
7270 ;;
7271 esac
7272 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7273 lt_prog_compiler_static='${wl}-a ${wl}archive'
7274 ;;
7275
7276 irix5* | irix6* | nonstopux*)
7277 lt_prog_compiler_wl='-Wl,'
7278 # PIC (with -KPIC) is the default.
7279 lt_prog_compiler_static='-non_shared'
7280 ;;
7281
7282 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7283 case $cc_basename in
7284 # old Intel for x86_64 which still supported -KPIC.
7285 ecc*)
7286 lt_prog_compiler_wl='-Wl,'
7287 lt_prog_compiler_pic='-KPIC'
7288 lt_prog_compiler_static='-static'
7289 ;;
7290 # icc used to be incompatible with GCC.
7291 # ICC 10 doesn't accept -KPIC any more.
7292 icc* | ifort*)
7293 lt_prog_compiler_wl='-Wl,'
7294 lt_prog_compiler_pic='-fPIC'
7295 lt_prog_compiler_static='-static'
7296 ;;
7297 # Lahey Fortran 8.1.
7298 lf95*)
7299 lt_prog_compiler_wl='-Wl,'
7300 lt_prog_compiler_pic='--shared'
7301 lt_prog_compiler_static='--static'
7302 ;;
7303 pgcc* | pgf77* | pgf90* | pgf95*)
7304 # Portland Group compilers (*not* the Pentium gcc compiler,
7305 # which looks to be a dead project)
7306 lt_prog_compiler_wl='-Wl,'
7307 lt_prog_compiler_pic='-fpic'
7308 lt_prog_compiler_static='-Bstatic'
7309 ;;
7310 ccc*)
7311 lt_prog_compiler_wl='-Wl,'
7312 # All Alpha code is PIC.
7313 lt_prog_compiler_static='-non_shared'
7314 ;;
7315 xl*)
7316 # IBM XL C 8.0/Fortran 10.1 on PPC
7317 lt_prog_compiler_wl='-Wl,'
7318 lt_prog_compiler_pic='-qpic'
7319 lt_prog_compiler_static='-qstaticlink'
7320 ;;
7321 *)
7322 case `$CC -V 2>&1 | sed 5q` in
7323 *Sun\ C*)
7324 # Sun C 5.9
7325 lt_prog_compiler_pic='-KPIC'
7326 lt_prog_compiler_static='-Bstatic'
7327 lt_prog_compiler_wl='-Wl,'
7328 ;;
7329 *Sun\ F*)
7330 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7331 lt_prog_compiler_pic='-KPIC'
7332 lt_prog_compiler_static='-Bstatic'
7333 lt_prog_compiler_wl=''
7334 ;;
7335 esac
7336 ;;
7337 esac
7338 ;;
7339
7340 newsos6)
7341 lt_prog_compiler_pic='-KPIC'
7342 lt_prog_compiler_static='-Bstatic'
7343 ;;
7344
7345 *nto* | *qnx*)
7346 # QNX uses GNU C++, but need to define -shared option too, otherwise
7347 # it will coredump.
7348 lt_prog_compiler_pic='-fPIC -shared'
7349 ;;
7350
7351 osf3* | osf4* | osf5*)
7352 lt_prog_compiler_wl='-Wl,'
7353 # All OSF/1 code is PIC.
7354 lt_prog_compiler_static='-non_shared'
7355 ;;
7356
7357 rdos*)
7358 lt_prog_compiler_static='-non_shared'
7359 ;;
7360
7361 solaris*)
7362 lt_prog_compiler_pic='-KPIC'
7363 lt_prog_compiler_static='-Bstatic'
7364 case $cc_basename in
7365 f77* | f90* | f95*)
7366 lt_prog_compiler_wl='-Qoption ld ';;
7367 *)
7368 lt_prog_compiler_wl='-Wl,';;
7369 esac
7370 ;;
7371
7372 sunos4*)
7373 lt_prog_compiler_wl='-Qoption ld '
7374 lt_prog_compiler_pic='-PIC'
7375 lt_prog_compiler_static='-Bstatic'
7376 ;;
7377
7378 sysv4 | sysv4.2uw2* | sysv4.3*)
7379 lt_prog_compiler_wl='-Wl,'
7380 lt_prog_compiler_pic='-KPIC'
7381 lt_prog_compiler_static='-Bstatic'
7382 ;;
7383
7384 sysv4*MP*)
7385 if test -d /usr/nec ;then
7386 lt_prog_compiler_pic='-Kconform_pic'
7387 lt_prog_compiler_static='-Bstatic'
7388 fi
7389 ;;
7390
7391 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7392 lt_prog_compiler_wl='-Wl,'
7393 lt_prog_compiler_pic='-KPIC'
7394 lt_prog_compiler_static='-Bstatic'
7395 ;;
7396
7397 unicos*)
7398 lt_prog_compiler_wl='-Wl,'
7399 lt_prog_compiler_can_build_shared=no
7400 ;;
7401
7402 uts4*)
7403 lt_prog_compiler_pic='-pic'
7404 lt_prog_compiler_static='-Bstatic'
7405 ;;
7406
7407 *)
7408 lt_prog_compiler_can_build_shared=no
7409 ;;
7410 esac
7411 fi
7412
7413 case $host_os in
7414 # For platforms which do not support PIC, -DPIC is meaningless:
7415 *djgpp*)
7416 lt_prog_compiler_pic=
7417 ;;
7418 *)
7419 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7420 ;;
7421 esac
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7423 $as_echo "$lt_prog_compiler_pic" >&6; }
7424
7425
7426
7427
7428
7429
7430 #
7431 # Check to make sure the PIC flag actually works.
7432 #
7433 if test -n "$lt_prog_compiler_pic"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7435 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7436 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 lt_cv_prog_compiler_pic_works=no
7440 ac_outfile=conftest.$ac_objext
7441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7442 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7443 # Insert the option either (1) after the last *FLAGS variable, or
7444 # (2) before a word containing "conftest.", or (3) at the end.
7445 # Note that $ac_compile itself does not contain backslashes and begins
7446 # with a dollar sign (not a hyphen), so the echo should work correctly.
7447 # The option is referenced via a variable to avoid confusing sed.
7448 lt_compile=`echo "$ac_compile" | $SED \
7449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7451 -e 's:$: $lt_compiler_flag:'`
7452 (eval echo "\"\$as_me:7452: $lt_compile\"" >&5)
7453 (eval "$lt_compile" 2>conftest.err)
7454 ac_status=$?
7455 cat conftest.err >&5
7456 echo "$as_me:7456: \$? = $ac_status" >&5
7457 if (exit $ac_status) && test -s "$ac_outfile"; then
7458 # The compiler can only warn and ignore the option if not recognized
7459 # So say no if there are warnings other than the usual output.
7460 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7462 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7463 lt_cv_prog_compiler_pic_works=yes
7464 fi
7465 fi
7466 $RM conftest*
7467
7468 fi
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7470 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7471
7472 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7473 case $lt_prog_compiler_pic in
7474 "" | " "*) ;;
7475 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7476 esac
7477 else
7478 lt_prog_compiler_pic=
7479 lt_prog_compiler_can_build_shared=no
7480 fi
7481
7482 fi
7483
7484
7485
7486
7487
7488
7489 #
7490 # Check to make sure the static flag actually works.
7491 #
7492 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7494 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7495 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 lt_cv_prog_compiler_static_works=no
7499 save_LDFLAGS="$LDFLAGS"
7500 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7501 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7503 # The linker can only warn and ignore the option if not recognized
7504 # So say no if there are warnings
7505 if test -s conftest.err; then
7506 # Append any errors to the config.log.
7507 cat conftest.err 1>&5
7508 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7510 if diff conftest.exp conftest.er2 >/dev/null; then
7511 lt_cv_prog_compiler_static_works=yes
7512 fi
7513 else
7514 lt_cv_prog_compiler_static_works=yes
7515 fi
7516 fi
7517 $RM -r conftest*
7518 LDFLAGS="$save_LDFLAGS"
7519
7520 fi
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7522 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7523
7524 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7525 :
7526 else
7527 lt_prog_compiler_static=
7528 fi
7529
7530
7531
7532
7533
7534
7535
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7537 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7538 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 lt_cv_prog_compiler_c_o=no
7542 $RM -r conftest 2>/dev/null
7543 mkdir conftest
7544 cd conftest
7545 mkdir out
7546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7547
7548 lt_compiler_flag="-o out/conftest2.$ac_objext"
7549 # Insert the option either (1) after the last *FLAGS variable, or
7550 # (2) before a word containing "conftest.", or (3) at the end.
7551 # Note that $ac_compile itself does not contain backslashes and begins
7552 # with a dollar sign (not a hyphen), so the echo should work correctly.
7553 lt_compile=`echo "$ac_compile" | $SED \
7554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7556 -e 's:$: $lt_compiler_flag:'`
7557 (eval echo "\"\$as_me:7557: $lt_compile\"" >&5)
7558 (eval "$lt_compile" 2>out/conftest.err)
7559 ac_status=$?
7560 cat out/conftest.err >&5
7561 echo "$as_me:7561: \$? = $ac_status" >&5
7562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7563 then
7564 # The compiler can only warn and ignore the option if not recognized
7565 # So say no if there are warnings
7566 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7569 lt_cv_prog_compiler_c_o=yes
7570 fi
7571 fi
7572 chmod u+w . 2>&5
7573 $RM conftest*
7574 # SGI C++ compiler will create directory out/ii_files/ for
7575 # template instantiation
7576 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7577 $RM out/* && rmdir out
7578 cd ..
7579 $RM -r conftest
7580 $RM conftest*
7581
7582 fi
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7584 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7585
7586
7587
7588
7589
7590
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7592 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7593 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 lt_cv_prog_compiler_c_o=no
7597 $RM -r conftest 2>/dev/null
7598 mkdir conftest
7599 cd conftest
7600 mkdir out
7601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7602
7603 lt_compiler_flag="-o out/conftest2.$ac_objext"
7604 # Insert the option either (1) after the last *FLAGS variable, or
7605 # (2) before a word containing "conftest.", or (3) at the end.
7606 # Note that $ac_compile itself does not contain backslashes and begins
7607 # with a dollar sign (not a hyphen), so the echo should work correctly.
7608 lt_compile=`echo "$ac_compile" | $SED \
7609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7611 -e 's:$: $lt_compiler_flag:'`
7612 (eval echo "\"\$as_me:7612: $lt_compile\"" >&5)
7613 (eval "$lt_compile" 2>out/conftest.err)
7614 ac_status=$?
7615 cat out/conftest.err >&5
7616 echo "$as_me:7616: \$? = $ac_status" >&5
7617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7618 then
7619 # The compiler can only warn and ignore the option if not recognized
7620 # So say no if there are warnings
7621 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7624 lt_cv_prog_compiler_c_o=yes
7625 fi
7626 fi
7627 chmod u+w . 2>&5
7628 $RM conftest*
7629 # SGI C++ compiler will create directory out/ii_files/ for
7630 # template instantiation
7631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7632 $RM out/* && rmdir out
7633 cd ..
7634 $RM -r conftest
7635 $RM conftest*
7636
7637 fi
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7639 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7640
7641
7642
7643
7644 hard_links="nottested"
7645 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7646 # do not overwrite the value of need_locks provided by the user
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7648 $as_echo_n "checking if we can lock with hard links... " >&6; }
7649 hard_links=yes
7650 $RM conftest*
7651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7652 touch conftest.a
7653 ln conftest.a conftest.b 2>&5 || hard_links=no
7654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7656 $as_echo "$hard_links" >&6; }
7657 if test "$hard_links" = no; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7659 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7660 need_locks=warn
7661 fi
7662 else
7663 need_locks=no
7664 fi
7665
7666
7667
7668
7669
7670
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7672 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7673
7674 runpath_var=
7675 allow_undefined_flag=
7676 always_export_symbols=no
7677 archive_cmds=
7678 archive_expsym_cmds=
7679 compiler_needs_object=no
7680 enable_shared_with_static_runtimes=no
7681 export_dynamic_flag_spec=
7682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7683 hardcode_automatic=no
7684 hardcode_direct=no
7685 hardcode_direct_absolute=no
7686 hardcode_libdir_flag_spec=
7687 hardcode_libdir_flag_spec_ld=
7688 hardcode_libdir_separator=
7689 hardcode_minus_L=no
7690 hardcode_shlibpath_var=unsupported
7691 inherit_rpath=no
7692 link_all_deplibs=unknown
7693 module_cmds=
7694 module_expsym_cmds=
7695 old_archive_from_new_cmds=
7696 old_archive_from_expsyms_cmds=
7697 thread_safe_flag_spec=
7698 whole_archive_flag_spec=
7699 # include_expsyms should be a list of space-separated symbols to be *always*
7700 # included in the symbol list
7701 include_expsyms=
7702 # exclude_expsyms can be an extended regexp of symbols to exclude
7703 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7704 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7705 # as well as any symbol that contains `d'.
7706 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7707 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7708 # platforms (ab)use it in PIC code, but their linkers get confused if
7709 # the symbol is explicitly referenced. Since portable code cannot
7710 # rely on this symbol name, it's probably fine to never include it in
7711 # preloaded symbol tables.
7712 # Exclude shared library initialization/finalization symbols.
7713 extract_expsyms_cmds=
7714
7715 case $host_os in
7716 cygwin* | mingw* | pw32* | cegcc*)
7717 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7718 # When not using gcc, we currently assume that we are using
7719 # Microsoft Visual C++.
7720 if test "$GCC" != yes; then
7721 with_gnu_ld=no
7722 fi
7723 ;;
7724 interix*)
7725 # we just hope/assume this is gcc and not c89 (= MSVC++)
7726 with_gnu_ld=yes
7727 ;;
7728 openbsd*)
7729 with_gnu_ld=no
7730 ;;
7731 linux* | k*bsd*-gnu)
7732 link_all_deplibs=no
7733 ;;
7734 esac
7735
7736 ld_shlibs=yes
7737 if test "$with_gnu_ld" = yes; then
7738 # If archive_cmds runs LD, not CC, wlarc should be empty
7739 wlarc='${wl}'
7740
7741 # Set some defaults for GNU ld with shared library support. These
7742 # are reset later if shared libraries are not supported. Putting them
7743 # here allows them to be overridden if necessary.
7744 runpath_var=LD_RUN_PATH
7745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7746 export_dynamic_flag_spec='${wl}--export-dynamic'
7747 # ancient GNU ld didn't support --whole-archive et. al.
7748 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7749 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7750 else
7751 whole_archive_flag_spec=
7752 fi
7753 supports_anon_versioning=no
7754 case `$LD -v 2>&1` in
7755 *GNU\ gold*) supports_anon_versioning=yes ;;
7756 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7757 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7758 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7759 *\ 2.11.*) ;; # other 2.11 versions
7760 *) supports_anon_versioning=yes ;;
7761 esac
7762
7763 # See if GNU ld supports shared libraries.
7764 case $host_os in
7765 aix[3-9]*)
7766 # On AIX/PPC, the GNU linker is very broken
7767 if test "$host_cpu" != ia64; then
7768 ld_shlibs=no
7769 cat <<_LT_EOF 1>&2
7770
7771 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7772 *** to be unable to reliably create shared libraries on AIX.
7773 *** Therefore, libtool is disabling shared libraries support. If you
7774 *** really care for shared libraries, you may want to modify your PATH
7775 *** so that a non-GNU linker is found, and then restart.
7776
7777 _LT_EOF
7778 fi
7779 ;;
7780
7781 amigaos*)
7782 case $host_cpu in
7783 powerpc)
7784 # see comment about AmigaOS4 .so support
7785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7786 archive_expsym_cmds=''
7787 ;;
7788 m68k)
7789 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)'
7790 hardcode_libdir_flag_spec='-L$libdir'
7791 hardcode_minus_L=yes
7792 ;;
7793 esac
7794 ;;
7795
7796 beos*)
7797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7798 allow_undefined_flag=unsupported
7799 # Joseph Beckenbach <[email protected]> says some releases of gcc
7800 # support --undefined. This deserves some investigation. FIXME
7801 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7802 else
7803 ld_shlibs=no
7804 fi
7805 ;;
7806
7807 cygwin* | mingw* | pw32* | cegcc*)
7808 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7809 # as there is no search path for DLLs.
7810 hardcode_libdir_flag_spec='-L$libdir'
7811 allow_undefined_flag=unsupported
7812 always_export_symbols=no
7813 enable_shared_with_static_runtimes=yes
7814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7815
7816 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7818 # If the export-symbols file already is a .def file (1st line
7819 # is EXPORTS), use it as is; otherwise, prepend...
7820 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7821 cp $export_symbols $output_objdir/$soname.def;
7822 else
7823 echo EXPORTS > $output_objdir/$soname.def;
7824 cat $export_symbols >> $output_objdir/$soname.def;
7825 fi~
7826 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7827 else
7828 ld_shlibs=no
7829 fi
7830 ;;
7831
7832 interix[3-9]*)
7833 hardcode_direct=no
7834 hardcode_shlibpath_var=no
7835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7836 export_dynamic_flag_spec='${wl}-E'
7837 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7838 # Instead, shared libraries are loaded at an image base (0x10000000 by
7839 # default) and relocated if they conflict, which is a slow very memory
7840 # consuming and fragmenting process. To avoid this, we pick a random,
7841 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7842 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7844 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'
7845 ;;
7846
7847 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7848 tmp_diet=no
7849 if test "$host_os" = linux-dietlibc; then
7850 case $cc_basename in
7851 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7852 esac
7853 fi
7854 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7855 && test "$tmp_diet" = no
7856 then
7857 tmp_addflag=
7858 tmp_sharedflag='-shared'
7859 case $cc_basename,$host_cpu in
7860 pgcc*) # Portland Group C compiler
7861 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7862 tmp_addflag=' $pic_flag'
7863 ;;
7864 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7865 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7866 tmp_addflag=' $pic_flag -Mnomain' ;;
7867 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7868 tmp_addflag=' -i_dynamic' ;;
7869 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7870 tmp_addflag=' -i_dynamic -nofor_main' ;;
7871 ifc* | ifort*) # Intel Fortran compiler
7872 tmp_addflag=' -nofor_main' ;;
7873 lf95*) # Lahey Fortran 8.1
7874 whole_archive_flag_spec=
7875 tmp_sharedflag='--shared' ;;
7876 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7877 tmp_sharedflag='-qmkshrobj'
7878 tmp_addflag= ;;
7879 esac
7880 case `$CC -V 2>&1 | sed 5q` in
7881 *Sun\ C*) # Sun C 5.9
7882 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7883 compiler_needs_object=yes
7884 tmp_sharedflag='-G' ;;
7885 *Sun\ F*) # Sun Fortran 8.3
7886 tmp_sharedflag='-G' ;;
7887 esac
7888 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7889
7890 if test "x$supports_anon_versioning" = xyes; then
7891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7893 echo "local: *; };" >> $output_objdir/$libname.ver~
7894 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7895 fi
7896
7897 case $cc_basename in
7898 xlf*)
7899 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7900 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7901 hardcode_libdir_flag_spec=
7902 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7903 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7904 if test "x$supports_anon_versioning" = xyes; then
7905 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7906 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7907 echo "local: *; };" >> $output_objdir/$libname.ver~
7908 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7909 fi
7910 ;;
7911 esac
7912 else
7913 ld_shlibs=no
7914 fi
7915 ;;
7916
7917 netbsd* | netbsdelf*-gnu)
7918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7919 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7920 wlarc=
7921 else
7922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7923 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7924 fi
7925 ;;
7926
7927 solaris*)
7928 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7929 ld_shlibs=no
7930 cat <<_LT_EOF 1>&2
7931
7932 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7933 *** create shared libraries on Solaris systems. Therefore, libtool
7934 *** is disabling shared libraries support. We urge you to upgrade GNU
7935 *** binutils to release 2.9.1 or newer. Another option is to modify
7936 *** your PATH or compiler configuration so that the native linker is
7937 *** used, and then restart.
7938
7939 _LT_EOF
7940 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7942 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7943 else
7944 ld_shlibs=no
7945 fi
7946 ;;
7947
7948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7949 case `$LD -v 2>&1` in
7950 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7951 ld_shlibs=no
7952 cat <<_LT_EOF 1>&2
7953
7954 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7955 *** reliably create shared libraries on SCO systems. Therefore, libtool
7956 *** is disabling shared libraries support. We urge you to upgrade GNU
7957 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7958 *** your PATH or compiler configuration so that the native linker is
7959 *** used, and then restart.
7960
7961 _LT_EOF
7962 ;;
7963 *)
7964 # For security reasons, it is highly recommended that you always
7965 # use absolute paths for naming shared libraries, and exclude the
7966 # DT_RUNPATH tag from executables and libraries. But doing so
7967 # requires that you compile everything twice, which is a pain.
7968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7972 else
7973 ld_shlibs=no
7974 fi
7975 ;;
7976 esac
7977 ;;
7978
7979 sunos4*)
7980 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7981 wlarc=
7982 hardcode_direct=yes
7983 hardcode_shlibpath_var=no
7984 ;;
7985
7986 *)
7987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7990 else
7991 ld_shlibs=no
7992 fi
7993 ;;
7994 esac
7995
7996 if test "$ld_shlibs" = no; then
7997 runpath_var=
7998 hardcode_libdir_flag_spec=
7999 export_dynamic_flag_spec=
8000 whole_archive_flag_spec=
8001 fi
8002 else
8003 # PORTME fill in a description of your system's linker (not GNU ld)
8004 case $host_os in
8005 aix3*)
8006 allow_undefined_flag=unsupported
8007 always_export_symbols=yes
8008 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'
8009 # Note: this linker hardcodes the directories in LIBPATH if there
8010 # are no directories specified by -L.
8011 hardcode_minus_L=yes
8012 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8013 # Neither direct hardcoding nor static linking is supported with a
8014 # broken collect2.
8015 hardcode_direct=unsupported
8016 fi
8017 ;;
8018
8019 aix[4-9]*)
8020 if test "$host_cpu" = ia64; then
8021 # On IA64, the linker does run time linking by default, so we don't
8022 # have to do anything special.
8023 aix_use_runtimelinking=no
8024 exp_sym_flag='-Bexport'
8025 no_entry_flag=""
8026 else
8027 # If we're using GNU nm, then we don't want the "-C" option.
8028 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8029 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8030 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8031 else
8032 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'
8033 fi
8034 aix_use_runtimelinking=no
8035
8036 # Test if we are trying to use run time linking or normal
8037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8038 # need to do runtime linking.
8039 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8040 for ld_flag in $LDFLAGS; do
8041 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8042 aix_use_runtimelinking=yes
8043 break
8044 fi
8045 done
8046 ;;
8047 esac
8048
8049 exp_sym_flag='-bexport'
8050 no_entry_flag='-bnoentry'
8051 fi
8052
8053 # When large executables or shared objects are built, AIX ld can
8054 # have problems creating the table of contents. If linking a library
8055 # or program results in "error TOC overflow" add -mminimal-toc to
8056 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8057 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8058
8059 archive_cmds=''
8060 hardcode_direct=yes
8061 hardcode_direct_absolute=yes
8062 hardcode_libdir_separator=':'
8063 link_all_deplibs=yes
8064 file_list_spec='${wl}-f,'
8065
8066 if test "$GCC" = yes; then
8067 case $host_os in aix4.[012]|aix4.[012].*)
8068 # We only want to do this on AIX 4.2 and lower, the check
8069 # below for broken collect2 doesn't work under 4.3+
8070 collect2name=`${CC} -print-prog-name=collect2`
8071 if test -f "$collect2name" &&
8072 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8073 then
8074 # We have reworked collect2
8075 :
8076 else
8077 # We have old collect2
8078 hardcode_direct=unsupported
8079 # It fails to find uninstalled libraries when the uninstalled
8080 # path is not listed in the libpath. Setting hardcode_minus_L
8081 # to unsupported forces relinking
8082 hardcode_minus_L=yes
8083 hardcode_libdir_flag_spec='-L$libdir'
8084 hardcode_libdir_separator=
8085 fi
8086 ;;
8087 esac
8088 shared_flag='-shared'
8089 if test "$aix_use_runtimelinking" = yes; then
8090 shared_flag="$shared_flag "'${wl}-G'
8091 fi
8092 link_all_deplibs=no
8093 else
8094 # not using gcc
8095 if test "$host_cpu" = ia64; then
8096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8097 # chokes on -Wl,-G. The following line is correct:
8098 shared_flag='-G'
8099 else
8100 if test "$aix_use_runtimelinking" = yes; then
8101 shared_flag='${wl}-G'
8102 else
8103 shared_flag='${wl}-bM:SRE'
8104 fi
8105 fi
8106 fi
8107
8108 export_dynamic_flag_spec='${wl}-bexpall'
8109 # It seems that -bexpall does not export symbols beginning with
8110 # underscore (_), so it is better to generate a list of symbols to export.
8111 always_export_symbols=yes
8112 if test "$aix_use_runtimelinking" = yes; then
8113 # Warning - without using the other runtime loading flags (-brtl),
8114 # -berok will link without error, but may produce a broken library.
8115 allow_undefined_flag='-berok'
8116 # Determine the default libpath from the value encoded in an
8117 # empty executable.
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120
8121 int
8122 main ()
8123 {
8124
8125 ;
8126 return 0;
8127 }
8128 _ACEOF
8129 if ac_fn_c_try_link "$LINENO"; then :
8130
8131 lt_aix_libpath_sed='
8132 /Import File Strings/,/^$/ {
8133 /^0/ {
8134 s/^0 *\(.*\)$/\1/
8135 p
8136 }
8137 }'
8138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8139 # Check for a 64-bit object if we didn't find anything.
8140 if test -z "$aix_libpath"; then
8141 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8142 fi
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext \
8145 conftest$ac_exeext conftest.$ac_ext
8146 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8147
8148 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8149 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8150 else
8151 if test "$host_cpu" = ia64; then
8152 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8153 allow_undefined_flag="-z nodefs"
8154 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"
8155 else
8156 # Determine the default libpath from the value encoded in an
8157 # empty executable.
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160
8161 int
8162 main ()
8163 {
8164
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_link "$LINENO"; then :
8170
8171 lt_aix_libpath_sed='
8172 /Import File Strings/,/^$/ {
8173 /^0/ {
8174 s/^0 *\(.*\)$/\1/
8175 p
8176 }
8177 }'
8178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8179 # Check for a 64-bit object if we didn't find anything.
8180 if test -z "$aix_libpath"; then
8181 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8182 fi
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8187
8188 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8189 # Warning - without using the other run time loading flags,
8190 # -berok will link without error, but may produce a broken library.
8191 no_undefined_flag=' ${wl}-bernotok'
8192 allow_undefined_flag=' ${wl}-berok'
8193 # Exported symbols can be pulled into shared objects from archives
8194 whole_archive_flag_spec='$convenience'
8195 archive_cmds_need_lc=yes
8196 # This is similar to how AIX traditionally builds its shared libraries.
8197 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'
8198 fi
8199 fi
8200 ;;
8201
8202 amigaos*)
8203 case $host_cpu in
8204 powerpc)
8205 # see comment about AmigaOS4 .so support
8206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207 archive_expsym_cmds=''
8208 ;;
8209 m68k)
8210 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)'
8211 hardcode_libdir_flag_spec='-L$libdir'
8212 hardcode_minus_L=yes
8213 ;;
8214 esac
8215 ;;
8216
8217 bsdi[45]*)
8218 export_dynamic_flag_spec=-rdynamic
8219 ;;
8220
8221 cygwin* | mingw* | pw32* | cegcc*)
8222 # When not using gcc, we currently assume that we are using
8223 # Microsoft Visual C++.
8224 # hardcode_libdir_flag_spec is actually meaningless, as there is
8225 # no search path for DLLs.
8226 hardcode_libdir_flag_spec=' '
8227 allow_undefined_flag=unsupported
8228 # Tell ltmain to make .lib files, not .a files.
8229 libext=lib
8230 # Tell ltmain to make .dll files, not .so files.
8231 shrext_cmds=".dll"
8232 # FIXME: Setting linknames here is a bad hack.
8233 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8234 # The linker will automatically build a .lib file if we build a DLL.
8235 old_archive_from_new_cmds='true'
8236 # FIXME: Should let the user specify the lib program.
8237 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8238 fix_srcfile_path='`cygpath -w "$srcfile"`'
8239 enable_shared_with_static_runtimes=yes
8240 ;;
8241
8242 darwin* | rhapsody*)
8243
8244
8245 archive_cmds_need_lc=no
8246 hardcode_direct=no
8247 hardcode_automatic=yes
8248 hardcode_shlibpath_var=unsupported
8249 whole_archive_flag_spec=''
8250 link_all_deplibs=yes
8251 allow_undefined_flag="$_lt_dar_allow_undefined"
8252 case $cc_basename in
8253 ifort*) _lt_dar_can_shared=yes ;;
8254 *) _lt_dar_can_shared=$GCC ;;
8255 esac
8256 if test "$_lt_dar_can_shared" = "yes"; then
8257 output_verbose_link_cmd=echo
8258 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8259 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8260 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}"
8261 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}"
8262
8263 else
8264 ld_shlibs=no
8265 fi
8266
8267 ;;
8268
8269 dgux*)
8270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8271 hardcode_libdir_flag_spec='-L$libdir'
8272 hardcode_shlibpath_var=no
8273 ;;
8274
8275 freebsd1*)
8276 ld_shlibs=no
8277 ;;
8278
8279 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8280 # support. Future versions do this automatically, but an explicit c++rt0.o
8281 # does not break anything, and helps significantly (at the cost of a little
8282 # extra space).
8283 freebsd2.2*)
8284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8285 hardcode_libdir_flag_spec='-R$libdir'
8286 hardcode_direct=yes
8287 hardcode_shlibpath_var=no
8288 ;;
8289
8290 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8291 freebsd2*)
8292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8293 hardcode_direct=yes
8294 hardcode_minus_L=yes
8295 hardcode_shlibpath_var=no
8296 ;;
8297
8298 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8299 freebsd* | dragonfly*)
8300 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8301 hardcode_libdir_flag_spec='-R$libdir'
8302 hardcode_direct=yes
8303 hardcode_shlibpath_var=no
8304 ;;
8305
8306 hpux9*)
8307 if test "$GCC" = yes; then
8308 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8309 else
8310 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'
8311 fi
8312 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8313 hardcode_libdir_separator=:
8314 hardcode_direct=yes
8315
8316 # hardcode_minus_L: Not really in the search PATH,
8317 # but as the default location of the library.
8318 hardcode_minus_L=yes
8319 export_dynamic_flag_spec='${wl}-E'
8320 ;;
8321
8322 hpux10*)
8323 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8324 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8325 else
8326 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8327 fi
8328 if test "$with_gnu_ld" = no; then
8329 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8330 hardcode_libdir_flag_spec_ld='+b $libdir'
8331 hardcode_libdir_separator=:
8332 hardcode_direct=yes
8333 hardcode_direct_absolute=yes
8334 export_dynamic_flag_spec='${wl}-E'
8335 # hardcode_minus_L: Not really in the search PATH,
8336 # but as the default location of the library.
8337 hardcode_minus_L=yes
8338 fi
8339 ;;
8340
8341 hpux11*)
8342 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8343 case $host_cpu in
8344 hppa*64*)
8345 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8346 ;;
8347 ia64*)
8348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8349 ;;
8350 *)
8351 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8352 ;;
8353 esac
8354 else
8355 case $host_cpu in
8356 hppa*64*)
8357 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8358 ;;
8359 ia64*)
8360 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8361 ;;
8362 *)
8363 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8364 ;;
8365 esac
8366 fi
8367 if test "$with_gnu_ld" = no; then
8368 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8369 hardcode_libdir_separator=:
8370
8371 case $host_cpu in
8372 hppa*64*|ia64*)
8373 hardcode_direct=no
8374 hardcode_shlibpath_var=no
8375 ;;
8376 *)
8377 hardcode_direct=yes
8378 hardcode_direct_absolute=yes
8379 export_dynamic_flag_spec='${wl}-E'
8380
8381 # hardcode_minus_L: Not really in the search PATH,
8382 # but as the default location of the library.
8383 hardcode_minus_L=yes
8384 ;;
8385 esac
8386 fi
8387 ;;
8388
8389 irix5* | irix6* | nonstopux*)
8390 if test "$GCC" = yes; then
8391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8392 # Try to use the -exported_symbol ld option, if it does not
8393 # work, assume that -exports_file does not work either and
8394 # implicitly export all symbols.
8395 save_LDFLAGS="$LDFLAGS"
8396 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 int foo(void) {}
8400 _ACEOF
8401 if ac_fn_c_try_link "$LINENO"; then :
8402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8403
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext \
8406 conftest$ac_exeext conftest.$ac_ext
8407 LDFLAGS="$save_LDFLAGS"
8408 else
8409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8411 fi
8412 archive_cmds_need_lc='no'
8413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8414 hardcode_libdir_separator=:
8415 inherit_rpath=yes
8416 link_all_deplibs=yes
8417 ;;
8418
8419 netbsd* | netbsdelf*-gnu)
8420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8422 else
8423 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8424 fi
8425 hardcode_libdir_flag_spec='-R$libdir'
8426 hardcode_direct=yes
8427 hardcode_shlibpath_var=no
8428 ;;
8429
8430 newsos6)
8431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8432 hardcode_direct=yes
8433 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8434 hardcode_libdir_separator=:
8435 hardcode_shlibpath_var=no
8436 ;;
8437
8438 *nto* | *qnx*)
8439 ;;
8440
8441 openbsd*)
8442 if test -f /usr/libexec/ld.so; then
8443 hardcode_direct=yes
8444 hardcode_shlibpath_var=no
8445 hardcode_direct_absolute=yes
8446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8447 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8448 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8449 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8450 export_dynamic_flag_spec='${wl}-E'
8451 else
8452 case $host_os in
8453 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8454 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8455 hardcode_libdir_flag_spec='-R$libdir'
8456 ;;
8457 *)
8458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8459 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8460 ;;
8461 esac
8462 fi
8463 else
8464 ld_shlibs=no
8465 fi
8466 ;;
8467
8468 os2*)
8469 hardcode_libdir_flag_spec='-L$libdir'
8470 hardcode_minus_L=yes
8471 allow_undefined_flag=unsupported
8472 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'
8473 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8474 ;;
8475
8476 osf3*)
8477 if test "$GCC" = yes; then
8478 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8479 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8480 else
8481 allow_undefined_flag=' -expect_unresolved \*'
8482 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8483 fi
8484 archive_cmds_need_lc='no'
8485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8486 hardcode_libdir_separator=:
8487 ;;
8488
8489 osf4* | osf5*) # as osf3* with the addition of -msym flag
8490 if test "$GCC" = yes; then
8491 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8492 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8494 else
8495 allow_undefined_flag=' -expect_unresolved \*'
8496 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8497 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~
8498 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8499
8500 # Both c and cxx compiler support -rpath directly
8501 hardcode_libdir_flag_spec='-rpath $libdir'
8502 fi
8503 archive_cmds_need_lc='no'
8504 hardcode_libdir_separator=:
8505 ;;
8506
8507 solaris*)
8508 no_undefined_flag=' -z defs'
8509 if test "$GCC" = yes; then
8510 wlarc='${wl}'
8511 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8512 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8513 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8514 else
8515 case `$CC -V 2>&1` in
8516 *"Compilers 5.0"*)
8517 wlarc=''
8518 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8519 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8520 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8521 ;;
8522 *)
8523 wlarc='${wl}'
8524 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8525 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8526 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8527 ;;
8528 esac
8529 fi
8530 hardcode_libdir_flag_spec='-R$libdir'
8531 hardcode_shlibpath_var=no
8532 case $host_os in
8533 solaris2.[0-5] | solaris2.[0-5].*) ;;
8534 *)
8535 # The compiler driver will combine and reorder linker options,
8536 # but understands `-z linker_flag'. GCC discards it without `$wl',
8537 # but is careful enough not to reorder.
8538 # Supported since Solaris 2.6 (maybe 2.5.1?)
8539 if test "$GCC" = yes; then
8540 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8541 else
8542 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8543 fi
8544 ;;
8545 esac
8546 link_all_deplibs=yes
8547 ;;
8548
8549 sunos4*)
8550 if test "x$host_vendor" = xsequent; then
8551 # Use $CC to link under sequent, because it throws in some extra .o
8552 # files that make .init and .fini sections work.
8553 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8554 else
8555 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8556 fi
8557 hardcode_libdir_flag_spec='-L$libdir'
8558 hardcode_direct=yes
8559 hardcode_minus_L=yes
8560 hardcode_shlibpath_var=no
8561 ;;
8562
8563 sysv4)
8564 case $host_vendor in
8565 sni)
8566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8567 hardcode_direct=yes # is this really true???
8568 ;;
8569 siemens)
8570 ## LD is ld it makes a PLAMLIB
8571 ## CC just makes a GrossModule.
8572 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8573 reload_cmds='$CC -r -o $output$reload_objs'
8574 hardcode_direct=no
8575 ;;
8576 motorola)
8577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8578 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8579 ;;
8580 esac
8581 runpath_var='LD_RUN_PATH'
8582 hardcode_shlibpath_var=no
8583 ;;
8584
8585 sysv4.3*)
8586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8587 hardcode_shlibpath_var=no
8588 export_dynamic_flag_spec='-Bexport'
8589 ;;
8590
8591 sysv4*MP*)
8592 if test -d /usr/nec; then
8593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8594 hardcode_shlibpath_var=no
8595 runpath_var=LD_RUN_PATH
8596 hardcode_runpath_var=yes
8597 ld_shlibs=yes
8598 fi
8599 ;;
8600
8601 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8602 no_undefined_flag='${wl}-z,text'
8603 archive_cmds_need_lc=no
8604 hardcode_shlibpath_var=no
8605 runpath_var='LD_RUN_PATH'
8606
8607 if test "$GCC" = yes; then
8608 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8609 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8610 else
8611 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8612 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8613 fi
8614 ;;
8615
8616 sysv5* | sco3.2v5* | sco5v6*)
8617 # Note: We can NOT use -z defs as we might desire, because we do not
8618 # link with -lc, and that would cause any symbols used from libc to
8619 # always be unresolved, which means just about no library would
8620 # ever link correctly. If we're not using GNU ld we use -z text
8621 # though, which does catch some bad symbols but isn't as heavy-handed
8622 # as -z defs.
8623 no_undefined_flag='${wl}-z,text'
8624 allow_undefined_flag='${wl}-z,nodefs'
8625 archive_cmds_need_lc=no
8626 hardcode_shlibpath_var=no
8627 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8628 hardcode_libdir_separator=':'
8629 link_all_deplibs=yes
8630 export_dynamic_flag_spec='${wl}-Bexport'
8631 runpath_var='LD_RUN_PATH'
8632
8633 if test "$GCC" = yes; then
8634 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8635 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8636 else
8637 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8638 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8639 fi
8640 ;;
8641
8642 uts4*)
8643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8644 hardcode_libdir_flag_spec='-L$libdir'
8645 hardcode_shlibpath_var=no
8646 ;;
8647
8648 *)
8649 ld_shlibs=no
8650 ;;
8651 esac
8652
8653 if test x$host_vendor = xsni; then
8654 case $host in
8655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8656 export_dynamic_flag_spec='${wl}-Blargedynsym'
8657 ;;
8658 esac
8659 fi
8660 fi
8661
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8663 $as_echo "$ld_shlibs" >&6; }
8664 test "$ld_shlibs" = no && can_build_shared=no
8665
8666 with_gnu_ld=$with_gnu_ld
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682 #
8683 # Do we need to explicitly link libc?
8684 #
8685 case "x$archive_cmds_need_lc" in
8686 x|xyes)
8687 # Assume -lc should be added
8688 archive_cmds_need_lc=yes
8689
8690 if test "$enable_shared" = yes && test "$GCC" = yes; then
8691 case $archive_cmds in
8692 *'~'*)
8693 # FIXME: we may have to deal with multi-command sequences.
8694 ;;
8695 '$CC '*)
8696 # Test whether the compiler implicitly links with -lc since on some
8697 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8698 # to ld, don't add -lc before -lgcc.
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8700 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8701 $RM conftest*
8702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8703
8704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8705 (eval $ac_compile) 2>&5
8706 ac_status=$?
8707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8708 test $ac_status = 0; } 2>conftest.err; then
8709 soname=conftest
8710 lib=conftest
8711 libobjs=conftest.$ac_objext
8712 deplibs=
8713 wl=$lt_prog_compiler_wl
8714 pic_flag=$lt_prog_compiler_pic
8715 compiler_flags=-v
8716 linker_flags=-v
8717 verstring=
8718 output_objdir=.
8719 libname=conftest
8720 lt_save_allow_undefined_flag=$allow_undefined_flag
8721 allow_undefined_flag=
8722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8723 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8724 ac_status=$?
8725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8726 test $ac_status = 0; }
8727 then
8728 archive_cmds_need_lc=no
8729 else
8730 archive_cmds_need_lc=yes
8731 fi
8732 allow_undefined_flag=$lt_save_allow_undefined_flag
8733 else
8734 cat conftest.err 1>&5
8735 fi
8736 $RM conftest*
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8738 $as_echo "$archive_cmds_need_lc" >&6; }
8739 ;;
8740 esac
8741 fi
8742 ;;
8743 esac
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8902 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8903
8904 if test "$GCC" = yes; then
8905 case $host_os in
8906 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8907 *) lt_awk_arg="/^libraries:/" ;;
8908 esac
8909 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8910 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8911 # if the path contains ";" then we assume it to be the separator
8912 # otherwise default to the standard path separator (i.e. ":") - it is
8913 # assumed that no part of a normal pathname contains ";" but that should
8914 # okay in the real world where ";" in dirpaths is itself problematic.
8915 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8916 else
8917 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8918 fi
8919 # Ok, now we have the path, separated by spaces, we can step through it
8920 # and add multilib dir if necessary.
8921 lt_tmp_lt_search_path_spec=
8922 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8923 for lt_sys_path in $lt_search_path_spec; do
8924 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8926 else
8927 test -d "$lt_sys_path" && \
8928 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8929 fi
8930 done
8931 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8932 BEGIN {RS=" "; FS="/|\n";} {
8933 lt_foo="";
8934 lt_count=0;
8935 for (lt_i = NF; lt_i > 0; lt_i--) {
8936 if ($lt_i != "" && $lt_i != ".") {
8937 if ($lt_i == "..") {
8938 lt_count++;
8939 } else {
8940 if (lt_count == 0) {
8941 lt_foo="/" $lt_i lt_foo;
8942 } else {
8943 lt_count--;
8944 }
8945 }
8946 }
8947 }
8948 if (lt_foo != "") { lt_freq[lt_foo]++; }
8949 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8950 }'`
8951 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8952 else
8953 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8954 fi
8955 library_names_spec=
8956 libname_spec='lib$name'
8957 soname_spec=
8958 shrext_cmds=".so"
8959 postinstall_cmds=
8960 postuninstall_cmds=
8961 finish_cmds=
8962 finish_eval=
8963 shlibpath_var=
8964 shlibpath_overrides_runpath=unknown
8965 version_type=none
8966 dynamic_linker="$host_os ld.so"
8967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8968 need_lib_prefix=unknown
8969 hardcode_into_libs=no
8970
8971 # when you set need_version to no, make sure it does not cause -set_version
8972 # flags to be left without arguments
8973 need_version=unknown
8974
8975 case $host_os in
8976 aix3*)
8977 version_type=linux
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8979 shlibpath_var=LIBPATH
8980
8981 # AIX 3 has no versioning support, so we append a major version to the name.
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 ;;
8984
8985 aix[4-9]*)
8986 version_type=linux
8987 need_lib_prefix=no
8988 need_version=no
8989 hardcode_into_libs=yes
8990 if test "$host_cpu" = ia64; then
8991 # AIX 5 supports IA64
8992 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 else
8995 # With GCC up to 2.95.x, collect2 would create an import file
8996 # for dependence libraries. The import file would start with
8997 # the line `#! .'. This would cause the generated library to
8998 # depend on `.', always an invalid library. This was fixed in
8999 # development snapshots of GCC prior to 3.0.
9000 case $host_os in
9001 aix4 | aix4.[01] | aix4.[01].*)
9002 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9003 echo ' yes '
9004 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9005 :
9006 else
9007 can_build_shared=no
9008 fi
9009 ;;
9010 esac
9011 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9012 # soname into executable. Probably we can add versioning support to
9013 # collect2, so additional links can be useful in future.
9014 if test "$aix_use_runtimelinking" = yes; then
9015 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9016 # instead of lib<name>.a to let people know that these are not
9017 # typical AIX shared libraries.
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019 else
9020 # We preserve .a as extension for shared libraries through AIX4.2
9021 # and later when we are not doing run time linking.
9022 library_names_spec='${libname}${release}.a $libname.a'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 fi
9025 shlibpath_var=LIBPATH
9026 fi
9027 ;;
9028
9029 amigaos*)
9030 case $host_cpu in
9031 powerpc)
9032 # Since July 2007 AmigaOS4 officially supports .so libraries.
9033 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035 ;;
9036 m68k)
9037 library_names_spec='$libname.ixlibrary $libname.a'
9038 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9039 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9040 ;;
9041 esac
9042 ;;
9043
9044 beos*)
9045 library_names_spec='${libname}${shared_ext}'
9046 dynamic_linker="$host_os ld.so"
9047 shlibpath_var=LIBRARY_PATH
9048 ;;
9049
9050 bsdi[45]*)
9051 version_type=linux
9052 need_version=no
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9056 shlibpath_var=LD_LIBRARY_PATH
9057 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9058 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9059 # the default ld.so.conf also contains /usr/contrib/lib and
9060 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9061 # libtool to hard-code these into programs
9062 ;;
9063
9064 cygwin* | mingw* | pw32* | cegcc*)
9065 version_type=windows
9066 shrext_cmds=".dll"
9067 need_version=no
9068 need_lib_prefix=no
9069
9070 case $GCC,$host_os in
9071 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9072 library_names_spec='$libname.dll.a'
9073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9074 postinstall_cmds='base_file=`basename \${file}`~
9075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9076 dldir=$destdir/`dirname \$dlpath`~
9077 test -d \$dldir || mkdir -p \$dldir~
9078 $install_prog $dir/$dlname \$dldir/$dlname~
9079 chmod a+x \$dldir/$dlname~
9080 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9081 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9082 fi'
9083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9084 dlpath=$dir/\$dldll~
9085 $RM \$dlpath'
9086 shlibpath_overrides_runpath=yes
9087
9088 case $host_os in
9089 cygwin*)
9090 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9091 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9092 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9093 ;;
9094 mingw* | cegcc*)
9095 # MinGW DLLs use traditional 'lib' prefix
9096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9097 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9098 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9099 # It is most probably a Windows format PATH printed by
9100 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9101 # path with ; separators, and with drive letters. We can handle the
9102 # drive letters (cygwin fileutils understands them), so leave them,
9103 # especially as we might pass files found there to a mingw objdump,
9104 # which wouldn't understand a cygwinified path. Ahh.
9105 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9106 else
9107 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9108 fi
9109 ;;
9110 pw32*)
9111 # pw32 DLLs use 'pw' prefix rather than 'lib'
9112 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9113 ;;
9114 esac
9115 ;;
9116
9117 *)
9118 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9119 ;;
9120 esac
9121 dynamic_linker='Win32 ld.exe'
9122 # FIXME: first we should search . and the directory the executable is in
9123 shlibpath_var=PATH
9124 ;;
9125
9126 darwin* | rhapsody*)
9127 dynamic_linker="$host_os dyld"
9128 version_type=darwin
9129 need_lib_prefix=no
9130 need_version=no
9131 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9132 soname_spec='${libname}${release}${major}$shared_ext'
9133 shlibpath_overrides_runpath=yes
9134 shlibpath_var=DYLD_LIBRARY_PATH
9135 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9136
9137 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9139 ;;
9140
9141 dgux*)
9142 version_type=linux
9143 need_lib_prefix=no
9144 need_version=no
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 ;;
9149
9150 freebsd1*)
9151 dynamic_linker=no
9152 ;;
9153
9154 freebsd* | dragonfly*)
9155 # DragonFly does not have aout. When/if they implement a new
9156 # versioning mechanism, adjust this.
9157 if test -x /usr/bin/objformat; then
9158 objformat=`/usr/bin/objformat`
9159 else
9160 case $host_os in
9161 freebsd[123]*) objformat=aout ;;
9162 *) objformat=elf ;;
9163 esac
9164 fi
9165 version_type=freebsd-$objformat
9166 case $version_type in
9167 freebsd-elf*)
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9169 need_version=no
9170 need_lib_prefix=no
9171 ;;
9172 freebsd-*)
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9174 need_version=yes
9175 ;;
9176 esac
9177 shlibpath_var=LD_LIBRARY_PATH
9178 case $host_os in
9179 freebsd2*)
9180 shlibpath_overrides_runpath=yes
9181 ;;
9182 freebsd3.[01]* | freebsdelf3.[01]*)
9183 shlibpath_overrides_runpath=yes
9184 hardcode_into_libs=yes
9185 ;;
9186 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9187 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9188 shlibpath_overrides_runpath=no
9189 hardcode_into_libs=yes
9190 ;;
9191 *) # from 4.6 on, and DragonFly
9192 shlibpath_overrides_runpath=yes
9193 hardcode_into_libs=yes
9194 ;;
9195 esac
9196 ;;
9197
9198 gnu*)
9199 version_type=linux
9200 need_lib_prefix=no
9201 need_version=no
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 hardcode_into_libs=yes
9206 ;;
9207
9208 hpux9* | hpux10* | hpux11*)
9209 # Give a soname corresponding to the major version so that dld.sl refuses to
9210 # link against other versions.
9211 version_type=sunos
9212 need_lib_prefix=no
9213 need_version=no
9214 case $host_cpu in
9215 ia64*)
9216 shrext_cmds='.so'
9217 hardcode_into_libs=yes
9218 dynamic_linker="$host_os dld.so"
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 if test "X$HPUX_IA64_MODE" = X32; then
9224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9225 else
9226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9227 fi
9228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9229 ;;
9230 hppa*64*)
9231 shrext_cmds='.sl'
9232 hardcode_into_libs=yes
9233 dynamic_linker="$host_os dld.sl"
9234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9240 ;;
9241 *)
9242 shrext_cmds='.sl'
9243 dynamic_linker="$host_os dld.sl"
9244 shlibpath_var=SHLIB_PATH
9245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 ;;
9249 esac
9250 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9251 postinstall_cmds='chmod 555 $lib'
9252 ;;
9253
9254 interix[3-9]*)
9255 version_type=linux
9256 need_lib_prefix=no
9257 need_version=no
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=no
9263 hardcode_into_libs=yes
9264 ;;
9265
9266 irix5* | irix6* | nonstopux*)
9267 case $host_os in
9268 nonstopux*) version_type=nonstopux ;;
9269 *)
9270 if test "$lt_cv_prog_gnu_ld" = yes; then
9271 version_type=linux
9272 else
9273 version_type=irix
9274 fi ;;
9275 esac
9276 need_lib_prefix=no
9277 need_version=no
9278 soname_spec='${libname}${release}${shared_ext}$major'
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9280 case $host_os in
9281 irix5* | nonstopux*)
9282 libsuff= shlibsuff=
9283 ;;
9284 *)
9285 case $LD in # libtool.m4 will add one of these switches to LD
9286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9287 libsuff= shlibsuff= libmagic=32-bit;;
9288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9289 libsuff=32 shlibsuff=N32 libmagic=N32;;
9290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9292 *) libsuff= shlibsuff= libmagic=never-match;;
9293 esac
9294 ;;
9295 esac
9296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9297 shlibpath_overrides_runpath=no
9298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9300 hardcode_into_libs=yes
9301 ;;
9302
9303 # No shared lib support for Linux oldld, aout, or coff.
9304 linux*oldld* | linux*aout* | linux*coff*)
9305 dynamic_linker=no
9306 ;;
9307
9308 # This must be Linux ELF.
9309 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9310 version_type=linux
9311 need_lib_prefix=no
9312 need_version=no
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9316 shlibpath_var=LD_LIBRARY_PATH
9317 shlibpath_overrides_runpath=no
9318 # Some binutils ld are patched to set DT_RUNPATH
9319 save_LDFLAGS=$LDFLAGS
9320 save_libdir=$libdir
9321 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9322 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325
9326 int
9327 main ()
9328 {
9329
9330 ;
9331 return 0;
9332 }
9333 _ACEOF
9334 if ac_fn_c_try_link "$LINENO"; then :
9335 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9336 shlibpath_overrides_runpath=yes
9337 fi
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext \
9340 conftest$ac_exeext conftest.$ac_ext
9341 LDFLAGS=$save_LDFLAGS
9342 libdir=$save_libdir
9343
9344 # This implies no fast_install, which is unacceptable.
9345 # Some rework will be needed to allow for fast_install
9346 # before this can be enabled.
9347 hardcode_into_libs=yes
9348
9349 # Append ld.so.conf contents to the search path
9350 if test -f /etc/ld.so.conf; then
9351 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;/^$/d' | tr '\n' ' '`
9352 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9353 fi
9354
9355 # We used to test for /lib/ld.so.1 and disable shared libraries on
9356 # powerpc, because MkLinux only supported shared libraries with the
9357 # GNU dynamic linker. Since this was broken with cross compilers,
9358 # most powerpc-linux boxes support dynamic linking these days and
9359 # people can always --disable-shared, the test was removed, and we
9360 # assume the GNU/Linux dynamic linker is in use.
9361 dynamic_linker='GNU/Linux ld.so'
9362 ;;
9363
9364 netbsdelf*-gnu)
9365 version_type=linux
9366 need_lib_prefix=no
9367 need_version=no
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 shlibpath_overrides_runpath=no
9372 hardcode_into_libs=yes
9373 dynamic_linker='NetBSD ld.elf_so'
9374 ;;
9375
9376 netbsd*)
9377 version_type=sunos
9378 need_lib_prefix=no
9379 need_version=no
9380 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9383 dynamic_linker='NetBSD (a.out) ld.so'
9384 else
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9386 soname_spec='${libname}${release}${shared_ext}$major'
9387 dynamic_linker='NetBSD ld.elf_so'
9388 fi
9389 shlibpath_var=LD_LIBRARY_PATH
9390 shlibpath_overrides_runpath=yes
9391 hardcode_into_libs=yes
9392 ;;
9393
9394 newsos6)
9395 version_type=linux
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397 shlibpath_var=LD_LIBRARY_PATH
9398 shlibpath_overrides_runpath=yes
9399 ;;
9400
9401 *nto* | *qnx*)
9402 version_type=qnx
9403 need_lib_prefix=no
9404 need_version=no
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406 soname_spec='${libname}${release}${shared_ext}$major'
9407 shlibpath_var=LD_LIBRARY_PATH
9408 shlibpath_overrides_runpath=no
9409 hardcode_into_libs=yes
9410 dynamic_linker='ldqnx.so'
9411 ;;
9412
9413 openbsd*)
9414 version_type=sunos
9415 sys_lib_dlsearch_path_spec="/usr/lib"
9416 need_lib_prefix=no
9417 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9418 case $host_os in
9419 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9420 *) need_version=no ;;
9421 esac
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9424 shlibpath_var=LD_LIBRARY_PATH
9425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9426 case $host_os in
9427 openbsd2.[89] | openbsd2.[89].*)
9428 shlibpath_overrides_runpath=no
9429 ;;
9430 *)
9431 shlibpath_overrides_runpath=yes
9432 ;;
9433 esac
9434 else
9435 shlibpath_overrides_runpath=yes
9436 fi
9437 ;;
9438
9439 os2*)
9440 libname_spec='$name'
9441 shrext_cmds=".dll"
9442 need_lib_prefix=no
9443 library_names_spec='$libname${shared_ext} $libname.a'
9444 dynamic_linker='OS/2 ld.exe'
9445 shlibpath_var=LIBPATH
9446 ;;
9447
9448 osf3* | osf4* | osf5*)
9449 version_type=osf
9450 need_lib_prefix=no
9451 need_version=no
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9456 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9457 ;;
9458
9459 rdos*)
9460 dynamic_linker=no
9461 ;;
9462
9463 solaris*)
9464 version_type=linux
9465 need_lib_prefix=no
9466 need_version=no
9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468 soname_spec='${libname}${release}${shared_ext}$major'
9469 shlibpath_var=LD_LIBRARY_PATH
9470 shlibpath_overrides_runpath=yes
9471 hardcode_into_libs=yes
9472 # ldd complains unless libraries are executable
9473 postinstall_cmds='chmod +x $lib'
9474 ;;
9475
9476 sunos4*)
9477 version_type=sunos
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9479 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9480 shlibpath_var=LD_LIBRARY_PATH
9481 shlibpath_overrides_runpath=yes
9482 if test "$with_gnu_ld" = yes; then
9483 need_lib_prefix=no
9484 fi
9485 need_version=yes
9486 ;;
9487
9488 sysv4 | sysv4.3*)
9489 version_type=linux
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 case $host_vendor in
9494 sni)
9495 shlibpath_overrides_runpath=no
9496 need_lib_prefix=no
9497 runpath_var=LD_RUN_PATH
9498 ;;
9499 siemens)
9500 need_lib_prefix=no
9501 ;;
9502 motorola)
9503 need_lib_prefix=no
9504 need_version=no
9505 shlibpath_overrides_runpath=no
9506 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9507 ;;
9508 esac
9509 ;;
9510
9511 sysv4*MP*)
9512 if test -d /usr/nec ;then
9513 version_type=linux
9514 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9515 soname_spec='$libname${shared_ext}.$major'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 fi
9518 ;;
9519
9520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9521 version_type=freebsd-elf
9522 need_lib_prefix=no
9523 need_version=no
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9525 soname_spec='${libname}${release}${shared_ext}$major'
9526 shlibpath_var=LD_LIBRARY_PATH
9527 shlibpath_overrides_runpath=yes
9528 hardcode_into_libs=yes
9529 if test "$with_gnu_ld" = yes; then
9530 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9531 else
9532 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9533 case $host_os in
9534 sco3.2v5*)
9535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9536 ;;
9537 esac
9538 fi
9539 sys_lib_dlsearch_path_spec='/usr/lib'
9540 ;;
9541
9542 tpf*)
9543 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9544 version_type=linux
9545 need_lib_prefix=no
9546 need_version=no
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 shlibpath_overrides_runpath=no
9550 hardcode_into_libs=yes
9551 ;;
9552
9553 uts4*)
9554 version_type=linux
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9556 soname_spec='${libname}${release}${shared_ext}$major'
9557 shlibpath_var=LD_LIBRARY_PATH
9558 ;;
9559
9560 *)
9561 dynamic_linker=no
9562 ;;
9563 esac
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9565 $as_echo "$dynamic_linker" >&6; }
9566 test "$dynamic_linker" = no && can_build_shared=no
9567
9568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9569 if test "$GCC" = yes; then
9570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9571 fi
9572
9573 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9574 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9575 fi
9576 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9577 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9578 fi
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9667 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9668 hardcode_action=
9669 if test -n "$hardcode_libdir_flag_spec" ||
9670 test -n "$runpath_var" ||
9671 test "X$hardcode_automatic" = "Xyes" ; then
9672
9673 # We can hardcode non-existent directories.
9674 if test "$hardcode_direct" != no &&
9675 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9676 # have to relink, otherwise we might link with an installed library
9677 # when we should be linking with a yet-to-be-installed one
9678 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9679 test "$hardcode_minus_L" != no; then
9680 # Linking always hardcodes the temporary library directory.
9681 hardcode_action=relink
9682 else
9683 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9684 hardcode_action=immediate
9685 fi
9686 else
9687 # We cannot hardcode anything, or else we can only hardcode existing
9688 # directories.
9689 hardcode_action=unsupported
9690 fi
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9692 $as_echo "$hardcode_action" >&6; }
9693
9694 if test "$hardcode_action" = relink ||
9695 test "$inherit_rpath" = yes; then
9696 # Fast installation is not supported
9697 enable_fast_install=no
9698 elif test "$shlibpath_overrides_runpath" = yes ||
9699 test "$enable_shared" = no; then
9700 # Fast installation is not necessary
9701 enable_fast_install=needless
9702 fi
9703
9704
9705
9706
9707
9708
9709 if test "x$enable_dlopen" != xyes; then
9710 enable_dlopen=unknown
9711 enable_dlopen_self=unknown
9712 enable_dlopen_self_static=unknown
9713 else
9714 lt_cv_dlopen=no
9715 lt_cv_dlopen_libs=
9716
9717 case $host_os in
9718 beos*)
9719 lt_cv_dlopen="load_add_on"
9720 lt_cv_dlopen_libs=
9721 lt_cv_dlopen_self=yes
9722 ;;
9723
9724 mingw* | pw32* | cegcc*)
9725 lt_cv_dlopen="LoadLibrary"
9726 lt_cv_dlopen_libs=
9727 ;;
9728
9729 cygwin*)
9730 lt_cv_dlopen="dlopen"
9731 lt_cv_dlopen_libs=
9732 ;;
9733
9734 darwin*)
9735 # if libdl is installed we need to link against it
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9737 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9738 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 ac_check_lib_save_LIBS=$LIBS
9742 LIBS="-ldl $LIBS"
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9745
9746 /* Override any GCC internal prototype to avoid an error.
9747 Use char because int might match the return type of a GCC
9748 builtin and then its argument prototype would still apply. */
9749 #ifdef __cplusplus
9750 extern "C"
9751 #endif
9752 char dlopen ();
9753 int
9754 main ()
9755 {
9756 return dlopen ();
9757 ;
9758 return 0;
9759 }
9760 _ACEOF
9761 if ac_fn_c_try_link "$LINENO"; then :
9762 ac_cv_lib_dl_dlopen=yes
9763 else
9764 ac_cv_lib_dl_dlopen=no
9765 fi
9766 rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9768 LIBS=$ac_check_lib_save_LIBS
9769 fi
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9771 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9772 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9774 else
9775
9776 lt_cv_dlopen="dyld"
9777 lt_cv_dlopen_libs=
9778 lt_cv_dlopen_self=yes
9779
9780 fi
9781
9782 ;;
9783
9784 *)
9785 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9786 if test "x$ac_cv_func_shl_load" = x""yes; then :
9787 lt_cv_dlopen="shl_load"
9788 else
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9790 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9791 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 ac_check_lib_save_LIBS=$LIBS
9795 LIBS="-ldld $LIBS"
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798
9799 /* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9802 #ifdef __cplusplus
9803 extern "C"
9804 #endif
9805 char shl_load ();
9806 int
9807 main ()
9808 {
9809 return shl_load ();
9810 ;
9811 return 0;
9812 }
9813 _ACEOF
9814 if ac_fn_c_try_link "$LINENO"; then :
9815 ac_cv_lib_dld_shl_load=yes
9816 else
9817 ac_cv_lib_dld_shl_load=no
9818 fi
9819 rm -f core conftest.err conftest.$ac_objext \
9820 conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9822 fi
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9824 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9825 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9826 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9827 else
9828 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9829 if test "x$ac_cv_func_dlopen" = x""yes; then :
9830 lt_cv_dlopen="dlopen"
9831 else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9833 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9834 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9835 $as_echo_n "(cached) " >&6
9836 else
9837 ac_check_lib_save_LIBS=$LIBS
9838 LIBS="-ldl $LIBS"
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841
9842 /* Override any GCC internal prototype to avoid an error.
9843 Use char because int might match the return type of a GCC
9844 builtin and then its argument prototype would still apply. */
9845 #ifdef __cplusplus
9846 extern "C"
9847 #endif
9848 char dlopen ();
9849 int
9850 main ()
9851 {
9852 return dlopen ();
9853 ;
9854 return 0;
9855 }
9856 _ACEOF
9857 if ac_fn_c_try_link "$LINENO"; then :
9858 ac_cv_lib_dl_dlopen=yes
9859 else
9860 ac_cv_lib_dl_dlopen=no
9861 fi
9862 rm -f core conftest.err conftest.$ac_objext \
9863 conftest$ac_exeext conftest.$ac_ext
9864 LIBS=$ac_check_lib_save_LIBS
9865 fi
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9867 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9868 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9870 else
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9872 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9873 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9874 $as_echo_n "(cached) " >&6
9875 else
9876 ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-lsvld $LIBS"
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9880
9881 /* Override any GCC internal prototype to avoid an error.
9882 Use char because int might match the return type of a GCC
9883 builtin and then its argument prototype would still apply. */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 char dlopen ();
9888 int
9889 main ()
9890 {
9891 return dlopen ();
9892 ;
9893 return 0;
9894 }
9895 _ACEOF
9896 if ac_fn_c_try_link "$LINENO"; then :
9897 ac_cv_lib_svld_dlopen=yes
9898 else
9899 ac_cv_lib_svld_dlopen=no
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903 LIBS=$ac_check_lib_save_LIBS
9904 fi
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9906 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9907 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9909 else
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9911 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9912 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 ac_check_lib_save_LIBS=$LIBS
9916 LIBS="-ldld $LIBS"
9917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918 /* end confdefs.h. */
9919
9920 /* Override any GCC internal prototype to avoid an error.
9921 Use char because int might match the return type of a GCC
9922 builtin and then its argument prototype would still apply. */
9923 #ifdef __cplusplus
9924 extern "C"
9925 #endif
9926 char dld_link ();
9927 int
9928 main ()
9929 {
9930 return dld_link ();
9931 ;
9932 return 0;
9933 }
9934 _ACEOF
9935 if ac_fn_c_try_link "$LINENO"; then :
9936 ac_cv_lib_dld_dld_link=yes
9937 else
9938 ac_cv_lib_dld_dld_link=no
9939 fi
9940 rm -f core conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
9942 LIBS=$ac_check_lib_save_LIBS
9943 fi
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9945 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9946 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9947 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9948 fi
9949
9950
9951 fi
9952
9953
9954 fi
9955
9956
9957 fi
9958
9959
9960 fi
9961
9962
9963 fi
9964
9965 ;;
9966 esac
9967
9968 if test "x$lt_cv_dlopen" != xno; then
9969 enable_dlopen=yes
9970 else
9971 enable_dlopen=no
9972 fi
9973
9974 case $lt_cv_dlopen in
9975 dlopen)
9976 save_CPPFLAGS="$CPPFLAGS"
9977 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9978
9979 save_LDFLAGS="$LDFLAGS"
9980 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9981
9982 save_LIBS="$LIBS"
9983 LIBS="$lt_cv_dlopen_libs $LIBS"
9984
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9986 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9987 if test "${lt_cv_dlopen_self+set}" = set; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 if test "$cross_compiling" = yes; then :
9991 lt_cv_dlopen_self=cross
9992 else
9993 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9994 lt_status=$lt_dlunknown
9995 cat > conftest.$ac_ext <<_LT_EOF
9996 #line 9996 "configure"
9997 #include "confdefs.h"
9998
9999 #if HAVE_DLFCN_H
10000 #include <dlfcn.h>
10001 #endif
10002
10003 #include <stdio.h>
10004
10005 #ifdef RTLD_GLOBAL
10006 # define LT_DLGLOBAL RTLD_GLOBAL
10007 #else
10008 # ifdef DL_GLOBAL
10009 # define LT_DLGLOBAL DL_GLOBAL
10010 # else
10011 # define LT_DLGLOBAL 0
10012 # endif
10013 #endif
10014
10015 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10016 find out it does not work in some platform. */
10017 #ifndef LT_DLLAZY_OR_NOW
10018 # ifdef RTLD_LAZY
10019 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10020 # else
10021 # ifdef DL_LAZY
10022 # define LT_DLLAZY_OR_NOW DL_LAZY
10023 # else
10024 # ifdef RTLD_NOW
10025 # define LT_DLLAZY_OR_NOW RTLD_NOW
10026 # else
10027 # ifdef DL_NOW
10028 # define LT_DLLAZY_OR_NOW DL_NOW
10029 # else
10030 # define LT_DLLAZY_OR_NOW 0
10031 # endif
10032 # endif
10033 # endif
10034 # endif
10035 #endif
10036
10037 void fnord() { int i=42;}
10038 int main ()
10039 {
10040 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10041 int status = $lt_dlunknown;
10042
10043 if (self)
10044 {
10045 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10046 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10047 /* dlclose (self); */
10048 }
10049 else
10050 puts (dlerror ());
10051
10052 return status;
10053 }
10054 _LT_EOF
10055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10056 (eval $ac_link) 2>&5
10057 ac_status=$?
10058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10059 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10060 (./conftest; exit; ) >&5 2>/dev/null
10061 lt_status=$?
10062 case x$lt_status in
10063 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10064 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10065 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10066 esac
10067 else :
10068 # compilation failed
10069 lt_cv_dlopen_self=no
10070 fi
10071 fi
10072 rm -fr conftest*
10073
10074
10075 fi
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10077 $as_echo "$lt_cv_dlopen_self" >&6; }
10078
10079 if test "x$lt_cv_dlopen_self" = xyes; then
10080 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10082 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10083 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 if test "$cross_compiling" = yes; then :
10087 lt_cv_dlopen_self_static=cross
10088 else
10089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10090 lt_status=$lt_dlunknown
10091 cat > conftest.$ac_ext <<_LT_EOF
10092 #line 10092 "configure"
10093 #include "confdefs.h"
10094
10095 #if HAVE_DLFCN_H
10096 #include <dlfcn.h>
10097 #endif
10098
10099 #include <stdio.h>
10100
10101 #ifdef RTLD_GLOBAL
10102 # define LT_DLGLOBAL RTLD_GLOBAL
10103 #else
10104 # ifdef DL_GLOBAL
10105 # define LT_DLGLOBAL DL_GLOBAL
10106 # else
10107 # define LT_DLGLOBAL 0
10108 # endif
10109 #endif
10110
10111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10112 find out it does not work in some platform. */
10113 #ifndef LT_DLLAZY_OR_NOW
10114 # ifdef RTLD_LAZY
10115 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10116 # else
10117 # ifdef DL_LAZY
10118 # define LT_DLLAZY_OR_NOW DL_LAZY
10119 # else
10120 # ifdef RTLD_NOW
10121 # define LT_DLLAZY_OR_NOW RTLD_NOW
10122 # else
10123 # ifdef DL_NOW
10124 # define LT_DLLAZY_OR_NOW DL_NOW
10125 # else
10126 # define LT_DLLAZY_OR_NOW 0
10127 # endif
10128 # endif
10129 # endif
10130 # endif
10131 #endif
10132
10133 void fnord() { int i=42;}
10134 int main ()
10135 {
10136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10137 int status = $lt_dlunknown;
10138
10139 if (self)
10140 {
10141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10142 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10143 /* dlclose (self); */
10144 }
10145 else
10146 puts (dlerror ());
10147
10148 return status;
10149 }
10150 _LT_EOF
10151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10152 (eval $ac_link) 2>&5
10153 ac_status=$?
10154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10155 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10156 (./conftest; exit; ) >&5 2>/dev/null
10157 lt_status=$?
10158 case x$lt_status in
10159 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10160 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10161 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10162 esac
10163 else :
10164 # compilation failed
10165 lt_cv_dlopen_self_static=no
10166 fi
10167 fi
10168 rm -fr conftest*
10169
10170
10171 fi
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10173 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10174 fi
10175
10176 CPPFLAGS="$save_CPPFLAGS"
10177 LDFLAGS="$save_LDFLAGS"
10178 LIBS="$save_LIBS"
10179 ;;
10180 esac
10181
10182 case $lt_cv_dlopen_self in
10183 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10184 *) enable_dlopen_self=unknown ;;
10185 esac
10186
10187 case $lt_cv_dlopen_self_static in
10188 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10189 *) enable_dlopen_self_static=unknown ;;
10190 esac
10191 fi
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209 striplib=
10210 old_striplib=
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10212 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10213 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10214 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10215 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10217 $as_echo "yes" >&6; }
10218 else
10219 # FIXME - insert some real tests, host_os isn't really good enough
10220 case $host_os in
10221 darwin*)
10222 if test -n "$STRIP" ; then
10223 striplib="$STRIP -x"
10224 old_striplib="$STRIP -S"
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10226 $as_echo "yes" >&6; }
10227 else
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229 $as_echo "no" >&6; }
10230 fi
10231 ;;
10232 *)
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 $as_echo "no" >&6; }
10235 ;;
10236 esac
10237 fi
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250 # Report which library types will actually be built
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10252 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10254 $as_echo "$can_build_shared" >&6; }
10255
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10257 $as_echo_n "checking whether to build shared libraries... " >&6; }
10258 test "$can_build_shared" = "no" && enable_shared=no
10259
10260 # On AIX, shared libraries and static libraries use the same namespace, and
10261 # are all built from PIC.
10262 case $host_os in
10263 aix3*)
10264 test "$enable_shared" = yes && enable_static=no
10265 if test -n "$RANLIB"; then
10266 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10267 postinstall_cmds='$RANLIB $lib'
10268 fi
10269 ;;
10270
10271 aix[4-9]*)
10272 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10273 test "$enable_shared" = yes && enable_static=no
10274 fi
10275 ;;
10276 esac
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10278 $as_echo "$enable_shared" >&6; }
10279
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10281 $as_echo_n "checking whether to build static libraries... " >&6; }
10282 # Make sure either enable_shared or enable_static is yes.
10283 test "$enable_shared" = yes || enable_static=yes
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10285 $as_echo "$enable_static" >&6; }
10286
10287
10288
10289
10290 fi
10291 ac_ext=c
10292 ac_cpp='$CPP $CPPFLAGS'
10293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10296
10297 CC="$lt_save_CC"
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311 ac_config_commands="$ac_config_commands libtool"
10312
10313
10314
10315
10316 # Only expand once:
10317
10318
10319 ac_ext=c
10320 ac_cpp='$CPP $CPPFLAGS'
10321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10324 if test -n "$ac_tool_prefix"; then
10325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if test "${ac_cv_prog_CC+set}" = set; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 if test -n "$CC"; then
10333 ac_cv_prog_CC="$CC" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10345 fi
10346 done
10347 done
10348 IFS=$as_save_IFS
10349
10350 fi
10351 fi
10352 CC=$ac_cv_prog_CC
10353 if test -n "$CC"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10355 $as_echo "$CC" >&6; }
10356 else
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10359 fi
10360
10361
10362 fi
10363 if test -z "$ac_cv_prog_CC"; then
10364 ac_ct_CC=$CC
10365 # Extract the first word of "gcc", so it can be a program name with args.
10366 set dummy gcc; ac_word=$2
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10368 $as_echo_n "checking for $ac_word... " >&6; }
10369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10370 $as_echo_n "(cached) " >&6
10371 else
10372 if test -n "$ac_ct_CC"; then
10373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10374 else
10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376 for as_dir in $PATH
10377 do
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10382 ac_cv_prog_ac_ct_CC="gcc"
10383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10384 break 2
10385 fi
10386 done
10387 done
10388 IFS=$as_save_IFS
10389
10390 fi
10391 fi
10392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10393 if test -n "$ac_ct_CC"; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10395 $as_echo "$ac_ct_CC" >&6; }
10396 else
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398 $as_echo "no" >&6; }
10399 fi
10400
10401 if test "x$ac_ct_CC" = x; then
10402 CC=""
10403 else
10404 case $cross_compiling:$ac_tool_warned in
10405 yes:)
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10408 ac_tool_warned=yes ;;
10409 esac
10410 CC=$ac_ct_CC
10411 fi
10412 else
10413 CC="$ac_cv_prog_CC"
10414 fi
10415
10416 if test -z "$CC"; then
10417 if test -n "$ac_tool_prefix"; then
10418 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10419 set dummy ${ac_tool_prefix}cc; ac_word=$2
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10421 $as_echo_n "checking for $ac_word... " >&6; }
10422 if test "${ac_cv_prog_CC+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 if test -n "$CC"; then
10426 ac_cv_prog_CC="$CC" # Let the user override the test.
10427 else
10428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10429 for as_dir in $PATH
10430 do
10431 IFS=$as_save_IFS
10432 test -z "$as_dir" && as_dir=.
10433 for ac_exec_ext in '' $ac_executable_extensions; do
10434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10435 ac_cv_prog_CC="${ac_tool_prefix}cc"
10436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 break 2
10438 fi
10439 done
10440 done
10441 IFS=$as_save_IFS
10442
10443 fi
10444 fi
10445 CC=$ac_cv_prog_CC
10446 if test -n "$CC"; then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10448 $as_echo "$CC" >&6; }
10449 else
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451 $as_echo "no" >&6; }
10452 fi
10453
10454
10455 fi
10456 fi
10457 if test -z "$CC"; then
10458 # Extract the first word of "cc", so it can be a program name with args.
10459 set dummy cc; ac_word=$2
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461 $as_echo_n "checking for $ac_word... " >&6; }
10462 if test "${ac_cv_prog_CC+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 if test -n "$CC"; then
10466 ac_cv_prog_CC="$CC" # Let the user override the test.
10467 else
10468 ac_prog_rejected=no
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10471 do
10472 IFS=$as_save_IFS
10473 test -z "$as_dir" && as_dir=.
10474 for ac_exec_ext in '' $ac_executable_extensions; do
10475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10476 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10477 ac_prog_rejected=yes
10478 continue
10479 fi
10480 ac_cv_prog_CC="cc"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10483 fi
10484 done
10485 done
10486 IFS=$as_save_IFS
10487
10488 if test $ac_prog_rejected = yes; then
10489 # We found a bogon in the path, so make sure we never use it.
10490 set dummy $ac_cv_prog_CC
10491 shift
10492 if test $# != 0; then
10493 # We chose a different compiler from the bogus one.
10494 # However, it has the same basename, so the bogon will be chosen
10495 # first if we set CC to just the basename; use the full file name.
10496 shift
10497 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10498 fi
10499 fi
10500 fi
10501 fi
10502 CC=$ac_cv_prog_CC
10503 if test -n "$CC"; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10505 $as_echo "$CC" >&6; }
10506 else
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508 $as_echo "no" >&6; }
10509 fi
10510
10511
10512 fi
10513 if test -z "$CC"; then
10514 if test -n "$ac_tool_prefix"; then
10515 for ac_prog in cl.exe
10516 do
10517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520 $as_echo_n "checking for $ac_word... " >&6; }
10521 if test "${ac_cv_prog_CC+set}" = set; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 if test -n "$CC"; then
10525 ac_cv_prog_CC="$CC" # Let the user override the test.
10526 else
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
10529 do
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10534 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10537 fi
10538 done
10539 done
10540 IFS=$as_save_IFS
10541
10542 fi
10543 fi
10544 CC=$ac_cv_prog_CC
10545 if test -n "$CC"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10547 $as_echo "$CC" >&6; }
10548 else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10551 fi
10552
10553
10554 test -n "$CC" && break
10555 done
10556 fi
10557 if test -z "$CC"; then
10558 ac_ct_CC=$CC
10559 for ac_prog in cl.exe
10560 do
10561 # Extract the first word of "$ac_prog", so it can be a program name with args.
10562 set dummy $ac_prog; ac_word=$2
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564 $as_echo_n "checking for $ac_word... " >&6; }
10565 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10566 $as_echo_n "(cached) " >&6
10567 else
10568 if test -n "$ac_ct_CC"; then
10569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10570 else
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10573 do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578 ac_cv_prog_ac_ct_CC="$ac_prog"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10581 fi
10582 done
10583 done
10584 IFS=$as_save_IFS
10585
10586 fi
10587 fi
10588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10589 if test -n "$ac_ct_CC"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10591 $as_echo "$ac_ct_CC" >&6; }
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10595 fi
10596
10597
10598 test -n "$ac_ct_CC" && break
10599 done
10600
10601 if test "x$ac_ct_CC" = x; then
10602 CC=""
10603 else
10604 case $cross_compiling:$ac_tool_warned in
10605 yes:)
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10608 ac_tool_warned=yes ;;
10609 esac
10610 CC=$ac_ct_CC
10611 fi
10612 fi
10613
10614 fi
10615
10616
10617 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10619 as_fn_error "no acceptable C compiler found in \$PATH
10620 See \`config.log' for more details." "$LINENO" 5; }
10621
10622 # Provide some information about the compiler.
10623 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10624 set X $ac_compile
10625 ac_compiler=$2
10626 for ac_option in --version -v -V -qversion; do
10627 { { ac_try="$ac_compiler $ac_option >&5"
10628 case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10631 esac
10632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10633 $as_echo "$ac_try_echo"; } >&5
10634 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10635 ac_status=$?
10636 if test -s conftest.err; then
10637 sed '10a\
10638 ... rest of stderr output deleted ...
10639 10q' conftest.err >conftest.er1
10640 cat conftest.er1 >&5
10641 fi
10642 rm -f conftest.er1 conftest.err
10643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10644 test $ac_status = 0; }
10645 done
10646
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10648 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10649 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10654
10655 int
10656 main ()
10657 {
10658 #ifndef __GNUC__
10659 choke me
10660 #endif
10661
10662 ;
10663 return 0;
10664 }
10665 _ACEOF
10666 if ac_fn_c_try_compile "$LINENO"; then :
10667 ac_compiler_gnu=yes
10668 else
10669 ac_compiler_gnu=no
10670 fi
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10673
10674 fi
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10677 if test $ac_compiler_gnu = yes; then
10678 GCC=yes
10679 else
10680 GCC=
10681 fi
10682 ac_test_CFLAGS=${CFLAGS+set}
10683 ac_save_CFLAGS=$CFLAGS
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10686 if test "${ac_cv_prog_cc_g+set}" = set; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 ac_save_c_werror_flag=$ac_c_werror_flag
10690 ac_c_werror_flag=yes
10691 ac_cv_prog_cc_g=no
10692 CFLAGS="-g"
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695
10696 int
10697 main ()
10698 {
10699
10700 ;
10701 return 0;
10702 }
10703 _ACEOF
10704 if ac_fn_c_try_compile "$LINENO"; then :
10705 ac_cv_prog_cc_g=yes
10706 else
10707 CFLAGS=""
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710
10711 int
10712 main ()
10713 {
10714
10715 ;
10716 return 0;
10717 }
10718 _ACEOF
10719 if ac_fn_c_try_compile "$LINENO"; then :
10720
10721 else
10722 ac_c_werror_flag=$ac_save_c_werror_flag
10723 CFLAGS="-g"
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726
10727 int
10728 main ()
10729 {
10730
10731 ;
10732 return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_compile "$LINENO"; then :
10736 ac_cv_prog_cc_g=yes
10737 fi
10738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10741 fi
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 ac_c_werror_flag=$ac_save_c_werror_flag
10744 fi
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10746 $as_echo "$ac_cv_prog_cc_g" >&6; }
10747 if test "$ac_test_CFLAGS" = set; then
10748 CFLAGS=$ac_save_CFLAGS
10749 elif test $ac_cv_prog_cc_g = yes; then
10750 if test "$GCC" = yes; then
10751 CFLAGS="-g -O2"
10752 else
10753 CFLAGS="-g"
10754 fi
10755 else
10756 if test "$GCC" = yes; then
10757 CFLAGS="-O2"
10758 else
10759 CFLAGS=
10760 fi
10761 fi
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10764 if test "${ac_cv_prog_cc_c89+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 ac_cv_prog_cc_c89=no
10768 ac_save_CC=$CC
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10771 #include <stdarg.h>
10772 #include <stdio.h>
10773 #include <sys/types.h>
10774 #include <sys/stat.h>
10775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10776 struct buf { int x; };
10777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10778 static char *e (p, i)
10779 char **p;
10780 int i;
10781 {
10782 return p[i];
10783 }
10784 static char *f (char * (*g) (char **, int), char **p, ...)
10785 {
10786 char *s;
10787 va_list v;
10788 va_start (v,p);
10789 s = g (p, va_arg (v,int));
10790 va_end (v);
10791 return s;
10792 }
10793
10794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10795 function prototypes and stuff, but not '\xHH' hex character constants.
10796 These don't provoke an error unfortunately, instead are silently treated
10797 as 'x'. The following induces an error, until -std is added to get
10798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10799 array size at least. It's necessary to write '\x00'==0 to get something
10800 that's true only with -std. */
10801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10802
10803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10804 inside strings and character constants. */
10805 #define FOO(x) 'x'
10806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10807
10808 int test (int i, double x);
10809 struct s1 {int (*f) (int a);};
10810 struct s2 {int (*f) (double a);};
10811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10812 int argc;
10813 char **argv;
10814 int
10815 main ()
10816 {
10817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10818 ;
10819 return 0;
10820 }
10821 _ACEOF
10822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10824 do
10825 CC="$ac_save_CC $ac_arg"
10826 if ac_fn_c_try_compile "$LINENO"; then :
10827 ac_cv_prog_cc_c89=$ac_arg
10828 fi
10829 rm -f core conftest.err conftest.$ac_objext
10830 test "x$ac_cv_prog_cc_c89" != "xno" && break
10831 done
10832 rm -f conftest.$ac_ext
10833 CC=$ac_save_CC
10834
10835 fi
10836 # AC_CACHE_VAL
10837 case "x$ac_cv_prog_cc_c89" in
10838 x)
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10840 $as_echo "none needed" >&6; } ;;
10841 xno)
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10843 $as_echo "unsupported" >&6; } ;;
10844 *)
10845 CC="$CC $ac_cv_prog_cc_c89"
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10847 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10848 esac
10849 if test "x$ac_cv_prog_cc_c89" != xno; then :
10850
10851 fi
10852
10853 ac_ext=c
10854 ac_cpp='$CPP $CPPFLAGS'
10855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10858
10859 depcc="$CC" am_compiler_list=
10860
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10862 $as_echo_n "checking dependency style of $depcc... " >&6; }
10863 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10867 # We make a subdir and do the tests there. Otherwise we can end up
10868 # making bogus files that we don't know about and never remove. For
10869 # instance it was reported that on HP-UX the gcc test will end up
10870 # making a dummy file named `D' -- because `-MD' means `put the output
10871 # in D'.
10872 mkdir conftest.dir
10873 # Copy depcomp to subdir because otherwise we won't find it if we're
10874 # using a relative directory.
10875 cp "$am_depcomp" conftest.dir
10876 cd conftest.dir
10877 # We will build objects and dependencies in a subdirectory because
10878 # it helps to detect inapplicable dependency modes. For instance
10879 # both Tru64's cc and ICC support -MD to output dependencies as a
10880 # side effect of compilation, but ICC will put the dependencies in
10881 # the current directory while Tru64 will put them in the object
10882 # directory.
10883 mkdir sub
10884
10885 am_cv_CC_dependencies_compiler_type=none
10886 if test "$am_compiler_list" = ""; then
10887 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10888 fi
10889 am__universal=false
10890 case " $depcc " in #(
10891 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10892 esac
10893
10894 for depmode in $am_compiler_list; do
10895 # Setup a source with many dependencies, because some compilers
10896 # like to wrap large dependency lists on column 80 (with \), and
10897 # we should not choose a depcomp mode which is confused by this.
10898 #
10899 # We need to recreate these files for each test, as the compiler may
10900 # overwrite some of them when testing with obscure command lines.
10901 # This happens at least with the AIX C compiler.
10902 : > sub/conftest.c
10903 for i in 1 2 3 4 5 6; do
10904 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10905 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10906 # Solaris 8's {/usr,}/bin/sh.
10907 touch sub/conftst$i.h
10908 done
10909 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10910
10911 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10912 # mode. It turns out that the SunPro C++ compiler does not properly
10913 # handle `-M -o', and we need to detect this. Also, some Intel
10914 # versions had trouble with output in subdirs
10915 am__obj=sub/conftest.${OBJEXT-o}
10916 am__minus_obj="-o $am__obj"
10917 case $depmode in
10918 gcc)
10919 # This depmode causes a compiler race in universal mode.
10920 test "$am__universal" = false || continue
10921 ;;
10922 nosideeffect)
10923 # after this tag, mechanisms are not by side-effect, so they'll
10924 # only be used when explicitly requested
10925 if test "x$enable_dependency_tracking" = xyes; then
10926 continue
10927 else
10928 break
10929 fi
10930 ;;
10931 msvisualcpp | msvcmsys)
10932 # This compiler won't grok `-c -o', but also, the minuso test has
10933 # not run yet. These depmodes are late enough in the game, and
10934 # so weak that their functioning should not be impacted.
10935 am__obj=conftest.${OBJEXT-o}
10936 am__minus_obj=
10937 ;;
10938 none) break ;;
10939 esac
10940 if depmode=$depmode \
10941 source=sub/conftest.c object=$am__obj \
10942 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10943 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10944 >/dev/null 2>conftest.err &&
10945 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10946 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10947 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10948 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10949 # icc doesn't choke on unknown options, it will just issue warnings
10950 # or remarks (even with -Werror). So we grep stderr for any message
10951 # that says an option was ignored or not supported.
10952 # When given -MP, icc 7.0 and 7.1 complain thusly:
10953 # icc: Command line warning: ignoring option '-M'; no argument required
10954 # The diagnosis changed in icc 8.0:
10955 # icc: Command line remark: option '-MP' not supported
10956 if (grep 'ignoring option' conftest.err ||
10957 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10958 am_cv_CC_dependencies_compiler_type=$depmode
10959 break
10960 fi
10961 fi
10962 done
10963
10964 cd ..
10965 rm -rf conftest.dir
10966 else
10967 am_cv_CC_dependencies_compiler_type=none
10968 fi
10969
10970 fi
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10972 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10973 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10974
10975 if
10976 test "x$enable_dependency_tracking" != xno \
10977 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10978 am__fastdepCC_TRUE=
10979 am__fastdepCC_FALSE='#'
10980 else
10981 am__fastdepCC_TRUE='#'
10982 am__fastdepCC_FALSE=
10983 fi
10984
10985
10986 ac_config_headers="$ac_config_headers config.h"
10987
10988 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
10989
10990 cat >confcache <<\_ACEOF
10991 # This file is a shell script that caches the results of configure
10992 # tests run on this system so they can be shared between configure
10993 # scripts and configure runs, see configure's option --config-cache.
10994 # It is not useful on other systems. If it contains results you don't
10995 # want to keep, you may remove or edit it.
10996 #
10997 # config.status only pays attention to the cache file if you give it
10998 # the --recheck option to rerun configure.
10999 #
11000 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11001 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11002 # following values.
11003
11004 _ACEOF
11005
11006 # The following way of writing the cache mishandles newlines in values,
11007 # but we know of no workaround that is simple, portable, and efficient.
11008 # So, we kill variables containing newlines.
11009 # Ultrix sh set writes to stderr and can't be redirected directly,
11010 # and sets the high bit in the cache file unless we assign to the vars.
11011 (
11012 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11013 eval ac_val=\$$ac_var
11014 case $ac_val in #(
11015 *${as_nl}*)
11016 case $ac_var in #(
11017 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11018 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11019 esac
11020 case $ac_var in #(
11021 _ | IFS | as_nl) ;; #(
11022 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11023 *) { eval $ac_var=; unset $ac_var;} ;;
11024 esac ;;
11025 esac
11026 done
11027
11028 (set) 2>&1 |
11029 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11030 *${as_nl}ac_space=\ *)
11031 # `set' does not quote correctly, so add quotes: double-quote
11032 # substitution turns \\\\ into \\, and sed turns \\ into \.
11033 sed -n \
11034 "s/'/'\\\\''/g;
11035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11036 ;; #(
11037 *)
11038 # `set' quotes correctly as required by POSIX, so do not add quotes.
11039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11040 ;;
11041 esac |
11042 sort
11043 ) |
11044 sed '
11045 /^ac_cv_env_/b end
11046 t clear
11047 :clear
11048 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11049 t end
11050 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11051 :end' >>confcache
11052 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11053 if test -w "$cache_file"; then
11054 test "x$cache_file" != "x/dev/null" &&
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11056 $as_echo "$as_me: updating cache $cache_file" >&6;}
11057 cat confcache >$cache_file
11058 else
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11060 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11061 fi
11062 fi
11063 rm -f confcache
11064
11065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11066 # Let make expand exec_prefix.
11067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11068
11069 DEFS=-DHAVE_CONFIG_H
11070
11071 ac_libobjs=
11072 ac_ltlibobjs=
11073 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11074 # 1. Remove the extension, and $U if already installed.
11075 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11076 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11077 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11078 # will be set to the directory where LIBOBJS objects are built.
11079 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11080 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11081 done
11082 LIBOBJS=$ac_libobjs
11083
11084 LTLIBOBJS=$ac_ltlibobjs
11085
11086
11087 if test -n "$EXEEXT"; then
11088 am__EXEEXT_TRUE=
11089 am__EXEEXT_FALSE='#'
11090 else
11091 am__EXEEXT_TRUE='#'
11092 am__EXEEXT_FALSE=
11093 fi
11094
11095 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11096 as_fn_error "conditional \"AMDEP\" was never defined.
11097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11098 fi
11099 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11100 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11102 fi
11103 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11104 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11106 fi
11107
11108 : ${CONFIG_STATUS=./config.status}
11109 ac_write_fail=0
11110 ac_clean_files_save=$ac_clean_files
11111 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11113 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11114 as_write_fail=0
11115 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11116 #! $SHELL
11117 # Generated by $as_me.
11118 # Run this file to recreate the current configuration.
11119 # Compiler output produced by configure, useful for debugging
11120 # configure, is in config.log if it exists.
11121
11122 debug=false
11123 ac_cs_recheck=false
11124 ac_cs_silent=false
11125
11126 SHELL=\${CONFIG_SHELL-$SHELL}
11127 export SHELL
11128 _ASEOF
11129 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11130 ## -------------------- ##
11131 ## M4sh Initialization. ##
11132 ## -------------------- ##
11133
11134 # Be more Bourne compatible
11135 DUALCASE=1; export DUALCASE # for MKS sh
11136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11137 emulate sh
11138 NULLCMD=:
11139 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11140 # is contrary to our usage. Disable this feature.
11141 alias -g '${1+"$@"}'='"$@"'
11142 setopt NO_GLOB_SUBST
11143 else
11144 case `(set -o) 2>/dev/null` in #(
11145 *posix*) :
11146 set -o posix ;; #(
11147 *) :
11148 ;;
11149 esac
11150 fi
11151
11152
11153 as_nl='
11154 '
11155 export as_nl
11156 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11157 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11158 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11159 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11160 # Prefer a ksh shell builtin over an external printf program on Solaris,
11161 # but without wasting forks for bash or zsh.
11162 if test -z "$BASH_VERSION$ZSH_VERSION" \
11163 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11164 as_echo='print -r --'
11165 as_echo_n='print -rn --'
11166 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11167 as_echo='printf %s\n'
11168 as_echo_n='printf %s'
11169 else
11170 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11171 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11172 as_echo_n='/usr/ucb/echo -n'
11173 else
11174 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11175 as_echo_n_body='eval
11176 arg=$1;
11177 case $arg in #(
11178 *"$as_nl"*)
11179 expr "X$arg" : "X\\(.*\\)$as_nl";
11180 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11181 esac;
11182 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11183 '
11184 export as_echo_n_body
11185 as_echo_n='sh -c $as_echo_n_body as_echo'
11186 fi
11187 export as_echo_body
11188 as_echo='sh -c $as_echo_body as_echo'
11189 fi
11190
11191 # The user is always right.
11192 if test "${PATH_SEPARATOR+set}" != set; then
11193 PATH_SEPARATOR=:
11194 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11195 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11196 PATH_SEPARATOR=';'
11197 }
11198 fi
11199
11200
11201 # IFS
11202 # We need space, tab and new line, in precisely that order. Quoting is
11203 # there to prevent editors from complaining about space-tab.
11204 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11205 # splitting by setting IFS to empty value.)
11206 IFS=" "" $as_nl"
11207
11208 # Find who we are. Look in the path if we contain no directory separator.
11209 case $0 in #((
11210 *[\\/]* ) as_myself=$0 ;;
11211 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212 for as_dir in $PATH
11213 do
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
11216 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11217 done
11218 IFS=$as_save_IFS
11219
11220 ;;
11221 esac
11222 # We did not find ourselves, most probably we were run as `sh COMMAND'
11223 # in which case we are not to be found in the path.
11224 if test "x$as_myself" = x; then
11225 as_myself=$0
11226 fi
11227 if test ! -f "$as_myself"; then
11228 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11229 exit 1
11230 fi
11231
11232 # Unset variables that we do not need and which cause bugs (e.g. in
11233 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11234 # suppresses any "Segmentation fault" message there. '((' could
11235 # trigger a bug in pdksh 5.2.14.
11236 for as_var in BASH_ENV ENV MAIL MAILPATH
11237 do eval test x\${$as_var+set} = xset \
11238 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11239 done
11240 PS1='$ '
11241 PS2='> '
11242 PS4='+ '
11243
11244 # NLS nuisances.
11245 LC_ALL=C
11246 export LC_ALL
11247 LANGUAGE=C
11248 export LANGUAGE
11249
11250 # CDPATH.
11251 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11252
11253
11254 # as_fn_error ERROR [LINENO LOG_FD]
11255 # ---------------------------------
11256 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11257 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11258 # script with status $?, using 1 if that was 0.
11259 as_fn_error ()
11260 {
11261 as_status=$?; test $as_status -eq 0 && as_status=1
11262 if test "$3"; then
11263 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11264 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11265 fi
11266 $as_echo "$as_me: error: $1" >&2
11267 as_fn_exit $as_status
11268 } # as_fn_error
11269
11270
11271 # as_fn_set_status STATUS
11272 # -----------------------
11273 # Set $? to STATUS, without forking.
11274 as_fn_set_status ()
11275 {
11276 return $1
11277 } # as_fn_set_status
11278
11279 # as_fn_exit STATUS
11280 # -----------------
11281 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11282 as_fn_exit ()
11283 {
11284 set +e
11285 as_fn_set_status $1
11286 exit $1
11287 } # as_fn_exit
11288
11289 # as_fn_unset VAR
11290 # ---------------
11291 # Portably unset VAR.
11292 as_fn_unset ()
11293 {
11294 { eval $1=; unset $1;}
11295 }
11296 as_unset=as_fn_unset
11297 # as_fn_append VAR VALUE
11298 # ----------------------
11299 # Append the text in VALUE to the end of the definition contained in VAR. Take
11300 # advantage of any shell optimizations that allow amortized linear growth over
11301 # repeated appends, instead of the typical quadratic growth present in naive
11302 # implementations.
11303 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11304 eval 'as_fn_append ()
11305 {
11306 eval $1+=\$2
11307 }'
11308 else
11309 as_fn_append ()
11310 {
11311 eval $1=\$$1\$2
11312 }
11313 fi # as_fn_append
11314
11315 # as_fn_arith ARG...
11316 # ------------------
11317 # Perform arithmetic evaluation on the ARGs, and store the result in the
11318 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11319 # must be portable across $(()) and expr.
11320 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11321 eval 'as_fn_arith ()
11322 {
11323 as_val=$(( $* ))
11324 }'
11325 else
11326 as_fn_arith ()
11327 {
11328 as_val=`expr "$@" || test $? -eq 1`
11329 }
11330 fi # as_fn_arith
11331
11332
11333 if expr a : '\(a\)' >/dev/null 2>&1 &&
11334 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11335 as_expr=expr
11336 else
11337 as_expr=false
11338 fi
11339
11340 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11341 as_basename=basename
11342 else
11343 as_basename=false
11344 fi
11345
11346 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11347 as_dirname=dirname
11348 else
11349 as_dirname=false
11350 fi
11351
11352 as_me=`$as_basename -- "$0" ||
11353 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11354 X"$0" : 'X\(//\)$' \| \
11355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11356 $as_echo X/"$0" |
11357 sed '/^.*\/\([^/][^/]*\)\/*$/{
11358 s//\1/
11359 q
11360 }
11361 /^X\/\(\/\/\)$/{
11362 s//\1/
11363 q
11364 }
11365 /^X\/\(\/\).*/{
11366 s//\1/
11367 q
11368 }
11369 s/.*/./; q'`
11370
11371 # Avoid depending upon Character Ranges.
11372 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11373 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11374 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11375 as_cr_digits='0123456789'
11376 as_cr_alnum=$as_cr_Letters$as_cr_digits
11377
11378 ECHO_C= ECHO_N= ECHO_T=
11379 case `echo -n x` in #(((((
11380 -n*)
11381 case `echo 'xy\c'` in
11382 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11383 xy) ECHO_C='\c';;
11384 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11385 ECHO_T=' ';;
11386 esac;;
11387 *)
11388 ECHO_N='-n';;
11389 esac
11390
11391 rm -f conf$$ conf$$.exe conf$$.file
11392 if test -d conf$$.dir; then
11393 rm -f conf$$.dir/conf$$.file
11394 else
11395 rm -f conf$$.dir
11396 mkdir conf$$.dir 2>/dev/null
11397 fi
11398 if (echo >conf$$.file) 2>/dev/null; then
11399 if ln -s conf$$.file conf$$ 2>/dev/null; then
11400 as_ln_s='ln -s'
11401 # ... but there are two gotchas:
11402 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11403 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11404 # In both cases, we have to default to `cp -p'.
11405 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11406 as_ln_s='cp -p'
11407 elif ln conf$$.file conf$$ 2>/dev/null; then
11408 as_ln_s=ln
11409 else
11410 as_ln_s='cp -p'
11411 fi
11412 else
11413 as_ln_s='cp -p'
11414 fi
11415 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11416 rmdir conf$$.dir 2>/dev/null
11417
11418
11419 # as_fn_mkdir_p
11420 # -------------
11421 # Create "$as_dir" as a directory, including parents if necessary.
11422 as_fn_mkdir_p ()
11423 {
11424
11425 case $as_dir in #(
11426 -*) as_dir=./$as_dir;;
11427 esac
11428 test -d "$as_dir" || eval $as_mkdir_p || {
11429 as_dirs=
11430 while :; do
11431 case $as_dir in #(
11432 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11433 *) as_qdir=$as_dir;;
11434 esac
11435 as_dirs="'$as_qdir' $as_dirs"
11436 as_dir=`$as_dirname -- "$as_dir" ||
11437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11438 X"$as_dir" : 'X\(//\)[^/]' \| \
11439 X"$as_dir" : 'X\(//\)$' \| \
11440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11441 $as_echo X"$as_dir" |
11442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11443 s//\1/
11444 q
11445 }
11446 /^X\(\/\/\)[^/].*/{
11447 s//\1/
11448 q
11449 }
11450 /^X\(\/\/\)$/{
11451 s//\1/
11452 q
11453 }
11454 /^X\(\/\).*/{
11455 s//\1/
11456 q
11457 }
11458 s/.*/./; q'`
11459 test -d "$as_dir" && break
11460 done
11461 test -z "$as_dirs" || eval "mkdir $as_dirs"
11462 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11463
11464
11465 } # as_fn_mkdir_p
11466 if mkdir -p . 2>/dev/null; then
11467 as_mkdir_p='mkdir -p "$as_dir"'
11468 else
11469 test -d ./-p && rmdir ./-p
11470 as_mkdir_p=false
11471 fi
11472
11473 if test -x / >/dev/null 2>&1; then
11474 as_test_x='test -x'
11475 else
11476 if ls -dL / >/dev/null 2>&1; then
11477 as_ls_L_option=L
11478 else
11479 as_ls_L_option=
11480 fi
11481 as_test_x='
11482 eval sh -c '\''
11483 if test -d "$1"; then
11484 test -d "$1/.";
11485 else
11486 case $1 in #(
11487 -*)set "./$1";;
11488 esac;
11489 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11490 ???[sx]*):;;*)false;;esac;fi
11491 '\'' sh
11492 '
11493 fi
11494 as_executable_p=$as_test_x
11495
11496 # Sed expression to map a string onto a valid CPP name.
11497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11498
11499 # Sed expression to map a string onto a valid variable name.
11500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11501
11502
11503 exec 6>&1
11504 ## ----------------------------------- ##
11505 ## Main body of $CONFIG_STATUS script. ##
11506 ## ----------------------------------- ##
11507 _ASEOF
11508 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11509
11510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11511 # Save the log message, to keep $0 and so on meaningful, and to
11512 # report actual input values of CONFIG_FILES etc. instead of their
11513 # values after options handling.
11514 ac_log="
11515 This file was extended by quadrule $as_me 0~20121001, which was
11516 generated by GNU Autoconf 2.65. Invocation command line was
11517
11518 CONFIG_FILES = $CONFIG_FILES
11519 CONFIG_HEADERS = $CONFIG_HEADERS
11520 CONFIG_LINKS = $CONFIG_LINKS
11521 CONFIG_COMMANDS = $CONFIG_COMMANDS
11522 $ $0 $@
11523
11524 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11525 "
11526
11527 _ACEOF
11528
11529 case $ac_config_files in *"
11530 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11531 esac
11532
11533 case $ac_config_headers in *"
11534 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11535 esac
11536
11537
11538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11539 # Files that config.status was made for.
11540 config_files="$ac_config_files"
11541 config_headers="$ac_config_headers"
11542 config_commands="$ac_config_commands"
11543
11544 _ACEOF
11545
11546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11547 ac_cs_usage="\
11548 \`$as_me' instantiates files and other configuration actions
11549 from templates according to the current configuration. Unless the files
11550 and actions are specified as TAGs, all are instantiated by default.
11551
11552 Usage: $0 [OPTION]... [TAG]...
11553
11554 -h, --help print this help, then exit
11555 -V, --version print version number and configuration settings, then exit
11556 --config print configuration, then exit
11557 -q, --quiet, --silent
11558 do not print progress messages
11559 -d, --debug don't remove temporary files
11560 --recheck update $as_me by reconfiguring in the same conditions
11561 --file=FILE[:TEMPLATE]
11562 instantiate the configuration file FILE
11563 --header=FILE[:TEMPLATE]
11564 instantiate the configuration header FILE
11565
11566 Configuration files:
11567 $config_files
11568
11569 Configuration headers:
11570 $config_headers
11571
11572 Configuration commands:
11573 $config_commands
11574
11575 Report bugs to <[email protected]>."
11576
11577 _ACEOF
11578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11579 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11580 ac_cs_version="\\
11581 quadrule config.status 0~20121001
11582 configured by $0, generated by GNU Autoconf 2.65,
11583 with options \\"\$ac_cs_config\\"
11584
11585 Copyright (C) 2009 Free Software Foundation, Inc.
11586 This config.status script is free software; the Free Software Foundation
11587 gives unlimited permission to copy, distribute and modify it."
11588
11589 ac_pwd='$ac_pwd'
11590 srcdir='$srcdir'
11591 INSTALL='$INSTALL'
11592 MKDIR_P='$MKDIR_P'
11593 AWK='$AWK'
11594 test -n "\$AWK" || AWK=awk
11595 _ACEOF
11596
11597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11598 # The default lists apply if the user does not specify any file.
11599 ac_need_defaults=:
11600 while test $# != 0
11601 do
11602 case $1 in
11603 --*=*)
11604 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11605 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11606 ac_shift=:
11607 ;;
11608 *)
11609 ac_option=$1
11610 ac_optarg=$2
11611 ac_shift=shift
11612 ;;
11613 esac
11614
11615 case $ac_option in
11616 # Handling of the options.
11617 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11618 ac_cs_recheck=: ;;
11619 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11620 $as_echo "$ac_cs_version"; exit ;;
11621 --config | --confi | --conf | --con | --co | --c )
11622 $as_echo "$ac_cs_config"; exit ;;
11623 --debug | --debu | --deb | --de | --d | -d )
11624 debug=: ;;
11625 --file | --fil | --fi | --f )
11626 $ac_shift
11627 case $ac_optarg in
11628 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11629 esac
11630 as_fn_append CONFIG_FILES " '$ac_optarg'"
11631 ac_need_defaults=false;;
11632 --header | --heade | --head | --hea )
11633 $ac_shift
11634 case $ac_optarg in
11635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11636 esac
11637 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11638 ac_need_defaults=false;;
11639 --he | --h)
11640 # Conflict between --help and --header
11641 as_fn_error "ambiguous option: \`$1'
11642 Try \`$0 --help' for more information.";;
11643 --help | --hel | -h )
11644 $as_echo "$ac_cs_usage"; exit ;;
11645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11646 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11647 ac_cs_silent=: ;;
11648
11649 # This is an error.
11650 -*) as_fn_error "unrecognized option: \`$1'
11651 Try \`$0 --help' for more information." ;;
11652
11653 *) as_fn_append ac_config_targets " $1"
11654 ac_need_defaults=false ;;
11655
11656 esac
11657 shift
11658 done
11659
11660 ac_configure_extra_args=
11661
11662 if $ac_cs_silent; then
11663 exec 6>/dev/null
11664 ac_configure_extra_args="$ac_configure_extra_args --silent"
11665 fi
11666
11667 _ACEOF
11668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11669 if \$ac_cs_recheck; then
11670 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11671 shift
11672 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11673 CONFIG_SHELL='$SHELL'
11674 export CONFIG_SHELL
11675 exec "\$@"
11676 fi
11677
11678 _ACEOF
11679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11680 exec 5>>config.log
11681 {
11682 echo
11683 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11684 ## Running $as_me. ##
11685 _ASBOX
11686 $as_echo "$ac_log"
11687 } >&5
11688
11689 _ACEOF
11690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11691 #
11692 # INIT-COMMANDS
11693 #
11694 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11695
11696
11697 # The HP-UX ksh and POSIX shell print the target directory to stdout
11698 # if CDPATH is set.
11699 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11700
11701 sed_quote_subst='$sed_quote_subst'
11702 double_quote_subst='$double_quote_subst'
11703 delay_variable_subst='$delay_variable_subst'
11704 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11705 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11706 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11707 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11708 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11709 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11710 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11711 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11712 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11713 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11714 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11715 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11716 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11717 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11718 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11719 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11720 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11721 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11722 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11723 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11724 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11725 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11726 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11727 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11728 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11729 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11730 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11731 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11732 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11733 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11734 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11735 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11736 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11737 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11738 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11739 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11740 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11741 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11742 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11743 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11744 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11745 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11746 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11747 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11748 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11749 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11750 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11751 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11752 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11753 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11754 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11755 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11756 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11757 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11758 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11759 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11760 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11761 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11762 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11763 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11764 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11765 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11766 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11767 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11768 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11769 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11770 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11771 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11772 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11773 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11774 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11775 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11776 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11777 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11778 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11779 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11780 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11781 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11782 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11783 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11784 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11785 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11786 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11787 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11788 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11789 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11790 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11791 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11792 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11793 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11794 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11795 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11796 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11797 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11798 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11799 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11800 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11801 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11802 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11803 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11804 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11805 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11806 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11807 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11808 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11809 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11810 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11811 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11812 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11813 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11814 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11815 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11816 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11817 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11818 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11819 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11820 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11821 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11822
11823 LTCC='$LTCC'
11824 LTCFLAGS='$LTCFLAGS'
11825 compiler='$compiler_DEFAULT'
11826
11827 # Quote evaled strings.
11828 for var in SED \
11829 GREP \
11830 EGREP \
11831 FGREP \
11832 LD \
11833 NM \
11834 LN_S \
11835 lt_SP2NL \
11836 lt_NL2SP \
11837 reload_flag \
11838 OBJDUMP \
11839 deplibs_check_method \
11840 file_magic_cmd \
11841 AR \
11842 AR_FLAGS \
11843 STRIP \
11844 RANLIB \
11845 CC \
11846 CFLAGS \
11847 compiler \
11848 lt_cv_sys_global_symbol_pipe \
11849 lt_cv_sys_global_symbol_to_cdecl \
11850 lt_cv_sys_global_symbol_to_c_name_address \
11851 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11852 SHELL \
11853 ECHO \
11854 lt_prog_compiler_no_builtin_flag \
11855 lt_prog_compiler_wl \
11856 lt_prog_compiler_pic \
11857 lt_prog_compiler_static \
11858 lt_cv_prog_compiler_c_o \
11859 need_locks \
11860 DSYMUTIL \
11861 NMEDIT \
11862 LIPO \
11863 OTOOL \
11864 OTOOL64 \
11865 shrext_cmds \
11866 export_dynamic_flag_spec \
11867 whole_archive_flag_spec \
11868 compiler_needs_object \
11869 with_gnu_ld \
11870 allow_undefined_flag \
11871 no_undefined_flag \
11872 hardcode_libdir_flag_spec \
11873 hardcode_libdir_flag_spec_ld \
11874 hardcode_libdir_separator \
11875 fix_srcfile_path \
11876 exclude_expsyms \
11877 include_expsyms \
11878 file_list_spec \
11879 variables_saved_for_relink \
11880 libname_spec \
11881 library_names_spec \
11882 soname_spec \
11883 finish_eval \
11884 old_striplib \
11885 striplib; do
11886 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11887 *[\\\\\\\`\\"\\\$]*)
11888 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11889 ;;
11890 *)
11891 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11892 ;;
11893 esac
11894 done
11895
11896 # Double-quote double-evaled strings.
11897 for var in reload_cmds \
11898 old_postinstall_cmds \
11899 old_postuninstall_cmds \
11900 old_archive_cmds \
11901 extract_expsyms_cmds \
11902 old_archive_from_new_cmds \
11903 old_archive_from_expsyms_cmds \
11904 archive_cmds \
11905 archive_expsym_cmds \
11906 module_cmds \
11907 module_expsym_cmds \
11908 export_symbols_cmds \
11909 prelink_cmds \
11910 postinstall_cmds \
11911 postuninstall_cmds \
11912 finish_cmds \
11913 sys_lib_search_path_spec \
11914 sys_lib_dlsearch_path_spec; do
11915 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11916 *[\\\\\\\`\\"\\\$]*)
11917 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11918 ;;
11919 *)
11920 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11921 ;;
11922 esac
11923 done
11924
11925 # Fix-up fallback echo if it was mangled by the above quoting rules.
11926 case \$lt_ECHO in
11927 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11928 ;;
11929 esac
11930
11931 ac_aux_dir='$ac_aux_dir'
11932 xsi_shell='$xsi_shell'
11933 lt_shell_append='$lt_shell_append'
11934
11935 # See if we are running on zsh, and set the options which allow our
11936 # commands through without removal of \ escapes INIT.
11937 if test -n "\${ZSH_VERSION+set}" ; then
11938 setopt NO_GLOB_SUBST
11939 fi
11940
11941
11942 PACKAGE='$PACKAGE'
11943 VERSION='$VERSION'
11944 TIMESTAMP='$TIMESTAMP'
11945 RM='$RM'
11946 ofile='$ofile'
11947
11948
11949
11950
11951 _ACEOF
11952
11953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11954
11955 # Handling of arguments.
11956 for ac_config_target in $ac_config_targets
11957 do
11958 case $ac_config_target in
11959 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11960 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11961 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11962 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11963 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11964 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11965
11966 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11967 esac
11968 done
11969
11970
11971 # If the user did not use the arguments to specify the items to instantiate,
11972 # then the envvar interface is used. Set only those that are not.
11973 # We use the long form for the default assignment because of an extremely
11974 # bizarre bug on SunOS 4.1.3.
11975 if $ac_need_defaults; then
11976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11979 fi
11980
11981 # Have a temporary directory for convenience. Make it in the build tree
11982 # simply because there is no reason against having it here, and in addition,
11983 # creating and moving files from /tmp can sometimes cause problems.
11984 # Hook for its removal unless debugging.
11985 # Note that there is a small window in which the directory will not be cleaned:
11986 # after its creation but before its name has been assigned to `$tmp'.
11987 $debug ||
11988 {
11989 tmp=
11990 trap 'exit_status=$?
11991 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11992 ' 0
11993 trap 'as_fn_exit 1' 1 2 13 15
11994 }
11995 # Create a (secure) tmp directory for tmp files.
11996
11997 {
11998 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11999 test -n "$tmp" && test -d "$tmp"
12000 } ||
12001 {
12002 tmp=./conf$$-$RANDOM
12003 (umask 077 && mkdir "$tmp")
12004 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12005
12006 # Set up the scripts for CONFIG_FILES section.
12007 # No need to generate them if there are no CONFIG_FILES.
12008 # This happens for instance with `./config.status config.h'.
12009 if test -n "$CONFIG_FILES"; then
12010
12011
12012 ac_cr=`echo X | tr X '\015'`
12013 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12014 # But we know of no other shell where ac_cr would be empty at this
12015 # point, so we can use a bashism as a fallback.
12016 if test "x$ac_cr" = x; then
12017 eval ac_cr=\$\'\\r\'
12018 fi
12019 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12020 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12021 ac_cs_awk_cr='\r'
12022 else
12023 ac_cs_awk_cr=$ac_cr
12024 fi
12025
12026 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12027 _ACEOF
12028
12029
12030 {
12031 echo "cat >conf$$subs.awk <<_ACEOF" &&
12032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12033 echo "_ACEOF"
12034 } >conf$$subs.sh ||
12035 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12036 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12037 ac_delim='%!_!# '
12038 for ac_last_try in false false false false false :; do
12039 . ./conf$$subs.sh ||
12040 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12041
12042 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12043 if test $ac_delim_n = $ac_delim_num; then
12044 break
12045 elif $ac_last_try; then
12046 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12047 else
12048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12049 fi
12050 done
12051 rm -f conf$$subs.sh
12052
12053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12054 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12055 _ACEOF
12056 sed -n '
12057 h
12058 s/^/S["/; s/!.*/"]=/
12059 p
12060 g
12061 s/^[^!]*!//
12062 :repl
12063 t repl
12064 s/'"$ac_delim"'$//
12065 t delim
12066 :nl
12067 h
12068 s/\(.\{148\}\)..*/\1/
12069 t more1
12070 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12071 p
12072 n
12073 b repl
12074 :more1
12075 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12076 p
12077 g
12078 s/.\{148\}//
12079 t nl
12080 :delim
12081 h
12082 s/\(.\{148\}\)..*/\1/
12083 t more2
12084 s/["\\]/\\&/g; s/^/"/; s/$/"/
12085 p
12086 b
12087 :more2
12088 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12089 p
12090 g
12091 s/.\{148\}//
12092 t delim
12093 ' <conf$$subs.awk | sed '
12094 /^[^""]/{
12095 N
12096 s/\n//
12097 }
12098 ' >>$CONFIG_STATUS || ac_write_fail=1
12099 rm -f conf$$subs.awk
12100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12101 _ACAWK
12102 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12103 for (key in S) S_is_set[key] = 1
12104 FS = ""
12105
12106 }
12107 {
12108 line = $ 0
12109 nfields = split(line, field, "@")
12110 substed = 0
12111 len = length(field[1])
12112 for (i = 2; i < nfields; i++) {
12113 key = field[i]
12114 keylen = length(key)
12115 if (S_is_set[key]) {
12116 value = S[key]
12117 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12118 len += length(value) + length(field[++i])
12119 substed = 1
12120 } else
12121 len += 1 + keylen
12122 }
12123
12124 print line
12125 }
12126
12127 _ACAWK
12128 _ACEOF
12129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12130 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12131 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12132 else
12133 cat
12134 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12135 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12136 _ACEOF
12137
12138 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12139 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12140 # trailing colons and then remove the whole line if VPATH becomes empty
12141 # (actually we leave an empty line to preserve line numbers).
12142 if test "x$srcdir" = x.; then
12143 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12144 s/:*\$(srcdir):*/:/
12145 s/:*\${srcdir}:*/:/
12146 s/:*@srcdir@:*/:/
12147 s/^\([^=]*=[ ]*\):*/\1/
12148 s/:*$//
12149 s/^[^=]*=[ ]*$//
12150 }'
12151 fi
12152
12153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12154 fi # test -n "$CONFIG_FILES"
12155
12156 # Set up the scripts for CONFIG_HEADERS section.
12157 # No need to generate them if there are no CONFIG_HEADERS.
12158 # This happens for instance with `./config.status Makefile'.
12159 if test -n "$CONFIG_HEADERS"; then
12160 cat >"$tmp/defines.awk" <<\_ACAWK ||
12161 BEGIN {
12162 _ACEOF
12163
12164 # Transform confdefs.h into an awk script `defines.awk', embedded as
12165 # here-document in config.status, that substitutes the proper values into
12166 # config.h.in to produce config.h.
12167
12168 # Create a delimiter string that does not exist in confdefs.h, to ease
12169 # handling of long lines.
12170 ac_delim='%!_!# '
12171 for ac_last_try in false false :; do
12172 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12173 if test -z "$ac_t"; then
12174 break
12175 elif $ac_last_try; then
12176 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12177 else
12178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12179 fi
12180 done
12181
12182 # For the awk script, D is an array of macro values keyed by name,
12183 # likewise P contains macro parameters if any. Preserve backslash
12184 # newline sequences.
12185
12186 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12187 sed -n '
12188 s/.\{148\}/&'"$ac_delim"'/g
12189 t rset
12190 :rset
12191 s/^[ ]*#[ ]*define[ ][ ]*/ /
12192 t def
12193 d
12194 :def
12195 s/\\$//
12196 t bsnl
12197 s/["\\]/\\&/g
12198 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12199 D["\1"]=" \3"/p
12200 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12201 d
12202 :bsnl
12203 s/["\\]/\\&/g
12204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12205 D["\1"]=" \3\\\\\\n"\\/p
12206 t cont
12207 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12208 t cont
12209 d
12210 :cont
12211 n
12212 s/.\{148\}/&'"$ac_delim"'/g
12213 t clear
12214 :clear
12215 s/\\$//
12216 t bsnlc
12217 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12218 d
12219 :bsnlc
12220 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12221 b cont
12222 ' <confdefs.h | sed '
12223 s/'"$ac_delim"'/"\\\
12224 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12225
12226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12227 for (key in D) D_is_set[key] = 1
12228 FS = ""
12229 }
12230 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12231 line = \$ 0
12232 split(line, arg, " ")
12233 if (arg[1] == "#") {
12234 defundef = arg[2]
12235 mac1 = arg[3]
12236 } else {
12237 defundef = substr(arg[1], 2)
12238 mac1 = arg[2]
12239 }
12240 split(mac1, mac2, "(") #)
12241 macro = mac2[1]
12242 prefix = substr(line, 1, index(line, defundef) - 1)
12243 if (D_is_set[macro]) {
12244 # Preserve the white space surrounding the "#".
12245 print prefix "define", macro P[macro] D[macro]
12246 next
12247 } else {
12248 # Replace #undef with comments. This is necessary, for example,
12249 # in the case of _POSIX_SOURCE, which is predefined and required
12250 # on some systems where configure will not decide to define it.
12251 if (defundef == "undef") {
12252 print "/*", prefix defundef, macro, "*/"
12253 next
12254 }
12255 }
12256 }
12257 { print }
12258 _ACAWK
12259 _ACEOF
12260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12261 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12262 fi # test -n "$CONFIG_HEADERS"
12263
12264
12265 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12266 shift
12267 for ac_tag
12268 do
12269 case $ac_tag in
12270 :[FHLC]) ac_mode=$ac_tag; continue;;
12271 esac
12272 case $ac_mode$ac_tag in
12273 :[FHL]*:*);;
12274 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12275 :[FH]-) ac_tag=-:-;;
12276 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12277 esac
12278 ac_save_IFS=$IFS
12279 IFS=:
12280 set x $ac_tag
12281 IFS=$ac_save_IFS
12282 shift
12283 ac_file=$1
12284 shift
12285
12286 case $ac_mode in
12287 :L) ac_source=$1;;
12288 :[FH])
12289 ac_file_inputs=
12290 for ac_f
12291 do
12292 case $ac_f in
12293 -) ac_f="$tmp/stdin";;
12294 *) # Look for the file first in the build tree, then in the source tree
12295 # (if the path is not absolute). The absolute path cannot be DOS-style,
12296 # because $ac_f cannot contain `:'.
12297 test -f "$ac_f" ||
12298 case $ac_f in
12299 [\\/$]*) false;;
12300 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12301 esac ||
12302 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12303 esac
12304 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12305 as_fn_append ac_file_inputs " '$ac_f'"
12306 done
12307
12308 # Let's still pretend it is `configure' which instantiates (i.e., don't
12309 # use $as_me), people would be surprised to read:
12310 # /* config.h. Generated by config.status. */
12311 configure_input='Generated from '`
12312 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12313 `' by configure.'
12314 if test x"$ac_file" != x-; then
12315 configure_input="$ac_file. $configure_input"
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12317 $as_echo "$as_me: creating $ac_file" >&6;}
12318 fi
12319 # Neutralize special characters interpreted by sed in replacement strings.
12320 case $configure_input in #(
12321 *\&* | *\|* | *\\* )
12322 ac_sed_conf_input=`$as_echo "$configure_input" |
12323 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12324 *) ac_sed_conf_input=$configure_input;;
12325 esac
12326
12327 case $ac_tag in
12328 *:-:* | *:-) cat >"$tmp/stdin" \
12329 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12330 esac
12331 ;;
12332 esac
12333
12334 ac_dir=`$as_dirname -- "$ac_file" ||
12335 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12336 X"$ac_file" : 'X\(//\)[^/]' \| \
12337 X"$ac_file" : 'X\(//\)$' \| \
12338 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12339 $as_echo X"$ac_file" |
12340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12341 s//\1/
12342 q
12343 }
12344 /^X\(\/\/\)[^/].*/{
12345 s//\1/
12346 q
12347 }
12348 /^X\(\/\/\)$/{
12349 s//\1/
12350 q
12351 }
12352 /^X\(\/\).*/{
12353 s//\1/
12354 q
12355 }
12356 s/.*/./; q'`
12357 as_dir="$ac_dir"; as_fn_mkdir_p
12358 ac_builddir=.
12359
12360 case "$ac_dir" in
12361 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12362 *)
12363 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12364 # A ".." for each directory in $ac_dir_suffix.
12365 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12366 case $ac_top_builddir_sub in
12367 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12368 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12369 esac ;;
12370 esac
12371 ac_abs_top_builddir=$ac_pwd
12372 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12373 # for backward compatibility:
12374 ac_top_builddir=$ac_top_build_prefix
12375
12376 case $srcdir in
12377 .) # We are building in place.
12378 ac_srcdir=.
12379 ac_top_srcdir=$ac_top_builddir_sub
12380 ac_abs_top_srcdir=$ac_pwd ;;
12381 [\\/]* | ?:[\\/]* ) # Absolute name.
12382 ac_srcdir=$srcdir$ac_dir_suffix;
12383 ac_top_srcdir=$srcdir
12384 ac_abs_top_srcdir=$srcdir ;;
12385 *) # Relative name.
12386 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12387 ac_top_srcdir=$ac_top_build_prefix$srcdir
12388 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12389 esac
12390 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12391
12392
12393 case $ac_mode in
12394 :F)
12395 #
12396 # CONFIG_FILE
12397 #
12398
12399 case $INSTALL in
12400 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12401 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12402 esac
12403 ac_MKDIR_P=$MKDIR_P
12404 case $MKDIR_P in
12405 [\\/$]* | ?:[\\/]* ) ;;
12406 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12407 esac
12408 _ACEOF
12409
12410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12411 # If the template does not know about datarootdir, expand it.
12412 # FIXME: This hack should be removed a few years after 2.60.
12413 ac_datarootdir_hack=; ac_datarootdir_seen=
12414 ac_sed_dataroot='
12415 /datarootdir/ {
12416 p
12417 q
12418 }
12419 /@datadir@/p
12420 /@docdir@/p
12421 /@infodir@/p
12422 /@localedir@/p
12423 /@mandir@/p'
12424 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12425 *datarootdir*) ac_datarootdir_seen=yes;;
12426 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12428 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12429 _ACEOF
12430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12431 ac_datarootdir_hack='
12432 s&@datadir@&$datadir&g
12433 s&@docdir@&$docdir&g
12434 s&@infodir@&$infodir&g
12435 s&@localedir@&$localedir&g
12436 s&@mandir@&$mandir&g
12437 s&\\\${datarootdir}&$datarootdir&g' ;;
12438 esac
12439 _ACEOF
12440
12441 # Neutralize VPATH when `$srcdir' = `.'.
12442 # Shell code in configure.ac might set extrasub.
12443 # FIXME: do we really want to maintain this feature?
12444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12445 ac_sed_extra="$ac_vpsub
12446 $extrasub
12447 _ACEOF
12448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12449 :t
12450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12451 s|@configure_input@|$ac_sed_conf_input|;t t
12452 s&@top_builddir@&$ac_top_builddir_sub&;t t
12453 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12454 s&@srcdir@&$ac_srcdir&;t t
12455 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12456 s&@top_srcdir@&$ac_top_srcdir&;t t
12457 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12458 s&@builddir@&$ac_builddir&;t t
12459 s&@abs_builddir@&$ac_abs_builddir&;t t
12460 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12461 s&@INSTALL@&$ac_INSTALL&;t t
12462 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12463 $ac_datarootdir_hack
12464 "
12465 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12466 || as_fn_error "could not create $ac_file" "$LINENO" 5
12467
12468 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12469 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12470 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12472 which seems to be undefined. Please make sure it is defined." >&5
12473 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12474 which seems to be undefined. Please make sure it is defined." >&2;}
12475
12476 rm -f "$tmp/stdin"
12477 case $ac_file in
12478 -) cat "$tmp/out" && rm -f "$tmp/out";;
12479 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12480 esac \
12481 || as_fn_error "could not create $ac_file" "$LINENO" 5
12482 ;;
12483 :H)
12484 #
12485 # CONFIG_HEADER
12486 #
12487 if test x"$ac_file" != x-; then
12488 {
12489 $as_echo "/* $configure_input */" \
12490 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12491 } >"$tmp/config.h" \
12492 || as_fn_error "could not create $ac_file" "$LINENO" 5
12493 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12495 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12496 else
12497 rm -f "$ac_file"
12498 mv "$tmp/config.h" "$ac_file" \
12499 || as_fn_error "could not create $ac_file" "$LINENO" 5
12500 fi
12501 else
12502 $as_echo "/* $configure_input */" \
12503 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12504 || as_fn_error "could not create -" "$LINENO" 5
12505 fi
12506 # Compute "$ac_file"'s index in $config_headers.
12507 _am_arg="$ac_file"
12508 _am_stamp_count=1
12509 for _am_header in $config_headers :; do
12510 case $_am_header in
12511 $_am_arg | $_am_arg:* )
12512 break ;;
12513 * )
12514 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12515 esac
12516 done
12517 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12518 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12519 X"$_am_arg" : 'X\(//\)[^/]' \| \
12520 X"$_am_arg" : 'X\(//\)$' \| \
12521 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12522 $as_echo X"$_am_arg" |
12523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12524 s//\1/
12525 q
12526 }
12527 /^X\(\/\/\)[^/].*/{
12528 s//\1/
12529 q
12530 }
12531 /^X\(\/\/\)$/{
12532 s//\1/
12533 q
12534 }
12535 /^X\(\/\).*/{
12536 s//\1/
12537 q
12538 }
12539 s/.*/./; q'`/stamp-h$_am_stamp_count
12540 ;;
12541
12542 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12543 $as_echo "$as_me: executing $ac_file commands" >&6;}
12544 ;;
12545 esac
12546
12547
12548 case $ac_file$ac_mode in
12549 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12550 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12551 # are listed without --file. Let's play safe and only enable the eval
12552 # if we detect the quoting.
12553 case $CONFIG_FILES in
12554 *\'*) eval set x "$CONFIG_FILES" ;;
12555 *) set x $CONFIG_FILES ;;
12556 esac
12557 shift
12558 for mf
12559 do
12560 # Strip MF so we end up with the name of the file.
12561 mf=`echo "$mf" | sed -e 's/:.*$//'`
12562 # Check whether this is an Automake generated Makefile or not.
12563 # We used to match only the files named `Makefile.in', but
12564 # some people rename them; so instead we look at the file content.
12565 # Grep'ing the first line is not enough: some people post-process
12566 # each Makefile.in and add a new line on top of each file to say so.
12567 # Grep'ing the whole file is not good either: AIX grep has a line
12568 # limit of 2048, but all sed's we know have understand at least 4000.
12569 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12570 dirpart=`$as_dirname -- "$mf" ||
12571 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12572 X"$mf" : 'X\(//\)[^/]' \| \
12573 X"$mf" : 'X\(//\)$' \| \
12574 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12575 $as_echo X"$mf" |
12576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12577 s//\1/
12578 q
12579 }
12580 /^X\(\/\/\)[^/].*/{
12581 s//\1/
12582 q
12583 }
12584 /^X\(\/\/\)$/{
12585 s//\1/
12586 q
12587 }
12588 /^X\(\/\).*/{
12589 s//\1/
12590 q
12591 }
12592 s/.*/./; q'`
12593 else
12594 continue
12595 fi
12596 # Extract the definition of DEPDIR, am__include, and am__quote
12597 # from the Makefile without running `make'.
12598 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12599 test -z "$DEPDIR" && continue
12600 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12601 test -z "am__include" && continue
12602 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12603 # When using ansi2knr, U may be empty or an underscore; expand it
12604 U=`sed -n 's/^U = //p' < "$mf"`
12605 # Find all dependency output files, they are included files with
12606 # $(DEPDIR) in their names. We invoke sed twice because it is the
12607 # simplest approach to changing $(DEPDIR) to its actual value in the
12608 # expansion.
12609 for file in `sed -n "
12610 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12611 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12612 # Make sure the directory exists.
12613 test -f "$dirpart/$file" && continue
12614 fdir=`$as_dirname -- "$file" ||
12615 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12616 X"$file" : 'X\(//\)[^/]' \| \
12617 X"$file" : 'X\(//\)$' \| \
12618 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12619 $as_echo X"$file" |
12620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12621 s//\1/
12622 q
12623 }
12624 /^X\(\/\/\)[^/].*/{
12625 s//\1/
12626 q
12627 }
12628 /^X\(\/\/\)$/{
12629 s//\1/
12630 q
12631 }
12632 /^X\(\/\).*/{
12633 s//\1/
12634 q
12635 }
12636 s/.*/./; q'`
12637 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12638 # echo "creating $dirpart/$file"
12639 echo '# dummy' > "$dirpart/$file"
12640 done
12641 done
12642 }
12643 ;;
12644 "libtool":C)
12645
12646 # See if we are running on zsh, and set the options which allow our
12647 # commands through without removal of \ escapes.
12648 if test -n "${ZSH_VERSION+set}" ; then
12649 setopt NO_GLOB_SUBST
12650 fi
12651
12652 cfgfile="${ofile}T"
12653 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12654 $RM "$cfgfile"
12655
12656 cat <<_LT_EOF >> "$cfgfile"
12657 #! $SHELL
12658
12659 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12660 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12661 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12662 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12663 #
12664 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12665 # 2006, 2007, 2008 Free Software Foundation, Inc.
12666 # Written by Gordon Matzigkeit, 1996
12667 #
12668 # This file is part of GNU Libtool.
12669 #
12670 # GNU Libtool is free software; you can redistribute it and/or
12671 # modify it under the terms of the GNU General Public License as
12672 # published by the Free Software Foundation; either version 2 of
12673 # the License, or (at your option) any later version.
12674 #
12675 # As a special exception to the GNU General Public License,
12676 # if you distribute this file as part of a program or library that
12677 # is built using GNU Libtool, you may include this file under the
12678 # same distribution terms that you use for the rest of that program.
12679 #
12680 # GNU Libtool is distributed in the hope that it will be useful,
12681 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12682 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12683 # GNU General Public License for more details.
12684 #
12685 # You should have received a copy of the GNU General Public License
12686 # along with GNU Libtool; see the file COPYING. If not, a copy
12687 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12688 # obtained by writing to the Free Software Foundation, Inc.,
12689 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12690
12691
12692 # The names of the tagged configurations supported by this script.
12693 available_tags=""
12694
12695 # ### BEGIN LIBTOOL CONFIG
12696
12697 # Which release of libtool.m4 was used?
12698 macro_version=$macro_version
12699 macro_revision=$macro_revision
12700
12701 # Whether or not to build shared libraries.
12702 build_libtool_libs=$enable_shared
12703
12704 # Whether or not to build static libraries.
12705 build_old_libs=$enable_static
12706
12707 # What type of objects to build.
12708 pic_mode=$pic_mode
12709
12710 # Whether or not to optimize for fast installation.
12711 fast_install=$enable_fast_install
12712
12713 # The host system.
12714 host_alias=$host_alias
12715 host=$host
12716 host_os=$host_os
12717
12718 # The build system.
12719 build_alias=$build_alias
12720 build=$build
12721 build_os=$build_os
12722
12723 # A sed program that does not truncate output.
12724 SED=$lt_SED
12725
12726 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12727 Xsed="\$SED -e 1s/^X//"
12728
12729 # A grep program that handles long lines.
12730 GREP=$lt_GREP
12731
12732 # An ERE matcher.
12733 EGREP=$lt_EGREP
12734
12735 # A literal string matcher.
12736 FGREP=$lt_FGREP
12737
12738 # A BSD- or MS-compatible name lister.
12739 NM=$lt_NM
12740
12741 # Whether we need soft or hard links.
12742 LN_S=$lt_LN_S
12743
12744 # What is the maximum length of a command?
12745 max_cmd_len=$max_cmd_len
12746
12747 # Object file suffix (normally "o").
12748 objext=$ac_objext
12749
12750 # Executable file suffix (normally "").
12751 exeext=$exeext
12752
12753 # whether the shell understands "unset".
12754 lt_unset=$lt_unset
12755
12756 # turn spaces into newlines.
12757 SP2NL=$lt_lt_SP2NL
12758
12759 # turn newlines into spaces.
12760 NL2SP=$lt_lt_NL2SP
12761
12762 # How to create reloadable object files.
12763 reload_flag=$lt_reload_flag
12764 reload_cmds=$lt_reload_cmds
12765
12766 # An object symbol dumper.
12767 OBJDUMP=$lt_OBJDUMP
12768
12769 # Method to check whether dependent libraries are shared objects.
12770 deplibs_check_method=$lt_deplibs_check_method
12771
12772 # Command to use when deplibs_check_method == "file_magic".
12773 file_magic_cmd=$lt_file_magic_cmd
12774
12775 # The archiver.
12776 AR=$lt_AR
12777 AR_FLAGS=$lt_AR_FLAGS
12778
12779 # A symbol stripping program.
12780 STRIP=$lt_STRIP
12781
12782 # Commands used to install an old-style archive.
12783 RANLIB=$lt_RANLIB
12784 old_postinstall_cmds=$lt_old_postinstall_cmds
12785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12786
12787 # A C compiler.
12788 LTCC=$lt_CC
12789
12790 # LTCC compiler flags.
12791 LTCFLAGS=$lt_CFLAGS
12792
12793 # Take the output of nm and produce a listing of raw symbols and C names.
12794 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12795
12796 # Transform the output of nm in a proper C declaration.
12797 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12798
12799 # Transform the output of nm in a C name address pair.
12800 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12801
12802 # Transform the output of nm in a C name address pair when lib prefix is needed.
12803 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12804
12805 # The name of the directory that contains temporary libtool files.
12806 objdir=$objdir
12807
12808 # Shell to use when invoking shell scripts.
12809 SHELL=$lt_SHELL
12810
12811 # An echo program that does not interpret backslashes.
12812 ECHO=$lt_ECHO
12813
12814 # Used to examine libraries when file_magic_cmd begins with "file".
12815 MAGIC_CMD=$MAGIC_CMD
12816
12817 # Must we lock files when doing compilation?
12818 need_locks=$lt_need_locks
12819
12820 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12821 DSYMUTIL=$lt_DSYMUTIL
12822
12823 # Tool to change global to local symbols on Mac OS X.
12824 NMEDIT=$lt_NMEDIT
12825
12826 # Tool to manipulate fat objects and archives on Mac OS X.
12827 LIPO=$lt_LIPO
12828
12829 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12830 OTOOL=$lt_OTOOL
12831
12832 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12833 OTOOL64=$lt_OTOOL64
12834
12835 # Old archive suffix (normally "a").
12836 libext=$libext
12837
12838 # Shared library suffix (normally ".so").
12839 shrext_cmds=$lt_shrext_cmds
12840
12841 # The commands to extract the exported symbol list from a shared archive.
12842 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12843
12844 # Variables whose values should be saved in libtool wrapper scripts and
12845 # restored at link time.
12846 variables_saved_for_relink=$lt_variables_saved_for_relink
12847
12848 # Do we need the "lib" prefix for modules?
12849 need_lib_prefix=$need_lib_prefix
12850
12851 # Do we need a version for libraries?
12852 need_version=$need_version
12853
12854 # Library versioning type.
12855 version_type=$version_type
12856
12857 # Shared library runtime path variable.
12858 runpath_var=$runpath_var
12859
12860 # Shared library path variable.
12861 shlibpath_var=$shlibpath_var
12862
12863 # Is shlibpath searched before the hard-coded library search path?
12864 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12865
12866 # Format of library name prefix.
12867 libname_spec=$lt_libname_spec
12868
12869 # List of archive names. First name is the real one, the rest are links.
12870 # The last name is the one that the linker finds with -lNAME
12871 library_names_spec=$lt_library_names_spec
12872
12873 # The coded name of the library, if different from the real name.
12874 soname_spec=$lt_soname_spec
12875
12876 # Command to use after installation of a shared archive.
12877 postinstall_cmds=$lt_postinstall_cmds
12878
12879 # Command to use after uninstallation of a shared archive.
12880 postuninstall_cmds=$lt_postuninstall_cmds
12881
12882 # Commands used to finish a libtool library installation in a directory.
12883 finish_cmds=$lt_finish_cmds
12884
12885 # As "finish_cmds", except a single script fragment to be evaled but
12886 # not shown.
12887 finish_eval=$lt_finish_eval
12888
12889 # Whether we should hardcode library paths into libraries.
12890 hardcode_into_libs=$hardcode_into_libs
12891
12892 # Compile-time system search path for libraries.
12893 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12894
12895 # Run-time system search path for libraries.
12896 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12897
12898 # Whether dlopen is supported.
12899 dlopen_support=$enable_dlopen
12900
12901 # Whether dlopen of programs is supported.
12902 dlopen_self=$enable_dlopen_self
12903
12904 # Whether dlopen of statically linked programs is supported.
12905 dlopen_self_static=$enable_dlopen_self_static
12906
12907 # Commands to strip libraries.
12908 old_striplib=$lt_old_striplib
12909 striplib=$lt_striplib
12910
12911
12912 # The linker used to build libraries.
12913 LD=$lt_LD
12914
12915 # Commands used to build an old-style archive.
12916 old_archive_cmds=$lt_old_archive_cmds
12917
12918 # A language specific compiler.
12919 CC=$lt_compiler
12920
12921 # Is the compiler the GNU compiler?
12922 with_gcc=$GCC
12923
12924 # Compiler flag to turn off builtin functions.
12925 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12926
12927 # How to pass a linker flag through the compiler.
12928 wl=$lt_lt_prog_compiler_wl
12929
12930 # Additional compiler flags for building library objects.
12931 pic_flag=$lt_lt_prog_compiler_pic
12932
12933 # Compiler flag to prevent dynamic linking.
12934 link_static_flag=$lt_lt_prog_compiler_static
12935
12936 # Does compiler simultaneously support -c and -o options?
12937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12938
12939 # Whether or not to add -lc for building shared libraries.
12940 build_libtool_need_lc=$archive_cmds_need_lc
12941
12942 # Whether or not to disallow shared libs when runtime libs are static.
12943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12944
12945 # Compiler flag to allow reflexive dlopens.
12946 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12947
12948 # Compiler flag to generate shared objects directly from archives.
12949 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12950
12951 # Whether the compiler copes with passing no objects directly.
12952 compiler_needs_object=$lt_compiler_needs_object
12953
12954 # Create an old-style archive from a shared archive.
12955 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12956
12957 # Create a temporary old-style archive to link instead of a shared archive.
12958 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12959
12960 # Commands used to build a shared archive.
12961 archive_cmds=$lt_archive_cmds
12962 archive_expsym_cmds=$lt_archive_expsym_cmds
12963
12964 # Commands used to build a loadable module if different from building
12965 # a shared archive.
12966 module_cmds=$lt_module_cmds
12967 module_expsym_cmds=$lt_module_expsym_cmds
12968
12969 # Whether we are building with GNU ld or not.
12970 with_gnu_ld=$lt_with_gnu_ld
12971
12972 # Flag that allows shared libraries with undefined symbols to be built.
12973 allow_undefined_flag=$lt_allow_undefined_flag
12974
12975 # Flag that enforces no undefined symbols.
12976 no_undefined_flag=$lt_no_undefined_flag
12977
12978 # Flag to hardcode \$libdir into a binary during linking.
12979 # This must work even if \$libdir does not exist
12980 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12981
12982 # If ld is used when linking, flag to hardcode \$libdir into a binary
12983 # during linking. This must work even if \$libdir does not exist.
12984 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12985
12986 # Whether we need a single "-rpath" flag with a separated argument.
12987 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12988
12989 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12990 # DIR into the resulting binary.
12991 hardcode_direct=$hardcode_direct
12992
12993 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12994 # DIR into the resulting binary and the resulting library dependency is
12995 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12996 # library is relocated.
12997 hardcode_direct_absolute=$hardcode_direct_absolute
12998
12999 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13000 # into the resulting binary.
13001 hardcode_minus_L=$hardcode_minus_L
13002
13003 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13004 # into the resulting binary.
13005 hardcode_shlibpath_var=$hardcode_shlibpath_var
13006
13007 # Set to "yes" if building a shared library automatically hardcodes DIR
13008 # into the library and all subsequent libraries and executables linked
13009 # against it.
13010 hardcode_automatic=$hardcode_automatic
13011
13012 # Set to yes if linker adds runtime paths of dependent libraries
13013 # to runtime path list.
13014 inherit_rpath=$inherit_rpath
13015
13016 # Whether libtool must link a program against all its dependency libraries.
13017 link_all_deplibs=$link_all_deplibs
13018
13019 # Fix the shell variable \$srcfile for the compiler.
13020 fix_srcfile_path=$lt_fix_srcfile_path
13021
13022 # Set to "yes" if exported symbols are required.
13023 always_export_symbols=$always_export_symbols
13024
13025 # The commands to list exported symbols.
13026 export_symbols_cmds=$lt_export_symbols_cmds
13027
13028 # Symbols that should not be listed in the preloaded symbols.
13029 exclude_expsyms=$lt_exclude_expsyms
13030
13031 # Symbols that must always be exported.
13032 include_expsyms=$lt_include_expsyms
13033
13034 # Commands necessary for linking programs (against libraries) with templates.
13035 prelink_cmds=$lt_prelink_cmds
13036
13037 # Specify filename containing input files.
13038 file_list_spec=$lt_file_list_spec
13039
13040 # How to hardcode a shared library path into an executable.
13041 hardcode_action=$hardcode_action
13042
13043 # ### END LIBTOOL CONFIG
13044
13045 _LT_EOF
13046
13047 case $host_os in
13048 aix3*)
13049 cat <<\_LT_EOF >> "$cfgfile"
13050 # AIX sometimes has problems with the GCC collect2 program. For some
13051 # reason, if we set the COLLECT_NAMES environment variable, the problems
13052 # vanish in a puff of smoke.
13053 if test "X${COLLECT_NAMES+set}" != Xset; then
13054 COLLECT_NAMES=
13055 export COLLECT_NAMES
13056 fi
13057 _LT_EOF
13058 ;;
13059 esac
13060
13061
13062 ltmain="$ac_aux_dir/ltmain.sh"
13063
13064
13065 # We use sed instead of cat because bash on DJGPP gets confused if
13066 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13067 # text mode, it properly converts lines to CR/LF. This bash problem
13068 # is reportedly fixed, but why not run on old versions too?
13069 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13070 || (rm -f "$cfgfile"; exit 1)
13071
13072 case $xsi_shell in
13073 yes)
13074 cat << \_LT_EOF >> "$cfgfile"
13075
13076 # func_dirname file append nondir_replacement
13077 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13078 # otherwise set result to NONDIR_REPLACEMENT.
13079 func_dirname ()
13080 {
13081 case ${1} in
13082 */*) func_dirname_result="${1%/*}${2}" ;;
13083 * ) func_dirname_result="${3}" ;;
13084 esac
13085 }
13086
13087 # func_basename file
13088 func_basename ()
13089 {
13090 func_basename_result="${1##*/}"
13091 }
13092
13093 # func_dirname_and_basename file append nondir_replacement
13094 # perform func_basename and func_dirname in a single function
13095 # call:
13096 # dirname: Compute the dirname of FILE. If nonempty,
13097 # add APPEND to the result, otherwise set result
13098 # to NONDIR_REPLACEMENT.
13099 # value returned in "$func_dirname_result"
13100 # basename: Compute filename of FILE.
13101 # value retuned in "$func_basename_result"
13102 # Implementation must be kept synchronized with func_dirname
13103 # and func_basename. For efficiency, we do not delegate to
13104 # those functions but instead duplicate the functionality here.
13105 func_dirname_and_basename ()
13106 {
13107 case ${1} in
13108 */*) func_dirname_result="${1%/*}${2}" ;;
13109 * ) func_dirname_result="${3}" ;;
13110 esac
13111 func_basename_result="${1##*/}"
13112 }
13113
13114 # func_stripname prefix suffix name
13115 # strip PREFIX and SUFFIX off of NAME.
13116 # PREFIX and SUFFIX must not contain globbing or regex special
13117 # characters, hashes, percent signs, but SUFFIX may contain a leading
13118 # dot (in which case that matches only a dot).
13119 func_stripname ()
13120 {
13121 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13122 # positional parameters, so assign one to ordinary parameter first.
13123 func_stripname_result=${3}
13124 func_stripname_result=${func_stripname_result#"${1}"}
13125 func_stripname_result=${func_stripname_result%"${2}"}
13126 }
13127
13128 # func_opt_split
13129 func_opt_split ()
13130 {
13131 func_opt_split_opt=${1%%=*}
13132 func_opt_split_arg=${1#*=}
13133 }
13134
13135 # func_lo2o object
13136 func_lo2o ()
13137 {
13138 case ${1} in
13139 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13140 *) func_lo2o_result=${1} ;;
13141 esac
13142 }
13143
13144 # func_xform libobj-or-source
13145 func_xform ()
13146 {
13147 func_xform_result=${1%.*}.lo
13148 }
13149
13150 # func_arith arithmetic-term...
13151 func_arith ()
13152 {
13153 func_arith_result=$(( $* ))
13154 }
13155
13156 # func_len string
13157 # STRING may not start with a hyphen.
13158 func_len ()
13159 {
13160 func_len_result=${#1}
13161 }
13162
13163 _LT_EOF
13164 ;;
13165 *) # Bourne compatible functions.
13166 cat << \_LT_EOF >> "$cfgfile"
13167
13168 # func_dirname file append nondir_replacement
13169 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13170 # otherwise set result to NONDIR_REPLACEMENT.
13171 func_dirname ()
13172 {
13173 # Extract subdirectory from the argument.
13174 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13175 if test "X$func_dirname_result" = "X${1}"; then
13176 func_dirname_result="${3}"
13177 else
13178 func_dirname_result="$func_dirname_result${2}"
13179 fi
13180 }
13181
13182 # func_basename file
13183 func_basename ()
13184 {
13185 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13186 }
13187
13188
13189 # func_stripname prefix suffix name
13190 # strip PREFIX and SUFFIX off of NAME.
13191 # PREFIX and SUFFIX must not contain globbing or regex special
13192 # characters, hashes, percent signs, but SUFFIX may contain a leading
13193 # dot (in which case that matches only a dot).
13194 # func_strip_suffix prefix name
13195 func_stripname ()
13196 {
13197 case ${2} in
13198 .*) func_stripname_result=`$ECHO "X${3}" \
13199 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13200 *) func_stripname_result=`$ECHO "X${3}" \
13201 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13202 esac
13203 }
13204
13205 # sed scripts:
13206 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13207 my_sed_long_arg='1s/^-[^=]*=//'
13208
13209 # func_opt_split
13210 func_opt_split ()
13211 {
13212 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13213 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13214 }
13215
13216 # func_lo2o object
13217 func_lo2o ()
13218 {
13219 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13220 }
13221
13222 # func_xform libobj-or-source
13223 func_xform ()
13224 {
13225 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13226 }
13227
13228 # func_arith arithmetic-term...
13229 func_arith ()
13230 {
13231 func_arith_result=`expr "$@"`
13232 }
13233
13234 # func_len string
13235 # STRING may not start with a hyphen.
13236 func_len ()
13237 {
13238 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13239 }
13240
13241 _LT_EOF
13242 esac
13243
13244 case $lt_shell_append in
13245 yes)
13246 cat << \_LT_EOF >> "$cfgfile"
13247
13248 # func_append var value
13249 # Append VALUE to the end of shell variable VAR.
13250 func_append ()
13251 {
13252 eval "$1+=\$2"
13253 }
13254 _LT_EOF
13255 ;;
13256 *)
13257 cat << \_LT_EOF >> "$cfgfile"
13258
13259 # func_append var value
13260 # Append VALUE to the end of shell variable VAR.
13261 func_append ()
13262 {
13263 eval "$1=\$$1\$2"
13264 }
13265
13266 _LT_EOF
13267 ;;
13268 esac
13269
13270
13271 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13272 || (rm -f "$cfgfile"; exit 1)
13273
13274 mv -f "$cfgfile" "$ofile" ||
13275 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13276 chmod +x "$ofile"
13277
13278 ;;
13279
13280 esac
13281 done # for ac_tag
13282
13283
13284 as_fn_exit 0
13285 _ACEOF
13286 ac_clean_files=$ac_clean_files_save
13287
13288 test $ac_write_fail = 0 ||
13289 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13290
13291
13292 # configure is writing to config.log, and then calls config.status.
13293 # config.status does its own redirection, appending to config.log.
13294 # Unfortunately, on DOS this fails, as config.log is still kept open
13295 # by configure, so config.status won't be able to write to it; its
13296 # output is simply discarded. So we exec the FD to /dev/null,
13297 # effectively closing config.log, so it can be properly (re)opened and
13298 # appended to by config.status. When coming back to configure, we
13299 # need to make the FD available again.
13300 if test "$no_create" != yes; then
13301 ac_cs_success=:
13302 ac_config_status_args=
13303 test "$silent" = yes &&
13304 ac_config_status_args="$ac_config_status_args --quiet"
13305 exec 5>/dev/null
13306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13307 exec 5>>config.log
13308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13309 # would make configure fail if this is the last instruction.
13310 $ac_cs_success || as_fn_exit $?
13311 fi
13312 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13314 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13315 fi
13316
13317