]> git.donarmstrong.com Git - fastq-tools.git/blob - configure
Imported Upstream version 0.6
[fastq-tools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for fastq-tools 0.6.
4 #
5 # Report bugs to <dcjones@cs.washington.edu >.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: dcjones@cs.washington.edu about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='fastq-tools'
592 PACKAGE_TARNAME='fastq-tools'
593 PACKAGE_VERSION='0.6'
594 PACKAGE_STRING='fastq-tools 0.6'
595 PACKAGE_BUGREPORT='dcjones@cs.washington.edu '
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 PCRE_LIBS
639 HAVE_PCRE
640 OTOOL64
641 OTOOL
642 LIPO
643 NMEDIT
644 DSYMUTIL
645 MANIFEST_TOOL
646 RANLIB
647 ac_ct_AR
648 AR
649 DLLTOOL
650 OBJDUMP
651 LN_S
652 NM
653 ac_ct_DUMPBIN
654 DUMPBIN
655 LD
656 FGREP
657 SED
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
666 LIBTOOL
667 EGREP
668 GREP
669 CPP
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 AM_BACKSLASH
688 AM_DEFAULT_VERBOSITY
689 AM_DEFAULT_V
690 AM_V
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL'
752 ac_subst_files=''
753 ac_user_opts='
754 enable_option_checking
755 enable_silent_rules
756 enable_dependency_tracking
757 enable_debug
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 with_sysroot
764 enable_libtool_lock
765 '
766       ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 CPP'
775
776
777 # Initialize some variables set by options.
778 ac_init_help=
779 ac_init_version=false
780 ac_unrecognized_opts=
781 ac_unrecognized_sep=
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
784 cache_file=/dev/null
785 exec_prefix=NONE
786 no_create=
787 no_recursion=
788 prefix=NONE
789 program_prefix=NONE
790 program_suffix=NONE
791 program_transform_name=s,x,x,
792 silent=
793 site=
794 srcdir=
795 verbose=
796 x_includes=NONE
797 x_libraries=NONE
798
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir='${exec_prefix}/bin'
806 sbindir='${exec_prefix}/sbin'
807 libexecdir='${exec_prefix}/libexec'
808 datarootdir='${prefix}/share'
809 datadir='${datarootdir}'
810 sysconfdir='${prefix}/etc'
811 sharedstatedir='${prefix}/com'
812 localstatedir='${prefix}/var'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816 infodir='${datarootdir}/info'
817 htmldir='${docdir}'
818 dvidir='${docdir}'
819 pdfdir='${docdir}'
820 psdir='${docdir}'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
824
825 ac_prev=
826 ac_dashdash=
827 for ac_option
828 do
829   # If the previous option needs an argument, assign it.
830   if test -n "$ac_prev"; then
831     eval $ac_prev=\$ac_option
832     ac_prev=
833     continue
834   fi
835
836   case $ac_option in
837   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838   *=)   ac_optarg= ;;
839   *)    ac_optarg=yes ;;
840   esac
841
842   # Accept the important Cygnus configure options, so we can diagnose typos.
843
844   case $ac_dashdash$ac_option in
845   --)
846     ac_dashdash=yes ;;
847
848   -bindir | --bindir | --bindi | --bind | --bin | --bi)
849     ac_prev=bindir ;;
850   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851     bindir=$ac_optarg ;;
852
853   -build | --build | --buil | --bui | --bu)
854     ac_prev=build_alias ;;
855   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856     build_alias=$ac_optarg ;;
857
858   -cache-file | --cache-file | --cache-fil | --cache-fi \
859   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860     ac_prev=cache_file ;;
861   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863     cache_file=$ac_optarg ;;
864
865   --config-cache | -C)
866     cache_file=config.cache ;;
867
868   -datadir | --datadir | --datadi | --datad)
869     ac_prev=datadir ;;
870   -datadir=* | --datadir=* | --datadi=* | --datad=*)
871     datadir=$ac_optarg ;;
872
873   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874   | --dataroo | --dataro | --datar)
875     ac_prev=datarootdir ;;
876   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878     datarootdir=$ac_optarg ;;
879
880   -disable-* | --disable-*)
881     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884       as_fn_error $? "invalid feature name: $ac_useropt"
885     ac_useropt_orig=$ac_useropt
886     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887     case $ac_user_opts in
888       *"
889 "enable_$ac_useropt"
890 "*) ;;
891       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892          ac_unrecognized_sep=', ';;
893     esac
894     eval enable_$ac_useropt=no ;;
895
896   -docdir | --docdir | --docdi | --doc | --do)
897     ac_prev=docdir ;;
898   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899     docdir=$ac_optarg ;;
900
901   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902     ac_prev=dvidir ;;
903   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904     dvidir=$ac_optarg ;;
905
906   -enable-* | --enable-*)
907     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910       as_fn_error $? "invalid feature name: $ac_useropt"
911     ac_useropt_orig=$ac_useropt
912     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913     case $ac_user_opts in
914       *"
915 "enable_$ac_useropt"
916 "*) ;;
917       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918          ac_unrecognized_sep=', ';;
919     esac
920     eval enable_$ac_useropt=\$ac_optarg ;;
921
922   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924   | --exec | --exe | --ex)
925     ac_prev=exec_prefix ;;
926   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928   | --exec=* | --exe=* | --ex=*)
929     exec_prefix=$ac_optarg ;;
930
931   -gas | --gas | --ga | --g)
932     # Obsolete; use --with-gas.
933     with_gas=yes ;;
934
935   -help | --help | --hel | --he | -h)
936     ac_init_help=long ;;
937   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938     ac_init_help=recursive ;;
939   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940     ac_init_help=short ;;
941
942   -host | --host | --hos | --ho)
943     ac_prev=host_alias ;;
944   -host=* | --host=* | --hos=* | --ho=*)
945     host_alias=$ac_optarg ;;
946
947   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948     ac_prev=htmldir ;;
949   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950   | --ht=*)
951     htmldir=$ac_optarg ;;
952
953   -includedir | --includedir | --includedi | --included | --include \
954   | --includ | --inclu | --incl | --inc)
955     ac_prev=includedir ;;
956   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957   | --includ=* | --inclu=* | --incl=* | --inc=*)
958     includedir=$ac_optarg ;;
959
960   -infodir | --infodir | --infodi | --infod | --info | --inf)
961     ac_prev=infodir ;;
962   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963     infodir=$ac_optarg ;;
964
965   -libdir | --libdir | --libdi | --libd)
966     ac_prev=libdir ;;
967   -libdir=* | --libdir=* | --libdi=* | --libd=*)
968     libdir=$ac_optarg ;;
969
970   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971   | --libexe | --libex | --libe)
972     ac_prev=libexecdir ;;
973   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974   | --libexe=* | --libex=* | --libe=*)
975     libexecdir=$ac_optarg ;;
976
977   -localedir | --localedir | --localedi | --localed | --locale)
978     ac_prev=localedir ;;
979   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980     localedir=$ac_optarg ;;
981
982   -localstatedir | --localstatedir | --localstatedi | --localstated \
983   | --localstate | --localstat | --localsta | --localst | --locals)
984     ac_prev=localstatedir ;;
985   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987     localstatedir=$ac_optarg ;;
988
989   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990     ac_prev=mandir ;;
991   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992     mandir=$ac_optarg ;;
993
994   -nfp | --nfp | --nf)
995     # Obsolete; use --without-fp.
996     with_fp=no ;;
997
998   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999   | --no-cr | --no-c | -n)
1000     no_create=yes ;;
1001
1002   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004     no_recursion=yes ;;
1005
1006   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008   | --oldin | --oldi | --old | --ol | --o)
1009     ac_prev=oldincludedir ;;
1010   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013     oldincludedir=$ac_optarg ;;
1014
1015   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016     ac_prev=prefix ;;
1017   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018     prefix=$ac_optarg ;;
1019
1020   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021   | --program-pre | --program-pr | --program-p)
1022     ac_prev=program_prefix ;;
1023   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025     program_prefix=$ac_optarg ;;
1026
1027   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028   | --program-suf | --program-su | --program-s)
1029     ac_prev=program_suffix ;;
1030   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032     program_suffix=$ac_optarg ;;
1033
1034   -program-transform-name | --program-transform-name \
1035   | --program-transform-nam | --program-transform-na \
1036   | --program-transform-n | --program-transform- \
1037   | --program-transform | --program-transfor \
1038   | --program-transfo | --program-transf \
1039   | --program-trans | --program-tran \
1040   | --progr-tra | --program-tr | --program-t)
1041     ac_prev=program_transform_name ;;
1042   -program-transform-name=* | --program-transform-name=* \
1043   | --program-transform-nam=* | --program-transform-na=* \
1044   | --program-transform-n=* | --program-transform-=* \
1045   | --program-transform=* | --program-transfor=* \
1046   | --program-transfo=* | --program-transf=* \
1047   | --program-trans=* | --program-tran=* \
1048   | --progr-tra=* | --program-tr=* | --program-t=*)
1049     program_transform_name=$ac_optarg ;;
1050
1051   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052     ac_prev=pdfdir ;;
1053   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054     pdfdir=$ac_optarg ;;
1055
1056   -psdir | --psdir | --psdi | --psd | --ps)
1057     ac_prev=psdir ;;
1058   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059     psdir=$ac_optarg ;;
1060
1061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062   | -silent | --silent | --silen | --sile | --sil)
1063     silent=yes ;;
1064
1065   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066     ac_prev=sbindir ;;
1067   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068   | --sbi=* | --sb=*)
1069     sbindir=$ac_optarg ;;
1070
1071   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073   | --sharedst | --shareds | --shared | --share | --shar \
1074   | --sha | --sh)
1075     ac_prev=sharedstatedir ;;
1076   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079   | --sha=* | --sh=*)
1080     sharedstatedir=$ac_optarg ;;
1081
1082   -site | --site | --sit)
1083     ac_prev=site ;;
1084   -site=* | --site=* | --sit=*)
1085     site=$ac_optarg ;;
1086
1087   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088     ac_prev=srcdir ;;
1089   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090     srcdir=$ac_optarg ;;
1091
1092   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093   | --syscon | --sysco | --sysc | --sys | --sy)
1094     ac_prev=sysconfdir ;;
1095   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097     sysconfdir=$ac_optarg ;;
1098
1099   -target | --target | --targe | --targ | --tar | --ta | --t)
1100     ac_prev=target_alias ;;
1101   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102     target_alias=$ac_optarg ;;
1103
1104   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105     verbose=yes ;;
1106
1107   -version | --version | --versio | --versi | --vers | -V)
1108     ac_init_version=: ;;
1109
1110   -with-* | --with-*)
1111     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114       as_fn_error $? "invalid package name: $ac_useropt"
1115     ac_useropt_orig=$ac_useropt
1116     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117     case $ac_user_opts in
1118       *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122          ac_unrecognized_sep=', ';;
1123     esac
1124     eval with_$ac_useropt=\$ac_optarg ;;
1125
1126   -without-* | --without-*)
1127     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128     # Reject names that are not valid shell variable names.
1129     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130       as_fn_error $? "invalid package name: $ac_useropt"
1131     ac_useropt_orig=$ac_useropt
1132     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133     case $ac_user_opts in
1134       *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138          ac_unrecognized_sep=', ';;
1139     esac
1140     eval with_$ac_useropt=no ;;
1141
1142   --x)
1143     # Obsolete; use --with-x.
1144     with_x=yes ;;
1145
1146   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147   | --x-incl | --x-inc | --x-in | --x-i)
1148     ac_prev=x_includes ;;
1149   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151     x_includes=$ac_optarg ;;
1152
1153   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155     ac_prev=x_libraries ;;
1156   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158     x_libraries=$ac_optarg ;;
1159
1160   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information"
1162     ;;
1163
1164   *=*)
1165     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166     # Reject names that are not valid shell variable names.
1167     case $ac_envvar in #(
1168       '' | [0-9]* | *[!_$as_cr_alnum]* )
1169       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170     esac
1171     eval $ac_envvar=\$ac_optarg
1172     export $ac_envvar ;;
1173
1174   *)
1175     # FIXME: should be removed in autoconf 3.0.
1176     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180     ;;
1181
1182   esac
1183 done
1184
1185 if test -n "$ac_prev"; then
1186   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187   as_fn_error $? "missing argument to $ac_option"
1188 fi
1189
1190 if test -n "$ac_unrecognized_opts"; then
1191   case $enable_option_checking in
1192     no) ;;
1193     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195   esac
1196 fi
1197
1198 # Check all directory arguments for consistency.
1199 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200                 datadir sysconfdir sharedstatedir localstatedir includedir \
1201                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202                 libdir localedir mandir
1203 do
1204   eval ac_val=\$$ac_var
1205   # Remove trailing slashes.
1206   case $ac_val in
1207     */ )
1208       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209       eval $ac_var=\$ac_val;;
1210   esac
1211   # Be sure to have absolute directory names.
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228   if test "x$build_alias" = x; then
1229     cross_compiling=maybe
1230   elif test "x$build_alias" != "x$host_alias"; then
1231     cross_compiling=yes
1232   fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244   as_fn_error $? "working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   as_fn_error $? "pwd does not report name of working directory"
1247
1248
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251   ac_srcdir_defaulted=yes
1252   # Try the directory containing this script, then the parent directory.
1253   ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255          X"$as_myself" : 'X\(//\)[^/]' \| \
1256          X"$as_myself" : 'X\(//\)$' \| \
1257          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)[^/].*/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\).*/{
1272             s//\1/
1273             q
1274           }
1275           s/.*/./; q'`
1276   srcdir=$ac_confdir
1277   if test ! -r "$srcdir/$ac_unique_file"; then
1278     srcdir=..
1279   fi
1280 else
1281   ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1286 fi
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 ac_abs_confdir=`(
1289         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1290         pwd)`
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293   srcdir=.
1294 fi
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1298 case $srcdir in
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 esac
1301 for ac_var in $ac_precious_vars; do
1302   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303   eval ac_env_${ac_var}_value=\$${ac_var}
1304   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 done
1307
1308 #
1309 # Report the --help message.
1310 #
1311 if test "$ac_init_help" = "long"; then
1312   # Omit some internal or obsolete options to make the list less imposing.
1313   # This message is too long to be a string in the A/UX 3.1 sh.
1314   cat <<_ACEOF
1315 \`configure' configures fastq-tools 0.6 to adapt to many kinds of systems.
1316
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE.  See below for descriptions of some of the useful variables.
1321
1322 Defaults for the options are specified in brackets.
1323
1324 Configuration:
1325   -h, --help              display this help and exit
1326       --help=short        display options specific to this package
1327       --help=recursive    display the short help of all the included packages
1328   -V, --version           display version information and exit
1329   -q, --quiet, --silent   do not print \`checking ...' messages
1330       --cache-file=FILE   cache test results in FILE [disabled]
1331   -C, --config-cache      alias for \`--cache-file=config.cache'
1332   -n, --no-create         do not create output files
1333       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1334
1335 Installation directories:
1336   --prefix=PREFIX         install architecture-independent files in PREFIX
1337                           [$ac_default_prefix]
1338   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1339                           [PREFIX]
1340
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1345
1346 For better control, use the options below.
1347
1348 Fine tuning of the installation directories:
1349   --bindir=DIR            user executables [EPREFIX/bin]
1350   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1351   --libexecdir=DIR        program executables [EPREFIX/libexec]
1352   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1353   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1354   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1355   --libdir=DIR            object code libraries [EPREFIX/lib]
1356   --includedir=DIR        C header files [PREFIX/include]
1357   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1358   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1359   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1360   --infodir=DIR           info documentation [DATAROOTDIR/info]
1361   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1362   --mandir=DIR            man documentation [DATAROOTDIR/man]
1363   --docdir=DIR            documentation root [DATAROOTDIR/doc/fastq-tools]
1364   --htmldir=DIR           html documentation [DOCDIR]
1365   --dvidir=DIR            dvi documentation [DOCDIR]
1366   --pdfdir=DIR            pdf documentation [DOCDIR]
1367   --psdir=DIR             ps documentation [DOCDIR]
1368 _ACEOF
1369
1370   cat <<\_ACEOF
1371
1372 Program names:
1373   --program-prefix=PREFIX            prepend PREFIX to installed program names
1374   --program-suffix=SUFFIX            append SUFFIX to installed program names
1375   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1376
1377 System types:
1378   --build=BUILD     configure for building on BUILD [guessed]
1379   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384   case $ac_init_help in
1385      short | recursive ) echo "Configuration of fastq-tools 0.6:";;
1386    esac
1387   cat <<\_ACEOF
1388
1389 Optional Features:
1390   --disable-option-checking  ignore unrecognized --enable/--with options
1391   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393   --enable-silent-rules   less verbose build output (undo: "make V=1")
1394   --disable-silent-rules  verbose build output (undo: "make V=0")
1395   --enable-dependency-tracking
1396                           do not reject slow dependency extractors
1397   --disable-dependency-tracking
1398                           speeds up one-time build
1399   --enable-debug          enable debugging info (default is no)
1400   --enable-shared[=PKGS]  build shared libraries [default=yes]
1401   --enable-static[=PKGS]  build static libraries [default=yes]
1402   --enable-fast-install[=PKGS]
1403                           optimize for fast installation [default=yes]
1404   --disable-libtool-lock  avoid locking (might break parallel builds)
1405
1406 Optional Packages:
1407   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1408   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1409   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1410                           both]
1411   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1412   --with-sysroot=DIR Search for dependent libraries within DIR
1413                         (or the compiler's sysroot if not specified).
1414
1415 Some influential environment variables:
1416   CC          C compiler command
1417   CFLAGS      C compiler flags
1418   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1419               nonstandard directory <lib dir>
1420   LIBS        libraries to pass to the linker, e.g. -l<library>
1421   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1422               you have headers in a nonstandard directory <include dir>
1423   CPP         C preprocessor
1424
1425 Use these variables to override the choices made by `configure' or to help
1426 it to find libraries and programs with nonstandard names/locations.
1427
1428 Report bugs to <dcjones@cs.washington.edu >.
1429 _ACEOF
1430 ac_status=$?
1431 fi
1432
1433 if test "$ac_init_help" = "recursive"; then
1434   # If there are subdirs, report their specific --help.
1435   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436     test -d "$ac_dir" ||
1437       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438       continue
1439     ac_builddir=.
1440
1441 case "$ac_dir" in
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *)
1444   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445   # A ".." for each directory in $ac_dir_suffix.
1446   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447   case $ac_top_builddir_sub in
1448   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450   esac ;;
1451 esac
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1456
1457 case $srcdir in
1458   .)  # We are building in place.
1459     ac_srcdir=.
1460     ac_top_srcdir=$ac_top_builddir_sub
1461     ac_abs_top_srcdir=$ac_pwd ;;
1462   [\\/]* | ?:[\\/]* )  # Absolute name.
1463     ac_srcdir=$srcdir$ac_dir_suffix;
1464     ac_top_srcdir=$srcdir
1465     ac_abs_top_srcdir=$srcdir ;;
1466   *) # Relative name.
1467     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468     ac_top_srcdir=$ac_top_build_prefix$srcdir
1469     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470 esac
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472
1473     cd "$ac_dir" || { ac_status=$?; continue; }
1474     # Check for guested configure.
1475     if test -f "$ac_srcdir/configure.gnu"; then
1476       echo &&
1477       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478     elif test -f "$ac_srcdir/configure"; then
1479       echo &&
1480       $SHELL "$ac_srcdir/configure" --help=recursive
1481     else
1482       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483     fi || ac_status=$?
1484     cd "$ac_pwd" || { ac_status=$?; break; }
1485   done
1486 fi
1487
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1490   cat <<\_ACEOF
1491 fastq-tools configure 0.6
1492 generated by GNU Autoconf 2.69
1493
1494 Copyright (C) 2012 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1497 _ACEOF
1498   exit
1499 fi
1500
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1504
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile ()
1509 {
1510   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511   rm -f conftest.$ac_objext
1512   if { { ac_try="$ac_compile"
1513 case "(($ac_try" in
1514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515   *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519   (eval "$ac_compile") 2>conftest.err
1520   ac_status=$?
1521   if test -s conftest.err; then
1522     grep -v '^ *+' conftest.err >conftest.er1
1523     cat conftest.er1 >&5
1524     mv -f conftest.er1 conftest.err
1525   fi
1526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527   test $ac_status = 0; } && {
1528          test -z "$ac_c_werror_flag" ||
1529          test ! -s conftest.err
1530        } && test -s conftest.$ac_objext; then :
1531   ac_retval=0
1532 else
1533   $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1535
1536         ac_retval=1
1537 fi
1538   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539   as_fn_set_status $ac_retval
1540
1541 } # ac_fn_c_try_compile
1542
1543 # ac_fn_c_try_cpp LINENO
1544 # ----------------------
1545 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_cpp ()
1547 {
1548   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549   if { { ac_try="$ac_cpp conftest.$ac_ext"
1550 case "(($ac_try" in
1551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552   *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1557   ac_status=$?
1558   if test -s conftest.err; then
1559     grep -v '^ *+' conftest.err >conftest.er1
1560     cat conftest.er1 >&5
1561     mv -f conftest.er1 conftest.err
1562   fi
1563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564   test $ac_status = 0; } > conftest.i && {
1565          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1566          test ! -s conftest.err
1567        }; then :
1568   ac_retval=0
1569 else
1570   $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1572
1573     ac_retval=1
1574 fi
1575   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576   as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_cpp
1579
1580 # ac_fn_c_try_run LINENO
1581 # ----------------------
1582 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1583 # that executables *can* be run.
1584 ac_fn_c_try_run ()
1585 {
1586   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587   if { { ac_try="$ac_link"
1588 case "(($ac_try" in
1589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590   *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594   (eval "$ac_link") 2>&5
1595   ac_status=$?
1596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1598   { { case "(($ac_try" in
1599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600   *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604   (eval "$ac_try") 2>&5
1605   ac_status=$?
1606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607   test $ac_status = 0; }; }; then :
1608   ac_retval=0
1609 else
1610   $as_echo "$as_me: program exited with status $ac_status" >&5
1611        $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614        ac_retval=$ac_status
1615 fi
1616   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618   as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_run
1621
1622 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists and can be compiled using the include files in
1625 # INCLUDES, setting the cache variable VAR accordingly.
1626 ac_fn_c_check_header_compile ()
1627 {
1628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632   $as_echo_n "(cached) " >&6
1633 else
1634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h.  */
1636 $4
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640   eval "$3=yes"
1641 else
1642   eval "$3=no"
1643 fi
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 fi
1646 eval ac_res=\$$3
1647                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
1651 } # ac_fn_c_check_header_compile
1652
1653 # ac_fn_c_find_uintX_t LINENO BITS VAR
1654 # ------------------------------------
1655 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1656 # accordingly.
1657 ac_fn_c_find_uintX_t ()
1658 {
1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1661 $as_echo_n "checking for uint$2_t... " >&6; }
1662 if eval \${$3+:} false; then :
1663   $as_echo_n "(cached) " >&6
1664 else
1665   eval "$3=no"
1666      # Order is important - never check a type that is potentially smaller
1667      # than half of the expected target width.
1668      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1669          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1670        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h.  */
1672 $ac_includes_default
1673 int
1674 main ()
1675 {
1676 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1677 test_array [0] = 0;
1678 return test_array [0];
1679
1680   ;
1681   return 0;
1682 }
1683 _ACEOF
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685   case $ac_type in #(
1686   uint$2_t) :
1687     eval "$3=yes" ;; #(
1688   *) :
1689     eval "$3=\$ac_type" ;;
1690 esac
1691 fi
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693        if eval test \"x\$"$3"\" = x"no"; then :
1694
1695 else
1696   break
1697 fi
1698      done
1699 fi
1700 eval ac_res=\$$3
1701                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705 } # ac_fn_c_find_uintX_t
1706
1707 # ac_fn_c_find_intX_t LINENO BITS VAR
1708 # -----------------------------------
1709 # Finds a signed integer type with width BITS, setting cache variable VAR
1710 # accordingly.
1711 ac_fn_c_find_intX_t ()
1712 {
1713   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1715 $as_echo_n "checking for int$2_t... " >&6; }
1716 if eval \${$3+:} false; then :
1717   $as_echo_n "(cached) " >&6
1718 else
1719   eval "$3=no"
1720      # Order is important - never check a type that is potentially smaller
1721      # than half of the expected target width.
1722      for ac_type in int$2_t 'int' 'long int' \
1723          'long long int' 'short int' 'signed char'; do
1724        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h.  */
1726 $ac_includes_default
1727              enum { N = $2 / 2 - 1 };
1728 int
1729 main ()
1730 {
1731 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1732 test_array [0] = 0;
1733 return test_array [0];
1734
1735   ;
1736   return 0;
1737 }
1738 _ACEOF
1739 if ac_fn_c_try_compile "$LINENO"; then :
1740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h.  */
1742 $ac_includes_default
1743                 enum { N = $2 / 2 - 1 };
1744 int
1745 main ()
1746 {
1747 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1748                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1749 test_array [0] = 0;
1750 return test_array [0];
1751
1752   ;
1753   return 0;
1754 }
1755 _ACEOF
1756 if ac_fn_c_try_compile "$LINENO"; then :
1757
1758 else
1759   case $ac_type in #(
1760   int$2_t) :
1761     eval "$3=yes" ;; #(
1762   *) :
1763     eval "$3=\$ac_type" ;;
1764 esac
1765 fi
1766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769        if eval test \"x\$"$3"\" = x"no"; then :
1770
1771 else
1772   break
1773 fi
1774      done
1775 fi
1776 eval ac_res=\$$3
1777                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_find_intX_t
1782
1783 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1784 # -------------------------------------------
1785 # Tests whether TYPE exists after having included INCLUDES, setting cache
1786 # variable VAR accordingly.
1787 ac_fn_c_check_type ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793   $as_echo_n "(cached) " >&6
1794 else
1795   eval "$3=no"
1796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h.  */
1798 $4
1799 int
1800 main ()
1801 {
1802 if (sizeof ($2))
1803          return 0;
1804   ;
1805   return 0;
1806 }
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 $4
1812 int
1813 main ()
1814 {
1815 if (sizeof (($2)))
1816             return 0;
1817   ;
1818   return 0;
1819 }
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822
1823 else
1824   eval "$3=yes"
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 fi
1830 eval ac_res=\$$3
1831                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835 } # ac_fn_c_check_type
1836
1837 # ac_fn_c_try_link LINENO
1838 # -----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_c_try_link ()
1841 {
1842   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843   rm -f conftest.$ac_objext conftest$ac_exeext
1844   if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847   *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851   (eval "$ac_link") 2>conftest.err
1852   ac_status=$?
1853   if test -s conftest.err; then
1854     grep -v '^ *+' conftest.err >conftest.er1
1855     cat conftest.er1 >&5
1856     mv -f conftest.er1 conftest.err
1857   fi
1858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859   test $ac_status = 0; } && {
1860          test -z "$ac_c_werror_flag" ||
1861          test ! -s conftest.err
1862        } && test -s conftest$ac_exeext && {
1863          test "$cross_compiling" = yes ||
1864          test -x conftest$ac_exeext
1865        }; then :
1866   ac_retval=0
1867 else
1868   $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871         ac_retval=1
1872 fi
1873   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875   # interfere with the next link command; also delete a directory that is
1876   # left behind by Apple's compiler.  We do this before executing the actions.
1877   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879   as_fn_set_status $ac_retval
1880
1881 } # ac_fn_c_try_link
1882
1883 # ac_fn_c_check_func LINENO FUNC VAR
1884 # ----------------------------------
1885 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1886 ac_fn_c_check_func ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892   $as_echo_n "(cached) " >&6
1893 else
1894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h.  */
1896 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1898 #define $2 innocuous_$2
1899
1900 /* System header to define __stub macros and hopefully few prototypes,
1901     which can conflict with char $2 (); below.
1902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1903     <limits.h> exists even on freestanding compilers.  */
1904
1905 #ifdef __STDC__
1906 # include <limits.h>
1907 #else
1908 # include <assert.h>
1909 #endif
1910
1911 #undef $2
1912
1913 /* Override any GCC internal prototype to avoid an error.
1914    Use char because int might match the return type of a GCC
1915    builtin and then its argument prototype would still apply.  */
1916 #ifdef __cplusplus
1917 extern "C"
1918 #endif
1919 char $2 ();
1920 /* The GNU C library defines this for functions which it implements
1921     to always fail with ENOSYS.  Some functions are actually named
1922     something starting with __ and the normal name is an alias.  */
1923 #if defined __stub_$2 || defined __stub___$2
1924 choke me
1925 #endif
1926
1927 int
1928 main ()
1929 {
1930 return $2 ();
1931   ;
1932   return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_link "$LINENO"; then :
1936   eval "$3=yes"
1937 else
1938   eval "$3=no"
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext \
1941     conftest$ac_exeext conftest.$ac_ext
1942 fi
1943 eval ac_res=\$$3
1944                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_func
1949
1950 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1951 # -------------------------------------------------------
1952 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1953 # the include files in INCLUDES and setting the cache variable VAR
1954 # accordingly.
1955 ac_fn_c_check_header_mongrel ()
1956 {
1957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958   if eval \${$3+:} false; then :
1959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if eval \${$3+:} false; then :
1962   $as_echo_n "(cached) " >&6
1963 fi
1964 eval ac_res=\$$3
1965                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 else
1968   # Is the header compilable?
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1970 $as_echo_n "checking $2 usability... " >&6; }
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h.  */
1973 $4
1974 #include <$2>
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977   ac_header_compiler=yes
1978 else
1979   ac_header_compiler=no
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1983 $as_echo "$ac_header_compiler" >&6; }
1984
1985 # Is the header present?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1987 $as_echo_n "checking $2 presence... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h.  */
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_cpp "$LINENO"; then :
1993   ac_header_preproc=yes
1994 else
1995   ac_header_preproc=no
1996 fi
1997 rm -f conftest.err conftest.i conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1999 $as_echo "$ac_header_preproc" >&6; }
2000
2001 # So?  What about this header?
2002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2003   yes:no: )
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2005 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008     ;;
2009   no:yes:* )
2010     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2011 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2012     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2013 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2014     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2015 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2016     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2017 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2018     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2019 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2020 ( $as_echo "## ----------------------------------------- ##
2021 ## Report this to dcjones@cs.washington.edu  ##
2022 ## ----------------------------------------- ##"
2023      ) | sed "s/^/$as_me: WARNING:     /" >&2
2024     ;;
2025 esac
2026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if eval \${$3+:} false; then :
2029   $as_echo_n "(cached) " >&6
2030 else
2031   eval "$3=\$ac_header_compiler"
2032 fi
2033 eval ac_res=\$$3
2034                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 fi
2037   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038
2039 } # ac_fn_c_check_header_mongrel
2040 cat >config.log <<_ACEOF
2041 This file contains any messages produced by compilers while
2042 running configure, to aid debugging if configure makes a mistake.
2043
2044 It was created by fastq-tools $as_me 0.6, which was
2045 generated by GNU Autoconf 2.69.  Invocation command line was
2046
2047   $ $0 $@
2048
2049 _ACEOF
2050 exec 5>>config.log
2051 {
2052 cat <<_ASUNAME
2053 ## --------- ##
2054 ## Platform. ##
2055 ## --------- ##
2056
2057 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2058 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2059 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2060 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2061 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2062
2063 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2064 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2065
2066 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2067 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2068 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2069 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2070 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2071 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2072 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2073
2074 _ASUNAME
2075
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081     $as_echo "PATH: $as_dir"
2082   done
2083 IFS=$as_save_IFS
2084
2085 } >&5
2086
2087 cat >&5 <<_ACEOF
2088
2089
2090 ## ----------- ##
2091 ## Core tests. ##
2092 ## ----------- ##
2093
2094 _ACEOF
2095
2096
2097 # Keep a trace of the command line.
2098 # Strip out --no-create and --no-recursion so they do not pile up.
2099 # Strip out --silent because we don't want to record it for future runs.
2100 # Also quote any args containing shell meta-characters.
2101 # Make two passes to allow for proper duplicate-argument suppression.
2102 ac_configure_args=
2103 ac_configure_args0=
2104 ac_configure_args1=
2105 ac_must_keep_next=false
2106 for ac_pass in 1 2
2107 do
2108   for ac_arg
2109   do
2110     case $ac_arg in
2111     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2112     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2113     | -silent | --silent | --silen | --sile | --sil)
2114       continue ;;
2115     *\'*)
2116       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2117     esac
2118     case $ac_pass in
2119     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2120     2)
2121       as_fn_append ac_configure_args1 " '$ac_arg'"
2122       if test $ac_must_keep_next = true; then
2123         ac_must_keep_next=false # Got value, back to normal.
2124       else
2125         case $ac_arg in
2126           *=* | --config-cache | -C | -disable-* | --disable-* \
2127           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2128           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2129           | -with-* | --with-* | -without-* | --without-* | --x)
2130             case "$ac_configure_args0 " in
2131               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2132             esac
2133             ;;
2134           -* ) ac_must_keep_next=true ;;
2135         esac
2136       fi
2137       as_fn_append ac_configure_args " '$ac_arg'"
2138       ;;
2139     esac
2140   done
2141 done
2142 { ac_configure_args0=; unset ac_configure_args0;}
2143 { ac_configure_args1=; unset ac_configure_args1;}
2144
2145 # When interrupted or exit'd, cleanup temporary files, and complete
2146 # config.log.  We remove comments because anyway the quotes in there
2147 # would cause problems or look ugly.
2148 # WARNING: Use '\'' to represent an apostrophe within the trap.
2149 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2150 trap 'exit_status=$?
2151   # Save into config.log some information that might help in debugging.
2152   {
2153     echo
2154
2155     $as_echo "## ---------------- ##
2156 ## Cache variables. ##
2157 ## ---------------- ##"
2158     echo
2159     # The following way of writing the cache mishandles newlines in values,
2160 (
2161   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2162     eval ac_val=\$$ac_var
2163     case $ac_val in #(
2164     *${as_nl}*)
2165       case $ac_var in #(
2166       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2167 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2168       esac
2169       case $ac_var in #(
2170       _ | IFS | as_nl) ;; #(
2171       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2172       *) { eval $ac_var=; unset $ac_var;} ;;
2173       esac ;;
2174     esac
2175   done
2176   (set) 2>&1 |
2177     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2178     *${as_nl}ac_space=\ *)
2179       sed -n \
2180         "s/'\''/'\''\\\\'\'''\''/g;
2181           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2182       ;; #(
2183     *)
2184       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2185       ;;
2186     esac |
2187     sort
2188 )
2189     echo
2190
2191     $as_echo "## ----------------- ##
2192 ## Output variables. ##
2193 ## ----------------- ##"
2194     echo
2195     for ac_var in $ac_subst_vars
2196     do
2197       eval ac_val=\$$ac_var
2198       case $ac_val in
2199       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200       esac
2201       $as_echo "$ac_var='\''$ac_val'\''"
2202     done | sort
2203     echo
2204
2205     if test -n "$ac_subst_files"; then
2206       $as_echo "## ------------------- ##
2207 ## File substitutions. ##
2208 ## ------------------- ##"
2209       echo
2210       for ac_var in $ac_subst_files
2211       do
2212         eval ac_val=\$$ac_var
2213         case $ac_val in
2214         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215         esac
2216         $as_echo "$ac_var='\''$ac_val'\''"
2217       done | sort
2218       echo
2219     fi
2220
2221     if test -s confdefs.h; then
2222       $as_echo "## ----------- ##
2223 ## confdefs.h. ##
2224 ## ----------- ##"
2225       echo
2226       cat confdefs.h
2227       echo
2228     fi
2229     test "$ac_signal" != 0 &&
2230       $as_echo "$as_me: caught signal $ac_signal"
2231     $as_echo "$as_me: exit $exit_status"
2232   } >&5
2233   rm -f core *.core core.conftest.* &&
2234     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2235     exit $exit_status
2236 ' 0
2237 for ac_signal in 1 2 13 15; do
2238   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2239 done
2240 ac_signal=0
2241
2242 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2243 rm -f -r conftest* confdefs.h
2244
2245 $as_echo "/* confdefs.h */" > confdefs.h
2246
2247 # Predefined preprocessor variables.
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_NAME "$PACKAGE_NAME"
2251 _ACEOF
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2255 _ACEOF
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2259 _ACEOF
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_STRING "$PACKAGE_STRING"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2267 _ACEOF
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_URL "$PACKAGE_URL"
2271 _ACEOF
2272
2273
2274 # Let the site file select an alternate cache file if it wants to.
2275 # Prefer an explicitly selected file to automatically selected ones.
2276 ac_site_file1=NONE
2277 ac_site_file2=NONE
2278 if test -n "$CONFIG_SITE"; then
2279   # We do not want a PATH search for config.site.
2280   case $CONFIG_SITE in #((
2281     -*)  ac_site_file1=./$CONFIG_SITE;;
2282     */*) ac_site_file1=$CONFIG_SITE;;
2283     *)   ac_site_file1=./$CONFIG_SITE;;
2284   esac
2285 elif test "x$prefix" != xNONE; then
2286   ac_site_file1=$prefix/share/config.site
2287   ac_site_file2=$prefix/etc/config.site
2288 else
2289   ac_site_file1=$ac_default_prefix/share/config.site
2290   ac_site_file2=$ac_default_prefix/etc/config.site
2291 fi
2292 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2293 do
2294   test "x$ac_site_file" = xNONE && continue
2295   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2296     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2297 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2298     sed 's/^/| /' "$ac_site_file" >&5
2299     . "$ac_site_file" \
2300       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302 as_fn_error $? "failed to load site script $ac_site_file
2303 See \`config.log' for more details" "$LINENO" 5; }
2304   fi
2305 done
2306
2307 if test -r "$cache_file"; then
2308   # Some versions of bash will fail to source /dev/null (special files
2309   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2310   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2311     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2312 $as_echo "$as_me: loading cache $cache_file" >&6;}
2313     case $cache_file in
2314       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2315       *)                      . "./$cache_file";;
2316     esac
2317   fi
2318 else
2319   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2320 $as_echo "$as_me: creating cache $cache_file" >&6;}
2321   >$cache_file
2322 fi
2323
2324 # Check that the precious variables saved in the cache have kept the same
2325 # value.
2326 ac_cache_corrupted=false
2327 for ac_var in $ac_precious_vars; do
2328   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2329   eval ac_new_set=\$ac_env_${ac_var}_set
2330   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2331   eval ac_new_val=\$ac_env_${ac_var}_value
2332   case $ac_old_set,$ac_new_set in
2333     set,)
2334       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2335 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2336       ac_cache_corrupted=: ;;
2337     ,set)
2338       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2339 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2340       ac_cache_corrupted=: ;;
2341     ,);;
2342     *)
2343       if test "x$ac_old_val" != "x$ac_new_val"; then
2344         # differences in whitespace do not lead to failure.
2345         ac_old_val_w=`echo x $ac_old_val`
2346         ac_new_val_w=`echo x $ac_new_val`
2347         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2348           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2349 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2350           ac_cache_corrupted=:
2351         else
2352           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2353 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2354           eval $ac_var=\$ac_old_val
2355         fi
2356         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2357 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2358         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2359 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2360       fi;;
2361   esac
2362   # Pass precious variables to config.status.
2363   if test "$ac_new_set" = set; then
2364     case $ac_new_val in
2365     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2366     *) ac_arg=$ac_var=$ac_new_val ;;
2367     esac
2368     case " $ac_configure_args " in
2369       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2370       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2371     esac
2372   fi
2373 done
2374 if $ac_cache_corrupted; then
2375   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2378 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2379   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2380 fi
2381 ## -------------------- ##
2382 ## Main body of script. ##
2383 ## -------------------- ##
2384
2385 ac_ext=c
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390
2391
2392 am__api_version='1.13'
2393
2394 ac_aux_dir=
2395 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2396   if test -f "$ac_dir/install-sh"; then
2397     ac_aux_dir=$ac_dir
2398     ac_install_sh="$ac_aux_dir/install-sh -c"
2399     break
2400   elif test -f "$ac_dir/install.sh"; then
2401     ac_aux_dir=$ac_dir
2402     ac_install_sh="$ac_aux_dir/install.sh -c"
2403     break
2404   elif test -f "$ac_dir/shtool"; then
2405     ac_aux_dir=$ac_dir
2406     ac_install_sh="$ac_aux_dir/shtool install -c"
2407     break
2408   fi
2409 done
2410 if test -z "$ac_aux_dir"; then
2411   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2412 fi
2413
2414 # These three variables are undocumented and unsupported,
2415 # and are intended to be withdrawn in a future Autoconf release.
2416 # They can cause serious problems if a builder's source tree is in a directory
2417 # whose full name contains unusual characters.
2418 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2419 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2420 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2421
2422
2423 # Find a good install program.  We prefer a C program (faster),
2424 # so one script is as good as another.  But avoid the broken or
2425 # incompatible versions:
2426 # SysV /etc/install, /usr/sbin/install
2427 # SunOS /usr/etc/install
2428 # IRIX /sbin/install
2429 # AIX /bin/install
2430 # AmigaOS /C/install, which installs bootblocks on floppy discs
2431 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2432 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2433 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2434 # OS/2's system install, which has a completely different semantic
2435 # ./install, which can be erroneously created by make from ./install.sh.
2436 # Reject install programs that cannot install multiple files.
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2438 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2439 if test -z "$INSTALL"; then
2440 if ${ac_cv_path_install+:} false; then :
2441   $as_echo_n "(cached) " >&6
2442 else
2443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446   IFS=$as_save_IFS
2447   test -z "$as_dir" && as_dir=.
2448     # Account for people who put trailing slashes in PATH elements.
2449 case $as_dir/ in #((
2450   ./ | .// | /[cC]/* | \
2451   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2452   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2453   /usr/ucb/* ) ;;
2454   *)
2455     # OSF1 and SCO ODT 3.0 have their own names for install.
2456     # Don't use installbsd from OSF since it installs stuff as root
2457     # by default.
2458     for ac_prog in ginstall scoinst install; do
2459       for ac_exec_ext in '' $ac_executable_extensions; do
2460         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2461           if test $ac_prog = install &&
2462             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2463             # AIX install.  It has an incompatible calling convention.
2464             :
2465           elif test $ac_prog = install &&
2466             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2467             # program-specific install script used by HP pwplus--don't use.
2468             :
2469           else
2470             rm -rf conftest.one conftest.two conftest.dir
2471             echo one > conftest.one
2472             echo two > conftest.two
2473             mkdir conftest.dir
2474             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2475               test -s conftest.one && test -s conftest.two &&
2476               test -s conftest.dir/conftest.one &&
2477               test -s conftest.dir/conftest.two
2478             then
2479               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2480               break 3
2481             fi
2482           fi
2483         fi
2484       done
2485     done
2486     ;;
2487 esac
2488
2489   done
2490 IFS=$as_save_IFS
2491
2492 rm -rf conftest.one conftest.two conftest.dir
2493
2494 fi
2495   if test "${ac_cv_path_install+set}" = set; then
2496     INSTALL=$ac_cv_path_install
2497   else
2498     # As a last resort, use the slow shell script.  Don't cache a
2499     # value for INSTALL within a source directory, because that will
2500     # break other packages using the cache if that directory is
2501     # removed, or if the value is a relative name.
2502     INSTALL=$ac_install_sh
2503   fi
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2506 $as_echo "$INSTALL" >&6; }
2507
2508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2509 # It thinks the first close brace ends the variable substitution.
2510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2511
2512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2513
2514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2515
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2517 $as_echo_n "checking whether build environment is sane... " >&6; }
2518 # Reject unsafe characters in $srcdir or the absolute working directory
2519 # name.  Accept space and tab only in the latter.
2520 am_lf='
2521 '
2522 case `pwd` in
2523   *[\\\"\#\$\&\'\`$am_lf]*)
2524     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2525 esac
2526 case $srcdir in
2527   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2528     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2529 esac
2530
2531 # Do 'set' in a subshell so we don't clobber the current shell's
2532 # arguments.  Must try -L first in case configure is actually a
2533 # symlink; some systems play weird games with the mod time of symlinks
2534 # (eg FreeBSD returns the mod time of the symlink's containing
2535 # directory).
2536 if (
2537    am_has_slept=no
2538    for am_try in 1 2; do
2539      echo "timestamp, slept: $am_has_slept" > conftest.file
2540      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2541      if test "$*" = "X"; then
2542         # -L didn't work.
2543         set X `ls -t "$srcdir/configure" conftest.file`
2544      fi
2545      if test "$*" != "X $srcdir/configure conftest.file" \
2546         && test "$*" != "X conftest.file $srcdir/configure"; then
2547
2548         # If neither matched, then we have a broken ls.  This can happen
2549         # if, for instance, CONFIG_SHELL is bash and it inherits a
2550         # broken ls alias from the environment.  This has actually
2551         # happened.  Such a system could not be considered "sane".
2552         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2553   alias in your environment" "$LINENO" 5
2554      fi
2555      if test "$2" = conftest.file || test $am_try -eq 2; then
2556        break
2557      fi
2558      # Just in case.
2559      sleep 1
2560      am_has_slept=yes
2561    done
2562    test "$2" = conftest.file
2563    )
2564 then
2565    # Ok.
2566    :
2567 else
2568    as_fn_error $? "newly created file is older than distributed files!
2569 Check your system clock" "$LINENO" 5
2570 fi
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2572 $as_echo "yes" >&6; }
2573 # If we didn't sleep, we still need to ensure time stamps of config.status and
2574 # generated files are strictly newer.
2575 am_sleep_pid=
2576 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2577   ( sleep 1 ) &
2578   am_sleep_pid=$!
2579 fi
2580
2581 rm -f conftest.file
2582
2583 test "$program_prefix" != NONE &&
2584   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2585 # Use a double $ so make ignores it.
2586 test "$program_suffix" != NONE &&
2587   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2588 # Double any \ or $.
2589 # By default was `s,x,x', remove it if useless.
2590 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2591 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2592
2593 # expand $ac_aux_dir to an absolute path
2594 am_aux_dir=`cd $ac_aux_dir && pwd`
2595
2596 if test x"${MISSING+set}" != xset; then
2597   case $am_aux_dir in
2598   *\ * | *\     *)
2599     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2600   *)
2601     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2602   esac
2603 fi
2604 # Use eval to expand $SHELL
2605 if eval "$MISSING --is-lightweight"; then
2606   am_missing_run="$MISSING "
2607 else
2608   am_missing_run=
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2610 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2611 fi
2612
2613 if test x"${install_sh}" != xset; then
2614   case $am_aux_dir in
2615   *\ * | *\     *)
2616     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2617   *)
2618     install_sh="\${SHELL} $am_aux_dir/install-sh"
2619   esac
2620 fi
2621
2622 # Installed binaries are usually stripped using 'strip' when the user
2623 # run "make install-strip".  However 'strip' might not be the right
2624 # tool to use in cross-compilation environments, therefore Automake
2625 # will honor the 'STRIP' environment variable to overrule this program.
2626 if test "$cross_compiling" != no; then
2627   if test -n "$ac_tool_prefix"; then
2628   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2629 set dummy ${ac_tool_prefix}strip; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_STRIP+:} false; then :
2633   $as_echo_n "(cached) " >&6
2634 else
2635   if test -n "$STRIP"; then
2636   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641   IFS=$as_save_IFS
2642   test -z "$as_dir" && as_dir=.
2643     for ac_exec_ext in '' $ac_executable_extensions; do
2644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647     break 2
2648   fi
2649 done
2650   done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 STRIP=$ac_cv_prog_STRIP
2656 if test -n "$STRIP"; then
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2658 $as_echo "$STRIP" >&6; }
2659 else
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 fi
2663
2664
2665 fi
2666 if test -z "$ac_cv_prog_STRIP"; then
2667   ac_ct_STRIP=$STRIP
2668   # Extract the first word of "strip", so it can be a program name with args.
2669 set dummy strip; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2673   $as_echo_n "(cached) " >&6
2674 else
2675   if test -n "$ac_ct_STRIP"; then
2676   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683     for ac_exec_ext in '' $ac_executable_extensions; do
2684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685     ac_cv_prog_ac_ct_STRIP="strip"
2686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690   done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2696 if test -n "$ac_ct_STRIP"; then
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2698 $as_echo "$ac_ct_STRIP" >&6; }
2699 else
2700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702 fi
2703
2704   if test "x$ac_ct_STRIP" = x; then
2705     STRIP=":"
2706   else
2707     case $cross_compiling:$ac_tool_warned in
2708 yes:)
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2711 ac_tool_warned=yes ;;
2712 esac
2713     STRIP=$ac_ct_STRIP
2714   fi
2715 else
2716   STRIP="$ac_cv_prog_STRIP"
2717 fi
2718
2719 fi
2720 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2721
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2723 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2724 if test -z "$MKDIR_P"; then
2725   if ${ac_cv_path_mkdir+:} false; then :
2726   $as_echo_n "(cached) " >&6
2727 else
2728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2730 do
2731   IFS=$as_save_IFS
2732   test -z "$as_dir" && as_dir=.
2733     for ac_prog in mkdir gmkdir; do
2734          for ac_exec_ext in '' $ac_executable_extensions; do
2735            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2736            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2737              'mkdir (GNU coreutils) '* | \
2738              'mkdir (coreutils) '* | \
2739              'mkdir (fileutils) '4.1*)
2740                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2741                break 3;;
2742            esac
2743          done
2744        done
2745   done
2746 IFS=$as_save_IFS
2747
2748 fi
2749
2750   test -d ./--version && rmdir ./--version
2751   if test "${ac_cv_path_mkdir+set}" = set; then
2752     MKDIR_P="$ac_cv_path_mkdir -p"
2753   else
2754     # As a last resort, use the slow shell script.  Don't cache a
2755     # value for MKDIR_P within a source directory, because that will
2756     # break other packages using the cache if that directory is
2757     # removed, or if the value is a relative name.
2758     MKDIR_P="$ac_install_sh -d"
2759   fi
2760 fi
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2762 $as_echo "$MKDIR_P" >&6; }
2763
2764 for ac_prog in gawk mawk nawk awk
2765 do
2766   # Extract the first word of "$ac_prog", so it can be a program name with args.
2767 set dummy $ac_prog; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_AWK+:} false; then :
2771   $as_echo_n "(cached) " >&6
2772 else
2773   if test -n "$AWK"; then
2774   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781     for ac_exec_ext in '' $ac_executable_extensions; do
2782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783     ac_cv_prog_AWK="$ac_prog"
2784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785     break 2
2786   fi
2787 done
2788   done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 AWK=$ac_cv_prog_AWK
2794 if test -n "$AWK"; then
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2796 $as_echo "$AWK" >&6; }
2797 else
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802
2803   test -n "$AWK" && break
2804 done
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2807 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2808 set x ${MAKE-make}
2809 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2810 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   cat >conftest.make <<\_ACEOF
2814 SHELL = /bin/sh
2815 all:
2816         @echo '@@@%%%=$(MAKE)=@@@%%%'
2817 _ACEOF
2818 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2819 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2820   *@@@%%%=?*=@@@%%%*)
2821     eval ac_cv_prog_make_${ac_make}_set=yes;;
2822   *)
2823     eval ac_cv_prog_make_${ac_make}_set=no;;
2824 esac
2825 rm -f conftest.make
2826 fi
2827 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 $as_echo "yes" >&6; }
2830   SET_MAKE=
2831 else
2832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2834   SET_MAKE="MAKE=${MAKE-make}"
2835 fi
2836
2837 rm -rf .tst 2>/dev/null
2838 mkdir .tst 2>/dev/null
2839 if test -d .tst; then
2840   am__leading_dot=.
2841 else
2842   am__leading_dot=_
2843 fi
2844 rmdir .tst 2>/dev/null
2845
2846 # Check whether --enable-silent-rules was given.
2847 if test "${enable_silent_rules+set}" = set; then :
2848   enableval=$enable_silent_rules;
2849 fi
2850
2851 case $enable_silent_rules in # (((
2852   yes) AM_DEFAULT_VERBOSITY=0;;
2853    no) AM_DEFAULT_VERBOSITY=1;;
2854     *) AM_DEFAULT_VERBOSITY=1;;
2855 esac
2856 am_make=${MAKE-make}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2858 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2859 if ${am_cv_make_support_nested_variables+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   if $as_echo 'TRUE=$(BAR$(V))
2863 BAR0=false
2864 BAR1=true
2865 V=1
2866 am__doit:
2867         @$(TRUE)
2868 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2869   am_cv_make_support_nested_variables=yes
2870 else
2871   am_cv_make_support_nested_variables=no
2872 fi
2873 fi
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2875 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2876 if test $am_cv_make_support_nested_variables = yes; then
2877     AM_V='$(V)'
2878   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2879 else
2880   AM_V=$AM_DEFAULT_VERBOSITY
2881   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2882 fi
2883 AM_BACKSLASH='\'
2884
2885 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2886   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2887   # is not polluted with repeated "-I."
2888   am__isrc=' -I$(srcdir)'
2889   # test to see if srcdir already configured
2890   if test -f $srcdir/config.status; then
2891     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2892   fi
2893 fi
2894
2895 # test whether we have cygpath
2896 if test -z "$CYGPATH_W"; then
2897   if (cygpath --version) >/dev/null 2>/dev/null; then
2898     CYGPATH_W='cygpath -w'
2899   else
2900     CYGPATH_W=echo
2901   fi
2902 fi
2903
2904
2905 # Define the identity of the package.
2906  PACKAGE='fastq-tools'
2907  VERSION='0.6'
2908
2909
2910 cat >>confdefs.h <<_ACEOF
2911 #define PACKAGE "$PACKAGE"
2912 _ACEOF
2913
2914
2915 cat >>confdefs.h <<_ACEOF
2916 #define VERSION "$VERSION"
2917 _ACEOF
2918
2919 # Some tools Automake needs.
2920
2921 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2922
2923
2924 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2925
2926
2927 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2928
2929
2930 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2931
2932
2933 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2934
2935 # For better backward compatibility.  To be removed once Automake 1.9.x
2936 # dies out for good.  For more background, see:
2937 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2938 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2939 mkdir_p='$(MKDIR_P)'
2940
2941 # We need awk for the "check" target.  The system "awk" is bad on
2942 # some platforms.
2943 # Always define AMTAR for backward compatibility.  Yes, it's still used
2944 # in the wild :-(  We should find a proper way to deprecate it ...
2945 AMTAR='$${TAR-tar}'
2946
2947 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2948
2949
2950
2951
2952
2953 # Check whether --enable-silent-rules was given.
2954 if test "${enable_silent_rules+set}" = set; then :
2955   enableval=$enable_silent_rules;
2956 fi
2957
2958 case $enable_silent_rules in # (((
2959   yes) AM_DEFAULT_VERBOSITY=0;;
2960    no) AM_DEFAULT_VERBOSITY=1;;
2961     *) AM_DEFAULT_VERBOSITY=0;;
2962 esac
2963 am_make=${MAKE-make}
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2965 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2966 if ${am_cv_make_support_nested_variables+:} false; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   if $as_echo 'TRUE=$(BAR$(V))
2970 BAR0=false
2971 BAR1=true
2972 V=1
2973 am__doit:
2974         @$(TRUE)
2975 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2976   am_cv_make_support_nested_variables=yes
2977 else
2978   am_cv_make_support_nested_variables=no
2979 fi
2980 fi
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2982 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2983 if test $am_cv_make_support_nested_variables = yes; then
2984     AM_V='$(V)'
2985   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2986 else
2987   AM_V=$AM_DEFAULT_VERBOSITY
2988   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2989 fi
2990 AM_BACKSLASH='\'
2991
2992
2993
2994
2995 ac_ext=c
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if test -n "$ac_tool_prefix"; then
3001   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006   $as_echo_n "(cached) " >&6
3007 else
3008   if test -n "$CC"; then
3009   ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016     for ac_exec_ext in '' $ac_executable_extensions; do
3017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020     break 2
3021   fi
3022 done
3023   done
3024 IFS=$as_save_IFS
3025
3026 fi
3027 fi
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3032 else
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037
3038 fi
3039 if test -z "$ac_cv_prog_CC"; then
3040   ac_ct_CC=$CC
3041   # Extract the first word of "gcc", so it can be a program name with args.
3042 set dummy gcc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   if test -n "$ac_ct_CC"; then
3049   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054   IFS=$as_save_IFS
3055   test -z "$as_dir" && as_dir=.
3056     for ac_exec_ext in '' $ac_executable_extensions; do
3057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058     ac_cv_prog_ac_ct_CC="gcc"
3059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060     break 2
3061   fi
3062 done
3063   done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069 if test -n "$ac_ct_CC"; then
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3071 $as_echo "$ac_ct_CC" >&6; }
3072 else
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077   if test "x$ac_ct_CC" = x; then
3078     CC=""
3079   else
3080     case $cross_compiling:$ac_tool_warned in
3081 yes:)
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3085 esac
3086     CC=$ac_ct_CC
3087   fi
3088 else
3089   CC="$ac_cv_prog_CC"
3090 fi
3091
3092 if test -z "$CC"; then
3093           if test -n "$ac_tool_prefix"; then
3094     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3095 set dummy ${ac_tool_prefix}cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_CC+:} false; then :
3099   $as_echo_n "(cached) " >&6
3100 else
3101   if test -n "$CC"; then
3102   ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109     for ac_exec_ext in '' $ac_executable_extensions; do
3110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111     ac_cv_prog_CC="${ac_tool_prefix}cc"
3112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116   done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3125 else
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131   fi
3132 fi
3133 if test -z "$CC"; then
3134   # Extract the first word of "cc", so it can be a program name with args.
3135 set dummy cc; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_CC+:} false; then :
3139   $as_echo_n "(cached) " >&6
3140 else
3141   if test -n "$CC"; then
3142   ac_cv_prog_CC="$CC" # Let the user override the test.
3143 else
3144   ac_prog_rejected=no
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150     for ac_exec_ext in '' $ac_executable_extensions; do
3151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3153        ac_prog_rejected=yes
3154        continue
3155      fi
3156     ac_cv_prog_CC="cc"
3157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161   done
3162 IFS=$as_save_IFS
3163
3164 if test $ac_prog_rejected = yes; then
3165   # We found a bogon in the path, so make sure we never use it.
3166   set dummy $ac_cv_prog_CC
3167   shift
3168   if test $# != 0; then
3169     # We chose a different compiler from the bogus one.
3170     # However, it has the same basename, so the bogon will be chosen
3171     # first if we set CC to just the basename; use the full file name.
3172     shift
3173     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3174   fi
3175 fi
3176 fi
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3182 else
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188 fi
3189 if test -z "$CC"; then
3190   if test -n "$ac_tool_prefix"; then
3191   for ac_prog in cl.exe
3192   do
3193     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_CC+:} false; then :
3198   $as_echo_n "(cached) " >&6
3199 else
3200   if test -n "$CC"; then
3201   ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208     for ac_exec_ext in '' $ac_executable_extensions; do
3209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215   done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230     test -n "$CC" && break
3231   done
3232 fi
3233 if test -z "$CC"; then
3234   ac_ct_CC=$CC
3235   for ac_prog in cl.exe
3236 do
3237   # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   if test -n "$ac_ct_CC"; then
3245   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254     ac_cv_prog_ac_ct_CC="$ac_prog"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3267 $as_echo "$ac_ct_CC" >&6; }
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274   test -n "$ac_ct_CC" && break
3275 done
3276
3277   if test "x$ac_ct_CC" = x; then
3278     CC=""
3279   else
3280     case $cross_compiling:$ac_tool_warned in
3281 yes:)
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3285 esac
3286     CC=$ac_ct_CC
3287   fi
3288 fi
3289
3290 fi
3291
3292
3293 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "no acceptable C compiler found in \$PATH
3296 See \`config.log' for more details" "$LINENO" 5; }
3297
3298 # Provide some information about the compiler.
3299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3300 set X $ac_compile
3301 ac_compiler=$2
3302 for ac_option in --version -v -V -qversion; do
3303   { { ac_try="$ac_compiler $ac_option >&5"
3304 case "(($ac_try" in
3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306   *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3311   ac_status=$?
3312   if test -s conftest.err; then
3313     sed '10a\
3314 ... rest of stderr output deleted ...
3315          10q' conftest.err >conftest.er1
3316     cat conftest.er1 >&5
3317   fi
3318   rm -f conftest.er1 conftest.err
3319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320   test $ac_status = 0; }
3321 done
3322
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h.  */
3325
3326 int
3327 main ()
3328 {
3329
3330   ;
3331   return 0;
3332 }
3333 _ACEOF
3334 ac_clean_files_save=$ac_clean_files
3335 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3336 # Try to create an executable without -o first, disregard a.out.
3337 # It will help us diagnose broken compilers, and finding out an intuition
3338 # of exeext.
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3340 $as_echo_n "checking whether the C compiler works... " >&6; }
3341 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3342
3343 # The possible output files:
3344 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3345
3346 ac_rmfiles=
3347 for ac_file in $ac_files
3348 do
3349   case $ac_file in
3350     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3351     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3352   esac
3353 done
3354 rm -f $ac_rmfiles
3355
3356 if { { ac_try="$ac_link_default"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363   (eval "$ac_link_default") 2>&5
3364   ac_status=$?
3365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366   test $ac_status = 0; }; then :
3367   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3368 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3369 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3370 # so that the user can short-circuit this test for compilers unknown to
3371 # Autoconf.
3372 for ac_file in $ac_files ''
3373 do
3374   test -f "$ac_file" || continue
3375   case $ac_file in
3376     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3377         ;;
3378     [ab].out )
3379         # We found the default executable, but exeext='' is most
3380         # certainly right.
3381         break;;
3382     *.* )
3383         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3384         then :; else
3385            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386         fi
3387         # We set ac_cv_exeext here because the later test for it is not
3388         # safe: cross compilers may not add the suffix if given an `-o'
3389         # argument, so we may need to know it at that point already.
3390         # Even if this section looks crufty: it has the advantage of
3391         # actually working.
3392         break;;
3393     * )
3394         break;;
3395   esac
3396 done
3397 test "$ac_cv_exeext" = no && ac_cv_exeext=
3398
3399 else
3400   ac_file=''
3401 fi
3402 if test -z "$ac_file"; then :
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error 77 "C compiler cannot create executables
3411 See \`config.log' for more details" "$LINENO" 5; }
3412 else
3413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3414 $as_echo "yes" >&6; }
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3417 $as_echo_n "checking for C compiler default output file name... " >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3419 $as_echo "$ac_file" >&6; }
3420 ac_exeext=$ac_cv_exeext
3421
3422 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { { ac_try="$ac_link"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433   (eval "$ac_link") 2>&5
3434   ac_status=$?
3435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436   test $ac_status = 0; }; then :
3437   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3440 # `rm'.
3441 for ac_file in conftest.exe conftest conftest.*; do
3442   test -f "$ac_file" || continue
3443   case $ac_file in
3444     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446           break;;
3447     * ) break;;
3448   esac
3449 done
3450 else
3451   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details" "$LINENO" 5; }
3455 fi
3456 rm -f conftest conftest$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458 $as_echo "$ac_cv_exeext" >&6; }
3459
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3462 ac_exeext=$EXEEXT
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h.  */
3465 #include <stdio.h>
3466 int
3467 main ()
3468 {
3469 FILE *f = fopen ("conftest.out", "w");
3470  return ferror (f) || fclose (f) != 0;
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 ac_clean_files="$ac_clean_files conftest.out"
3477 # Check that the compiler produces executables we can run.  If not, either
3478 # the compiler is broken, or we cross compile.
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3480 $as_echo_n "checking whether we are cross compiling... " >&6; }
3481 if test "$cross_compiling" != yes; then
3482   { { ac_try="$ac_link"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489   (eval "$ac_link") 2>&5
3490   ac_status=$?
3491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492   test $ac_status = 0; }
3493   if { ac_try='./conftest$ac_cv_exeext'
3494   { { case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500   (eval "$ac_try") 2>&5
3501   ac_status=$?
3502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503   test $ac_status = 0; }; }; then
3504     cross_compiling=no
3505   else
3506     if test "$cross_compiling" = maybe; then
3507         cross_compiling=yes
3508     else
3509         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "cannot run C compiled programs.
3512 If you meant to cross compile, use \`--host'.
3513 See \`config.log' for more details" "$LINENO" 5; }
3514     fi
3515   fi
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3518 $as_echo "$cross_compiling" >&6; }
3519
3520 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3521 ac_clean_files=$ac_clean_files_save
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3523 $as_echo_n "checking for suffix of object files... " >&6; }
3524 if ${ac_cv_objext+:} false; then :
3525   $as_echo_n "(cached) " >&6
3526 else
3527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h.  */
3529
3530 int
3531 main ()
3532 {
3533
3534   ;
3535   return 0;
3536 }
3537 _ACEOF
3538 rm -f conftest.o conftest.obj
3539 if { { ac_try="$ac_compile"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546   (eval "$ac_compile") 2>&5
3547   ac_status=$?
3548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549   test $ac_status = 0; }; then :
3550   for ac_file in conftest.o conftest.obj conftest.*; do
3551   test -f "$ac_file" || continue;
3552   case $ac_file in
3553     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3554     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3555        break;;
3556   esac
3557 done
3558 else
3559   $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot compute suffix of object files: cannot compile
3565 See \`config.log' for more details" "$LINENO" 5; }
3566 fi
3567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3570 $as_echo "$ac_cv_objext" >&6; }
3571 OBJEXT=$ac_cv_objext
3572 ac_objext=$OBJEXT
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3574 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3575 if ${ac_cv_c_compiler_gnu+:} false; then :
3576   $as_echo_n "(cached) " >&6
3577 else
3578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h.  */
3580
3581 int
3582 main ()
3583 {
3584 #ifndef __GNUC__
3585        choke me
3586 #endif
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593   ac_compiler_gnu=yes
3594 else
3595   ac_compiler_gnu=no
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3599
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3602 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3603 if test $ac_compiler_gnu = yes; then
3604   GCC=yes
3605 else
3606   GCC=
3607 fi
3608 ac_test_CFLAGS=${CFLAGS+set}
3609 ac_save_CFLAGS=$CFLAGS
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3611 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3612 if ${ac_cv_prog_cc_g+:} false; then :
3613   $as_echo_n "(cached) " >&6
3614 else
3615   ac_save_c_werror_flag=$ac_c_werror_flag
3616    ac_c_werror_flag=yes
3617    ac_cv_prog_cc_g=no
3618    CFLAGS="-g"
3619    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h.  */
3621
3622 int
3623 main ()
3624 {
3625
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 if ac_fn_c_try_compile "$LINENO"; then :
3631   ac_cv_prog_cc_g=yes
3632 else
3633   CFLAGS=""
3634       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646
3647 else
3648   ac_c_werror_flag=$ac_save_c_werror_flag
3649          CFLAGS="-g"
3650          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h.  */
3652
3653 int
3654 main ()
3655 {
3656
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662   ac_cv_prog_cc_g=yes
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669    ac_c_werror_flag=$ac_save_c_werror_flag
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3672 $as_echo "$ac_cv_prog_cc_g" >&6; }
3673 if test "$ac_test_CFLAGS" = set; then
3674   CFLAGS=$ac_save_CFLAGS
3675 elif test $ac_cv_prog_cc_g = yes; then
3676   if test "$GCC" = yes; then
3677     CFLAGS="-g -O2"
3678   else
3679     CFLAGS="-g"
3680   fi
3681 else
3682   if test "$GCC" = yes; then
3683     CFLAGS="-O2"
3684   else
3685     CFLAGS=
3686   fi
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3689 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3690 if ${ac_cv_prog_cc_c89+:} false; then :
3691   $as_echo_n "(cached) " >&6
3692 else
3693   ac_cv_prog_cc_c89=no
3694 ac_save_CC=$CC
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h.  */
3697 #include <stdarg.h>
3698 #include <stdio.h>
3699 struct stat;
3700 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3701 struct buf { int x; };
3702 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3703 static char *e (p, i)
3704      char **p;
3705      int i;
3706 {
3707   return p[i];
3708 }
3709 static char *f (char * (*g) (char **, int), char **p, ...)
3710 {
3711   char *s;
3712   va_list v;
3713   va_start (v,p);
3714   s = g (p, va_arg (v,int));
3715   va_end (v);
3716   return s;
3717 }
3718
3719 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3720    function prototypes and stuff, but not '\xHH' hex character constants.
3721    These don't provoke an error unfortunately, instead are silently treated
3722    as 'x'.  The following induces an error, until -std is added to get
3723    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3724    array size at least.  It's necessary to write '\x00'==0 to get something
3725    that's true only with -std.  */
3726 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3727
3728 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3729    inside strings and character constants.  */
3730 #define FOO(x) 'x'
3731 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3732
3733 int test (int i, double x);
3734 struct s1 {int (*f) (int a);};
3735 struct s2 {int (*f) (double a);};
3736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3737 int argc;
3738 char **argv;
3739 int
3740 main ()
3741 {
3742 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3748         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3749 do
3750   CC="$ac_save_CC $ac_arg"
3751   if ac_fn_c_try_compile "$LINENO"; then :
3752   ac_cv_prog_cc_c89=$ac_arg
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext
3755   test "x$ac_cv_prog_cc_c89" != "xno" && break
3756 done
3757 rm -f conftest.$ac_ext
3758 CC=$ac_save_CC
3759
3760 fi
3761 # AC_CACHE_VAL
3762 case "x$ac_cv_prog_cc_c89" in
3763   x)
3764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3765 $as_echo "none needed" >&6; } ;;
3766   xno)
3767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3768 $as_echo "unsupported" >&6; } ;;
3769   *)
3770     CC="$CC $ac_cv_prog_cc_c89"
3771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3772 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3773 esac
3774 if test "x$ac_cv_prog_cc_c89" != xno; then :
3775
3776 fi
3777
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 DEPDIR="${am__leading_dot}deps"
3784
3785 ac_config_commands="$ac_config_commands depfiles"
3786
3787
3788 am_make=${MAKE-make}
3789 cat > confinc << 'END'
3790 am__doit:
3791         @echo this is the am__doit target
3792 .PHONY: am__doit
3793 END
3794 # If we don't find an include directive, just comment out the code.
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3796 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3797 am__include="#"
3798 am__quote=
3799 _am_result=none
3800 # First try GNU make style include.
3801 echo "include confinc" > confmf
3802 # Ignore all kinds of additional output from 'make'.
3803 case `$am_make -s -f confmf 2> /dev/null` in #(
3804 *the\ am__doit\ target*)
3805   am__include=include
3806   am__quote=
3807   _am_result=GNU
3808   ;;
3809 esac
3810 # Now try BSD make style include.
3811 if test "$am__include" = "#"; then
3812    echo '.include "confinc"' > confmf
3813    case `$am_make -s -f confmf 2> /dev/null` in #(
3814    *the\ am__doit\ target*)
3815      am__include=.include
3816      am__quote="\""
3817      _am_result=BSD
3818      ;;
3819    esac
3820 fi
3821
3822
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3824 $as_echo "$_am_result" >&6; }
3825 rm -f confinc confmf
3826
3827 # Check whether --enable-dependency-tracking was given.
3828 if test "${enable_dependency_tracking+set}" = set; then :
3829   enableval=$enable_dependency_tracking;
3830 fi
3831
3832 if test "x$enable_dependency_tracking" != xno; then
3833   am_depcomp="$ac_aux_dir/depcomp"
3834   AMDEPBACKSLASH='\'
3835   am__nodep='_no'
3836 fi
3837  if test "x$enable_dependency_tracking" != xno; then
3838   AMDEP_TRUE=
3839   AMDEP_FALSE='#'
3840 else
3841   AMDEP_TRUE='#'
3842   AMDEP_FALSE=
3843 fi
3844
3845
3846
3847 depcc="$CC"   am_compiler_list=
3848
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3850 $as_echo_n "checking dependency style of $depcc... " >&6; }
3851 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3852   $as_echo_n "(cached) " >&6
3853 else
3854   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3855   # We make a subdir and do the tests there.  Otherwise we can end up
3856   # making bogus files that we don't know about and never remove.  For
3857   # instance it was reported that on HP-UX the gcc test will end up
3858   # making a dummy file named 'D' -- because '-MD' means "put the output
3859   # in D".
3860   rm -rf conftest.dir
3861   mkdir conftest.dir
3862   # Copy depcomp to subdir because otherwise we won't find it if we're
3863   # using a relative directory.
3864   cp "$am_depcomp" conftest.dir
3865   cd conftest.dir
3866   # We will build objects and dependencies in a subdirectory because
3867   # it helps to detect inapplicable dependency modes.  For instance
3868   # both Tru64's cc and ICC support -MD to output dependencies as a
3869   # side effect of compilation, but ICC will put the dependencies in
3870   # the current directory while Tru64 will put them in the object
3871   # directory.
3872   mkdir sub
3873
3874   am_cv_CC_dependencies_compiler_type=none
3875   if test "$am_compiler_list" = ""; then
3876      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3877   fi
3878   am__universal=false
3879   case " $depcc " in #(
3880      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3881      esac
3882
3883   for depmode in $am_compiler_list; do
3884     # Setup a source with many dependencies, because some compilers
3885     # like to wrap large dependency lists on column 80 (with \), and
3886     # we should not choose a depcomp mode which is confused by this.
3887     #
3888     # We need to recreate these files for each test, as the compiler may
3889     # overwrite some of them when testing with obscure command lines.
3890     # This happens at least with the AIX C compiler.
3891     : > sub/conftest.c
3892     for i in 1 2 3 4 5 6; do
3893       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3894       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3895       # Solaris 10 /bin/sh.
3896       echo '/* dummy */' > sub/conftst$i.h
3897     done
3898     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3899
3900     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3901     # mode.  It turns out that the SunPro C++ compiler does not properly
3902     # handle '-M -o', and we need to detect this.  Also, some Intel
3903     # versions had trouble with output in subdirs.
3904     am__obj=sub/conftest.${OBJEXT-o}
3905     am__minus_obj="-o $am__obj"
3906     case $depmode in
3907     gcc)
3908       # This depmode causes a compiler race in universal mode.
3909       test "$am__universal" = false || continue
3910       ;;
3911     nosideeffect)
3912       # After this tag, mechanisms are not by side-effect, so they'll
3913       # only be used when explicitly requested.
3914       if test "x$enable_dependency_tracking" = xyes; then
3915         continue
3916       else
3917         break
3918       fi
3919       ;;
3920     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3921       # This compiler won't grok '-c -o', but also, the minuso test has
3922       # not run yet.  These depmodes are late enough in the game, and
3923       # so weak that their functioning should not be impacted.
3924       am__obj=conftest.${OBJEXT-o}
3925       am__minus_obj=
3926       ;;
3927     none) break ;;
3928     esac
3929     if depmode=$depmode \
3930        source=sub/conftest.c object=$am__obj \
3931        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3933          >/dev/null 2>conftest.err &&
3934        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3935        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3936        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3937        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3938       # icc doesn't choke on unknown options, it will just issue warnings
3939       # or remarks (even with -Werror).  So we grep stderr for any message
3940       # that says an option was ignored or not supported.
3941       # When given -MP, icc 7.0 and 7.1 complain thusly:
3942       #   icc: Command line warning: ignoring option '-M'; no argument required
3943       # The diagnosis changed in icc 8.0:
3944       #   icc: Command line remark: option '-MP' not supported
3945       if (grep 'ignoring option' conftest.err ||
3946           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3947         am_cv_CC_dependencies_compiler_type=$depmode
3948         break
3949       fi
3950     fi
3951   done
3952
3953   cd ..
3954   rm -rf conftest.dir
3955 else
3956   am_cv_CC_dependencies_compiler_type=none
3957 fi
3958
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3961 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3962 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3963
3964  if
3965   test "x$enable_dependency_tracking" != xno \
3966   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3967   am__fastdepCC_TRUE=
3968   am__fastdepCC_FALSE='#'
3969 else
3970   am__fastdepCC_TRUE='#'
3971   am__fastdepCC_FALSE=
3972 fi
3973
3974
3975 if test "x$CC" != xcc; then
3976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3977 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3978 else
3979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3980 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3981 fi
3982 set dummy $CC; ac_cc=`$as_echo "$2" |
3983                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3984 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3985   $as_echo_n "(cached) " >&6
3986 else
3987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h.  */
3989
3990 int
3991 main ()
3992 {
3993
3994   ;
3995   return 0;
3996 }
3997 _ACEOF
3998 # Make sure it works both with $CC and with simple cc.
3999 # We do the test twice because some compilers refuse to overwrite an
4000 # existing .o file with -o, though they will create one.
4001 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4002 rm -f conftest2.*
4003 if { { case "(($ac_try" in
4004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005   *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009   (eval "$ac_try") 2>&5
4010   ac_status=$?
4011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012   test $ac_status = 0; } &&
4013    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015   *) ac_try_echo=$ac_try;;
4016 esac
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 $as_echo "$ac_try_echo"; } >&5
4019   (eval "$ac_try") 2>&5
4020   ac_status=$?
4021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022   test $ac_status = 0; };
4023 then
4024   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4025   if test "x$CC" != xcc; then
4026     # Test first that cc exists at all.
4027     if { ac_try='cc -c conftest.$ac_ext >&5'
4028   { { case "(($ac_try" in
4029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030   *) ac_try_echo=$ac_try;;
4031 esac
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034   (eval "$ac_try") 2>&5
4035   ac_status=$?
4036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037   test $ac_status = 0; }; }; then
4038       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4039       rm -f conftest2.*
4040       if { { case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 $as_echo "$ac_try_echo"; } >&5
4046   (eval "$ac_try") 2>&5
4047   ac_status=$?
4048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049   test $ac_status = 0; } &&
4050          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052   *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056   (eval "$ac_try") 2>&5
4057   ac_status=$?
4058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059   test $ac_status = 0; };
4060       then
4061         # cc works too.
4062         :
4063       else
4064         # cc exists but doesn't like -o.
4065         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4066       fi
4067     fi
4068   fi
4069 else
4070   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4071 fi
4072 rm -f core conftest*
4073
4074 fi
4075 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 $as_echo "yes" >&6; }
4078 else
4079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4081
4082 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4083
4084 fi
4085
4086 # FIXME: we rely on the cache variable name because
4087 # there is no other way.
4088 set dummy $CC
4089 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4090 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4091 if test "$am_t" != yes; then
4092    # Losing compiler, so override with the script.
4093    # FIXME: It is wrong to rewrite CC.
4094    # But if we don't then we get into trouble of one sort or another.
4095    # A longer-term fix would be to have automake use am__CC in this case,
4096    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4097    CC="$am_aux_dir/compile $CC"
4098 fi
4099
4100
4101
4102
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4109 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4110 # On Suns, sometimes $CPP names a directory.
4111 if test -n "$CPP" && test -d "$CPP"; then
4112   CPP=
4113 fi
4114 if test -z "$CPP"; then
4115   if ${ac_cv_prog_CPP+:} false; then :
4116   $as_echo_n "(cached) " >&6
4117 else
4118       # Double quotes because CPP needs to be expanded
4119     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4120     do
4121       ac_preproc_ok=false
4122 for ac_c_preproc_warn_flag in '' yes
4123 do
4124   # Use a header file that comes with gcc, so configuring glibc
4125   # with a fresh cross-compiler works.
4126   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127   # <limits.h> exists even on freestanding compilers.
4128   # On the NeXT, cc -E runs the code through the compiler's parser,
4129   # not just through cpp. "Syntax error" is here to catch this case.
4130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h.  */
4132 #ifdef __STDC__
4133 # include <limits.h>
4134 #else
4135 # include <assert.h>
4136 #endif
4137                      Syntax error
4138 _ACEOF
4139 if ac_fn_c_try_cpp "$LINENO"; then :
4140
4141 else
4142   # Broken: fails on valid input.
4143 continue
4144 fi
4145 rm -f conftest.err conftest.i conftest.$ac_ext
4146
4147   # OK, works on sane cases.  Now check whether nonexistent headers
4148   # can be detected and how.
4149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h.  */
4151 #include <ac_nonexistent.h>
4152 _ACEOF
4153 if ac_fn_c_try_cpp "$LINENO"; then :
4154   # Broken: success on invalid input.
4155 continue
4156 else
4157   # Passes both tests.
4158 ac_preproc_ok=:
4159 break
4160 fi
4161 rm -f conftest.err conftest.i conftest.$ac_ext
4162
4163 done
4164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4165 rm -f conftest.i conftest.err conftest.$ac_ext
4166 if $ac_preproc_ok; then :
4167   break
4168 fi
4169
4170     done
4171     ac_cv_prog_CPP=$CPP
4172
4173 fi
4174   CPP=$ac_cv_prog_CPP
4175 else
4176   ac_cv_prog_CPP=$CPP
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4179 $as_echo "$CPP" >&6; }
4180 ac_preproc_ok=false
4181 for ac_c_preproc_warn_flag in '' yes
4182 do
4183   # Use a header file that comes with gcc, so configuring glibc
4184   # with a fresh cross-compiler works.
4185   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4186   # <limits.h> exists even on freestanding compilers.
4187   # On the NeXT, cc -E runs the code through the compiler's parser,
4188   # not just through cpp. "Syntax error" is here to catch this case.
4189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h.  */
4191 #ifdef __STDC__
4192 # include <limits.h>
4193 #else
4194 # include <assert.h>
4195 #endif
4196                      Syntax error
4197 _ACEOF
4198 if ac_fn_c_try_cpp "$LINENO"; then :
4199
4200 else
4201   # Broken: fails on valid input.
4202 continue
4203 fi
4204 rm -f conftest.err conftest.i conftest.$ac_ext
4205
4206   # OK, works on sane cases.  Now check whether nonexistent headers
4207   # can be detected and how.
4208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h.  */
4210 #include <ac_nonexistent.h>
4211 _ACEOF
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4213   # Broken: success on invalid input.
4214 continue
4215 else
4216   # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4219 fi
4220 rm -f conftest.err conftest.i conftest.$ac_ext
4221
4222 done
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.i conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then :
4226
4227 else
4228   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details" "$LINENO" 5; }
4232 fi
4233
4234 ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4242 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4243 if ${ac_cv_path_GREP+:} false; then :
4244   $as_echo_n "(cached) " >&6
4245 else
4246   if test -z "$GREP"; then
4247   ac_path_GREP_found=false
4248   # Loop through the user's path and test for each of PROGNAME-LIST
4249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254     for ac_prog in grep ggrep; do
4255     for ac_exec_ext in '' $ac_executable_extensions; do
4256       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4257       as_fn_executable_p "$ac_path_GREP" || continue
4258 # Check for GNU ac_path_GREP and select it if it is found.
4259   # Check for GNU $ac_path_GREP
4260 case `"$ac_path_GREP" --version 2>&1` in
4261 *GNU*)
4262   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4263 *)
4264   ac_count=0
4265   $as_echo_n 0123456789 >"conftest.in"
4266   while :
4267   do
4268     cat "conftest.in" "conftest.in" >"conftest.tmp"
4269     mv "conftest.tmp" "conftest.in"
4270     cp "conftest.in" "conftest.nl"
4271     $as_echo 'GREP' >> "conftest.nl"
4272     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4273     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4274     as_fn_arith $ac_count + 1 && ac_count=$as_val
4275     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4276       # Best one so far, save it but keep looking for a better one
4277       ac_cv_path_GREP="$ac_path_GREP"
4278       ac_path_GREP_max=$ac_count
4279     fi
4280     # 10*(2^10) chars as input seems more than enough
4281     test $ac_count -gt 10 && break
4282   done
4283   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4284 esac
4285
4286       $ac_path_GREP_found && break 3
4287     done
4288   done
4289   done
4290 IFS=$as_save_IFS
4291   if test -z "$ac_cv_path_GREP"; then
4292     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4293   fi
4294 else
4295   ac_cv_path_GREP=$GREP
4296 fi
4297
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4300 $as_echo "$ac_cv_path_GREP" >&6; }
4301  GREP="$ac_cv_path_GREP"
4302
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4305 $as_echo_n "checking for egrep... " >&6; }
4306 if ${ac_cv_path_EGREP+:} false; then :
4307   $as_echo_n "(cached) " >&6
4308 else
4309   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4310    then ac_cv_path_EGREP="$GREP -E"
4311    else
4312      if test -z "$EGREP"; then
4313   ac_path_EGREP_found=false
4314   # Loop through the user's path and test for each of PROGNAME-LIST
4315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4317 do
4318   IFS=$as_save_IFS
4319   test -z "$as_dir" && as_dir=.
4320     for ac_prog in egrep; do
4321     for ac_exec_ext in '' $ac_executable_extensions; do
4322       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4323       as_fn_executable_p "$ac_path_EGREP" || continue
4324 # Check for GNU ac_path_EGREP and select it if it is found.
4325   # Check for GNU $ac_path_EGREP
4326 case `"$ac_path_EGREP" --version 2>&1` in
4327 *GNU*)
4328   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4329 *)
4330   ac_count=0
4331   $as_echo_n 0123456789 >"conftest.in"
4332   while :
4333   do
4334     cat "conftest.in" "conftest.in" >"conftest.tmp"
4335     mv "conftest.tmp" "conftest.in"
4336     cp "conftest.in" "conftest.nl"
4337     $as_echo 'EGREP' >> "conftest.nl"
4338     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4339     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4340     as_fn_arith $ac_count + 1 && ac_count=$as_val
4341     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4342       # Best one so far, save it but keep looking for a better one
4343       ac_cv_path_EGREP="$ac_path_EGREP"
4344       ac_path_EGREP_max=$ac_count
4345     fi
4346     # 10*(2^10) chars as input seems more than enough
4347     test $ac_count -gt 10 && break
4348   done
4349   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4350 esac
4351
4352       $ac_path_EGREP_found && break 3
4353     done
4354   done
4355   done
4356 IFS=$as_save_IFS
4357   if test -z "$ac_cv_path_EGREP"; then
4358     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4359   fi
4360 else
4361   ac_cv_path_EGREP=$EGREP
4362 fi
4363
4364    fi
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4367 $as_echo "$ac_cv_path_EGREP" >&6; }
4368  EGREP="$ac_cv_path_EGREP"
4369
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4372 $as_echo_n "checking for ANSI C header files... " >&6; }
4373 if ${ac_cv_header_stdc+:} false; then :
4374   $as_echo_n "(cached) " >&6
4375 else
4376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h.  */
4378 #include <stdlib.h>
4379 #include <stdarg.h>
4380 #include <string.h>
4381 #include <float.h>
4382
4383 int
4384 main ()
4385 {
4386
4387   ;
4388   return 0;
4389 }
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392   ac_cv_header_stdc=yes
4393 else
4394   ac_cv_header_stdc=no
4395 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397
4398 if test $ac_cv_header_stdc = yes; then
4399   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h.  */
4402 #include <string.h>
4403
4404 _ACEOF
4405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4406   $EGREP "memchr" >/dev/null 2>&1; then :
4407
4408 else
4409   ac_cv_header_stdc=no
4410 fi
4411 rm -f conftest*
4412
4413 fi
4414
4415 if test $ac_cv_header_stdc = yes; then
4416   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h.  */
4419 #include <stdlib.h>
4420
4421 _ACEOF
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423   $EGREP "free" >/dev/null 2>&1; then :
4424
4425 else
4426   ac_cv_header_stdc=no
4427 fi
4428 rm -f conftest*
4429
4430 fi
4431
4432 if test $ac_cv_header_stdc = yes; then
4433   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4434   if test "$cross_compiling" = yes; then :
4435   :
4436 else
4437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h.  */
4439 #include <ctype.h>
4440 #include <stdlib.h>
4441 #if ((' ' & 0x0FF) == 0x020)
4442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4444 #else
4445 # define ISLOWER(c) \
4446                    (('a' <= (c) && (c) <= 'i') \
4447                      || ('j' <= (c) && (c) <= 'r') \
4448                      || ('s' <= (c) && (c) <= 'z'))
4449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4450 #endif
4451
4452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4453 int
4454 main ()
4455 {
4456   int i;
4457   for (i = 0; i < 256; i++)
4458     if (XOR (islower (i), ISLOWER (i))
4459         || toupper (i) != TOUPPER (i))
4460       return 2;
4461   return 0;
4462 }
4463 _ACEOF
4464 if ac_fn_c_try_run "$LINENO"; then :
4465
4466 else
4467   ac_cv_header_stdc=no
4468 fi
4469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4470   conftest.$ac_objext conftest.beam conftest.$ac_ext
4471 fi
4472
4473 fi
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4476 $as_echo "$ac_cv_header_stdc" >&6; }
4477 if test $ac_cv_header_stdc = yes; then
4478
4479 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4480
4481 fi
4482
4483 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4484 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4485                   inttypes.h stdint.h unistd.h
4486 do :
4487   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4488 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4489 "
4490 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4491   cat >>confdefs.h <<_ACEOF
4492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4493 _ACEOF
4494
4495 fi
4496
4497 done
4498
4499
4500 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
4501 case $ac_cv_c_uint8_t in #(
4502   no|yes) ;; #(
4503   *)
4504
4505 $as_echo "#define _UINT8_T 1" >>confdefs.h
4506
4507
4508 cat >>confdefs.h <<_ACEOF
4509 #define uint8_t $ac_cv_c_uint8_t
4510 _ACEOF
4511 ;;
4512   esac
4513
4514 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
4515 case $ac_cv_c_uint16_t in #(
4516   no|yes) ;; #(
4517   *)
4518
4519
4520 cat >>confdefs.h <<_ACEOF
4521 #define uint16_t $ac_cv_c_uint16_t
4522 _ACEOF
4523 ;;
4524   esac
4525
4526 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
4527 case $ac_cv_c_int32_t in #(
4528   no|yes) ;; #(
4529   *)
4530
4531 cat >>confdefs.h <<_ACEOF
4532 #define int32_t $ac_cv_c_int32_t
4533 _ACEOF
4534 ;;
4535 esac
4536
4537 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
4538 case $ac_cv_c_uint32_t in #(
4539   no|yes) ;; #(
4540   *)
4541
4542 $as_echo "#define _UINT32_T 1" >>confdefs.h
4543
4544
4545 cat >>confdefs.h <<_ACEOF
4546 #define uint32_t $ac_cv_c_uint32_t
4547 _ACEOF
4548 ;;
4549   esac
4550
4551 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
4552 case $ac_cv_c_uint64_t in #(
4553   no|yes) ;; #(
4554   *)
4555
4556 $as_echo "#define _UINT64_T 1" >>confdefs.h
4557
4558
4559 cat >>confdefs.h <<_ACEOF
4560 #define uint64_t $ac_cv_c_uint64_t
4561 _ACEOF
4562 ;;
4563   esac
4564
4565 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4566 if test "x$ac_cv_type_size_t" = xyes; then :
4567
4568 else
4569
4570 cat >>confdefs.h <<_ACEOF
4571 #define size_t unsigned int
4572 _ACEOF
4573
4574 fi
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4577 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4578 if ${ac_cv_header_stdbool_h+:} false; then :
4579   $as_echo_n "(cached) " >&6
4580 else
4581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h.  */
4583
4584              #include <stdbool.h>
4585              #ifndef bool
4586               "error: bool is not defined"
4587              #endif
4588              #ifndef false
4589               "error: false is not defined"
4590              #endif
4591              #if false
4592               "error: false is not 0"
4593              #endif
4594              #ifndef true
4595               "error: true is not defined"
4596              #endif
4597              #if true != 1
4598               "error: true is not 1"
4599              #endif
4600              #ifndef __bool_true_false_are_defined
4601               "error: __bool_true_false_are_defined is not defined"
4602              #endif
4603
4604              struct s { _Bool s: 1; _Bool t; } s;
4605
4606              char a[true == 1 ? 1 : -1];
4607              char b[false == 0 ? 1 : -1];
4608              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4609              char d[(bool) 0.5 == true ? 1 : -1];
4610              /* See body of main program for 'e'.  */
4611              char f[(_Bool) 0.0 == false ? 1 : -1];
4612              char g[true];
4613              char h[sizeof (_Bool)];
4614              char i[sizeof s.t];
4615              enum { j = false, k = true, l = false * true, m = true * 256 };
4616              /* The following fails for
4617                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4618              _Bool n[m];
4619              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4620              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4621              /* Catch a bug in an HP-UX C compiler.  See
4622                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4623                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4624               */
4625              _Bool q = true;
4626              _Bool *pq = &q;
4627
4628 int
4629 main ()
4630 {
4631
4632              bool e = &s;
4633              *pq |= q;
4634              *pq |= ! q;
4635              /* Refer to every declared value, to avoid compiler optimizations.  */
4636              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4637                      + !m + !n + !o + !p + !q + !pq);
4638
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 if ac_fn_c_try_compile "$LINENO"; then :
4644   ac_cv_header_stdbool_h=yes
4645 else
4646   ac_cv_header_stdbool_h=no
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4651 $as_echo "$ac_cv_header_stdbool_h" >&6; }
4652    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4653 if test "x$ac_cv_type__Bool" = xyes; then :
4654
4655 cat >>confdefs.h <<_ACEOF
4656 #define HAVE__BOOL 1
4657 _ACEOF
4658
4659
4660 fi
4661
4662
4663 if test $ac_cv_header_stdbool_h = yes; then
4664
4665 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4666
4667 fi
4668
4669
4670 opt_CFLAGS="--std=c99 -Wall -Wextra -pedantic -g -O3 -D_C99_SOURCE"
4671 dbg_CFLAGS="--std=c99 -Wall -Wextra -pedantic -g -O0 -D_C99_SOURCE"
4672
4673 # Check whether --enable-debug was given.
4674 if test "${enable_debug+set}" = set; then :
4675   enableval=$enable_debug;
4676 else
4677   enable_debug=no
4678 fi
4679
4680
4681 if test "x$enable_debug" = xyes; then :
4682   CFLAGS="$dbg_CFLAGS"
4683 else
4684   CFLAGS="$opt_CFLAGS"
4685 fi
4686
4687 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
4688
4689 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4690  # needed for fileno
4691
4692 case `pwd` in
4693   *\ * | *\     *)
4694     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4695 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4696 esac
4697
4698
4699
4700 macro_version='2.4.2'
4701 macro_revision='1.3337'
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715 ltmain="$ac_aux_dir/ltmain.sh"
4716
4717 # Make sure we can run config.sub.
4718 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4719   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4722 $as_echo_n "checking build system type... " >&6; }
4723 if ${ac_cv_build+:} false; then :
4724   $as_echo_n "(cached) " >&6
4725 else
4726   ac_build_alias=$build_alias
4727 test "x$ac_build_alias" = x &&
4728   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4729 test "x$ac_build_alias" = x &&
4730   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4731 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4732   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4733
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4736 $as_echo "$ac_cv_build" >&6; }
4737 case $ac_cv_build in
4738 *-*-*) ;;
4739 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4740 esac
4741 build=$ac_cv_build
4742 ac_save_IFS=$IFS; IFS='-'
4743 set x $ac_cv_build
4744 shift
4745 build_cpu=$1
4746 build_vendor=$2
4747 shift; shift
4748 # Remember, the first character of IFS is used to create $*,
4749 # except with old shells:
4750 build_os=$*
4751 IFS=$ac_save_IFS
4752 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4753
4754
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4756 $as_echo_n "checking host system type... " >&6; }
4757 if ${ac_cv_host+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   if test "x$host_alias" = x; then
4761   ac_cv_host=$ac_cv_build
4762 else
4763   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4764     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4765 fi
4766
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4769 $as_echo "$ac_cv_host" >&6; }
4770 case $ac_cv_host in
4771 *-*-*) ;;
4772 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4773 esac
4774 host=$ac_cv_host
4775 ac_save_IFS=$IFS; IFS='-'
4776 set x $ac_cv_host
4777 shift
4778 host_cpu=$1
4779 host_vendor=$2
4780 shift; shift
4781 # Remember, the first character of IFS is used to create $*,
4782 # except with old shells:
4783 host_os=$*
4784 IFS=$ac_save_IFS
4785 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4786
4787
4788 # Backslashify metacharacters that are still active within
4789 # double-quoted strings.
4790 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4791
4792 # Same as above, but do not quote variable references.
4793 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4794
4795 # Sed substitution to delay expansion of an escaped shell variable in a
4796 # double_quote_subst'ed string.
4797 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4798
4799 # Sed substitution to delay expansion of an escaped single quote.
4800 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4801
4802 # Sed substitution to avoid accidental globbing in evaled expressions
4803 no_glob_subst='s/\*/\\\*/g'
4804
4805 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4806 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4807 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4808
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4810 $as_echo_n "checking how to print strings... " >&6; }
4811 # Test print first, because it will be a builtin if present.
4812 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4813    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4814   ECHO='print -r --'
4815 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4816   ECHO='printf %s\n'
4817 else
4818   # Use this function as a fallback that always works.
4819   func_fallback_echo ()
4820   {
4821     eval 'cat <<_LTECHO_EOF
4822 $1
4823 _LTECHO_EOF'
4824   }
4825   ECHO='func_fallback_echo'
4826 fi
4827
4828 # func_echo_all arg...
4829 # Invoke $ECHO with all args, space-separated.
4830 func_echo_all ()
4831 {
4832     $ECHO ""
4833 }
4834
4835 case "$ECHO" in
4836   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4837 $as_echo "printf" >&6; } ;;
4838   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4839 $as_echo "print -r" >&6; } ;;
4840   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4841 $as_echo "cat" >&6; } ;;
4842 esac
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4858 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4859 if ${ac_cv_path_SED+:} false; then :
4860   $as_echo_n "(cached) " >&6
4861 else
4862             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4863      for ac_i in 1 2 3 4 5 6 7; do
4864        ac_script="$ac_script$as_nl$ac_script"
4865      done
4866      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4867      { ac_script=; unset ac_script;}
4868      if test -z "$SED"; then
4869   ac_path_SED_found=false
4870   # Loop through the user's path and test for each of PROGNAME-LIST
4871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4873 do
4874   IFS=$as_save_IFS
4875   test -z "$as_dir" && as_dir=.
4876     for ac_prog in sed gsed; do
4877     for ac_exec_ext in '' $ac_executable_extensions; do
4878       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4879       as_fn_executable_p "$ac_path_SED" || continue
4880 # Check for GNU ac_path_SED and select it if it is found.
4881   # Check for GNU $ac_path_SED
4882 case `"$ac_path_SED" --version 2>&1` in
4883 *GNU*)
4884   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4885 *)
4886   ac_count=0
4887   $as_echo_n 0123456789 >"conftest.in"
4888   while :
4889   do
4890     cat "conftest.in" "conftest.in" >"conftest.tmp"
4891     mv "conftest.tmp" "conftest.in"
4892     cp "conftest.in" "conftest.nl"
4893     $as_echo '' >> "conftest.nl"
4894     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896     as_fn_arith $ac_count + 1 && ac_count=$as_val
4897     if test $ac_count -gt ${ac_path_SED_max-0}; then
4898       # Best one so far, save it but keep looking for a better one
4899       ac_cv_path_SED="$ac_path_SED"
4900       ac_path_SED_max=$ac_count
4901     fi
4902     # 10*(2^10) chars as input seems more than enough
4903     test $ac_count -gt 10 && break
4904   done
4905   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4906 esac
4907
4908       $ac_path_SED_found && break 3
4909     done
4910   done
4911   done
4912 IFS=$as_save_IFS
4913   if test -z "$ac_cv_path_SED"; then
4914     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4915   fi
4916 else
4917   ac_cv_path_SED=$SED
4918 fi
4919
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4922 $as_echo "$ac_cv_path_SED" >&6; }
4923  SED="$ac_cv_path_SED"
4924   rm -f conftest.sed
4925
4926 test -z "$SED" && SED=sed
4927 Xsed="$SED -e 1s/^X//"
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4940 $as_echo_n "checking for fgrep... " >&6; }
4941 if ${ac_cv_path_FGREP+:} false; then :
4942   $as_echo_n "(cached) " >&6
4943 else
4944   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4945    then ac_cv_path_FGREP="$GREP -F"
4946    else
4947      if test -z "$FGREP"; then
4948   ac_path_FGREP_found=false
4949   # Loop through the user's path and test for each of PROGNAME-LIST
4950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955     for ac_prog in fgrep; do
4956     for ac_exec_ext in '' $ac_executable_extensions; do
4957       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4958       as_fn_executable_p "$ac_path_FGREP" || continue
4959 # Check for GNU ac_path_FGREP and select it if it is found.
4960   # Check for GNU $ac_path_FGREP
4961 case `"$ac_path_FGREP" --version 2>&1` in
4962 *GNU*)
4963   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4964 *)
4965   ac_count=0
4966   $as_echo_n 0123456789 >"conftest.in"
4967   while :
4968   do
4969     cat "conftest.in" "conftest.in" >"conftest.tmp"
4970     mv "conftest.tmp" "conftest.in"
4971     cp "conftest.in" "conftest.nl"
4972     $as_echo 'FGREP' >> "conftest.nl"
4973     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4974     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4975     as_fn_arith $ac_count + 1 && ac_count=$as_val
4976     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4977       # Best one so far, save it but keep looking for a better one
4978       ac_cv_path_FGREP="$ac_path_FGREP"
4979       ac_path_FGREP_max=$ac_count
4980     fi
4981     # 10*(2^10) chars as input seems more than enough
4982     test $ac_count -gt 10 && break
4983   done
4984   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985 esac
4986
4987       $ac_path_FGREP_found && break 3
4988     done
4989   done
4990   done
4991 IFS=$as_save_IFS
4992   if test -z "$ac_cv_path_FGREP"; then
4993     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4994   fi
4995 else
4996   ac_cv_path_FGREP=$FGREP
4997 fi
4998
4999    fi
5000 fi
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5002 $as_echo "$ac_cv_path_FGREP" >&6; }
5003  FGREP="$ac_cv_path_FGREP"
5004
5005
5006 test -z "$GREP" && GREP=grep
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026 # Check whether --with-gnu-ld was given.
5027 if test "${with_gnu_ld+set}" = set; then :
5028   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5029 else
5030   with_gnu_ld=no
5031 fi
5032
5033 ac_prog=ld
5034 if test "$GCC" = yes; then
5035   # Check if gcc -print-prog-name=ld gives a path.
5036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5037 $as_echo_n "checking for ld used by $CC... " >&6; }
5038   case $host in
5039   *-*-mingw*)
5040     # gcc leaves a trailing carriage return which upsets mingw
5041     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5042   *)
5043     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5044   esac
5045   case $ac_prog in
5046     # Accept absolute paths.
5047     [\\/]* | ?:[\\/]*)
5048       re_direlt='/[^/][^/]*/\.\./'
5049       # Canonicalize the pathname of ld
5050       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5051       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5052         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5053       done
5054       test -z "$LD" && LD="$ac_prog"
5055       ;;
5056   "")
5057     # If it fails, then pretend we aren't using GCC.
5058     ac_prog=ld
5059     ;;
5060   *)
5061     # If it is relative, then search for the first ld in PATH.
5062     with_gnu_ld=unknown
5063     ;;
5064   esac
5065 elif test "$with_gnu_ld" = yes; then
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5067 $as_echo_n "checking for GNU ld... " >&6; }
5068 else
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5070 $as_echo_n "checking for non-GNU ld... " >&6; }
5071 fi
5072 if ${lt_cv_path_LD+:} false; then :
5073   $as_echo_n "(cached) " >&6
5074 else
5075   if test -z "$LD"; then
5076   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5077   for ac_dir in $PATH; do
5078     IFS="$lt_save_ifs"
5079     test -z "$ac_dir" && ac_dir=.
5080     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5081       lt_cv_path_LD="$ac_dir/$ac_prog"
5082       # Check to see if the program is GNU ld.  I'd rather use --version,
5083       # but apparently some variants of GNU ld only accept -v.
5084       # Break only if it was the GNU/non-GNU ld that we prefer.
5085       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5086       *GNU* | *'with BFD'*)
5087         test "$with_gnu_ld" != no && break
5088         ;;
5089       *)
5090         test "$with_gnu_ld" != yes && break
5091         ;;
5092       esac
5093     fi
5094   done
5095   IFS="$lt_save_ifs"
5096 else
5097   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5098 fi
5099 fi
5100
5101 LD="$lt_cv_path_LD"
5102 if test -n "$LD"; then
5103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5104 $as_echo "$LD" >&6; }
5105 else
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5108 fi
5109 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5111 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5112 if ${lt_cv_prog_gnu_ld+:} false; then :
5113   $as_echo_n "(cached) " >&6
5114 else
5115   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5116 case `$LD -v 2>&1 </dev/null` in
5117 *GNU* | *'with BFD'*)
5118   lt_cv_prog_gnu_ld=yes
5119   ;;
5120 *)
5121   lt_cv_prog_gnu_ld=no
5122   ;;
5123 esac
5124 fi
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5126 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5127 with_gnu_ld=$lt_cv_prog_gnu_ld
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5138 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5139 if ${lt_cv_path_NM+:} false; then :
5140   $as_echo_n "(cached) " >&6
5141 else
5142   if test -n "$NM"; then
5143   # Let the user override the test.
5144   lt_cv_path_NM="$NM"
5145 else
5146   lt_nm_to_check="${ac_tool_prefix}nm"
5147   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5148     lt_nm_to_check="$lt_nm_to_check nm"
5149   fi
5150   for lt_tmp_nm in $lt_nm_to_check; do
5151     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5152     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5153       IFS="$lt_save_ifs"
5154       test -z "$ac_dir" && ac_dir=.
5155       tmp_nm="$ac_dir/$lt_tmp_nm"
5156       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5157         # Check to see if the nm accepts a BSD-compat flag.
5158         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5159         #   nm: unknown option "B" ignored
5160         # Tru64's nm complains that /dev/null is an invalid object file
5161         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5162         */dev/null* | *'Invalid file or object type'*)
5163           lt_cv_path_NM="$tmp_nm -B"
5164           break
5165           ;;
5166         *)
5167           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5168           */dev/null*)
5169             lt_cv_path_NM="$tmp_nm -p"
5170             break
5171             ;;
5172           *)
5173             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5174             continue # so that we can try to find one that supports BSD flags
5175             ;;
5176           esac
5177           ;;
5178         esac
5179       fi
5180     done
5181     IFS="$lt_save_ifs"
5182   done
5183   : ${lt_cv_path_NM=no}
5184 fi
5185 fi
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5187 $as_echo "$lt_cv_path_NM" >&6; }
5188 if test "$lt_cv_path_NM" != "no"; then
5189   NM="$lt_cv_path_NM"
5190 else
5191   # Didn't find any BSD compatible name lister, look for dumpbin.
5192   if test -n "$DUMPBIN"; then :
5193     # Let the user override the test.
5194   else
5195     if test -n "$ac_tool_prefix"; then
5196   for ac_prog in dumpbin "link -dump"
5197   do
5198     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_DUMPBIN+:} false; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205   if test -n "$DUMPBIN"; then
5206   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213     for ac_exec_ext in '' $ac_executable_extensions; do
5214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220   done
5221 IFS=$as_save_IFS
5222
5223 fi
5224 fi
5225 DUMPBIN=$ac_cv_prog_DUMPBIN
5226 if test -n "$DUMPBIN"; then
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5228 $as_echo "$DUMPBIN" >&6; }
5229 else
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232 fi
5233
5234
5235     test -n "$DUMPBIN" && break
5236   done
5237 fi
5238 if test -z "$DUMPBIN"; then
5239   ac_ct_DUMPBIN=$DUMPBIN
5240   for ac_prog in dumpbin "link -dump"
5241 do
5242   # Extract the first word of "$ac_prog", so it can be a program name with args.
5243 set dummy $ac_prog; ac_word=$2
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5247   $as_echo_n "(cached) " >&6
5248 else
5249   if test -n "$ac_ct_DUMPBIN"; then
5250   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257     for ac_exec_ext in '' $ac_executable_extensions; do
5258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261     break 2
5262   fi
5263 done
5264   done
5265 IFS=$as_save_IFS
5266
5267 fi
5268 fi
5269 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5270 if test -n "$ac_ct_DUMPBIN"; then
5271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5272 $as_echo "$ac_ct_DUMPBIN" >&6; }
5273 else
5274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 $as_echo "no" >&6; }
5276 fi
5277
5278
5279   test -n "$ac_ct_DUMPBIN" && break
5280 done
5281
5282   if test "x$ac_ct_DUMPBIN" = x; then
5283     DUMPBIN=":"
5284   else
5285     case $cross_compiling:$ac_tool_warned in
5286 yes:)
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289 ac_tool_warned=yes ;;
5290 esac
5291     DUMPBIN=$ac_ct_DUMPBIN
5292   fi
5293 fi
5294
5295     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5296     *COFF*)
5297       DUMPBIN="$DUMPBIN -symbols"
5298       ;;
5299     *)
5300       DUMPBIN=:
5301       ;;
5302     esac
5303   fi
5304
5305   if test "$DUMPBIN" != ":"; then
5306     NM="$DUMPBIN"
5307   fi
5308 fi
5309 test -z "$NM" && NM=nm
5310
5311
5312
5313
5314
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5317 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5318 if ${lt_cv_nm_interface+:} false; then :
5319   $as_echo_n "(cached) " >&6
5320 else
5321   lt_cv_nm_interface="BSD nm"
5322   echo "int some_variable = 0;" > conftest.$ac_ext
5323   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5324   (eval "$ac_compile" 2>conftest.err)
5325   cat conftest.err >&5
5326   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5327   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5328   cat conftest.err >&5
5329   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5330   cat conftest.out >&5
5331   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5332     lt_cv_nm_interface="MS dumpbin"
5333   fi
5334   rm -f conftest*
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5337 $as_echo "$lt_cv_nm_interface" >&6; }
5338
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5340 $as_echo_n "checking whether ln -s works... " >&6; }
5341 LN_S=$as_ln_s
5342 if test "$LN_S" = "ln -s"; then
5343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5344 $as_echo "yes" >&6; }
5345 else
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5347 $as_echo "no, using $LN_S" >&6; }
5348 fi
5349
5350 # find the maximum length of command line arguments
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5352 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5353 if ${lt_cv_sys_max_cmd_len+:} false; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356     i=0
5357   teststring="ABCD"
5358
5359   case $build_os in
5360   msdosdjgpp*)
5361     # On DJGPP, this test can blow up pretty badly due to problems in libc
5362     # (any single argument exceeding 2000 bytes causes a buffer overrun
5363     # during glob expansion).  Even if it were fixed, the result of this
5364     # check would be larger than it should be.
5365     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5366     ;;
5367
5368   gnu*)
5369     # Under GNU Hurd, this test is not required because there is
5370     # no limit to the length of command line arguments.
5371     # Libtool will interpret -1 as no limit whatsoever
5372     lt_cv_sys_max_cmd_len=-1;
5373     ;;
5374
5375   cygwin* | mingw* | cegcc*)
5376     # On Win9x/ME, this test blows up -- it succeeds, but takes
5377     # about 5 minutes as the teststring grows exponentially.
5378     # Worse, since 9x/ME are not pre-emptively multitasking,
5379     # you end up with a "frozen" computer, even though with patience
5380     # the test eventually succeeds (with a max line length of 256k).
5381     # Instead, let's just punt: use the minimum linelength reported by
5382     # all of the supported platforms: 8192 (on NT/2K/XP).
5383     lt_cv_sys_max_cmd_len=8192;
5384     ;;
5385
5386   mint*)
5387     # On MiNT this can take a long time and run out of memory.
5388     lt_cv_sys_max_cmd_len=8192;
5389     ;;
5390
5391   amigaos*)
5392     # On AmigaOS with pdksh, this test takes hours, literally.
5393     # So we just punt and use a minimum line length of 8192.
5394     lt_cv_sys_max_cmd_len=8192;
5395     ;;
5396
5397   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5398     # This has been around since 386BSD, at least.  Likely further.
5399     if test -x /sbin/sysctl; then
5400       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5401     elif test -x /usr/sbin/sysctl; then
5402       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5403     else
5404       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5405     fi
5406     # And add a safety zone
5407     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5408     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5409     ;;
5410
5411   interix*)
5412     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5413     lt_cv_sys_max_cmd_len=196608
5414     ;;
5415
5416   os2*)
5417     # The test takes a long time on OS/2.
5418     lt_cv_sys_max_cmd_len=8192
5419     ;;
5420
5421   osf*)
5422     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5423     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5424     # nice to cause kernel panics so lets avoid the loop below.
5425     # First set a reasonable default.
5426     lt_cv_sys_max_cmd_len=16384
5427     #
5428     if test -x /sbin/sysconfig; then
5429       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5430         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5431       esac
5432     fi
5433     ;;
5434   sco3.2v5*)
5435     lt_cv_sys_max_cmd_len=102400
5436     ;;
5437   sysv5* | sco5v6* | sysv4.2uw2*)
5438     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5439     if test -n "$kargmax"; then
5440       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5441     else
5442       lt_cv_sys_max_cmd_len=32768
5443     fi
5444     ;;
5445   *)
5446     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5447     if test -n "$lt_cv_sys_max_cmd_len"; then
5448       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5449       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5450     else
5451       # Make teststring a little bigger before we do anything with it.
5452       # a 1K string should be a reasonable start.
5453       for i in 1 2 3 4 5 6 7 8 ; do
5454         teststring=$teststring$teststring
5455       done
5456       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5457       # If test is not a shell built-in, we'll probably end up computing a
5458       # maximum length that is only half of the actual maximum length, but
5459       # we can't tell.
5460       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5461                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5462               test $i != 17 # 1/2 MB should be enough
5463       do
5464         i=`expr $i + 1`
5465         teststring=$teststring$teststring
5466       done
5467       # Only check the string length outside the loop.
5468       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5469       teststring=
5470       # Add a significant safety factor because C++ compilers can tack on
5471       # massive amounts of additional arguments before passing them to the
5472       # linker.  It appears as though 1/2 is a usable value.
5473       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5474     fi
5475     ;;
5476   esac
5477
5478 fi
5479
5480 if test -n $lt_cv_sys_max_cmd_len ; then
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5482 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5483 else
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5485 $as_echo "none" >&6; }
5486 fi
5487 max_cmd_len=$lt_cv_sys_max_cmd_len
5488
5489
5490
5491
5492
5493
5494 : ${CP="cp -f"}
5495 : ${MV="mv -f"}
5496 : ${RM="rm -f"}
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5499 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5500 # Try some XSI features
5501 xsi_shell=no
5502 ( _lt_dummy="a/b/c"
5503   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5504       = c,a/b,b/c, \
5505     && eval 'test $(( 1 + 1 )) -eq 2 \
5506     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5507   && xsi_shell=yes
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5509 $as_echo "$xsi_shell" >&6; }
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5513 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5514 lt_shell_append=no
5515 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5516     >/dev/null 2>&1 \
5517   && lt_shell_append=yes
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5519 $as_echo "$lt_shell_append" >&6; }
5520
5521
5522 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5523   lt_unset=unset
5524 else
5525   lt_unset=false
5526 fi
5527
5528
5529
5530
5531
5532 # test EBCDIC or ASCII
5533 case `echo X|tr X '\101'` in
5534  A) # ASCII based system
5535     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5536   lt_SP2NL='tr \040 \012'
5537   lt_NL2SP='tr \015\012 \040\040'
5538   ;;
5539  *) # EBCDIC based system
5540   lt_SP2NL='tr \100 \n'
5541   lt_NL2SP='tr \r\n \100\100'
5542   ;;
5543 esac
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5554 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5555 if ${lt_cv_to_host_file_cmd+:} false; then :
5556   $as_echo_n "(cached) " >&6
5557 else
5558   case $host in
5559   *-*-mingw* )
5560     case $build in
5561       *-*-mingw* ) # actually msys
5562         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5563         ;;
5564       *-*-cygwin* )
5565         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5566         ;;
5567       * ) # otherwise, assume *nix
5568         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5569         ;;
5570     esac
5571     ;;
5572   *-*-cygwin* )
5573     case $build in
5574       *-*-mingw* ) # actually msys
5575         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5576         ;;
5577       *-*-cygwin* )
5578         lt_cv_to_host_file_cmd=func_convert_file_noop
5579         ;;
5580       * ) # otherwise, assume *nix
5581         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5582         ;;
5583     esac
5584     ;;
5585   * ) # unhandled hosts (and "normal" native builds)
5586     lt_cv_to_host_file_cmd=func_convert_file_noop
5587     ;;
5588 esac
5589
5590 fi
5591
5592 to_host_file_cmd=$lt_cv_to_host_file_cmd
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5594 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5595
5596
5597
5598
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5601 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5602 if ${lt_cv_to_tool_file_cmd+:} false; then :
5603   $as_echo_n "(cached) " >&6
5604 else
5605   #assume ordinary cross tools, or native build.
5606 lt_cv_to_tool_file_cmd=func_convert_file_noop
5607 case $host in
5608   *-*-mingw* )
5609     case $build in
5610       *-*-mingw* ) # actually msys
5611         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5612         ;;
5613     esac
5614     ;;
5615 esac
5616
5617 fi
5618
5619 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5621 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5622
5623
5624
5625
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5628 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5629 if ${lt_cv_ld_reload_flag+:} false; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632   lt_cv_ld_reload_flag='-r'
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5635 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5636 reload_flag=$lt_cv_ld_reload_flag
5637 case $reload_flag in
5638 "" | " "*) ;;
5639 *) reload_flag=" $reload_flag" ;;
5640 esac
5641 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5642 case $host_os in
5643   cygwin* | mingw* | pw32* | cegcc*)
5644     if test "$GCC" != yes; then
5645       reload_cmds=false
5646     fi
5647     ;;
5648   darwin*)
5649     if test "$GCC" = yes; then
5650       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5651     else
5652       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5653     fi
5654     ;;
5655 esac
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665 if test -n "$ac_tool_prefix"; then
5666   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5667 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_OBJDUMP+:} false; then :
5671   $as_echo_n "(cached) " >&6
5672 else
5673   if test -n "$OBJDUMP"; then
5674   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681     for ac_exec_ext in '' $ac_executable_extensions; do
5682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688   done
5689 IFS=$as_save_IFS
5690
5691 fi
5692 fi
5693 OBJDUMP=$ac_cv_prog_OBJDUMP
5694 if test -n "$OBJDUMP"; then
5695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5696 $as_echo "$OBJDUMP" >&6; }
5697 else
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5700 fi
5701
5702
5703 fi
5704 if test -z "$ac_cv_prog_OBJDUMP"; then
5705   ac_ct_OBJDUMP=$OBJDUMP
5706   # Extract the first word of "objdump", so it can be a program name with args.
5707 set dummy objdump; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5711   $as_echo_n "(cached) " >&6
5712 else
5713   if test -n "$ac_ct_OBJDUMP"; then
5714   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721     for ac_exec_ext in '' $ac_executable_extensions; do
5722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728   done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5734 if test -n "$ac_ct_OBJDUMP"; then
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5736 $as_echo "$ac_ct_OBJDUMP" >&6; }
5737 else
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5740 fi
5741
5742   if test "x$ac_ct_OBJDUMP" = x; then
5743     OBJDUMP="false"
5744   else
5745     case $cross_compiling:$ac_tool_warned in
5746 yes:)
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5749 ac_tool_warned=yes ;;
5750 esac
5751     OBJDUMP=$ac_ct_OBJDUMP
5752   fi
5753 else
5754   OBJDUMP="$ac_cv_prog_OBJDUMP"
5755 fi
5756
5757 test -z "$OBJDUMP" && OBJDUMP=objdump
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5768 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5769 if ${lt_cv_deplibs_check_method+:} false; then :
5770   $as_echo_n "(cached) " >&6
5771 else
5772   lt_cv_file_magic_cmd='$MAGIC_CMD'
5773 lt_cv_file_magic_test_file=
5774 lt_cv_deplibs_check_method='unknown'
5775 # Need to set the preceding variable on all platforms that support
5776 # interlibrary dependencies.
5777 # 'none' -- dependencies not supported.
5778 # `unknown' -- same as none, but documents that we really don't know.
5779 # 'pass_all' -- all dependencies passed with no checks.
5780 # 'test_compile' -- check by making test program.
5781 # 'file_magic [[regex]]' -- check by looking for files in library path
5782 # which responds to the $file_magic_cmd with a given extended regex.
5783 # If you have `file' or equivalent on your system and you're not sure
5784 # whether `pass_all' will *always* work, you probably want this one.
5785
5786 case $host_os in
5787 aix[4-9]*)
5788   lt_cv_deplibs_check_method=pass_all
5789   ;;
5790
5791 beos*)
5792   lt_cv_deplibs_check_method=pass_all
5793   ;;
5794
5795 bsdi[45]*)
5796   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5797   lt_cv_file_magic_cmd='/usr/bin/file -L'
5798   lt_cv_file_magic_test_file=/shlib/libc.so
5799   ;;
5800
5801 cygwin*)
5802   # func_win32_libid is a shell function defined in ltmain.sh
5803   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5804   lt_cv_file_magic_cmd='func_win32_libid'
5805   ;;
5806
5807 mingw* | pw32*)
5808   # Base MSYS/MinGW do not provide the 'file' command needed by
5809   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5810   # unless we find 'file', for example because we are cross-compiling.
5811   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5812   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5813     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5814     lt_cv_file_magic_cmd='func_win32_libid'
5815   else
5816     # Keep this pattern in sync with the one in func_win32_libid.
5817     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5818     lt_cv_file_magic_cmd='$OBJDUMP -f'
5819   fi
5820   ;;
5821
5822 cegcc*)
5823   # use the weaker test based on 'objdump'. See mingw*.
5824   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5825   lt_cv_file_magic_cmd='$OBJDUMP -f'
5826   ;;
5827
5828 darwin* | rhapsody*)
5829   lt_cv_deplibs_check_method=pass_all
5830   ;;
5831
5832 freebsd* | dragonfly*)
5833   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5834     case $host_cpu in
5835     i*86 )
5836       # Not sure whether the presence of OpenBSD here was a mistake.
5837       # Let's accept both of them until this is cleared up.
5838       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5839       lt_cv_file_magic_cmd=/usr/bin/file
5840       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5841       ;;
5842     esac
5843   else
5844     lt_cv_deplibs_check_method=pass_all
5845   fi
5846   ;;
5847
5848 gnu*)
5849   lt_cv_deplibs_check_method=pass_all
5850   ;;
5851
5852 haiku*)
5853   lt_cv_deplibs_check_method=pass_all
5854   ;;
5855
5856 hpux10.20* | hpux11*)
5857   lt_cv_file_magic_cmd=/usr/bin/file
5858   case $host_cpu in
5859   ia64*)
5860     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5861     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5862     ;;
5863   hppa*64*)
5864     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5865     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5866     ;;
5867   *)
5868     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5869     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5870     ;;
5871   esac
5872   ;;
5873
5874 interix[3-9]*)
5875   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5876   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5877   ;;
5878
5879 irix5* | irix6* | nonstopux*)
5880   case $LD in
5881   *-32|*"-32 ") libmagic=32-bit;;
5882   *-n32|*"-n32 ") libmagic=N32;;
5883   *-64|*"-64 ") libmagic=64-bit;;
5884   *) libmagic=never-match;;
5885   esac
5886   lt_cv_deplibs_check_method=pass_all
5887   ;;
5888
5889 # This must be glibc/ELF.
5890 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5891   lt_cv_deplibs_check_method=pass_all
5892   ;;
5893
5894 netbsd*)
5895   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5896     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5897   else
5898     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5899   fi
5900   ;;
5901
5902 newos6*)
5903   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5904   lt_cv_file_magic_cmd=/usr/bin/file
5905   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5906   ;;
5907
5908 *nto* | *qnx*)
5909   lt_cv_deplibs_check_method=pass_all
5910   ;;
5911
5912 openbsd*)
5913   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5914     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5915   else
5916     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5917   fi
5918   ;;
5919
5920 osf3* | osf4* | osf5*)
5921   lt_cv_deplibs_check_method=pass_all
5922   ;;
5923
5924 rdos*)
5925   lt_cv_deplibs_check_method=pass_all
5926   ;;
5927
5928 solaris*)
5929   lt_cv_deplibs_check_method=pass_all
5930   ;;
5931
5932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5933   lt_cv_deplibs_check_method=pass_all
5934   ;;
5935
5936 sysv4 | sysv4.3*)
5937   case $host_vendor in
5938   motorola)
5939     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]'
5940     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5941     ;;
5942   ncr)
5943     lt_cv_deplibs_check_method=pass_all
5944     ;;
5945   sequent)
5946     lt_cv_file_magic_cmd='/bin/file'
5947     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5948     ;;
5949   sni)
5950     lt_cv_file_magic_cmd='/bin/file'
5951     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5952     lt_cv_file_magic_test_file=/lib/libc.so
5953     ;;
5954   siemens)
5955     lt_cv_deplibs_check_method=pass_all
5956     ;;
5957   pc)
5958     lt_cv_deplibs_check_method=pass_all
5959     ;;
5960   esac
5961   ;;
5962
5963 tpf*)
5964   lt_cv_deplibs_check_method=pass_all
5965   ;;
5966 esac
5967
5968 fi
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5970 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5971
5972 file_magic_glob=
5973 want_nocaseglob=no
5974 if test "$build" = "$host"; then
5975   case $host_os in
5976   mingw* | pw32*)
5977     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5978       want_nocaseglob=yes
5979     else
5980       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5981     fi
5982     ;;
5983   esac
5984 fi
5985
5986 file_magic_cmd=$lt_cv_file_magic_cmd
5987 deplibs_check_method=$lt_cv_deplibs_check_method
5988 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011 if test -n "$ac_tool_prefix"; then
6012   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6013 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if ${ac_cv_prog_DLLTOOL+:} false; then :
6017   $as_echo_n "(cached) " >&6
6018 else
6019   if test -n "$DLLTOOL"; then
6020   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025   IFS=$as_save_IFS
6026   test -z "$as_dir" && as_dir=.
6027     for ac_exec_ext in '' $ac_executable_extensions; do
6028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6029     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031     break 2
6032   fi
6033 done
6034   done
6035 IFS=$as_save_IFS
6036
6037 fi
6038 fi
6039 DLLTOOL=$ac_cv_prog_DLLTOOL
6040 if test -n "$DLLTOOL"; then
6041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6042 $as_echo "$DLLTOOL" >&6; }
6043 else
6044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6046 fi
6047
6048
6049 fi
6050 if test -z "$ac_cv_prog_DLLTOOL"; then
6051   ac_ct_DLLTOOL=$DLLTOOL
6052   # Extract the first word of "dlltool", so it can be a program name with args.
6053 set dummy dlltool; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6057   $as_echo_n "(cached) " >&6
6058 else
6059   if test -n "$ac_ct_DLLTOOL"; then
6060   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065   IFS=$as_save_IFS
6066   test -z "$as_dir" && as_dir=.
6067     for ac_exec_ext in '' $ac_executable_extensions; do
6068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071     break 2
6072   fi
6073 done
6074   done
6075 IFS=$as_save_IFS
6076
6077 fi
6078 fi
6079 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6080 if test -n "$ac_ct_DLLTOOL"; then
6081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6082 $as_echo "$ac_ct_DLLTOOL" >&6; }
6083 else
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6086 fi
6087
6088   if test "x$ac_ct_DLLTOOL" = x; then
6089     DLLTOOL="false"
6090   else
6091     case $cross_compiling:$ac_tool_warned in
6092 yes:)
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095 ac_tool_warned=yes ;;
6096 esac
6097     DLLTOOL=$ac_ct_DLLTOOL
6098   fi
6099 else
6100   DLLTOOL="$ac_cv_prog_DLLTOOL"
6101 fi
6102
6103 test -z "$DLLTOOL" && DLLTOOL=dlltool
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6115 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6116 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   lt_cv_sharedlib_from_linklib_cmd='unknown'
6120
6121 case $host_os in
6122 cygwin* | mingw* | pw32* | cegcc*)
6123   # two different shell functions defined in ltmain.sh
6124   # decide which to use based on capabilities of $DLLTOOL
6125   case `$DLLTOOL --help 2>&1` in
6126   *--identify-strict*)
6127     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6128     ;;
6129   *)
6130     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6131     ;;
6132   esac
6133   ;;
6134 *)
6135   # fallback: assume linklib IS sharedlib
6136   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6137   ;;
6138 esac
6139
6140 fi
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6142 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6143 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6144 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6145
6146
6147
6148
6149
6150
6151
6152 if test -n "$ac_tool_prefix"; then
6153   for ac_prog in ar
6154   do
6155     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if ${ac_cv_prog_AR+:} false; then :
6160   $as_echo_n "(cached) " >&6
6161 else
6162   if test -n "$AR"; then
6163   ac_cv_prog_AR="$AR" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6167 do
6168   IFS=$as_save_IFS
6169   test -z "$as_dir" && as_dir=.
6170     for ac_exec_ext in '' $ac_executable_extensions; do
6171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174     break 2
6175   fi
6176 done
6177   done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 AR=$ac_cv_prog_AR
6183 if test -n "$AR"; then
6184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6185 $as_echo "$AR" >&6; }
6186 else
6187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6189 fi
6190
6191
6192     test -n "$AR" && break
6193   done
6194 fi
6195 if test -z "$AR"; then
6196   ac_ct_AR=$AR
6197   for ac_prog in ar
6198 do
6199   # Extract the first word of "$ac_prog", so it can be a program name with args.
6200 set dummy $ac_prog; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6204   $as_echo_n "(cached) " >&6
6205 else
6206   if test -n "$ac_ct_AR"; then
6207   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212   IFS=$as_save_IFS
6213   test -z "$as_dir" && as_dir=.
6214     for ac_exec_ext in '' $ac_executable_extensions; do
6215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216     ac_cv_prog_ac_ct_AR="$ac_prog"
6217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218     break 2
6219   fi
6220 done
6221   done
6222 IFS=$as_save_IFS
6223
6224 fi
6225 fi
6226 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6227 if test -n "$ac_ct_AR"; then
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6229 $as_echo "$ac_ct_AR" >&6; }
6230 else
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6233 fi
6234
6235
6236   test -n "$ac_ct_AR" && break
6237 done
6238
6239   if test "x$ac_ct_AR" = x; then
6240     AR="false"
6241   else
6242     case $cross_compiling:$ac_tool_warned in
6243 yes:)
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6246 ac_tool_warned=yes ;;
6247 esac
6248     AR=$ac_ct_AR
6249   fi
6250 fi
6251
6252 : ${AR=ar}
6253 : ${AR_FLAGS=cru}
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6266 $as_echo_n "checking for archiver @FILE support... " >&6; }
6267 if ${lt_cv_ar_at_file+:} false; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   lt_cv_ar_at_file=no
6271    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h.  */
6273
6274 int
6275 main ()
6276 {
6277
6278   ;
6279   return 0;
6280 }
6281 _ACEOF
6282 if ac_fn_c_try_compile "$LINENO"; then :
6283   echo conftest.$ac_objext > conftest.lst
6284       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6285       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6286   (eval $lt_ar_try) 2>&5
6287   ac_status=$?
6288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6289   test $ac_status = 0; }
6290       if test "$ac_status" -eq 0; then
6291         # Ensure the archiver fails upon bogus file names.
6292         rm -f conftest.$ac_objext libconftest.a
6293         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6294   (eval $lt_ar_try) 2>&5
6295   ac_status=$?
6296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297   test $ac_status = 0; }
6298         if test "$ac_status" -ne 0; then
6299           lt_cv_ar_at_file=@
6300         fi
6301       fi
6302       rm -f conftest.* libconftest.a
6303
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306
6307 fi
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6309 $as_echo "$lt_cv_ar_at_file" >&6; }
6310
6311 if test "x$lt_cv_ar_at_file" = xno; then
6312   archiver_list_spec=
6313 else
6314   archiver_list_spec=$lt_cv_ar_at_file
6315 fi
6316
6317
6318
6319
6320
6321
6322
6323 if test -n "$ac_tool_prefix"; then
6324   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6325 set dummy ${ac_tool_prefix}strip; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if ${ac_cv_prog_STRIP+:} false; then :
6329   $as_echo_n "(cached) " >&6
6330 else
6331   if test -n "$STRIP"; then
6332   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337   IFS=$as_save_IFS
6338   test -z "$as_dir" && as_dir=.
6339     for ac_exec_ext in '' $ac_executable_extensions; do
6340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343     break 2
6344   fi
6345 done
6346   done
6347 IFS=$as_save_IFS
6348
6349 fi
6350 fi
6351 STRIP=$ac_cv_prog_STRIP
6352 if test -n "$STRIP"; then
6353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6354 $as_echo "$STRIP" >&6; }
6355 else
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6358 fi
6359
6360
6361 fi
6362 if test -z "$ac_cv_prog_STRIP"; then
6363   ac_ct_STRIP=$STRIP
6364   # Extract the first word of "strip", so it can be a program name with args.
6365 set dummy strip; ac_word=$2
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6369   $as_echo_n "(cached) " >&6
6370 else
6371   if test -n "$ac_ct_STRIP"; then
6372   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377   IFS=$as_save_IFS
6378   test -z "$as_dir" && as_dir=.
6379     for ac_exec_ext in '' $ac_executable_extensions; do
6380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381     ac_cv_prog_ac_ct_STRIP="strip"
6382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383     break 2
6384   fi
6385 done
6386   done
6387 IFS=$as_save_IFS
6388
6389 fi
6390 fi
6391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6392 if test -n "$ac_ct_STRIP"; then
6393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6394 $as_echo "$ac_ct_STRIP" >&6; }
6395 else
6396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6398 fi
6399
6400   if test "x$ac_ct_STRIP" = x; then
6401     STRIP=":"
6402   else
6403     case $cross_compiling:$ac_tool_warned in
6404 yes:)
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407 ac_tool_warned=yes ;;
6408 esac
6409     STRIP=$ac_ct_STRIP
6410   fi
6411 else
6412   STRIP="$ac_cv_prog_STRIP"
6413 fi
6414
6415 test -z "$STRIP" && STRIP=:
6416
6417
6418
6419
6420
6421
6422 if test -n "$ac_tool_prefix"; then
6423   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6424 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if ${ac_cv_prog_RANLIB+:} false; then :
6428   $as_echo_n "(cached) " >&6
6429 else
6430   if test -n "$RANLIB"; then
6431   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436   IFS=$as_save_IFS
6437   test -z "$as_dir" && as_dir=.
6438     for ac_exec_ext in '' $ac_executable_extensions; do
6439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442     break 2
6443   fi
6444 done
6445   done
6446 IFS=$as_save_IFS
6447
6448 fi
6449 fi
6450 RANLIB=$ac_cv_prog_RANLIB
6451 if test -n "$RANLIB"; then
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6453 $as_echo "$RANLIB" >&6; }
6454 else
6455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6457 fi
6458
6459
6460 fi
6461 if test -z "$ac_cv_prog_RANLIB"; then
6462   ac_ct_RANLIB=$RANLIB
6463   # Extract the first word of "ranlib", so it can be a program name with args.
6464 set dummy ranlib; ac_word=$2
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6468   $as_echo_n "(cached) " >&6
6469 else
6470   if test -n "$ac_ct_RANLIB"; then
6471   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6472 else
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476   IFS=$as_save_IFS
6477   test -z "$as_dir" && as_dir=.
6478     for ac_exec_ext in '' $ac_executable_extensions; do
6479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480     ac_cv_prog_ac_ct_RANLIB="ranlib"
6481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482     break 2
6483   fi
6484 done
6485   done
6486 IFS=$as_save_IFS
6487
6488 fi
6489 fi
6490 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6491 if test -n "$ac_ct_RANLIB"; then
6492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6493 $as_echo "$ac_ct_RANLIB" >&6; }
6494 else
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6497 fi
6498
6499   if test "x$ac_ct_RANLIB" = x; then
6500     RANLIB=":"
6501   else
6502     case $cross_compiling:$ac_tool_warned in
6503 yes:)
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506 ac_tool_warned=yes ;;
6507 esac
6508     RANLIB=$ac_ct_RANLIB
6509   fi
6510 else
6511   RANLIB="$ac_cv_prog_RANLIB"
6512 fi
6513
6514 test -z "$RANLIB" && RANLIB=:
6515
6516
6517
6518
6519
6520
6521 # Determine commands to create old-style static archives.
6522 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6523 old_postinstall_cmds='chmod 644 $oldlib'
6524 old_postuninstall_cmds=
6525
6526 if test -n "$RANLIB"; then
6527   case $host_os in
6528   openbsd*)
6529     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6530     ;;
6531   *)
6532     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6533     ;;
6534   esac
6535   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6536 fi
6537
6538 case $host_os in
6539   darwin*)
6540     lock_old_archive_extraction=yes ;;
6541   *)
6542     lock_old_archive_extraction=no ;;
6543 esac
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583 # If no C compiler was specified, use CC.
6584 LTCC=${LTCC-"$CC"}
6585
6586 # If no C compiler flags were specified, use CFLAGS.
6587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6588
6589 # Allow CC to be a program name with arguments.
6590 compiler=$CC
6591
6592
6593 # Check for command to grab the raw symbol name followed by C symbol from nm.
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6595 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6596 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6597   $as_echo_n "(cached) " >&6
6598 else
6599
6600 # These are sane defaults that work on at least a few old systems.
6601 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6602
6603 # Character class describing NM global symbol codes.
6604 symcode='[BCDEGRST]'
6605
6606 # Regexp to match symbols that can be accessed directly from C.
6607 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6608
6609 # Define system-specific variables.
6610 case $host_os in
6611 aix*)
6612   symcode='[BCDT]'
6613   ;;
6614 cygwin* | mingw* | pw32* | cegcc*)
6615   symcode='[ABCDGISTW]'
6616   ;;
6617 hpux*)
6618   if test "$host_cpu" = ia64; then
6619     symcode='[ABCDEGRST]'
6620   fi
6621   ;;
6622 irix* | nonstopux*)
6623   symcode='[BCDEGRST]'
6624   ;;
6625 osf*)
6626   symcode='[BCDEGQRST]'
6627   ;;
6628 solaris*)
6629   symcode='[BDRT]'
6630   ;;
6631 sco3.2v5*)
6632   symcode='[DT]'
6633   ;;
6634 sysv4.2uw2*)
6635   symcode='[DT]'
6636   ;;
6637 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6638   symcode='[ABDT]'
6639   ;;
6640 sysv4)
6641   symcode='[DFNSTU]'
6642   ;;
6643 esac
6644
6645 # If we're using GNU nm, then use its standard symbol codes.
6646 case `$NM -V 2>&1` in
6647 *GNU* | *'with BFD'*)
6648   symcode='[ABCDGIRSTW]' ;;
6649 esac
6650
6651 # Transform an extracted symbol line into a proper C declaration.
6652 # Some systems (esp. on ia64) link data and code symbols differently,
6653 # so use this general approach.
6654 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6655
6656 # Transform an extracted symbol line into symbol name and symbol address
6657 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6658 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'"
6659
6660 # Handle CRLF in mingw tool chain
6661 opt_cr=
6662 case $build_os in
6663 mingw*)
6664   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6665   ;;
6666 esac
6667
6668 # Try without a prefix underscore, then with it.
6669 for ac_symprfx in "" "_"; do
6670
6671   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6672   symxfrm="\\1 $ac_symprfx\\2 \\2"
6673
6674   # Write the raw and C identifiers.
6675   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6676     # Fake it for dumpbin and say T for any non-static function
6677     # and D for any global variable.
6678     # Also find C++ and __fastcall symbols from MSVC++,
6679     # which start with @ or ?.
6680     lt_cv_sys_global_symbol_pipe="$AWK '"\
6681 "     {last_section=section; section=\$ 3};"\
6682 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6683 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6684 "     \$ 0!~/External *\|/{next};"\
6685 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6686 "     {if(hide[section]) next};"\
6687 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6688 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6689 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6690 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6691 "     ' prfx=^$ac_symprfx"
6692   else
6693     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6694   fi
6695   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6696
6697   # Check to see that the pipe works correctly.
6698   pipe_works=no
6699
6700   rm -f conftest*
6701   cat > conftest.$ac_ext <<_LT_EOF
6702 #ifdef __cplusplus
6703 extern "C" {
6704 #endif
6705 char nm_test_var;
6706 void nm_test_func(void);
6707 void nm_test_func(void){}
6708 #ifdef __cplusplus
6709 }
6710 #endif
6711 int main(){nm_test_var='a';nm_test_func();return(0);}
6712 _LT_EOF
6713
6714   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6715   (eval $ac_compile) 2>&5
6716   ac_status=$?
6717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6718   test $ac_status = 0; }; then
6719     # Now try to grab the symbols.
6720     nlist=conftest.nm
6721     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6722   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6723   ac_status=$?
6724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6725   test $ac_status = 0; } && test -s "$nlist"; then
6726       # Try sorting and uniquifying the output.
6727       if sort "$nlist" | uniq > "$nlist"T; then
6728         mv -f "$nlist"T "$nlist"
6729       else
6730         rm -f "$nlist"T
6731       fi
6732
6733       # Make sure that we snagged all the symbols we need.
6734       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6735         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6736           cat <<_LT_EOF > conftest.$ac_ext
6737 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6738 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6739 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6740    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6741 # define LT_DLSYM_CONST
6742 #elif defined(__osf__)
6743 /* This system does not cope well with relocations in const data.  */
6744 # define LT_DLSYM_CONST
6745 #else
6746 # define LT_DLSYM_CONST const
6747 #endif
6748
6749 #ifdef __cplusplus
6750 extern "C" {
6751 #endif
6752
6753 _LT_EOF
6754           # Now generate the symbol file.
6755           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6756
6757           cat <<_LT_EOF >> conftest.$ac_ext
6758
6759 /* The mapping between symbol names and symbols.  */
6760 LT_DLSYM_CONST struct {
6761   const char *name;
6762   void       *address;
6763 }
6764 lt__PROGRAM__LTX_preloaded_symbols[] =
6765 {
6766   { "@PROGRAM@", (void *) 0 },
6767 _LT_EOF
6768           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6769           cat <<\_LT_EOF >> conftest.$ac_ext
6770   {0, (void *) 0}
6771 };
6772
6773 /* This works around a problem in FreeBSD linker */
6774 #ifdef FREEBSD_WORKAROUND
6775 static const void *lt_preloaded_setup() {
6776   return lt__PROGRAM__LTX_preloaded_symbols;
6777 }
6778 #endif
6779
6780 #ifdef __cplusplus
6781 }
6782 #endif
6783 _LT_EOF
6784           # Now try linking the two files.
6785           mv conftest.$ac_objext conftstm.$ac_objext
6786           lt_globsym_save_LIBS=$LIBS
6787           lt_globsym_save_CFLAGS=$CFLAGS
6788           LIBS="conftstm.$ac_objext"
6789           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6790           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6791   (eval $ac_link) 2>&5
6792   ac_status=$?
6793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6795             pipe_works=yes
6796           fi
6797           LIBS=$lt_globsym_save_LIBS
6798           CFLAGS=$lt_globsym_save_CFLAGS
6799         else
6800           echo "cannot find nm_test_func in $nlist" >&5
6801         fi
6802       else
6803         echo "cannot find nm_test_var in $nlist" >&5
6804       fi
6805     else
6806       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6807     fi
6808   else
6809     echo "$progname: failed program was:" >&5
6810     cat conftest.$ac_ext >&5
6811   fi
6812   rm -rf conftest* conftst*
6813
6814   # Do not use the global_symbol_pipe unless it works.
6815   if test "$pipe_works" = yes; then
6816     break
6817   else
6818     lt_cv_sys_global_symbol_pipe=
6819   fi
6820 done
6821
6822 fi
6823
6824 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6825   lt_cv_sys_global_symbol_to_cdecl=
6826 fi
6827 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6829 $as_echo "failed" >&6; }
6830 else
6831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6832 $as_echo "ok" >&6; }
6833 fi
6834
6835 # Response file support.
6836 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6837   nm_file_list_spec='@'
6838 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6839   nm_file_list_spec='@'
6840 fi
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6869 $as_echo_n "checking for sysroot... " >&6; }
6870
6871 # Check whether --with-sysroot was given.
6872 if test "${with_sysroot+set}" = set; then :
6873   withval=$with_sysroot;
6874 else
6875   with_sysroot=no
6876 fi
6877
6878
6879 lt_sysroot=
6880 case ${with_sysroot} in #(
6881  yes)
6882    if test "$GCC" = yes; then
6883      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6884    fi
6885    ;; #(
6886  /*)
6887    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6888    ;; #(
6889  no|'')
6890    ;; #(
6891  *)
6892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6893 $as_echo "${with_sysroot}" >&6; }
6894    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6895    ;;
6896 esac
6897
6898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6899 $as_echo "${lt_sysroot:-no}" >&6; }
6900
6901
6902
6903
6904
6905 # Check whether --enable-libtool-lock was given.
6906 if test "${enable_libtool_lock+set}" = set; then :
6907   enableval=$enable_libtool_lock;
6908 fi
6909
6910 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6911
6912 # Some flags need to be propagated to the compiler or linker for good
6913 # libtool support.
6914 case $host in
6915 ia64-*-hpux*)
6916   # Find out which ABI we are using.
6917   echo 'int i;' > conftest.$ac_ext
6918   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6919   (eval $ac_compile) 2>&5
6920   ac_status=$?
6921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6922   test $ac_status = 0; }; then
6923     case `/usr/bin/file conftest.$ac_objext` in
6924       *ELF-32*)
6925         HPUX_IA64_MODE="32"
6926         ;;
6927       *ELF-64*)
6928         HPUX_IA64_MODE="64"
6929         ;;
6930     esac
6931   fi
6932   rm -rf conftest*
6933   ;;
6934 *-*-irix6*)
6935   # Find out which ABI we are using.
6936   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6937   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6938   (eval $ac_compile) 2>&5
6939   ac_status=$?
6940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941   test $ac_status = 0; }; then
6942     if test "$lt_cv_prog_gnu_ld" = yes; then
6943       case `/usr/bin/file conftest.$ac_objext` in
6944         *32-bit*)
6945           LD="${LD-ld} -melf32bsmip"
6946           ;;
6947         *N32*)
6948           LD="${LD-ld} -melf32bmipn32"
6949           ;;
6950         *64-bit*)
6951           LD="${LD-ld} -melf64bmip"
6952         ;;
6953       esac
6954     else
6955       case `/usr/bin/file conftest.$ac_objext` in
6956         *32-bit*)
6957           LD="${LD-ld} -32"
6958           ;;
6959         *N32*)
6960           LD="${LD-ld} -n32"
6961           ;;
6962         *64-bit*)
6963           LD="${LD-ld} -64"
6964           ;;
6965       esac
6966     fi
6967   fi
6968   rm -rf conftest*
6969   ;;
6970
6971 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6972 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6973   # Find out which ABI we are using.
6974   echo 'int i;' > conftest.$ac_ext
6975   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6976   (eval $ac_compile) 2>&5
6977   ac_status=$?
6978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6979   test $ac_status = 0; }; then
6980     case `/usr/bin/file conftest.o` in
6981       *32-bit*)
6982         case $host in
6983           x86_64-*kfreebsd*-gnu)
6984             LD="${LD-ld} -m elf_i386_fbsd"
6985             ;;
6986           x86_64-*linux*)
6987             LD="${LD-ld} -m elf_i386"
6988             ;;
6989           ppc64-*linux*|powerpc64-*linux*)
6990             LD="${LD-ld} -m elf32ppclinux"
6991             ;;
6992           s390x-*linux*)
6993             LD="${LD-ld} -m elf_s390"
6994             ;;
6995           sparc64-*linux*)
6996             LD="${LD-ld} -m elf32_sparc"
6997             ;;
6998         esac
6999         ;;
7000       *64-bit*)
7001         case $host in
7002           x86_64-*kfreebsd*-gnu)
7003             LD="${LD-ld} -m elf_x86_64_fbsd"
7004             ;;
7005           x86_64-*linux*)
7006             LD="${LD-ld} -m elf_x86_64"
7007             ;;
7008           ppc*-*linux*|powerpc*-*linux*)
7009             LD="${LD-ld} -m elf64ppc"
7010             ;;
7011           s390*-*linux*|s390*-*tpf*)
7012             LD="${LD-ld} -m elf64_s390"
7013             ;;
7014           sparc*-*linux*)
7015             LD="${LD-ld} -m elf64_sparc"
7016             ;;
7017         esac
7018         ;;
7019     esac
7020   fi
7021   rm -rf conftest*
7022   ;;
7023
7024 *-*-sco3.2v5*)
7025   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7026   SAVE_CFLAGS="$CFLAGS"
7027   CFLAGS="$CFLAGS -belf"
7028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7029 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7030 if ${lt_cv_cc_needs_belf+:} false; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   ac_ext=c
7034 ac_cpp='$CPP $CPPFLAGS'
7035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038
7039      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h.  */
7041
7042 int
7043 main ()
7044 {
7045
7046   ;
7047   return 0;
7048 }
7049 _ACEOF
7050 if ac_fn_c_try_link "$LINENO"; then :
7051   lt_cv_cc_needs_belf=yes
7052 else
7053   lt_cv_cc_needs_belf=no
7054 fi
7055 rm -f core conftest.err conftest.$ac_objext \
7056     conftest$ac_exeext conftest.$ac_ext
7057      ac_ext=c
7058 ac_cpp='$CPP $CPPFLAGS'
7059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7062
7063 fi
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7065 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7066   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7067     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7068     CFLAGS="$SAVE_CFLAGS"
7069   fi
7070   ;;
7071 *-*solaris*)
7072   # Find out which ABI we are using.
7073   echo 'int i;' > conftest.$ac_ext
7074   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7075   (eval $ac_compile) 2>&5
7076   ac_status=$?
7077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078   test $ac_status = 0; }; then
7079     case `/usr/bin/file conftest.o` in
7080     *64-bit*)
7081       case $lt_cv_prog_gnu_ld in
7082       yes*)
7083         case $host in
7084         i?86-*-solaris*)
7085           LD="${LD-ld} -m elf_x86_64"
7086           ;;
7087         sparc*-*-solaris*)
7088           LD="${LD-ld} -m elf64_sparc"
7089           ;;
7090         esac
7091         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7092         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7093           LD="${LD-ld}_sol2"
7094         fi
7095         ;;
7096       *)
7097         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7098           LD="${LD-ld} -64"
7099         fi
7100         ;;
7101       esac
7102       ;;
7103     esac
7104   fi
7105   rm -rf conftest*
7106   ;;
7107 esac
7108
7109 need_locks="$enable_libtool_lock"
7110
7111 if test -n "$ac_tool_prefix"; then
7112   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7113 set dummy ${ac_tool_prefix}mt; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   if test -n "$MANIFEST_TOOL"; then
7120   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127     for ac_exec_ext in '' $ac_executable_extensions; do
7128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134   done
7135 IFS=$as_save_IFS
7136
7137 fi
7138 fi
7139 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7140 if test -n "$MANIFEST_TOOL"; then
7141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7142 $as_echo "$MANIFEST_TOOL" >&6; }
7143 else
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7146 fi
7147
7148
7149 fi
7150 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7151   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7152   # Extract the first word of "mt", so it can be a program name with args.
7153 set dummy mt; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159   if test -n "$ac_ct_MANIFEST_TOOL"; then
7160   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165   IFS=$as_save_IFS
7166   test -z "$as_dir" && as_dir=.
7167     for ac_exec_ext in '' $ac_executable_extensions; do
7168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171     break 2
7172   fi
7173 done
7174   done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7180 if test -n "$ac_ct_MANIFEST_TOOL"; then
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7182 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7183 else
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187
7188   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7189     MANIFEST_TOOL=":"
7190   else
7191     case $cross_compiling:$ac_tool_warned in
7192 yes:)
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195 ac_tool_warned=yes ;;
7196 esac
7197     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7198   fi
7199 else
7200   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7201 fi
7202
7203 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7205 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7206 if ${lt_cv_path_mainfest_tool+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   lt_cv_path_mainfest_tool=no
7210   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7211   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7212   cat conftest.err >&5
7213   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7214     lt_cv_path_mainfest_tool=yes
7215   fi
7216   rm -f conftest*
7217 fi
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7219 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7220 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7221   MANIFEST_TOOL=:
7222 fi
7223
7224
7225
7226
7227
7228
7229   case $host_os in
7230     rhapsody* | darwin*)
7231     if test -n "$ac_tool_prefix"; then
7232   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7233 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7237   $as_echo_n "(cached) " >&6
7238 else
7239   if test -n "$DSYMUTIL"; then
7240   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245   IFS=$as_save_IFS
7246   test -z "$as_dir" && as_dir=.
7247     for ac_exec_ext in '' $ac_executable_extensions; do
7248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251     break 2
7252   fi
7253 done
7254   done
7255 IFS=$as_save_IFS
7256
7257 fi
7258 fi
7259 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7260 if test -n "$DSYMUTIL"; then
7261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7262 $as_echo "$DSYMUTIL" >&6; }
7263 else
7264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7266 fi
7267
7268
7269 fi
7270 if test -z "$ac_cv_prog_DSYMUTIL"; then
7271   ac_ct_DSYMUTIL=$DSYMUTIL
7272   # Extract the first word of "dsymutil", so it can be a program name with args.
7273 set dummy dsymutil; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7277   $as_echo_n "(cached) " >&6
7278 else
7279   if test -n "$ac_ct_DSYMUTIL"; then
7280   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285   IFS=$as_save_IFS
7286   test -z "$as_dir" && as_dir=.
7287     for ac_exec_ext in '' $ac_executable_extensions; do
7288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291     break 2
7292   fi
7293 done
7294   done
7295 IFS=$as_save_IFS
7296
7297 fi
7298 fi
7299 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7300 if test -n "$ac_ct_DSYMUTIL"; then
7301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7302 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7303 else
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 fi
7307
7308   if test "x$ac_ct_DSYMUTIL" = x; then
7309     DSYMUTIL=":"
7310   else
7311     case $cross_compiling:$ac_tool_warned in
7312 yes:)
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7315 ac_tool_warned=yes ;;
7316 esac
7317     DSYMUTIL=$ac_ct_DSYMUTIL
7318   fi
7319 else
7320   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7321 fi
7322
7323     if test -n "$ac_tool_prefix"; then
7324   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_NMEDIT+:} false; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   if test -n "$NMEDIT"; then
7332   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339     for ac_exec_ext in '' $ac_executable_extensions; do
7340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346   done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 NMEDIT=$ac_cv_prog_NMEDIT
7352 if test -n "$NMEDIT"; then
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7354 $as_echo "$NMEDIT" >&6; }
7355 else
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360
7361 fi
7362 if test -z "$ac_cv_prog_NMEDIT"; then
7363   ac_ct_NMEDIT=$NMEDIT
7364   # Extract the first word of "nmedit", so it can be a program name with args.
7365 set dummy nmedit; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   if test -n "$ac_ct_NMEDIT"; then
7372   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379     for ac_exec_ext in '' $ac_executable_extensions; do
7380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386   done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7392 if test -n "$ac_ct_NMEDIT"; then
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7394 $as_echo "$ac_ct_NMEDIT" >&6; }
7395 else
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400   if test "x$ac_ct_NMEDIT" = x; then
7401     NMEDIT=":"
7402   else
7403     case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409     NMEDIT=$ac_ct_NMEDIT
7410   fi
7411 else
7412   NMEDIT="$ac_cv_prog_NMEDIT"
7413 fi
7414
7415     if test -n "$ac_tool_prefix"; then
7416   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if ${ac_cv_prog_LIPO+:} false; then :
7421   $as_echo_n "(cached) " >&6
7422 else
7423   if test -n "$LIPO"; then
7424   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431     for ac_exec_ext in '' $ac_executable_extensions; do
7432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438   done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 LIPO=$ac_cv_prog_LIPO
7444 if test -n "$LIPO"; then
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7446 $as_echo "$LIPO" >&6; }
7447 else
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 fi
7451
7452
7453 fi
7454 if test -z "$ac_cv_prog_LIPO"; then
7455   ac_ct_LIPO=$LIPO
7456   # Extract the first word of "lipo", so it can be a program name with args.
7457 set dummy lipo; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   if test -n "$ac_ct_LIPO"; then
7464   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471     for ac_exec_ext in '' $ac_executable_extensions; do
7472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473     ac_cv_prog_ac_ct_LIPO="lipo"
7474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478   done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7484 if test -n "$ac_ct_LIPO"; then
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7486 $as_echo "$ac_ct_LIPO" >&6; }
7487 else
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7491
7492   if test "x$ac_ct_LIPO" = x; then
7493     LIPO=":"
7494   else
7495     case $cross_compiling:$ac_tool_warned in
7496 yes:)
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7499 ac_tool_warned=yes ;;
7500 esac
7501     LIPO=$ac_ct_LIPO
7502   fi
7503 else
7504   LIPO="$ac_cv_prog_LIPO"
7505 fi
7506
7507     if test -n "$ac_tool_prefix"; then
7508   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}otool; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if ${ac_cv_prog_OTOOL+:} false; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   if test -n "$OTOOL"; then
7516   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523     for ac_exec_ext in '' $ac_executable_extensions; do
7524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7525     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530   done
7531 IFS=$as_save_IFS
7532
7533 fi
7534 fi
7535 OTOOL=$ac_cv_prog_OTOOL
7536 if test -n "$OTOOL"; then
7537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7538 $as_echo "$OTOOL" >&6; }
7539 else
7540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7542 fi
7543
7544
7545 fi
7546 if test -z "$ac_cv_prog_OTOOL"; then
7547   ac_ct_OTOOL=$OTOOL
7548   # Extract the first word of "otool", so it can be a program name with args.
7549 set dummy otool; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7553   $as_echo_n "(cached) " >&6
7554 else
7555   if test -n "$ac_ct_OTOOL"; then
7556   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563     for ac_exec_ext in '' $ac_executable_extensions; do
7564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565     ac_cv_prog_ac_ct_OTOOL="otool"
7566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570   done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7576 if test -n "$ac_ct_OTOOL"; then
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7578 $as_echo "$ac_ct_OTOOL" >&6; }
7579 else
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7582 fi
7583
7584   if test "x$ac_ct_OTOOL" = x; then
7585     OTOOL=":"
7586   else
7587     case $cross_compiling:$ac_tool_warned in
7588 yes:)
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7591 ac_tool_warned=yes ;;
7592 esac
7593     OTOOL=$ac_ct_OTOOL
7594   fi
7595 else
7596   OTOOL="$ac_cv_prog_OTOOL"
7597 fi
7598
7599     if test -n "$ac_tool_prefix"; then
7600   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7601 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if ${ac_cv_prog_OTOOL64+:} false; then :
7605   $as_echo_n "(cached) " >&6
7606 else
7607   if test -n "$OTOOL64"; then
7608   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613   IFS=$as_save_IFS
7614   test -z "$as_dir" && as_dir=.
7615     for ac_exec_ext in '' $ac_executable_extensions; do
7616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619     break 2
7620   fi
7621 done
7622   done
7623 IFS=$as_save_IFS
7624
7625 fi
7626 fi
7627 OTOOL64=$ac_cv_prog_OTOOL64
7628 if test -n "$OTOOL64"; then
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7630 $as_echo "$OTOOL64" >&6; }
7631 else
7632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7634 fi
7635
7636
7637 fi
7638 if test -z "$ac_cv_prog_OTOOL64"; then
7639   ac_ct_OTOOL64=$OTOOL64
7640   # Extract the first word of "otool64", so it can be a program name with args.
7641 set dummy otool64; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7645   $as_echo_n "(cached) " >&6
7646 else
7647   if test -n "$ac_ct_OTOOL64"; then
7648   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655     for ac_exec_ext in '' $ac_executable_extensions; do
7656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657     ac_cv_prog_ac_ct_OTOOL64="otool64"
7658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662   done
7663 IFS=$as_save_IFS
7664
7665 fi
7666 fi
7667 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7668 if test -n "$ac_ct_OTOOL64"; then
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7670 $as_echo "$ac_ct_OTOOL64" >&6; }
7671 else
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7674 fi
7675
7676   if test "x$ac_ct_OTOOL64" = x; then
7677     OTOOL64=":"
7678   else
7679     case $cross_compiling:$ac_tool_warned in
7680 yes:)
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7683 ac_tool_warned=yes ;;
7684 esac
7685     OTOOL64=$ac_ct_OTOOL64
7686   fi
7687 else
7688   OTOOL64="$ac_cv_prog_OTOOL64"
7689 fi
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7718 $as_echo_n "checking for -single_module linker flag... " >&6; }
7719 if ${lt_cv_apple_cc_single_mod+:} false; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   lt_cv_apple_cc_single_mod=no
7723       if test -z "${LT_MULTI_MODULE}"; then
7724         # By default we will add the -single_module flag. You can override
7725         # by either setting the environment variable LT_MULTI_MODULE
7726         # non-empty at configure time, or by adding -multi_module to the
7727         # link flags.
7728         rm -rf libconftest.dylib*
7729         echo "int foo(void){return 1;}" > conftest.c
7730         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7731 -dynamiclib -Wl,-single_module conftest.c" >&5
7732         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7733           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7734         _lt_result=$?
7735         # If there is a non-empty error log, and "single_module"
7736         # appears in it, assume the flag caused a linker warning
7737         if test -s conftest.err && $GREP single_module conftest.err; then
7738           cat conftest.err >&5
7739         # Otherwise, if the output was created with a 0 exit code from
7740         # the compiler, it worked.
7741         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7742           lt_cv_apple_cc_single_mod=yes
7743         else
7744           cat conftest.err >&5
7745         fi
7746         rm -rf libconftest.dylib*
7747         rm -f conftest.*
7748       fi
7749 fi
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7751 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7752
7753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7754 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7755 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7756   $as_echo_n "(cached) " >&6
7757 else
7758   lt_cv_ld_exported_symbols_list=no
7759       save_LDFLAGS=$LDFLAGS
7760       echo "_main" > conftest.sym
7761       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7762       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h.  */
7764
7765 int
7766 main ()
7767 {
7768
7769   ;
7770   return 0;
7771 }
7772 _ACEOF
7773 if ac_fn_c_try_link "$LINENO"; then :
7774   lt_cv_ld_exported_symbols_list=yes
7775 else
7776   lt_cv_ld_exported_symbols_list=no
7777 fi
7778 rm -f core conftest.err conftest.$ac_objext \
7779     conftest$ac_exeext conftest.$ac_ext
7780         LDFLAGS="$save_LDFLAGS"
7781
7782 fi
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7784 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7785
7786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7787 $as_echo_n "checking for -force_load linker flag... " >&6; }
7788 if ${lt_cv_ld_force_load+:} false; then :
7789   $as_echo_n "(cached) " >&6
7790 else
7791   lt_cv_ld_force_load=no
7792       cat > conftest.c << _LT_EOF
7793 int forced_loaded() { return 2;}
7794 _LT_EOF
7795       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7796       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7797       echo "$AR cru libconftest.a conftest.o" >&5
7798       $AR cru libconftest.a conftest.o 2>&5
7799       echo "$RANLIB libconftest.a" >&5
7800       $RANLIB libconftest.a 2>&5
7801       cat > conftest.c << _LT_EOF
7802 int main() { return 0;}
7803 _LT_EOF
7804       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7805       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7806       _lt_result=$?
7807       if test -s conftest.err && $GREP force_load conftest.err; then
7808         cat conftest.err >&5
7809       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7810         lt_cv_ld_force_load=yes
7811       else
7812         cat conftest.err >&5
7813       fi
7814         rm -f conftest.err libconftest.a conftest conftest.c
7815         rm -rf conftest.dSYM
7816
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7819 $as_echo "$lt_cv_ld_force_load" >&6; }
7820     case $host_os in
7821     rhapsody* | darwin1.[012])
7822       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7823     darwin1.*)
7824       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7825     darwin*) # darwin 5.x on
7826       # if running on 10.5 or later, the deployment target defaults
7827       # to the OS version, if on x86, and 10.4, the deployment
7828       # target defaults to 10.4. Don't you love it?
7829       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7830         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7831           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7832         10.[012]*)
7833           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7834         10.*)
7835           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7836       esac
7837     ;;
7838   esac
7839     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7840       _lt_dar_single_mod='$single_module'
7841     fi
7842     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7843       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7844     else
7845       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7846     fi
7847     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7848       _lt_dsymutil='~$DSYMUTIL $lib || :'
7849     else
7850       _lt_dsymutil=
7851     fi
7852     ;;
7853   esac
7854
7855 for ac_header in dlfcn.h
7856 do :
7857   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7858 "
7859 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7860   cat >>confdefs.h <<_ACEOF
7861 #define HAVE_DLFCN_H 1
7862 _ACEOF
7863
7864 fi
7865
7866 done
7867
7868
7869
7870
7871
7872 # Set options
7873
7874
7875
7876         enable_dlopen=no
7877
7878
7879   enable_win32_dll=no
7880
7881
7882             # Check whether --enable-shared was given.
7883 if test "${enable_shared+set}" = set; then :
7884   enableval=$enable_shared; p=${PACKAGE-default}
7885     case $enableval in
7886     yes) enable_shared=yes ;;
7887     no) enable_shared=no ;;
7888     *)
7889       enable_shared=no
7890       # Look at the argument we got.  We use all the common list separators.
7891       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7892       for pkg in $enableval; do
7893         IFS="$lt_save_ifs"
7894         if test "X$pkg" = "X$p"; then
7895           enable_shared=yes
7896         fi
7897       done
7898       IFS="$lt_save_ifs"
7899       ;;
7900     esac
7901 else
7902   enable_shared=yes
7903 fi
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913   # Check whether --enable-static was given.
7914 if test "${enable_static+set}" = set; then :
7915   enableval=$enable_static; p=${PACKAGE-default}
7916     case $enableval in
7917     yes) enable_static=yes ;;
7918     no) enable_static=no ;;
7919     *)
7920      enable_static=no
7921       # Look at the argument we got.  We use all the common list separators.
7922       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7923       for pkg in $enableval; do
7924         IFS="$lt_save_ifs"
7925         if test "X$pkg" = "X$p"; then
7926           enable_static=yes
7927         fi
7928       done
7929       IFS="$lt_save_ifs"
7930       ;;
7931     esac
7932 else
7933   enable_static=yes
7934 fi
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945 # Check whether --with-pic was given.
7946 if test "${with_pic+set}" = set; then :
7947   withval=$with_pic; lt_p=${PACKAGE-default}
7948     case $withval in
7949     yes|no) pic_mode=$withval ;;
7950     *)
7951       pic_mode=default
7952       # Look at the argument we got.  We use all the common list separators.
7953       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7954       for lt_pkg in $withval; do
7955         IFS="$lt_save_ifs"
7956         if test "X$lt_pkg" = "X$lt_p"; then
7957           pic_mode=yes
7958         fi
7959       done
7960       IFS="$lt_save_ifs"
7961       ;;
7962     esac
7963 else
7964   pic_mode=default
7965 fi
7966
7967
7968 test -z "$pic_mode" && pic_mode=default
7969
7970
7971
7972
7973
7974
7975
7976   # Check whether --enable-fast-install was given.
7977 if test "${enable_fast_install+set}" = set; then :
7978   enableval=$enable_fast_install; p=${PACKAGE-default}
7979     case $enableval in
7980     yes) enable_fast_install=yes ;;
7981     no) enable_fast_install=no ;;
7982     *)
7983       enable_fast_install=no
7984       # Look at the argument we got.  We use all the common list separators.
7985       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7986       for pkg in $enableval; do
7987         IFS="$lt_save_ifs"
7988         if test "X$pkg" = "X$p"; then
7989           enable_fast_install=yes
7990         fi
7991       done
7992       IFS="$lt_save_ifs"
7993       ;;
7994     esac
7995 else
7996   enable_fast_install=yes
7997 fi
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009 # This can be used to rebuild libtool when needed
8010 LIBTOOL_DEPS="$ltmain"
8011
8012 # Always use our own libtool.
8013 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044 test -z "$LN_S" && LN_S="ln -s"
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059 if test -n "${ZSH_VERSION+set}" ; then
8060    setopt NO_GLOB_SUBST
8061 fi
8062
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8064 $as_echo_n "checking for objdir... " >&6; }
8065 if ${lt_cv_objdir+:} false; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   rm -f .libs 2>/dev/null
8069 mkdir .libs 2>/dev/null
8070 if test -d .libs; then
8071   lt_cv_objdir=.libs
8072 else
8073   # MS-DOS does not allow filenames that begin with a dot.
8074   lt_cv_objdir=_libs
8075 fi
8076 rmdir .libs 2>/dev/null
8077 fi
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8079 $as_echo "$lt_cv_objdir" >&6; }
8080 objdir=$lt_cv_objdir
8081
8082
8083
8084
8085
8086 cat >>confdefs.h <<_ACEOF
8087 #define LT_OBJDIR "$lt_cv_objdir/"
8088 _ACEOF
8089
8090
8091
8092
8093 case $host_os in
8094 aix3*)
8095   # AIX sometimes has problems with the GCC collect2 program.  For some
8096   # reason, if we set the COLLECT_NAMES environment variable, the problems
8097   # vanish in a puff of smoke.
8098   if test "X${COLLECT_NAMES+set}" != Xset; then
8099     COLLECT_NAMES=
8100     export COLLECT_NAMES
8101   fi
8102   ;;
8103 esac
8104
8105 # Global variables:
8106 ofile=libtool
8107 can_build_shared=yes
8108
8109 # All known linkers require a `.a' archive for static linking (except MSVC,
8110 # which needs '.lib').
8111 libext=a
8112
8113 with_gnu_ld="$lt_cv_prog_gnu_ld"
8114
8115 old_CC="$CC"
8116 old_CFLAGS="$CFLAGS"
8117
8118 # Set sane defaults for various variables
8119 test -z "$CC" && CC=cc
8120 test -z "$LTCC" && LTCC=$CC
8121 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8122 test -z "$LD" && LD=ld
8123 test -z "$ac_objext" && ac_objext=o
8124
8125 for cc_temp in $compiler""; do
8126   case $cc_temp in
8127     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8128     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8129     \-*) ;;
8130     *) break;;
8131   esac
8132 done
8133 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8134
8135
8136 # Only perform the check for file, if the check method requires it
8137 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8138 case $deplibs_check_method in
8139 file_magic*)
8140   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8142 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8143 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8144   $as_echo_n "(cached) " >&6
8145 else
8146   case $MAGIC_CMD in
8147 [\\/*] |  ?:[\\/]*)
8148   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8149   ;;
8150 *)
8151   lt_save_MAGIC_CMD="$MAGIC_CMD"
8152   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8153   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8154   for ac_dir in $ac_dummy; do
8155     IFS="$lt_save_ifs"
8156     test -z "$ac_dir" && ac_dir=.
8157     if test -f $ac_dir/${ac_tool_prefix}file; then
8158       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8159       if test -n "$file_magic_test_file"; then
8160         case $deplibs_check_method in
8161         "file_magic "*)
8162           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8163           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8164           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8165             $EGREP "$file_magic_regex" > /dev/null; then
8166             :
8167           else
8168             cat <<_LT_EOF 1>&2
8169
8170 *** Warning: the command libtool uses to detect shared libraries,
8171 *** $file_magic_cmd, produces output that libtool cannot recognize.
8172 *** The result is that libtool may fail to recognize shared libraries
8173 *** as such.  This will affect the creation of libtool libraries that
8174 *** depend on shared libraries, but programs linked with such libtool
8175 *** libraries will work regardless of this problem.  Nevertheless, you
8176 *** may want to report the problem to your system manager and/or to
8177 *** bug-libtool@gnu.org
8178
8179 _LT_EOF
8180           fi ;;
8181         esac
8182       fi
8183       break
8184     fi
8185   done
8186   IFS="$lt_save_ifs"
8187   MAGIC_CMD="$lt_save_MAGIC_CMD"
8188   ;;
8189 esac
8190 fi
8191
8192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8193 if test -n "$MAGIC_CMD"; then
8194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8195 $as_echo "$MAGIC_CMD" >&6; }
8196 else
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8200
8201
8202
8203
8204
8205 if test -z "$lt_cv_path_MAGIC_CMD"; then
8206   if test -n "$ac_tool_prefix"; then
8207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8208 $as_echo_n "checking for file... " >&6; }
8209 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8210   $as_echo_n "(cached) " >&6
8211 else
8212   case $MAGIC_CMD in
8213 [\\/*] |  ?:[\\/]*)
8214   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8215   ;;
8216 *)
8217   lt_save_MAGIC_CMD="$MAGIC_CMD"
8218   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8219   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8220   for ac_dir in $ac_dummy; do
8221     IFS="$lt_save_ifs"
8222     test -z "$ac_dir" && ac_dir=.
8223     if test -f $ac_dir/file; then
8224       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8225       if test -n "$file_magic_test_file"; then
8226         case $deplibs_check_method in
8227         "file_magic "*)
8228           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8229           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8230           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8231             $EGREP "$file_magic_regex" > /dev/null; then
8232             :
8233           else
8234             cat <<_LT_EOF 1>&2
8235
8236 *** Warning: the command libtool uses to detect shared libraries,
8237 *** $file_magic_cmd, produces output that libtool cannot recognize.
8238 *** The result is that libtool may fail to recognize shared libraries
8239 *** as such.  This will affect the creation of libtool libraries that
8240 *** depend on shared libraries, but programs linked with such libtool
8241 *** libraries will work regardless of this problem.  Nevertheless, you
8242 *** may want to report the problem to your system manager and/or to
8243 *** bug-libtool@gnu.org
8244
8245 _LT_EOF
8246           fi ;;
8247         esac
8248       fi
8249       break
8250     fi
8251   done
8252   IFS="$lt_save_ifs"
8253   MAGIC_CMD="$lt_save_MAGIC_CMD"
8254   ;;
8255 esac
8256 fi
8257
8258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8259 if test -n "$MAGIC_CMD"; then
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8261 $as_echo "$MAGIC_CMD" >&6; }
8262 else
8263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8265 fi
8266
8267
8268   else
8269     MAGIC_CMD=:
8270   fi
8271 fi
8272
8273   fi
8274   ;;
8275 esac
8276
8277 # Use C for the default configuration in the libtool script
8278
8279 lt_save_CC="$CC"
8280 ac_ext=c
8281 ac_cpp='$CPP $CPPFLAGS'
8282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8285
8286
8287 # Source file extension for C test sources.
8288 ac_ext=c
8289
8290 # Object file extension for compiled C test sources.
8291 objext=o
8292 objext=$objext
8293
8294 # Code to be used in simple compile tests
8295 lt_simple_compile_test_code="int some_variable = 0;"
8296
8297 # Code to be used in simple link tests
8298 lt_simple_link_test_code='int main(){return(0);}'
8299
8300
8301
8302
8303
8304
8305
8306 # If no C compiler was specified, use CC.
8307 LTCC=${LTCC-"$CC"}
8308
8309 # If no C compiler flags were specified, use CFLAGS.
8310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8311
8312 # Allow CC to be a program name with arguments.
8313 compiler=$CC
8314
8315 # Save the default compiler, since it gets overwritten when the other
8316 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8317 compiler_DEFAULT=$CC
8318
8319 # save warnings/boilerplate of simple test code
8320 ac_outfile=conftest.$ac_objext
8321 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8322 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8323 _lt_compiler_boilerplate=`cat conftest.err`
8324 $RM conftest*
8325
8326 ac_outfile=conftest.$ac_objext
8327 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8328 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8329 _lt_linker_boilerplate=`cat conftest.err`
8330 $RM -r conftest*
8331
8332
8333 ## CAVEAT EMPTOR:
8334 ## There is no encapsulation within the following macros, do not change
8335 ## the running order or otherwise move them around unless you know exactly
8336 ## what you are doing...
8337 if test -n "$compiler"; then
8338
8339 lt_prog_compiler_no_builtin_flag=
8340
8341 if test "$GCC" = yes; then
8342   case $cc_basename in
8343   nvcc*)
8344     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8345   *)
8346     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8347   esac
8348
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8350 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8351 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8352   $as_echo_n "(cached) " >&6
8353 else
8354   lt_cv_prog_compiler_rtti_exceptions=no
8355    ac_outfile=conftest.$ac_objext
8356    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8357    lt_compiler_flag="-fno-rtti -fno-exceptions"
8358    # Insert the option either (1) after the last *FLAGS variable, or
8359    # (2) before a word containing "conftest.", or (3) at the end.
8360    # Note that $ac_compile itself does not contain backslashes and begins
8361    # with a dollar sign (not a hyphen), so the echo should work correctly.
8362    # The option is referenced via a variable to avoid confusing sed.
8363    lt_compile=`echo "$ac_compile" | $SED \
8364    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8365    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8366    -e 's:$: $lt_compiler_flag:'`
8367    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8368    (eval "$lt_compile" 2>conftest.err)
8369    ac_status=$?
8370    cat conftest.err >&5
8371    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372    if (exit $ac_status) && test -s "$ac_outfile"; then
8373      # The compiler can only warn and ignore the option if not recognized
8374      # So say no if there are warnings other than the usual output.
8375      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8376      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8377      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8378        lt_cv_prog_compiler_rtti_exceptions=yes
8379      fi
8380    fi
8381    $RM conftest*
8382
8383 fi
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8385 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8386
8387 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8388     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8389 else
8390     :
8391 fi
8392
8393 fi
8394
8395
8396
8397
8398
8399
8400   lt_prog_compiler_wl=
8401 lt_prog_compiler_pic=
8402 lt_prog_compiler_static=
8403
8404
8405   if test "$GCC" = yes; then
8406     lt_prog_compiler_wl='-Wl,'
8407     lt_prog_compiler_static='-static'
8408
8409     case $host_os in
8410       aix*)
8411       # All AIX code is PIC.
8412       if test "$host_cpu" = ia64; then
8413         # AIX 5 now supports IA64 processor
8414         lt_prog_compiler_static='-Bstatic'
8415       fi
8416       ;;
8417
8418     amigaos*)
8419       case $host_cpu in
8420       powerpc)
8421             # see comment about AmigaOS4 .so support
8422             lt_prog_compiler_pic='-fPIC'
8423         ;;
8424       m68k)
8425             # FIXME: we need at least 68020 code to build shared libraries, but
8426             # adding the `-m68020' flag to GCC prevents building anything better,
8427             # like `-m68040'.
8428             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8429         ;;
8430       esac
8431       ;;
8432
8433     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8434       # PIC is the default for these OSes.
8435       ;;
8436
8437     mingw* | cygwin* | pw32* | os2* | cegcc*)
8438       # This hack is so that the source file can tell whether it is being
8439       # built for inclusion in a dll (and should export symbols for example).
8440       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8441       # (--disable-auto-import) libraries
8442       lt_prog_compiler_pic='-DDLL_EXPORT'
8443       ;;
8444
8445     darwin* | rhapsody*)
8446       # PIC is the default on this platform
8447       # Common symbols not allowed in MH_DYLIB files
8448       lt_prog_compiler_pic='-fno-common'
8449       ;;
8450
8451     haiku*)
8452       # PIC is the default for Haiku.
8453       # The "-static" flag exists, but is broken.
8454       lt_prog_compiler_static=
8455       ;;
8456
8457     hpux*)
8458       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8459       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8460       # sets the default TLS model and affects inlining.
8461       case $host_cpu in
8462       hppa*64*)
8463         # +Z the default
8464         ;;
8465       *)
8466         lt_prog_compiler_pic='-fPIC'
8467         ;;
8468       esac
8469       ;;
8470
8471     interix[3-9]*)
8472       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8473       # Instead, we relocate shared libraries at runtime.
8474       ;;
8475
8476     msdosdjgpp*)
8477       # Just because we use GCC doesn't mean we suddenly get shared libraries
8478       # on systems that don't support them.
8479       lt_prog_compiler_can_build_shared=no
8480       enable_shared=no
8481       ;;
8482
8483     *nto* | *qnx*)
8484       # QNX uses GNU C++, but need to define -shared option too, otherwise
8485       # it will coredump.
8486       lt_prog_compiler_pic='-fPIC -shared'
8487       ;;
8488
8489     sysv4*MP*)
8490       if test -d /usr/nec; then
8491         lt_prog_compiler_pic=-Kconform_pic
8492       fi
8493       ;;
8494
8495     *)
8496       lt_prog_compiler_pic='-fPIC'
8497       ;;
8498     esac
8499
8500     case $cc_basename in
8501     nvcc*) # Cuda Compiler Driver 2.2
8502       lt_prog_compiler_wl='-Xlinker '
8503       if test -n "$lt_prog_compiler_pic"; then
8504         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8505       fi
8506       ;;
8507     esac
8508   else
8509     # PORTME Check for flag to pass linker flags through the system compiler.
8510     case $host_os in
8511     aix*)
8512       lt_prog_compiler_wl='-Wl,'
8513       if test "$host_cpu" = ia64; then
8514         # AIX 5 now supports IA64 processor
8515         lt_prog_compiler_static='-Bstatic'
8516       else
8517         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8518       fi
8519       ;;
8520
8521     mingw* | cygwin* | pw32* | os2* | cegcc*)
8522       # This hack is so that the source file can tell whether it is being
8523       # built for inclusion in a dll (and should export symbols for example).
8524       lt_prog_compiler_pic='-DDLL_EXPORT'
8525       ;;
8526
8527     hpux9* | hpux10* | hpux11*)
8528       lt_prog_compiler_wl='-Wl,'
8529       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8530       # not for PA HP-UX.
8531       case $host_cpu in
8532       hppa*64*|ia64*)
8533         # +Z the default
8534         ;;
8535       *)
8536         lt_prog_compiler_pic='+Z'
8537         ;;
8538       esac
8539       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8540       lt_prog_compiler_static='${wl}-a ${wl}archive'
8541       ;;
8542
8543     irix5* | irix6* | nonstopux*)
8544       lt_prog_compiler_wl='-Wl,'
8545       # PIC (with -KPIC) is the default.
8546       lt_prog_compiler_static='-non_shared'
8547       ;;
8548
8549     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8550       case $cc_basename in
8551       # old Intel for x86_64 which still supported -KPIC.
8552       ecc*)
8553         lt_prog_compiler_wl='-Wl,'
8554         lt_prog_compiler_pic='-KPIC'
8555         lt_prog_compiler_static='-static'
8556         ;;
8557       # icc used to be incompatible with GCC.
8558       # ICC 10 doesn't accept -KPIC any more.
8559       icc* | ifort*)
8560         lt_prog_compiler_wl='-Wl,'
8561         lt_prog_compiler_pic='-fPIC'
8562         lt_prog_compiler_static='-static'
8563         ;;
8564       # Lahey Fortran 8.1.
8565       lf95*)
8566         lt_prog_compiler_wl='-Wl,'
8567         lt_prog_compiler_pic='--shared'
8568         lt_prog_compiler_static='--static'
8569         ;;
8570       nagfor*)
8571         # NAG Fortran compiler
8572         lt_prog_compiler_wl='-Wl,-Wl,,'
8573         lt_prog_compiler_pic='-PIC'
8574         lt_prog_compiler_static='-Bstatic'
8575         ;;
8576       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8577         # Portland Group compilers (*not* the Pentium gcc compiler,
8578         # which looks to be a dead project)
8579         lt_prog_compiler_wl='-Wl,'
8580         lt_prog_compiler_pic='-fpic'
8581         lt_prog_compiler_static='-Bstatic'
8582         ;;
8583       ccc*)
8584         lt_prog_compiler_wl='-Wl,'
8585         # All Alpha code is PIC.
8586         lt_prog_compiler_static='-non_shared'
8587         ;;
8588       xl* | bgxl* | bgf* | mpixl*)
8589         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8590         lt_prog_compiler_wl='-Wl,'
8591         lt_prog_compiler_pic='-qpic'
8592         lt_prog_compiler_static='-qstaticlink'
8593         ;;
8594       *)
8595         case `$CC -V 2>&1 | sed 5q` in
8596         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8597           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8598           lt_prog_compiler_pic='-KPIC'
8599           lt_prog_compiler_static='-Bstatic'
8600           lt_prog_compiler_wl=''
8601           ;;
8602         *Sun\ F* | *Sun*Fortran*)
8603           lt_prog_compiler_pic='-KPIC'
8604           lt_prog_compiler_static='-Bstatic'
8605           lt_prog_compiler_wl='-Qoption ld '
8606           ;;
8607         *Sun\ C*)
8608           # Sun C 5.9
8609           lt_prog_compiler_pic='-KPIC'
8610           lt_prog_compiler_static='-Bstatic'
8611           lt_prog_compiler_wl='-Wl,'
8612           ;;
8613         *Intel*\ [CF]*Compiler*)
8614           lt_prog_compiler_wl='-Wl,'
8615           lt_prog_compiler_pic='-fPIC'
8616           lt_prog_compiler_static='-static'
8617           ;;
8618         *Portland\ Group*)
8619           lt_prog_compiler_wl='-Wl,'
8620           lt_prog_compiler_pic='-fpic'
8621           lt_prog_compiler_static='-Bstatic'
8622           ;;
8623         esac
8624         ;;
8625       esac
8626       ;;
8627
8628     newsos6)
8629       lt_prog_compiler_pic='-KPIC'
8630       lt_prog_compiler_static='-Bstatic'
8631       ;;
8632
8633     *nto* | *qnx*)
8634       # QNX uses GNU C++, but need to define -shared option too, otherwise
8635       # it will coredump.
8636       lt_prog_compiler_pic='-fPIC -shared'
8637       ;;
8638
8639     osf3* | osf4* | osf5*)
8640       lt_prog_compiler_wl='-Wl,'
8641       # All OSF/1 code is PIC.
8642       lt_prog_compiler_static='-non_shared'
8643       ;;
8644
8645     rdos*)
8646       lt_prog_compiler_static='-non_shared'
8647       ;;
8648
8649     solaris*)
8650       lt_prog_compiler_pic='-KPIC'
8651       lt_prog_compiler_static='-Bstatic'
8652       case $cc_basename in
8653       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8654         lt_prog_compiler_wl='-Qoption ld ';;
8655       *)
8656         lt_prog_compiler_wl='-Wl,';;
8657       esac
8658       ;;
8659
8660     sunos4*)
8661       lt_prog_compiler_wl='-Qoption ld '
8662       lt_prog_compiler_pic='-PIC'
8663       lt_prog_compiler_static='-Bstatic'
8664       ;;
8665
8666     sysv4 | sysv4.2uw2* | sysv4.3*)
8667       lt_prog_compiler_wl='-Wl,'
8668       lt_prog_compiler_pic='-KPIC'
8669       lt_prog_compiler_static='-Bstatic'
8670       ;;
8671
8672     sysv4*MP*)
8673       if test -d /usr/nec ;then
8674         lt_prog_compiler_pic='-Kconform_pic'
8675         lt_prog_compiler_static='-Bstatic'
8676       fi
8677       ;;
8678
8679     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8680       lt_prog_compiler_wl='-Wl,'
8681       lt_prog_compiler_pic='-KPIC'
8682       lt_prog_compiler_static='-Bstatic'
8683       ;;
8684
8685     unicos*)
8686       lt_prog_compiler_wl='-Wl,'
8687       lt_prog_compiler_can_build_shared=no
8688       ;;
8689
8690     uts4*)
8691       lt_prog_compiler_pic='-pic'
8692       lt_prog_compiler_static='-Bstatic'
8693       ;;
8694
8695     *)
8696       lt_prog_compiler_can_build_shared=no
8697       ;;
8698     esac
8699   fi
8700
8701 case $host_os in
8702   # For platforms which do not support PIC, -DPIC is meaningless:
8703   *djgpp*)
8704     lt_prog_compiler_pic=
8705     ;;
8706   *)
8707     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8708     ;;
8709 esac
8710
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8712 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8713 if ${lt_cv_prog_compiler_pic+:} false; then :
8714   $as_echo_n "(cached) " >&6
8715 else
8716   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8717 fi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8719 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8720 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8721
8722 #
8723 # Check to make sure the PIC flag actually works.
8724 #
8725 if test -n "$lt_prog_compiler_pic"; then
8726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8727 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8728 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8729   $as_echo_n "(cached) " >&6
8730 else
8731   lt_cv_prog_compiler_pic_works=no
8732    ac_outfile=conftest.$ac_objext
8733    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8734    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8735    # Insert the option either (1) after the last *FLAGS variable, or
8736    # (2) before a word containing "conftest.", or (3) at the end.
8737    # Note that $ac_compile itself does not contain backslashes and begins
8738    # with a dollar sign (not a hyphen), so the echo should work correctly.
8739    # The option is referenced via a variable to avoid confusing sed.
8740    lt_compile=`echo "$ac_compile" | $SED \
8741    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8742    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8743    -e 's:$: $lt_compiler_flag:'`
8744    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8745    (eval "$lt_compile" 2>conftest.err)
8746    ac_status=$?
8747    cat conftest.err >&5
8748    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749    if (exit $ac_status) && test -s "$ac_outfile"; then
8750      # The compiler can only warn and ignore the option if not recognized
8751      # So say no if there are warnings other than the usual output.
8752      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8753      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8754      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8755        lt_cv_prog_compiler_pic_works=yes
8756      fi
8757    fi
8758    $RM conftest*
8759
8760 fi
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8762 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8763
8764 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8765     case $lt_prog_compiler_pic in
8766      "" | " "*) ;;
8767      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8768      esac
8769 else
8770     lt_prog_compiler_pic=
8771      lt_prog_compiler_can_build_shared=no
8772 fi
8773
8774 fi
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786 #
8787 # Check to make sure the static flag actually works.
8788 #
8789 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8791 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8792 if ${lt_cv_prog_compiler_static_works+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   lt_cv_prog_compiler_static_works=no
8796    save_LDFLAGS="$LDFLAGS"
8797    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8798    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8799    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8800      # The linker can only warn and ignore the option if not recognized
8801      # So say no if there are warnings
8802      if test -s conftest.err; then
8803        # Append any errors to the config.log.
8804        cat conftest.err 1>&5
8805        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8806        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8807        if diff conftest.exp conftest.er2 >/dev/null; then
8808          lt_cv_prog_compiler_static_works=yes
8809        fi
8810      else
8811        lt_cv_prog_compiler_static_works=yes
8812      fi
8813    fi
8814    $RM -r conftest*
8815    LDFLAGS="$save_LDFLAGS"
8816
8817 fi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8819 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8820
8821 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8822     :
8823 else
8824     lt_prog_compiler_static=
8825 fi
8826
8827
8828
8829
8830
8831
8832
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8834 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8835 if ${lt_cv_prog_compiler_c_o+:} false; then :
8836   $as_echo_n "(cached) " >&6
8837 else
8838   lt_cv_prog_compiler_c_o=no
8839    $RM -r conftest 2>/dev/null
8840    mkdir conftest
8841    cd conftest
8842    mkdir out
8843    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8844
8845    lt_compiler_flag="-o out/conftest2.$ac_objext"
8846    # Insert the option either (1) after the last *FLAGS variable, or
8847    # (2) before a word containing "conftest.", or (3) at the end.
8848    # Note that $ac_compile itself does not contain backslashes and begins
8849    # with a dollar sign (not a hyphen), so the echo should work correctly.
8850    lt_compile=`echo "$ac_compile" | $SED \
8851    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8852    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8853    -e 's:$: $lt_compiler_flag:'`
8854    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8855    (eval "$lt_compile" 2>out/conftest.err)
8856    ac_status=$?
8857    cat out/conftest.err >&5
8858    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8860    then
8861      # The compiler can only warn and ignore the option if not recognized
8862      # So say no if there are warnings
8863      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8864      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8865      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8866        lt_cv_prog_compiler_c_o=yes
8867      fi
8868    fi
8869    chmod u+w . 2>&5
8870    $RM conftest*
8871    # SGI C++ compiler will create directory out/ii_files/ for
8872    # template instantiation
8873    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8874    $RM out/* && rmdir out
8875    cd ..
8876    $RM -r conftest
8877    $RM conftest*
8878
8879 fi
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8881 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8882
8883
8884
8885
8886
8887
8888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8889 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8890 if ${lt_cv_prog_compiler_c_o+:} false; then :
8891   $as_echo_n "(cached) " >&6
8892 else
8893   lt_cv_prog_compiler_c_o=no
8894    $RM -r conftest 2>/dev/null
8895    mkdir conftest
8896    cd conftest
8897    mkdir out
8898    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8899
8900    lt_compiler_flag="-o out/conftest2.$ac_objext"
8901    # Insert the option either (1) after the last *FLAGS variable, or
8902    # (2) before a word containing "conftest.", or (3) at the end.
8903    # Note that $ac_compile itself does not contain backslashes and begins
8904    # with a dollar sign (not a hyphen), so the echo should work correctly.
8905    lt_compile=`echo "$ac_compile" | $SED \
8906    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8907    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8908    -e 's:$: $lt_compiler_flag:'`
8909    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8910    (eval "$lt_compile" 2>out/conftest.err)
8911    ac_status=$?
8912    cat out/conftest.err >&5
8913    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8915    then
8916      # The compiler can only warn and ignore the option if not recognized
8917      # So say no if there are warnings
8918      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8919      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8920      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8921        lt_cv_prog_compiler_c_o=yes
8922      fi
8923    fi
8924    chmod u+w . 2>&5
8925    $RM conftest*
8926    # SGI C++ compiler will create directory out/ii_files/ for
8927    # template instantiation
8928    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8929    $RM out/* && rmdir out
8930    cd ..
8931    $RM -r conftest
8932    $RM conftest*
8933
8934 fi
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8936 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8937
8938
8939
8940
8941 hard_links="nottested"
8942 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8943   # do not overwrite the value of need_locks provided by the user
8944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8945 $as_echo_n "checking if we can lock with hard links... " >&6; }
8946   hard_links=yes
8947   $RM conftest*
8948   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8949   touch conftest.a
8950   ln conftest.a conftest.b 2>&5 || hard_links=no
8951   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8953 $as_echo "$hard_links" >&6; }
8954   if test "$hard_links" = no; then
8955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8956 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8957     need_locks=warn
8958   fi
8959 else
8960   need_locks=no
8961 fi
8962
8963
8964
8965
8966
8967
8968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8969 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8970
8971   runpath_var=
8972   allow_undefined_flag=
8973   always_export_symbols=no
8974   archive_cmds=
8975   archive_expsym_cmds=
8976   compiler_needs_object=no
8977   enable_shared_with_static_runtimes=no
8978   export_dynamic_flag_spec=
8979   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8980   hardcode_automatic=no
8981   hardcode_direct=no
8982   hardcode_direct_absolute=no
8983   hardcode_libdir_flag_spec=
8984   hardcode_libdir_separator=
8985   hardcode_minus_L=no
8986   hardcode_shlibpath_var=unsupported
8987   inherit_rpath=no
8988   link_all_deplibs=unknown
8989   module_cmds=
8990   module_expsym_cmds=
8991   old_archive_from_new_cmds=
8992   old_archive_from_expsyms_cmds=
8993   thread_safe_flag_spec=
8994   whole_archive_flag_spec=
8995   # include_expsyms should be a list of space-separated symbols to be *always*
8996   # included in the symbol list
8997   include_expsyms=
8998   # exclude_expsyms can be an extended regexp of symbols to exclude
8999   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9000   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9001   # as well as any symbol that contains `d'.
9002   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9003   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9004   # platforms (ab)use it in PIC code, but their linkers get confused if
9005   # the symbol is explicitly referenced.  Since portable code cannot
9006   # rely on this symbol name, it's probably fine to never include it in
9007   # preloaded symbol tables.
9008   # Exclude shared library initialization/finalization symbols.
9009   extract_expsyms_cmds=
9010
9011   case $host_os in
9012   cygwin* | mingw* | pw32* | cegcc*)
9013     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9014     # When not using gcc, we currently assume that we are using
9015     # Microsoft Visual C++.
9016     if test "$GCC" != yes; then
9017       with_gnu_ld=no
9018     fi
9019     ;;
9020   interix*)
9021     # we just hope/assume this is gcc and not c89 (= MSVC++)
9022     with_gnu_ld=yes
9023     ;;
9024   openbsd*)
9025     with_gnu_ld=no
9026     ;;
9027   esac
9028
9029   ld_shlibs=yes
9030
9031   # On some targets, GNU ld is compatible enough with the native linker
9032   # that we're better off using the native interface for both.
9033   lt_use_gnu_ld_interface=no
9034   if test "$with_gnu_ld" = yes; then
9035     case $host_os in
9036       aix*)
9037         # The AIX port of GNU ld has always aspired to compatibility
9038         # with the native linker.  However, as the warning in the GNU ld
9039         # block says, versions before 2.19.5* couldn't really create working
9040         # shared libraries, regardless of the interface used.
9041         case `$LD -v 2>&1` in
9042           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9043           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9044           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9045           *)
9046             lt_use_gnu_ld_interface=yes
9047             ;;
9048         esac
9049         ;;
9050       *)
9051         lt_use_gnu_ld_interface=yes
9052         ;;
9053     esac
9054   fi
9055
9056   if test "$lt_use_gnu_ld_interface" = yes; then
9057     # If archive_cmds runs LD, not CC, wlarc should be empty
9058     wlarc='${wl}'
9059
9060     # Set some defaults for GNU ld with shared library support. These
9061     # are reset later if shared libraries are not supported. Putting them
9062     # here allows them to be overridden if necessary.
9063     runpath_var=LD_RUN_PATH
9064     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9065     export_dynamic_flag_spec='${wl}--export-dynamic'
9066     # ancient GNU ld didn't support --whole-archive et. al.
9067     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9068       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9069     else
9070       whole_archive_flag_spec=
9071     fi
9072     supports_anon_versioning=no
9073     case `$LD -v 2>&1` in
9074       *GNU\ gold*) supports_anon_versioning=yes ;;
9075       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9076       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9077       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9078       *\ 2.11.*) ;; # other 2.11 versions
9079       *) supports_anon_versioning=yes ;;
9080     esac
9081
9082     # See if GNU ld supports shared libraries.
9083     case $host_os in
9084     aix[3-9]*)
9085       # On AIX/PPC, the GNU linker is very broken
9086       if test "$host_cpu" != ia64; then
9087         ld_shlibs=no
9088         cat <<_LT_EOF 1>&2
9089
9090 *** Warning: the GNU linker, at least up to release 2.19, is reported
9091 *** to be unable to reliably create shared libraries on AIX.
9092 *** Therefore, libtool is disabling shared libraries support.  If you
9093 *** really care for shared libraries, you may want to install binutils
9094 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9095 *** You will then need to restart the configuration process.
9096
9097 _LT_EOF
9098       fi
9099       ;;
9100
9101     amigaos*)
9102       case $host_cpu in
9103       powerpc)
9104             # see comment about AmigaOS4 .so support
9105             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9106             archive_expsym_cmds=''
9107         ;;
9108       m68k)
9109             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)'
9110             hardcode_libdir_flag_spec='-L$libdir'
9111             hardcode_minus_L=yes
9112         ;;
9113       esac
9114       ;;
9115
9116     beos*)
9117       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9118         allow_undefined_flag=unsupported
9119         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9120         # support --undefined.  This deserves some investigation.  FIXME
9121         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122       else
9123         ld_shlibs=no
9124       fi
9125       ;;
9126
9127     cygwin* | mingw* | pw32* | cegcc*)
9128       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9129       # as there is no search path for DLLs.
9130       hardcode_libdir_flag_spec='-L$libdir'
9131       export_dynamic_flag_spec='${wl}--export-all-symbols'
9132       allow_undefined_flag=unsupported
9133       always_export_symbols=no
9134       enable_shared_with_static_runtimes=yes
9135       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9136       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9137
9138       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9140         # If the export-symbols file already is a .def file (1st line
9141         # is EXPORTS), use it as is; otherwise, prepend...
9142         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9143           cp $export_symbols $output_objdir/$soname.def;
9144         else
9145           echo EXPORTS > $output_objdir/$soname.def;
9146           cat $export_symbols >> $output_objdir/$soname.def;
9147         fi~
9148         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9149       else
9150         ld_shlibs=no
9151       fi
9152       ;;
9153
9154     haiku*)
9155       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9156       link_all_deplibs=yes
9157       ;;
9158
9159     interix[3-9]*)
9160       hardcode_direct=no
9161       hardcode_shlibpath_var=no
9162       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9163       export_dynamic_flag_spec='${wl}-E'
9164       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9165       # Instead, shared libraries are loaded at an image base (0x10000000 by
9166       # default) and relocated if they conflict, which is a slow very memory
9167       # consuming and fragmenting process.  To avoid this, we pick a random,
9168       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9169       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9170       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9171       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'
9172       ;;
9173
9174     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9175       tmp_diet=no
9176       if test "$host_os" = linux-dietlibc; then
9177         case $cc_basename in
9178           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9179         esac
9180       fi
9181       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9182          && test "$tmp_diet" = no
9183       then
9184         tmp_addflag=' $pic_flag'
9185         tmp_sharedflag='-shared'
9186         case $cc_basename,$host_cpu in
9187         pgcc*)                          # Portland Group C compiler
9188           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9189           tmp_addflag=' $pic_flag'
9190           ;;
9191         pgf77* | pgf90* | pgf95* | pgfortran*)
9192                                         # Portland Group f77 and f90 compilers
9193           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9194           tmp_addflag=' $pic_flag -Mnomain' ;;
9195         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9196           tmp_addflag=' -i_dynamic' ;;
9197         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9198           tmp_addflag=' -i_dynamic -nofor_main' ;;
9199         ifc* | ifort*)                  # Intel Fortran compiler
9200           tmp_addflag=' -nofor_main' ;;
9201         lf95*)                          # Lahey Fortran 8.1
9202           whole_archive_flag_spec=
9203           tmp_sharedflag='--shared' ;;
9204         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9205           tmp_sharedflag='-qmkshrobj'
9206           tmp_addflag= ;;
9207         nvcc*)  # Cuda Compiler Driver 2.2
9208           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9209           compiler_needs_object=yes
9210           ;;
9211         esac
9212         case `$CC -V 2>&1 | sed 5q` in
9213         *Sun\ C*)                       # Sun C 5.9
9214           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9215           compiler_needs_object=yes
9216           tmp_sharedflag='-G' ;;
9217         *Sun\ F*)                       # Sun Fortran 8.3
9218           tmp_sharedflag='-G' ;;
9219         esac
9220         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221
9222         if test "x$supports_anon_versioning" = xyes; then
9223           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9224             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9225             echo "local: *; };" >> $output_objdir/$libname.ver~
9226             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9227         fi
9228
9229         case $cc_basename in
9230         xlf* | bgf* | bgxlf* | mpixlf*)
9231           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9232           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9233           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9235           if test "x$supports_anon_versioning" = xyes; then
9236             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9237               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9238               echo "local: *; };" >> $output_objdir/$libname.ver~
9239               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9240           fi
9241           ;;
9242         esac
9243       else
9244         ld_shlibs=no
9245       fi
9246       ;;
9247
9248     netbsd*)
9249       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9250         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9251         wlarc=
9252       else
9253         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9255       fi
9256       ;;
9257
9258     solaris*)
9259       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9260         ld_shlibs=no
9261         cat <<_LT_EOF 1>&2
9262
9263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9264 *** create shared libraries on Solaris systems.  Therefore, libtool
9265 *** is disabling shared libraries support.  We urge you to upgrade GNU
9266 *** binutils to release 2.9.1 or newer.  Another option is to modify
9267 *** your PATH or compiler configuration so that the native linker is
9268 *** used, and then restart.
9269
9270 _LT_EOF
9271       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9272         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9273         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9274       else
9275         ld_shlibs=no
9276       fi
9277       ;;
9278
9279     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9280       case `$LD -v 2>&1` in
9281         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9282         ld_shlibs=no
9283         cat <<_LT_EOF 1>&2
9284
9285 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9286 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9287 *** is disabling shared libraries support.  We urge you to upgrade GNU
9288 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9289 *** your PATH or compiler configuration so that the native linker is
9290 *** used, and then restart.
9291
9292 _LT_EOF
9293         ;;
9294         *)
9295           # For security reasons, it is highly recommended that you always
9296           # use absolute paths for naming shared libraries, and exclude the
9297           # DT_RUNPATH tag from executables and libraries.  But doing so
9298           # requires that you compile everything twice, which is a pain.
9299           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9300             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9303           else
9304             ld_shlibs=no
9305           fi
9306         ;;
9307       esac
9308       ;;
9309
9310     sunos4*)
9311       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9312       wlarc=
9313       hardcode_direct=yes
9314       hardcode_shlibpath_var=no
9315       ;;
9316
9317     *)
9318       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9319         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9321       else
9322         ld_shlibs=no
9323       fi
9324       ;;
9325     esac
9326
9327     if test "$ld_shlibs" = no; then
9328       runpath_var=
9329       hardcode_libdir_flag_spec=
9330       export_dynamic_flag_spec=
9331       whole_archive_flag_spec=
9332     fi
9333   else
9334     # PORTME fill in a description of your system's linker (not GNU ld)
9335     case $host_os in
9336     aix3*)
9337       allow_undefined_flag=unsupported
9338       always_export_symbols=yes
9339       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'
9340       # Note: this linker hardcodes the directories in LIBPATH if there
9341       # are no directories specified by -L.
9342       hardcode_minus_L=yes
9343       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9344         # Neither direct hardcoding nor static linking is supported with a
9345         # broken collect2.
9346         hardcode_direct=unsupported
9347       fi
9348       ;;
9349
9350     aix[4-9]*)
9351       if test "$host_cpu" = ia64; then
9352         # On IA64, the linker does run time linking by default, so we don't
9353         # have to do anything special.
9354         aix_use_runtimelinking=no
9355         exp_sym_flag='-Bexport'
9356         no_entry_flag=""
9357       else
9358         # If we're using GNU nm, then we don't want the "-C" option.
9359         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9360         # Also, AIX nm treats weak defined symbols like other global
9361         # defined symbols, whereas GNU nm marks them as "W".
9362         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9363           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9364         else
9365           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'
9366         fi
9367         aix_use_runtimelinking=no
9368
9369         # Test if we are trying to use run time linking or normal
9370         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9371         # need to do runtime linking.
9372         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9373           for ld_flag in $LDFLAGS; do
9374           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9375             aix_use_runtimelinking=yes
9376             break
9377           fi
9378           done
9379           ;;
9380         esac
9381
9382         exp_sym_flag='-bexport'
9383         no_entry_flag='-bnoentry'
9384       fi
9385
9386       # When large executables or shared objects are built, AIX ld can
9387       # have problems creating the table of contents.  If linking a library
9388       # or program results in "error TOC overflow" add -mminimal-toc to
9389       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9390       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9391
9392       archive_cmds=''
9393       hardcode_direct=yes
9394       hardcode_direct_absolute=yes
9395       hardcode_libdir_separator=':'
9396       link_all_deplibs=yes
9397       file_list_spec='${wl}-f,'
9398
9399       if test "$GCC" = yes; then
9400         case $host_os in aix4.[012]|aix4.[012].*)
9401         # We only want to do this on AIX 4.2 and lower, the check
9402         # below for broken collect2 doesn't work under 4.3+
9403           collect2name=`${CC} -print-prog-name=collect2`
9404           if test -f "$collect2name" &&
9405            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9406           then
9407           # We have reworked collect2
9408           :
9409           else
9410           # We have old collect2
9411           hardcode_direct=unsupported
9412           # It fails to find uninstalled libraries when the uninstalled
9413           # path is not listed in the libpath.  Setting hardcode_minus_L
9414           # to unsupported forces relinking
9415           hardcode_minus_L=yes
9416           hardcode_libdir_flag_spec='-L$libdir'
9417           hardcode_libdir_separator=
9418           fi
9419           ;;
9420         esac
9421         shared_flag='-shared'
9422         if test "$aix_use_runtimelinking" = yes; then
9423           shared_flag="$shared_flag "'${wl}-G'
9424         fi
9425       else
9426         # not using gcc
9427         if test "$host_cpu" = ia64; then
9428         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9429         # chokes on -Wl,-G. The following line is correct:
9430           shared_flag='-G'
9431         else
9432           if test "$aix_use_runtimelinking" = yes; then
9433             shared_flag='${wl}-G'
9434           else
9435             shared_flag='${wl}-bM:SRE'
9436           fi
9437         fi
9438       fi
9439
9440       export_dynamic_flag_spec='${wl}-bexpall'
9441       # It seems that -bexpall does not export symbols beginning with
9442       # underscore (_), so it is better to generate a list of symbols to export.
9443       always_export_symbols=yes
9444       if test "$aix_use_runtimelinking" = yes; then
9445         # Warning - without using the other runtime loading flags (-brtl),
9446         # -berok will link without error, but may produce a broken library.
9447         allow_undefined_flag='-berok'
9448         # Determine the default libpath from the value encoded in an
9449         # empty executable.
9450         if test "${lt_cv_aix_libpath+set}" = set; then
9451   aix_libpath=$lt_cv_aix_libpath
9452 else
9453   if ${lt_cv_aix_libpath_+:} false; then :
9454   $as_echo_n "(cached) " >&6
9455 else
9456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h.  */
9458
9459 int
9460 main ()
9461 {
9462
9463   ;
9464   return 0;
9465 }
9466 _ACEOF
9467 if ac_fn_c_try_link "$LINENO"; then :
9468
9469   lt_aix_libpath_sed='
9470       /Import File Strings/,/^$/ {
9471           /^0/ {
9472               s/^0  *\([^ ]*\) *$/\1/
9473               p
9474           }
9475       }'
9476   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9477   # Check for a 64-bit object if we didn't find anything.
9478   if test -z "$lt_cv_aix_libpath_"; then
9479     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9480   fi
9481 fi
9482 rm -f core conftest.err conftest.$ac_objext \
9483     conftest$ac_exeext conftest.$ac_ext
9484   if test -z "$lt_cv_aix_libpath_"; then
9485     lt_cv_aix_libpath_="/usr/lib:/lib"
9486   fi
9487
9488 fi
9489
9490   aix_libpath=$lt_cv_aix_libpath_
9491 fi
9492
9493         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9494         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9495       else
9496         if test "$host_cpu" = ia64; then
9497           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9498           allow_undefined_flag="-z nodefs"
9499           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"
9500         else
9501          # Determine the default libpath from the value encoded in an
9502          # empty executable.
9503          if test "${lt_cv_aix_libpath+set}" = set; then
9504   aix_libpath=$lt_cv_aix_libpath
9505 else
9506   if ${lt_cv_aix_libpath_+:} false; then :
9507   $as_echo_n "(cached) " >&6
9508 else
9509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h.  */
9511
9512 int
9513 main ()
9514 {
9515
9516   ;
9517   return 0;
9518 }
9519 _ACEOF
9520 if ac_fn_c_try_link "$LINENO"; then :
9521
9522   lt_aix_libpath_sed='
9523       /Import File Strings/,/^$/ {
9524           /^0/ {
9525               s/^0  *\([^ ]*\) *$/\1/
9526               p
9527           }
9528       }'
9529   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9530   # Check for a 64-bit object if we didn't find anything.
9531   if test -z "$lt_cv_aix_libpath_"; then
9532     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9533   fi
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext \
9536     conftest$ac_exeext conftest.$ac_ext
9537   if test -z "$lt_cv_aix_libpath_"; then
9538     lt_cv_aix_libpath_="/usr/lib:/lib"
9539   fi
9540
9541 fi
9542
9543   aix_libpath=$lt_cv_aix_libpath_
9544 fi
9545
9546          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9547           # Warning - without using the other run time loading flags,
9548           # -berok will link without error, but may produce a broken library.
9549           no_undefined_flag=' ${wl}-bernotok'
9550           allow_undefined_flag=' ${wl}-berok'
9551           if test "$with_gnu_ld" = yes; then
9552             # We only use this code for GNU lds that support --whole-archive.
9553             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9554           else
9555             # Exported symbols can be pulled into shared objects from archives
9556             whole_archive_flag_spec='$convenience'
9557           fi
9558           archive_cmds_need_lc=yes
9559           # This is similar to how AIX traditionally builds its shared libraries.
9560           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'
9561         fi
9562       fi
9563       ;;
9564
9565     amigaos*)
9566       case $host_cpu in
9567       powerpc)
9568             # see comment about AmigaOS4 .so support
9569             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570             archive_expsym_cmds=''
9571         ;;
9572       m68k)
9573             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)'
9574             hardcode_libdir_flag_spec='-L$libdir'
9575             hardcode_minus_L=yes
9576         ;;
9577       esac
9578       ;;
9579
9580     bsdi[45]*)
9581       export_dynamic_flag_spec=-rdynamic
9582       ;;
9583
9584     cygwin* | mingw* | pw32* | cegcc*)
9585       # When not using gcc, we currently assume that we are using
9586       # Microsoft Visual C++.
9587       # hardcode_libdir_flag_spec is actually meaningless, as there is
9588       # no search path for DLLs.
9589       case $cc_basename in
9590       cl*)
9591         # Native MSVC
9592         hardcode_libdir_flag_spec=' '
9593         allow_undefined_flag=unsupported
9594         always_export_symbols=yes
9595         file_list_spec='@'
9596         # Tell ltmain to make .lib files, not .a files.
9597         libext=lib
9598         # Tell ltmain to make .dll files, not .so files.
9599         shrext_cmds=".dll"
9600         # FIXME: Setting linknames here is a bad hack.
9601         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9602         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9603             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9604           else
9605             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9606           fi~
9607           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9608           linknames='
9609         # The linker will not automatically build a static lib if we build a DLL.
9610         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9611         enable_shared_with_static_runtimes=yes
9612         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9613         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9614         # Don't use ranlib
9615         old_postinstall_cmds='chmod 644 $oldlib'
9616         postlink_cmds='lt_outputfile="@OUTPUT@"~
9617           lt_tool_outputfile="@TOOL_OUTPUT@"~
9618           case $lt_outputfile in
9619             *.exe|*.EXE) ;;
9620             *)
9621               lt_outputfile="$lt_outputfile.exe"
9622               lt_tool_outputfile="$lt_tool_outputfile.exe"
9623               ;;
9624           esac~
9625           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9626             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9627             $RM "$lt_outputfile.manifest";
9628           fi'
9629         ;;
9630       *)
9631         # Assume MSVC wrapper
9632         hardcode_libdir_flag_spec=' '
9633         allow_undefined_flag=unsupported
9634         # Tell ltmain to make .lib files, not .a files.
9635         libext=lib
9636         # Tell ltmain to make .dll files, not .so files.
9637         shrext_cmds=".dll"
9638         # FIXME: Setting linknames here is a bad hack.
9639         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9640         # The linker will automatically build a .lib file if we build a DLL.
9641         old_archive_from_new_cmds='true'
9642         # FIXME: Should let the user specify the lib program.
9643         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9644         enable_shared_with_static_runtimes=yes
9645         ;;
9646       esac
9647       ;;
9648
9649     darwin* | rhapsody*)
9650
9651
9652   archive_cmds_need_lc=no
9653   hardcode_direct=no
9654   hardcode_automatic=yes
9655   hardcode_shlibpath_var=unsupported
9656   if test "$lt_cv_ld_force_load" = "yes"; then
9657     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9658
9659   else
9660     whole_archive_flag_spec=''
9661   fi
9662   link_all_deplibs=yes
9663   allow_undefined_flag="$_lt_dar_allow_undefined"
9664   case $cc_basename in
9665      ifort*) _lt_dar_can_shared=yes ;;
9666      *) _lt_dar_can_shared=$GCC ;;
9667   esac
9668   if test "$_lt_dar_can_shared" = "yes"; then
9669     output_verbose_link_cmd=func_echo_all
9670     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9671     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9672     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9673     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9674
9675   else
9676   ld_shlibs=no
9677   fi
9678
9679       ;;
9680
9681     dgux*)
9682       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683       hardcode_libdir_flag_spec='-L$libdir'
9684       hardcode_shlibpath_var=no
9685       ;;
9686
9687     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9688     # support.  Future versions do this automatically, but an explicit c++rt0.o
9689     # does not break anything, and helps significantly (at the cost of a little
9690     # extra space).
9691     freebsd2.2*)
9692       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9693       hardcode_libdir_flag_spec='-R$libdir'
9694       hardcode_direct=yes
9695       hardcode_shlibpath_var=no
9696       ;;
9697
9698     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9699     freebsd2.*)
9700       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9701       hardcode_direct=yes
9702       hardcode_minus_L=yes
9703       hardcode_shlibpath_var=no
9704       ;;
9705
9706     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9707     freebsd* | dragonfly*)
9708       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9709       hardcode_libdir_flag_spec='-R$libdir'
9710       hardcode_direct=yes
9711       hardcode_shlibpath_var=no
9712       ;;
9713
9714     hpux9*)
9715       if test "$GCC" = yes; then
9716         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9717       else
9718         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9719       fi
9720       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9721       hardcode_libdir_separator=:
9722       hardcode_direct=yes
9723
9724       # hardcode_minus_L: Not really in the search PATH,
9725       # but as the default location of the library.
9726       hardcode_minus_L=yes
9727       export_dynamic_flag_spec='${wl}-E'
9728       ;;
9729
9730     hpux10*)
9731       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9732         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9733       else
9734         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9735       fi
9736       if test "$with_gnu_ld" = no; then
9737         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9738         hardcode_libdir_separator=:
9739         hardcode_direct=yes
9740         hardcode_direct_absolute=yes
9741         export_dynamic_flag_spec='${wl}-E'
9742         # hardcode_minus_L: Not really in the search PATH,
9743         # but as the default location of the library.
9744         hardcode_minus_L=yes
9745       fi
9746       ;;
9747
9748     hpux11*)
9749       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9750         case $host_cpu in
9751         hppa*64*)
9752           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9753           ;;
9754         ia64*)
9755           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9756           ;;
9757         *)
9758           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9759           ;;
9760         esac
9761       else
9762         case $host_cpu in
9763         hppa*64*)
9764           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9765           ;;
9766         ia64*)
9767           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9768           ;;
9769         *)
9770
9771           # Older versions of the 11.00 compiler do not understand -b yet
9772           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9773           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9774 $as_echo_n "checking if $CC understands -b... " >&6; }
9775 if ${lt_cv_prog_compiler__b+:} false; then :
9776   $as_echo_n "(cached) " >&6
9777 else
9778   lt_cv_prog_compiler__b=no
9779    save_LDFLAGS="$LDFLAGS"
9780    LDFLAGS="$LDFLAGS -b"
9781    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9782    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9783      # The linker can only warn and ignore the option if not recognized
9784      # So say no if there are warnings
9785      if test -s conftest.err; then
9786        # Append any errors to the config.log.
9787        cat conftest.err 1>&5
9788        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9789        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9790        if diff conftest.exp conftest.er2 >/dev/null; then
9791          lt_cv_prog_compiler__b=yes
9792        fi
9793      else
9794        lt_cv_prog_compiler__b=yes
9795      fi
9796    fi
9797    $RM -r conftest*
9798    LDFLAGS="$save_LDFLAGS"
9799
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9802 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9803
9804 if test x"$lt_cv_prog_compiler__b" = xyes; then
9805     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9806 else
9807     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9808 fi
9809
9810           ;;
9811         esac
9812       fi
9813       if test "$with_gnu_ld" = no; then
9814         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9815         hardcode_libdir_separator=:
9816
9817         case $host_cpu in
9818         hppa*64*|ia64*)
9819           hardcode_direct=no
9820           hardcode_shlibpath_var=no
9821           ;;
9822         *)
9823           hardcode_direct=yes
9824           hardcode_direct_absolute=yes
9825           export_dynamic_flag_spec='${wl}-E'
9826
9827           # hardcode_minus_L: Not really in the search PATH,
9828           # but as the default location of the library.
9829           hardcode_minus_L=yes
9830           ;;
9831         esac
9832       fi
9833       ;;
9834
9835     irix5* | irix6* | nonstopux*)
9836       if test "$GCC" = yes; then
9837         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9838         # Try to use the -exported_symbol ld option, if it does not
9839         # work, assume that -exports_file does not work either and
9840         # implicitly export all symbols.
9841         # This should be the same for all languages, so no per-tag cache variable.
9842         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9843 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9844 if ${lt_cv_irix_exported_symbol+:} false; then :
9845   $as_echo_n "(cached) " >&6
9846 else
9847   save_LDFLAGS="$LDFLAGS"
9848            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9849            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h.  */
9851 int foo (void) { return 0; }
9852 _ACEOF
9853 if ac_fn_c_try_link "$LINENO"; then :
9854   lt_cv_irix_exported_symbol=yes
9855 else
9856   lt_cv_irix_exported_symbol=no
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext \
9859     conftest$ac_exeext conftest.$ac_ext
9860            LDFLAGS="$save_LDFLAGS"
9861 fi
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9863 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9864         if test "$lt_cv_irix_exported_symbol" = yes; then
9865           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9866         fi
9867       else
9868         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9869         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9870       fi
9871       archive_cmds_need_lc='no'
9872       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9873       hardcode_libdir_separator=:
9874       inherit_rpath=yes
9875       link_all_deplibs=yes
9876       ;;
9877
9878     netbsd*)
9879       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9880         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9881       else
9882         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9883       fi
9884       hardcode_libdir_flag_spec='-R$libdir'
9885       hardcode_direct=yes
9886       hardcode_shlibpath_var=no
9887       ;;
9888
9889     newsos6)
9890       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9891       hardcode_direct=yes
9892       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9893       hardcode_libdir_separator=:
9894       hardcode_shlibpath_var=no
9895       ;;
9896
9897     *nto* | *qnx*)
9898       ;;
9899
9900     openbsd*)
9901       if test -f /usr/libexec/ld.so; then
9902         hardcode_direct=yes
9903         hardcode_shlibpath_var=no
9904         hardcode_direct_absolute=yes
9905         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9906           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9907           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9908           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9909           export_dynamic_flag_spec='${wl}-E'
9910         else
9911           case $host_os in
9912            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9913              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9914              hardcode_libdir_flag_spec='-R$libdir'
9915              ;;
9916            *)
9917              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9918              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9919              ;;
9920           esac
9921         fi
9922       else
9923         ld_shlibs=no
9924       fi
9925       ;;
9926
9927     os2*)
9928       hardcode_libdir_flag_spec='-L$libdir'
9929       hardcode_minus_L=yes
9930       allow_undefined_flag=unsupported
9931       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'
9932       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9933       ;;
9934
9935     osf3*)
9936       if test "$GCC" = yes; then
9937         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9938         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9939       else
9940         allow_undefined_flag=' -expect_unresolved \*'
9941         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9942       fi
9943       archive_cmds_need_lc='no'
9944       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9945       hardcode_libdir_separator=:
9946       ;;
9947
9948     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9949       if test "$GCC" = yes; then
9950         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9951         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9952         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9953       else
9954         allow_undefined_flag=' -expect_unresolved \*'
9955         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9956         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~
9957         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9958
9959         # Both c and cxx compiler support -rpath directly
9960         hardcode_libdir_flag_spec='-rpath $libdir'
9961       fi
9962       archive_cmds_need_lc='no'
9963       hardcode_libdir_separator=:
9964       ;;
9965
9966     solaris*)
9967       no_undefined_flag=' -z defs'
9968       if test "$GCC" = yes; then
9969         wlarc='${wl}'
9970         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9971         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9972           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9973       else
9974         case `$CC -V 2>&1` in
9975         *"Compilers 5.0"*)
9976           wlarc=''
9977           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9979           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9980           ;;
9981         *)
9982           wlarc='${wl}'
9983           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9984           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9985           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9986           ;;
9987         esac
9988       fi
9989       hardcode_libdir_flag_spec='-R$libdir'
9990       hardcode_shlibpath_var=no
9991       case $host_os in
9992       solaris2.[0-5] | solaris2.[0-5].*) ;;
9993       *)
9994         # The compiler driver will combine and reorder linker options,
9995         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9996         # but is careful enough not to reorder.
9997         # Supported since Solaris 2.6 (maybe 2.5.1?)
9998         if test "$GCC" = yes; then
9999           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10000         else
10001           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10002         fi
10003         ;;
10004       esac
10005       link_all_deplibs=yes
10006       ;;
10007
10008     sunos4*)
10009       if test "x$host_vendor" = xsequent; then
10010         # Use $CC to link under sequent, because it throws in some extra .o
10011         # files that make .init and .fini sections work.
10012         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10013       else
10014         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10015       fi
10016       hardcode_libdir_flag_spec='-L$libdir'
10017       hardcode_direct=yes
10018       hardcode_minus_L=yes
10019       hardcode_shlibpath_var=no
10020       ;;
10021
10022     sysv4)
10023       case $host_vendor in
10024         sni)
10025           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026           hardcode_direct=yes # is this really true???
10027         ;;
10028         siemens)
10029           ## LD is ld it makes a PLAMLIB
10030           ## CC just makes a GrossModule.
10031           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10032           reload_cmds='$CC -r -o $output$reload_objs'
10033           hardcode_direct=no
10034         ;;
10035         motorola)
10036           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10037           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10038         ;;
10039       esac
10040       runpath_var='LD_RUN_PATH'
10041       hardcode_shlibpath_var=no
10042       ;;
10043
10044     sysv4.3*)
10045       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046       hardcode_shlibpath_var=no
10047       export_dynamic_flag_spec='-Bexport'
10048       ;;
10049
10050     sysv4*MP*)
10051       if test -d /usr/nec; then
10052         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053         hardcode_shlibpath_var=no
10054         runpath_var=LD_RUN_PATH
10055         hardcode_runpath_var=yes
10056         ld_shlibs=yes
10057       fi
10058       ;;
10059
10060     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10061       no_undefined_flag='${wl}-z,text'
10062       archive_cmds_need_lc=no
10063       hardcode_shlibpath_var=no
10064       runpath_var='LD_RUN_PATH'
10065
10066       if test "$GCC" = yes; then
10067         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10068         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10069       else
10070         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10071         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10072       fi
10073       ;;
10074
10075     sysv5* | sco3.2v5* | sco5v6*)
10076       # Note: We can NOT use -z defs as we might desire, because we do not
10077       # link with -lc, and that would cause any symbols used from libc to
10078       # always be unresolved, which means just about no library would
10079       # ever link correctly.  If we're not using GNU ld we use -z text
10080       # though, which does catch some bad symbols but isn't as heavy-handed
10081       # as -z defs.
10082       no_undefined_flag='${wl}-z,text'
10083       allow_undefined_flag='${wl}-z,nodefs'
10084       archive_cmds_need_lc=no
10085       hardcode_shlibpath_var=no
10086       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10087       hardcode_libdir_separator=':'
10088       link_all_deplibs=yes
10089       export_dynamic_flag_spec='${wl}-Bexport'
10090       runpath_var='LD_RUN_PATH'
10091
10092       if test "$GCC" = yes; then
10093         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095       else
10096         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098       fi
10099       ;;
10100
10101     uts4*)
10102       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103       hardcode_libdir_flag_spec='-L$libdir'
10104       hardcode_shlibpath_var=no
10105       ;;
10106
10107     *)
10108       ld_shlibs=no
10109       ;;
10110     esac
10111
10112     if test x$host_vendor = xsni; then
10113       case $host in
10114       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10115         export_dynamic_flag_spec='${wl}-Blargedynsym'
10116         ;;
10117       esac
10118     fi
10119   fi
10120
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10122 $as_echo "$ld_shlibs" >&6; }
10123 test "$ld_shlibs" = no && can_build_shared=no
10124
10125 with_gnu_ld=$with_gnu_ld
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141 #
10142 # Do we need to explicitly link libc?
10143 #
10144 case "x$archive_cmds_need_lc" in
10145 x|xyes)
10146   # Assume -lc should be added
10147   archive_cmds_need_lc=yes
10148
10149   if test "$enable_shared" = yes && test "$GCC" = yes; then
10150     case $archive_cmds in
10151     *'~'*)
10152       # FIXME: we may have to deal with multi-command sequences.
10153       ;;
10154     '$CC '*)
10155       # Test whether the compiler implicitly links with -lc since on some
10156       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10157       # to ld, don't add -lc before -lgcc.
10158       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10159 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10160 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10161   $as_echo_n "(cached) " >&6
10162 else
10163   $RM conftest*
10164         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10165
10166         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10167   (eval $ac_compile) 2>&5
10168   ac_status=$?
10169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10170   test $ac_status = 0; } 2>conftest.err; then
10171           soname=conftest
10172           lib=conftest
10173           libobjs=conftest.$ac_objext
10174           deplibs=
10175           wl=$lt_prog_compiler_wl
10176           pic_flag=$lt_prog_compiler_pic
10177           compiler_flags=-v
10178           linker_flags=-v
10179           verstring=
10180           output_objdir=.
10181           libname=conftest
10182           lt_save_allow_undefined_flag=$allow_undefined_flag
10183           allow_undefined_flag=
10184           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10185   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10186   ac_status=$?
10187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10188   test $ac_status = 0; }
10189           then
10190             lt_cv_archive_cmds_need_lc=no
10191           else
10192             lt_cv_archive_cmds_need_lc=yes
10193           fi
10194           allow_undefined_flag=$lt_save_allow_undefined_flag
10195         else
10196           cat conftest.err 1>&5
10197         fi
10198         $RM conftest*
10199
10200 fi
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10202 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10203       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10204       ;;
10205     esac
10206   fi
10207   ;;
10208 esac
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10362 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10363
10364 if test "$GCC" = yes; then
10365   case $host_os in
10366     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10367     *) lt_awk_arg="/^libraries:/" ;;
10368   esac
10369   case $host_os in
10370     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10371     *) lt_sed_strip_eq="s,=/,/,g" ;;
10372   esac
10373   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10374   case $lt_search_path_spec in
10375   *\;*)
10376     # if the path contains ";" then we assume it to be the separator
10377     # otherwise default to the standard path separator (i.e. ":") - it is
10378     # assumed that no part of a normal pathname contains ";" but that should
10379     # okay in the real world where ";" in dirpaths is itself problematic.
10380     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10381     ;;
10382   *)
10383     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10384     ;;
10385   esac
10386   # Ok, now we have the path, separated by spaces, we can step through it
10387   # and add multilib dir if necessary.
10388   lt_tmp_lt_search_path_spec=
10389   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10390   for lt_sys_path in $lt_search_path_spec; do
10391     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10392       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10393     else
10394       test -d "$lt_sys_path" && \
10395         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10396     fi
10397   done
10398   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10399 BEGIN {RS=" "; FS="/|\n";} {
10400   lt_foo="";
10401   lt_count=0;
10402   for (lt_i = NF; lt_i > 0; lt_i--) {
10403     if ($lt_i != "" && $lt_i != ".") {
10404       if ($lt_i == "..") {
10405         lt_count++;
10406       } else {
10407         if (lt_count == 0) {
10408           lt_foo="/" $lt_i lt_foo;
10409         } else {
10410           lt_count--;
10411         }
10412       }
10413     }
10414   }
10415   if (lt_foo != "") { lt_freq[lt_foo]++; }
10416   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10417 }'`
10418   # AWK program above erroneously prepends '/' to C:/dos/paths
10419   # for these hosts.
10420   case $host_os in
10421     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10422       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10423   esac
10424   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10425 else
10426   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10427 fi
10428 library_names_spec=
10429 libname_spec='lib$name'
10430 soname_spec=
10431 shrext_cmds=".so"
10432 postinstall_cmds=
10433 postuninstall_cmds=
10434 finish_cmds=
10435 finish_eval=
10436 shlibpath_var=
10437 shlibpath_overrides_runpath=unknown
10438 version_type=none
10439 dynamic_linker="$host_os ld.so"
10440 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10441 need_lib_prefix=unknown
10442 hardcode_into_libs=no
10443
10444 # when you set need_version to no, make sure it does not cause -set_version
10445 # flags to be left without arguments
10446 need_version=unknown
10447
10448 case $host_os in
10449 aix3*)
10450   version_type=linux # correct to gnu/linux during the next big refactor
10451   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10452   shlibpath_var=LIBPATH
10453
10454   # AIX 3 has no versioning support, so we append a major version to the name.
10455   soname_spec='${libname}${release}${shared_ext}$major'
10456   ;;
10457
10458 aix[4-9]*)
10459   version_type=linux # correct to gnu/linux during the next big refactor
10460   need_lib_prefix=no
10461   need_version=no
10462   hardcode_into_libs=yes
10463   if test "$host_cpu" = ia64; then
10464     # AIX 5 supports IA64
10465     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10466     shlibpath_var=LD_LIBRARY_PATH
10467   else
10468     # With GCC up to 2.95.x, collect2 would create an import file
10469     # for dependence libraries.  The import file would start with
10470     # the line `#! .'.  This would cause the generated library to
10471     # depend on `.', always an invalid library.  This was fixed in
10472     # development snapshots of GCC prior to 3.0.
10473     case $host_os in
10474       aix4 | aix4.[01] | aix4.[01].*)
10475       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10476            echo ' yes '
10477            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10478         :
10479       else
10480         can_build_shared=no
10481       fi
10482       ;;
10483     esac
10484     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10485     # soname into executable. Probably we can add versioning support to
10486     # collect2, so additional links can be useful in future.
10487     if test "$aix_use_runtimelinking" = yes; then
10488       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10489       # instead of lib<name>.a to let people know that these are not
10490       # typical AIX shared libraries.
10491       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492     else
10493       # We preserve .a as extension for shared libraries through AIX4.2
10494       # and later when we are not doing run time linking.
10495       library_names_spec='${libname}${release}.a $libname.a'
10496       soname_spec='${libname}${release}${shared_ext}$major'
10497     fi
10498     shlibpath_var=LIBPATH
10499   fi
10500   ;;
10501
10502 amigaos*)
10503   case $host_cpu in
10504   powerpc)
10505     # Since July 2007 AmigaOS4 officially supports .so libraries.
10506     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508     ;;
10509   m68k)
10510     library_names_spec='$libname.ixlibrary $libname.a'
10511     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10512     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10513     ;;
10514   esac
10515   ;;
10516
10517 beos*)
10518   library_names_spec='${libname}${shared_ext}'
10519   dynamic_linker="$host_os ld.so"
10520   shlibpath_var=LIBRARY_PATH
10521   ;;
10522
10523 bsdi[45]*)
10524   version_type=linux # correct to gnu/linux during the next big refactor
10525   need_version=no
10526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527   soname_spec='${libname}${release}${shared_ext}$major'
10528   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10529   shlibpath_var=LD_LIBRARY_PATH
10530   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10531   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10532   # the default ld.so.conf also contains /usr/contrib/lib and
10533   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10534   # libtool to hard-code these into programs
10535   ;;
10536
10537 cygwin* | mingw* | pw32* | cegcc*)
10538   version_type=windows
10539   shrext_cmds=".dll"
10540   need_version=no
10541   need_lib_prefix=no
10542
10543   case $GCC,$cc_basename in
10544   yes,*)
10545     # gcc
10546     library_names_spec='$libname.dll.a'
10547     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10548     postinstall_cmds='base_file=`basename \${file}`~
10549       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10550       dldir=$destdir/`dirname \$dlpath`~
10551       test -d \$dldir || mkdir -p \$dldir~
10552       $install_prog $dir/$dlname \$dldir/$dlname~
10553       chmod a+x \$dldir/$dlname~
10554       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10555         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10556       fi'
10557     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10558       dlpath=$dir/\$dldll~
10559        $RM \$dlpath'
10560     shlibpath_overrides_runpath=yes
10561
10562     case $host_os in
10563     cygwin*)
10564       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10565       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10566
10567       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10568       ;;
10569     mingw* | cegcc*)
10570       # MinGW DLLs use traditional 'lib' prefix
10571       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10572       ;;
10573     pw32*)
10574       # pw32 DLLs use 'pw' prefix rather than 'lib'
10575       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10576       ;;
10577     esac
10578     dynamic_linker='Win32 ld.exe'
10579     ;;
10580
10581   *,cl*)
10582     # Native MSVC
10583     libname_spec='$name'
10584     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10585     library_names_spec='${libname}.dll.lib'
10586
10587     case $build_os in
10588     mingw*)
10589       sys_lib_search_path_spec=
10590       lt_save_ifs=$IFS
10591       IFS=';'
10592       for lt_path in $LIB
10593       do
10594         IFS=$lt_save_ifs
10595         # Let DOS variable expansion print the short 8.3 style file name.
10596         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10597         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10598       done
10599       IFS=$lt_save_ifs
10600       # Convert to MSYS style.
10601       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10602       ;;
10603     cygwin*)
10604       # Convert to unix form, then to dos form, then back to unix form
10605       # but this time dos style (no spaces!) so that the unix form looks
10606       # like /cygdrive/c/PROGRA~1:/cygdr...
10607       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10608       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10609       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10610       ;;
10611     *)
10612       sys_lib_search_path_spec="$LIB"
10613       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10614         # It is most probably a Windows format PATH.
10615         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10616       else
10617         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10618       fi
10619       # FIXME: find the short name or the path components, as spaces are
10620       # common. (e.g. "Program Files" -> "PROGRA~1")
10621       ;;
10622     esac
10623
10624     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10625     postinstall_cmds='base_file=`basename \${file}`~
10626       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10627       dldir=$destdir/`dirname \$dlpath`~
10628       test -d \$dldir || mkdir -p \$dldir~
10629       $install_prog $dir/$dlname \$dldir/$dlname'
10630     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10631       dlpath=$dir/\$dldll~
10632        $RM \$dlpath'
10633     shlibpath_overrides_runpath=yes
10634     dynamic_linker='Win32 link.exe'
10635     ;;
10636
10637   *)
10638     # Assume MSVC wrapper
10639     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10640     dynamic_linker='Win32 ld.exe'
10641     ;;
10642   esac
10643   # FIXME: first we should search . and the directory the executable is in
10644   shlibpath_var=PATH
10645   ;;
10646
10647 darwin* | rhapsody*)
10648   dynamic_linker="$host_os dyld"
10649   version_type=darwin
10650   need_lib_prefix=no
10651   need_version=no
10652   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10653   soname_spec='${libname}${release}${major}$shared_ext'
10654   shlibpath_overrides_runpath=yes
10655   shlibpath_var=DYLD_LIBRARY_PATH
10656   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10657
10658   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10659   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10660   ;;
10661
10662 dgux*)
10663   version_type=linux # correct to gnu/linux during the next big refactor
10664   need_lib_prefix=no
10665   need_version=no
10666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10667   soname_spec='${libname}${release}${shared_ext}$major'
10668   shlibpath_var=LD_LIBRARY_PATH
10669   ;;
10670
10671 freebsd* | dragonfly*)
10672   # DragonFly does not have aout.  When/if they implement a new
10673   # versioning mechanism, adjust this.
10674   if test -x /usr/bin/objformat; then
10675     objformat=`/usr/bin/objformat`
10676   else
10677     case $host_os in
10678     freebsd[23].*) objformat=aout ;;
10679     *) objformat=elf ;;
10680     esac
10681   fi
10682   version_type=freebsd-$objformat
10683   case $version_type in
10684     freebsd-elf*)
10685       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10686       need_version=no
10687       need_lib_prefix=no
10688       ;;
10689     freebsd-*)
10690       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10691       need_version=yes
10692       ;;
10693   esac
10694   shlibpath_var=LD_LIBRARY_PATH
10695   case $host_os in
10696   freebsd2.*)
10697     shlibpath_overrides_runpath=yes
10698     ;;
10699   freebsd3.[01]* | freebsdelf3.[01]*)
10700     shlibpath_overrides_runpath=yes
10701     hardcode_into_libs=yes
10702     ;;
10703   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10704   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10705     shlibpath_overrides_runpath=no
10706     hardcode_into_libs=yes
10707     ;;
10708   *) # from 4.6 on, and DragonFly
10709     shlibpath_overrides_runpath=yes
10710     hardcode_into_libs=yes
10711     ;;
10712   esac
10713   ;;
10714
10715 gnu*)
10716   version_type=linux # correct to gnu/linux during the next big refactor
10717   need_lib_prefix=no
10718   need_version=no
10719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10720   soname_spec='${libname}${release}${shared_ext}$major'
10721   shlibpath_var=LD_LIBRARY_PATH
10722   shlibpath_overrides_runpath=no
10723   hardcode_into_libs=yes
10724   ;;
10725
10726 haiku*)
10727   version_type=linux # correct to gnu/linux during the next big refactor
10728   need_lib_prefix=no
10729   need_version=no
10730   dynamic_linker="$host_os runtime_loader"
10731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10732   soname_spec='${libname}${release}${shared_ext}$major'
10733   shlibpath_var=LIBRARY_PATH
10734   shlibpath_overrides_runpath=yes
10735   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10736   hardcode_into_libs=yes
10737   ;;
10738
10739 hpux9* | hpux10* | hpux11*)
10740   # Give a soname corresponding to the major version so that dld.sl refuses to
10741   # link against other versions.
10742   version_type=sunos
10743   need_lib_prefix=no
10744   need_version=no
10745   case $host_cpu in
10746   ia64*)
10747     shrext_cmds='.so'
10748     hardcode_into_libs=yes
10749     dynamic_linker="$host_os dld.so"
10750     shlibpath_var=LD_LIBRARY_PATH
10751     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753     soname_spec='${libname}${release}${shared_ext}$major'
10754     if test "X$HPUX_IA64_MODE" = X32; then
10755       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10756     else
10757       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10758     fi
10759     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10760     ;;
10761   hppa*64*)
10762     shrext_cmds='.sl'
10763     hardcode_into_libs=yes
10764     dynamic_linker="$host_os dld.sl"
10765     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10766     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768     soname_spec='${libname}${release}${shared_ext}$major'
10769     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10770     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10771     ;;
10772   *)
10773     shrext_cmds='.sl'
10774     dynamic_linker="$host_os dld.sl"
10775     shlibpath_var=SHLIB_PATH
10776     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10777     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778     soname_spec='${libname}${release}${shared_ext}$major'
10779     ;;
10780   esac
10781   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10782   postinstall_cmds='chmod 555 $lib'
10783   # or fails outright, so override atomically:
10784   install_override_mode=555
10785   ;;
10786
10787 interix[3-9]*)
10788   version_type=linux # correct to gnu/linux during the next big refactor
10789   need_lib_prefix=no
10790   need_version=no
10791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10792   soname_spec='${libname}${release}${shared_ext}$major'
10793   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10794   shlibpath_var=LD_LIBRARY_PATH
10795   shlibpath_overrides_runpath=no
10796   hardcode_into_libs=yes
10797   ;;
10798
10799 irix5* | irix6* | nonstopux*)
10800   case $host_os in
10801     nonstopux*) version_type=nonstopux ;;
10802     *)
10803         if test "$lt_cv_prog_gnu_ld" = yes; then
10804                 version_type=linux # correct to gnu/linux during the next big refactor
10805         else
10806                 version_type=irix
10807         fi ;;
10808   esac
10809   need_lib_prefix=no
10810   need_version=no
10811   soname_spec='${libname}${release}${shared_ext}$major'
10812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10813   case $host_os in
10814   irix5* | nonstopux*)
10815     libsuff= shlibsuff=
10816     ;;
10817   *)
10818     case $LD in # libtool.m4 will add one of these switches to LD
10819     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10820       libsuff= shlibsuff= libmagic=32-bit;;
10821     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10822       libsuff=32 shlibsuff=N32 libmagic=N32;;
10823     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10824       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10825     *) libsuff= shlibsuff= libmagic=never-match;;
10826     esac
10827     ;;
10828   esac
10829   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10830   shlibpath_overrides_runpath=no
10831   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10832   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10833   hardcode_into_libs=yes
10834   ;;
10835
10836 # No shared lib support for Linux oldld, aout, or coff.
10837 linux*oldld* | linux*aout* | linux*coff*)
10838   dynamic_linker=no
10839   ;;
10840
10841 # This must be glibc/ELF.
10842 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10843   version_type=linux # correct to gnu/linux during the next big refactor
10844   need_lib_prefix=no
10845   need_version=no
10846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847   soname_spec='${libname}${release}${shared_ext}$major'
10848   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10849   shlibpath_var=LD_LIBRARY_PATH
10850   shlibpath_overrides_runpath=no
10851
10852   # Some binutils ld are patched to set DT_RUNPATH
10853   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10854   $as_echo_n "(cached) " >&6
10855 else
10856   lt_cv_shlibpath_overrides_runpath=no
10857     save_LDFLAGS=$LDFLAGS
10858     save_libdir=$libdir
10859     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10860          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10861     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h.  */
10863
10864 int
10865 main ()
10866 {
10867
10868   ;
10869   return 0;
10870 }
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"; then :
10873   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10874   lt_cv_shlibpath_overrides_runpath=yes
10875 fi
10876 fi
10877 rm -f core conftest.err conftest.$ac_objext \
10878     conftest$ac_exeext conftest.$ac_ext
10879     LDFLAGS=$save_LDFLAGS
10880     libdir=$save_libdir
10881
10882 fi
10883
10884   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10885
10886   # This implies no fast_install, which is unacceptable.
10887   # Some rework will be needed to allow for fast_install
10888   # before this can be enabled.
10889   hardcode_into_libs=yes
10890
10891   # Append ld.so.conf contents to the search path
10892   if test -f /etc/ld.so.conf; then
10893     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10894     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10895   fi
10896
10897   # We used to test for /lib/ld.so.1 and disable shared libraries on
10898   # powerpc, because MkLinux only supported shared libraries with the
10899   # GNU dynamic linker.  Since this was broken with cross compilers,
10900   # most powerpc-linux boxes support dynamic linking these days and
10901   # people can always --disable-shared, the test was removed, and we
10902   # assume the GNU/Linux dynamic linker is in use.
10903   dynamic_linker='GNU/Linux ld.so'
10904   ;;
10905
10906 netbsd*)
10907   version_type=sunos
10908   need_lib_prefix=no
10909   need_version=no
10910   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10911     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10912     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10913     dynamic_linker='NetBSD (a.out) ld.so'
10914   else
10915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10916     soname_spec='${libname}${release}${shared_ext}$major'
10917     dynamic_linker='NetBSD ld.elf_so'
10918   fi
10919   shlibpath_var=LD_LIBRARY_PATH
10920   shlibpath_overrides_runpath=yes
10921   hardcode_into_libs=yes
10922   ;;
10923
10924 newsos6)
10925   version_type=linux # correct to gnu/linux during the next big refactor
10926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927   shlibpath_var=LD_LIBRARY_PATH
10928   shlibpath_overrides_runpath=yes
10929   ;;
10930
10931 *nto* | *qnx*)
10932   version_type=qnx
10933   need_lib_prefix=no
10934   need_version=no
10935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936   soname_spec='${libname}${release}${shared_ext}$major'
10937   shlibpath_var=LD_LIBRARY_PATH
10938   shlibpath_overrides_runpath=no
10939   hardcode_into_libs=yes
10940   dynamic_linker='ldqnx.so'
10941   ;;
10942
10943 openbsd*)
10944   version_type=sunos
10945   sys_lib_dlsearch_path_spec="/usr/lib"
10946   need_lib_prefix=no
10947   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10948   case $host_os in
10949     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10950     *)                          need_version=no  ;;
10951   esac
10952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10953   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10954   shlibpath_var=LD_LIBRARY_PATH
10955   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10956     case $host_os in
10957       openbsd2.[89] | openbsd2.[89].*)
10958         shlibpath_overrides_runpath=no
10959         ;;
10960       *)
10961         shlibpath_overrides_runpath=yes
10962         ;;
10963       esac
10964   else
10965     shlibpath_overrides_runpath=yes
10966   fi
10967   ;;
10968
10969 os2*)
10970   libname_spec='$name'
10971   shrext_cmds=".dll"
10972   need_lib_prefix=no
10973   library_names_spec='$libname${shared_ext} $libname.a'
10974   dynamic_linker='OS/2 ld.exe'
10975   shlibpath_var=LIBPATH
10976   ;;
10977
10978 osf3* | osf4* | osf5*)
10979   version_type=osf
10980   need_lib_prefix=no
10981   need_version=no
10982   soname_spec='${libname}${release}${shared_ext}$major'
10983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984   shlibpath_var=LD_LIBRARY_PATH
10985   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10986   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10987   ;;
10988
10989 rdos*)
10990   dynamic_linker=no
10991   ;;
10992
10993 solaris*)
10994   version_type=linux # correct to gnu/linux during the next big refactor
10995   need_lib_prefix=no
10996   need_version=no
10997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998   soname_spec='${libname}${release}${shared_ext}$major'
10999   shlibpath_var=LD_LIBRARY_PATH
11000   shlibpath_overrides_runpath=yes
11001   hardcode_into_libs=yes
11002   # ldd complains unless libraries are executable
11003   postinstall_cmds='chmod +x $lib'
11004   ;;
11005
11006 sunos4*)
11007   version_type=sunos
11008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11009   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11010   shlibpath_var=LD_LIBRARY_PATH
11011   shlibpath_overrides_runpath=yes
11012   if test "$with_gnu_ld" = yes; then
11013     need_lib_prefix=no
11014   fi
11015   need_version=yes
11016   ;;
11017
11018 sysv4 | sysv4.3*)
11019   version_type=linux # correct to gnu/linux during the next big refactor
11020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021   soname_spec='${libname}${release}${shared_ext}$major'
11022   shlibpath_var=LD_LIBRARY_PATH
11023   case $host_vendor in
11024     sni)
11025       shlibpath_overrides_runpath=no
11026       need_lib_prefix=no
11027       runpath_var=LD_RUN_PATH
11028       ;;
11029     siemens)
11030       need_lib_prefix=no
11031       ;;
11032     motorola)
11033       need_lib_prefix=no
11034       need_version=no
11035       shlibpath_overrides_runpath=no
11036       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11037       ;;
11038   esac
11039   ;;
11040
11041 sysv4*MP*)
11042   if test -d /usr/nec ;then
11043     version_type=linux # correct to gnu/linux during the next big refactor
11044     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11045     soname_spec='$libname${shared_ext}.$major'
11046     shlibpath_var=LD_LIBRARY_PATH
11047   fi
11048   ;;
11049
11050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11051   version_type=freebsd-elf
11052   need_lib_prefix=no
11053   need_version=no
11054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11055   soname_spec='${libname}${release}${shared_ext}$major'
11056   shlibpath_var=LD_LIBRARY_PATH
11057   shlibpath_overrides_runpath=yes
11058   hardcode_into_libs=yes
11059   if test "$with_gnu_ld" = yes; then
11060     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11061   else
11062     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11063     case $host_os in
11064       sco3.2v5*)
11065         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11066         ;;
11067     esac
11068   fi
11069   sys_lib_dlsearch_path_spec='/usr/lib'
11070   ;;
11071
11072 tpf*)
11073   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11074   version_type=linux # correct to gnu/linux during the next big refactor
11075   need_lib_prefix=no
11076   need_version=no
11077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078   shlibpath_var=LD_LIBRARY_PATH
11079   shlibpath_overrides_runpath=no
11080   hardcode_into_libs=yes
11081   ;;
11082
11083 uts4*)
11084   version_type=linux # correct to gnu/linux during the next big refactor
11085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086   soname_spec='${libname}${release}${shared_ext}$major'
11087   shlibpath_var=LD_LIBRARY_PATH
11088   ;;
11089
11090 *)
11091   dynamic_linker=no
11092   ;;
11093 esac
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11095 $as_echo "$dynamic_linker" >&6; }
11096 test "$dynamic_linker" = no && can_build_shared=no
11097
11098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11099 if test "$GCC" = yes; then
11100   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11101 fi
11102
11103 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11104   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11105 fi
11106 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11107   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11108 fi
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11202 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11203 hardcode_action=
11204 if test -n "$hardcode_libdir_flag_spec" ||
11205    test -n "$runpath_var" ||
11206    test "X$hardcode_automatic" = "Xyes" ; then
11207
11208   # We can hardcode non-existent directories.
11209   if test "$hardcode_direct" != no &&
11210      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11211      # have to relink, otherwise we might link with an installed library
11212      # when we should be linking with a yet-to-be-installed one
11213      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11214      test "$hardcode_minus_L" != no; then
11215     # Linking always hardcodes the temporary library directory.
11216     hardcode_action=relink
11217   else
11218     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11219     hardcode_action=immediate
11220   fi
11221 else
11222   # We cannot hardcode anything, or else we can only hardcode existing
11223   # directories.
11224   hardcode_action=unsupported
11225 fi
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11227 $as_echo "$hardcode_action" >&6; }
11228
11229 if test "$hardcode_action" = relink ||
11230    test "$inherit_rpath" = yes; then
11231   # Fast installation is not supported
11232   enable_fast_install=no
11233 elif test "$shlibpath_overrides_runpath" = yes ||
11234      test "$enable_shared" = no; then
11235   # Fast installation is not necessary
11236   enable_fast_install=needless
11237 fi
11238
11239
11240
11241
11242
11243
11244   if test "x$enable_dlopen" != xyes; then
11245   enable_dlopen=unknown
11246   enable_dlopen_self=unknown
11247   enable_dlopen_self_static=unknown
11248 else
11249   lt_cv_dlopen=no
11250   lt_cv_dlopen_libs=
11251
11252   case $host_os in
11253   beos*)
11254     lt_cv_dlopen="load_add_on"
11255     lt_cv_dlopen_libs=
11256     lt_cv_dlopen_self=yes
11257     ;;
11258
11259   mingw* | pw32* | cegcc*)
11260     lt_cv_dlopen="LoadLibrary"
11261     lt_cv_dlopen_libs=
11262     ;;
11263
11264   cygwin*)
11265     lt_cv_dlopen="dlopen"
11266     lt_cv_dlopen_libs=
11267     ;;
11268
11269   darwin*)
11270   # if libdl is installed we need to link against it
11271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11272 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11273 if ${ac_cv_lib_dl_dlopen+:} false; then :
11274   $as_echo_n "(cached) " >&6
11275 else
11276   ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldl  $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h.  */
11280
11281 /* Override any GCC internal prototype to avoid an error.
11282    Use char because int might match the return type of a GCC
11283    builtin and then its argument prototype would still apply.  */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char dlopen ();
11288 int
11289 main ()
11290 {
11291 return dlopen ();
11292   ;
11293   return 0;
11294 }
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297   ac_cv_lib_dl_dlopen=yes
11298 else
11299   ac_cv_lib_dl_dlopen=no
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext \
11302     conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11306 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11307 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11308   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11309 else
11310
11311     lt_cv_dlopen="dyld"
11312     lt_cv_dlopen_libs=
11313     lt_cv_dlopen_self=yes
11314
11315 fi
11316
11317     ;;
11318
11319   *)
11320     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11321 if test "x$ac_cv_func_shl_load" = xyes; then :
11322   lt_cv_dlopen="shl_load"
11323 else
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11325 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11326 if ${ac_cv_lib_dld_shl_load+:} false; then :
11327   $as_echo_n "(cached) " >&6
11328 else
11329   ac_check_lib_save_LIBS=$LIBS
11330 LIBS="-ldld  $LIBS"
11331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h.  */
11333
11334 /* Override any GCC internal prototype to avoid an error.
11335    Use char because int might match the return type of a GCC
11336    builtin and then its argument prototype would still apply.  */
11337 #ifdef __cplusplus
11338 extern "C"
11339 #endif
11340 char shl_load ();
11341 int
11342 main ()
11343 {
11344 return shl_load ();
11345   ;
11346   return 0;
11347 }
11348 _ACEOF
11349 if ac_fn_c_try_link "$LINENO"; then :
11350   ac_cv_lib_dld_shl_load=yes
11351 else
11352   ac_cv_lib_dld_shl_load=no
11353 fi
11354 rm -f core conftest.err conftest.$ac_objext \
11355     conftest$ac_exeext conftest.$ac_ext
11356 LIBS=$ac_check_lib_save_LIBS
11357 fi
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11359 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11360 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11361   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11362 else
11363   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11364 if test "x$ac_cv_func_dlopen" = xyes; then :
11365   lt_cv_dlopen="dlopen"
11366 else
11367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11368 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11369 if ${ac_cv_lib_dl_dlopen+:} false; then :
11370   $as_echo_n "(cached) " >&6
11371 else
11372   ac_check_lib_save_LIBS=$LIBS
11373 LIBS="-ldl  $LIBS"
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h.  */
11376
11377 /* Override any GCC internal prototype to avoid an error.
11378    Use char because int might match the return type of a GCC
11379    builtin and then its argument prototype would still apply.  */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 char dlopen ();
11384 int
11385 main ()
11386 {
11387 return dlopen ();
11388   ;
11389   return 0;
11390 }
11391 _ACEOF
11392 if ac_fn_c_try_link "$LINENO"; then :
11393   ac_cv_lib_dl_dlopen=yes
11394 else
11395   ac_cv_lib_dl_dlopen=no
11396 fi
11397 rm -f core conftest.err conftest.$ac_objext \
11398     conftest$ac_exeext conftest.$ac_ext
11399 LIBS=$ac_check_lib_save_LIBS
11400 fi
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11402 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11403 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11404   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11405 else
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11407 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11408 if ${ac_cv_lib_svld_dlopen+:} false; then :
11409   $as_echo_n "(cached) " >&6
11410 else
11411   ac_check_lib_save_LIBS=$LIBS
11412 LIBS="-lsvld  $LIBS"
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h.  */
11415
11416 /* Override any GCC internal prototype to avoid an error.
11417    Use char because int might match the return type of a GCC
11418    builtin and then its argument prototype would still apply.  */
11419 #ifdef __cplusplus
11420 extern "C"
11421 #endif
11422 char dlopen ();
11423 int
11424 main ()
11425 {
11426 return dlopen ();
11427   ;
11428   return 0;
11429 }
11430 _ACEOF
11431 if ac_fn_c_try_link "$LINENO"; then :
11432   ac_cv_lib_svld_dlopen=yes
11433 else
11434   ac_cv_lib_svld_dlopen=no
11435 fi
11436 rm -f core conftest.err conftest.$ac_objext \
11437     conftest$ac_exeext conftest.$ac_ext
11438 LIBS=$ac_check_lib_save_LIBS
11439 fi
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11441 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11442 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11443   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11444 else
11445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11446 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11447 if ${ac_cv_lib_dld_dld_link+:} false; then :
11448   $as_echo_n "(cached) " >&6
11449 else
11450   ac_check_lib_save_LIBS=$LIBS
11451 LIBS="-ldld  $LIBS"
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h.  */
11454
11455 /* Override any GCC internal prototype to avoid an error.
11456    Use char because int might match the return type of a GCC
11457    builtin and then its argument prototype would still apply.  */
11458 #ifdef __cplusplus
11459 extern "C"
11460 #endif
11461 char dld_link ();
11462 int
11463 main ()
11464 {
11465 return dld_link ();
11466   ;
11467   return 0;
11468 }
11469 _ACEOF
11470 if ac_fn_c_try_link "$LINENO"; then :
11471   ac_cv_lib_dld_dld_link=yes
11472 else
11473   ac_cv_lib_dld_dld_link=no
11474 fi
11475 rm -f core conftest.err conftest.$ac_objext \
11476     conftest$ac_exeext conftest.$ac_ext
11477 LIBS=$ac_check_lib_save_LIBS
11478 fi
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11480 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11481 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11482   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11483 fi
11484
11485
11486 fi
11487
11488
11489 fi
11490
11491
11492 fi
11493
11494
11495 fi
11496
11497
11498 fi
11499
11500     ;;
11501   esac
11502
11503   if test "x$lt_cv_dlopen" != xno; then
11504     enable_dlopen=yes
11505   else
11506     enable_dlopen=no
11507   fi
11508
11509   case $lt_cv_dlopen in
11510   dlopen)
11511     save_CPPFLAGS="$CPPFLAGS"
11512     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11513
11514     save_LDFLAGS="$LDFLAGS"
11515     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11516
11517     save_LIBS="$LIBS"
11518     LIBS="$lt_cv_dlopen_libs $LIBS"
11519
11520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11521 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11522 if ${lt_cv_dlopen_self+:} false; then :
11523   $as_echo_n "(cached) " >&6
11524 else
11525           if test "$cross_compiling" = yes; then :
11526   lt_cv_dlopen_self=cross
11527 else
11528   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11529   lt_status=$lt_dlunknown
11530   cat > conftest.$ac_ext <<_LT_EOF
11531 #line $LINENO "configure"
11532 #include "confdefs.h"
11533
11534 #if HAVE_DLFCN_H
11535 #include <dlfcn.h>
11536 #endif
11537
11538 #include <stdio.h>
11539
11540 #ifdef RTLD_GLOBAL
11541 #  define LT_DLGLOBAL           RTLD_GLOBAL
11542 #else
11543 #  ifdef DL_GLOBAL
11544 #    define LT_DLGLOBAL         DL_GLOBAL
11545 #  else
11546 #    define LT_DLGLOBAL         0
11547 #  endif
11548 #endif
11549
11550 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11551    find out it does not work in some platform. */
11552 #ifndef LT_DLLAZY_OR_NOW
11553 #  ifdef RTLD_LAZY
11554 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11555 #  else
11556 #    ifdef DL_LAZY
11557 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11558 #    else
11559 #      ifdef RTLD_NOW
11560 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11561 #      else
11562 #        ifdef DL_NOW
11563 #          define LT_DLLAZY_OR_NOW      DL_NOW
11564 #        else
11565 #          define LT_DLLAZY_OR_NOW      0
11566 #        endif
11567 #      endif
11568 #    endif
11569 #  endif
11570 #endif
11571
11572 /* When -fvisbility=hidden is used, assume the code has been annotated
11573    correspondingly for the symbols needed.  */
11574 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11575 int fnord () __attribute__((visibility("default")));
11576 #endif
11577
11578 int fnord () { return 42; }
11579 int main ()
11580 {
11581   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11582   int status = $lt_dlunknown;
11583
11584   if (self)
11585     {
11586       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11587       else
11588         {
11589           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11590           else puts (dlerror ());
11591         }
11592       /* dlclose (self); */
11593     }
11594   else
11595     puts (dlerror ());
11596
11597   return status;
11598 }
11599 _LT_EOF
11600   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11601   (eval $ac_link) 2>&5
11602   ac_status=$?
11603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11604   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11605     (./conftest; exit; ) >&5 2>/dev/null
11606     lt_status=$?
11607     case x$lt_status in
11608       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11609       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11610       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11611     esac
11612   else :
11613     # compilation failed
11614     lt_cv_dlopen_self=no
11615   fi
11616 fi
11617 rm -fr conftest*
11618
11619
11620 fi
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11622 $as_echo "$lt_cv_dlopen_self" >&6; }
11623
11624     if test "x$lt_cv_dlopen_self" = xyes; then
11625       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11626       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11627 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11628 if ${lt_cv_dlopen_self_static+:} false; then :
11629   $as_echo_n "(cached) " >&6
11630 else
11631           if test "$cross_compiling" = yes; then :
11632   lt_cv_dlopen_self_static=cross
11633 else
11634   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11635   lt_status=$lt_dlunknown
11636   cat > conftest.$ac_ext <<_LT_EOF
11637 #line $LINENO "configure"
11638 #include "confdefs.h"
11639
11640 #if HAVE_DLFCN_H
11641 #include <dlfcn.h>
11642 #endif
11643
11644 #include <stdio.h>
11645
11646 #ifdef RTLD_GLOBAL
11647 #  define LT_DLGLOBAL           RTLD_GLOBAL
11648 #else
11649 #  ifdef DL_GLOBAL
11650 #    define LT_DLGLOBAL         DL_GLOBAL
11651 #  else
11652 #    define LT_DLGLOBAL         0
11653 #  endif
11654 #endif
11655
11656 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11657    find out it does not work in some platform. */
11658 #ifndef LT_DLLAZY_OR_NOW
11659 #  ifdef RTLD_LAZY
11660 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11661 #  else
11662 #    ifdef DL_LAZY
11663 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11664 #    else
11665 #      ifdef RTLD_NOW
11666 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11667 #      else
11668 #        ifdef DL_NOW
11669 #          define LT_DLLAZY_OR_NOW      DL_NOW
11670 #        else
11671 #          define LT_DLLAZY_OR_NOW      0
11672 #        endif
11673 #      endif
11674 #    endif
11675 #  endif
11676 #endif
11677
11678 /* When -fvisbility=hidden is used, assume the code has been annotated
11679    correspondingly for the symbols needed.  */
11680 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11681 int fnord () __attribute__((visibility("default")));
11682 #endif
11683
11684 int fnord () { return 42; }
11685 int main ()
11686 {
11687   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11688   int status = $lt_dlunknown;
11689
11690   if (self)
11691     {
11692       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11693       else
11694         {
11695           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11696           else puts (dlerror ());
11697         }
11698       /* dlclose (self); */
11699     }
11700   else
11701     puts (dlerror ());
11702
11703   return status;
11704 }
11705 _LT_EOF
11706   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11707   (eval $ac_link) 2>&5
11708   ac_status=$?
11709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11710   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11711     (./conftest; exit; ) >&5 2>/dev/null
11712     lt_status=$?
11713     case x$lt_status in
11714       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11715       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11716       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11717     esac
11718   else :
11719     # compilation failed
11720     lt_cv_dlopen_self_static=no
11721   fi
11722 fi
11723 rm -fr conftest*
11724
11725
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11728 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11729     fi
11730
11731     CPPFLAGS="$save_CPPFLAGS"
11732     LDFLAGS="$save_LDFLAGS"
11733     LIBS="$save_LIBS"
11734     ;;
11735   esac
11736
11737   case $lt_cv_dlopen_self in
11738   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11739   *) enable_dlopen_self=unknown ;;
11740   esac
11741
11742   case $lt_cv_dlopen_self_static in
11743   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11744   *) enable_dlopen_self_static=unknown ;;
11745   esac
11746 fi
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764 striplib=
11765 old_striplib=
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11767 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11768 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11769   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11770   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11772 $as_echo "yes" >&6; }
11773 else
11774 # FIXME - insert some real tests, host_os isn't really good enough
11775   case $host_os in
11776   darwin*)
11777     if test -n "$STRIP" ; then
11778       striplib="$STRIP -x"
11779       old_striplib="$STRIP -S"
11780       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11781 $as_echo "yes" >&6; }
11782     else
11783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11785     fi
11786     ;;
11787   *)
11788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 $as_echo "no" >&6; }
11790     ;;
11791   esac
11792 fi
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805   # Report which library types will actually be built
11806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11807 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11809 $as_echo "$can_build_shared" >&6; }
11810
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11812 $as_echo_n "checking whether to build shared libraries... " >&6; }
11813   test "$can_build_shared" = "no" && enable_shared=no
11814
11815   # On AIX, shared libraries and static libraries use the same namespace, and
11816   # are all built from PIC.
11817   case $host_os in
11818   aix3*)
11819     test "$enable_shared" = yes && enable_static=no
11820     if test -n "$RANLIB"; then
11821       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11822       postinstall_cmds='$RANLIB $lib'
11823     fi
11824     ;;
11825
11826   aix[4-9]*)
11827     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11828       test "$enable_shared" = yes && enable_static=no
11829     fi
11830     ;;
11831   esac
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11833 $as_echo "$enable_shared" >&6; }
11834
11835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11836 $as_echo_n "checking whether to build static libraries... " >&6; }
11837   # Make sure either enable_shared or enable_static is yes.
11838   test "$enable_shared" = yes || enable_static=yes
11839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11840 $as_echo "$enable_static" >&6; }
11841
11842
11843
11844
11845 fi
11846 ac_ext=c
11847 ac_cpp='$CPP $CPPFLAGS'
11848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11851
11852 CC="$lt_save_CC"
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868         ac_config_commands="$ac_config_commands libtool"
11869
11870
11871
11872
11873 # Only expand once:
11874
11875
11876
11877 ac_fn_c_check_func "$LINENO" "fileno" "ac_cv_func_fileno"
11878 if test "x$ac_cv_func_fileno" = xyes; then :
11879
11880 else
11881   as_fn_error $? "The 'fileno' function is missing." "$LINENO" 5
11882 fi
11883
11884
11885 # check pcre
11886 # Extract the first word of "pcre-config", so it can be a program name with args.
11887 set dummy pcre-config; ac_word=$2
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889 $as_echo_n "checking for $ac_word... " >&6; }
11890 if ${ac_cv_prog_HAVE_PCRE+:} false; then :
11891   $as_echo_n "(cached) " >&6
11892 else
11893   if test -n "$HAVE_PCRE"; then
11894   ac_cv_prog_HAVE_PCRE="$HAVE_PCRE" # Let the user override the test.
11895 else
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897 for as_dir in $PATH
11898 do
11899   IFS=$as_save_IFS
11900   test -z "$as_dir" && as_dir=.
11901     for ac_exec_ext in '' $ac_executable_extensions; do
11902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11903     ac_cv_prog_HAVE_PCRE="yes"
11904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11905     break 2
11906   fi
11907 done
11908   done
11909 IFS=$as_save_IFS
11910
11911   test -z "$ac_cv_prog_HAVE_PCRE" && ac_cv_prog_HAVE_PCRE="no"
11912 fi
11913 fi
11914 HAVE_PCRE=$ac_cv_prog_HAVE_PCRE
11915 if test -n "$HAVE_PCRE"; then
11916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PCRE" >&5
11917 $as_echo "$HAVE_PCRE" >&6; }
11918 else
11919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11921 fi
11922
11923
11924 if test "x$HAVE_PCRE" = "xno"
11925 then
11926     as_fn_error $? "The PCRE library is needed. See http://www.pcre.org." "$LINENO" 5
11927 fi
11928 CFLAGS="$CFLAGS $(pcre-config --cflags)"
11929 PCRE_LIBS="$(pcre-config --libs)"
11930
11931
11932 # check getopt
11933 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11934 if test "x$ac_cv_header_getopt_h" = xyes; then :
11935
11936 else
11937   as_fn_error $? "The posix getopt.h header is needed." "$LINENO" 5
11938 fi
11939
11940
11941
11942
11943 LIBS+="-lm"
11944 CXXFLAGS=$CFLAGS
11945
11946 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile src/version.h"
11947
11948
11949 cat >confcache <<\_ACEOF
11950 # This file is a shell script that caches the results of configure
11951 # tests run on this system so they can be shared between configure
11952 # scripts and configure runs, see configure's option --config-cache.
11953 # It is not useful on other systems.  If it contains results you don't
11954 # want to keep, you may remove or edit it.
11955 #
11956 # config.status only pays attention to the cache file if you give it
11957 # the --recheck option to rerun configure.
11958 #
11959 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11960 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11961 # following values.
11962
11963 _ACEOF
11964
11965 # The following way of writing the cache mishandles newlines in values,
11966 # but we know of no workaround that is simple, portable, and efficient.
11967 # So, we kill variables containing newlines.
11968 # Ultrix sh set writes to stderr and can't be redirected directly,
11969 # and sets the high bit in the cache file unless we assign to the vars.
11970 (
11971   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11972     eval ac_val=\$$ac_var
11973     case $ac_val in #(
11974     *${as_nl}*)
11975       case $ac_var in #(
11976       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11978       esac
11979       case $ac_var in #(
11980       _ | IFS | as_nl) ;; #(
11981       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11982       *) { eval $ac_var=; unset $ac_var;} ;;
11983       esac ;;
11984     esac
11985   done
11986
11987   (set) 2>&1 |
11988     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11989     *${as_nl}ac_space=\ *)
11990       # `set' does not quote correctly, so add quotes: double-quote
11991       # substitution turns \\\\ into \\, and sed turns \\ into \.
11992       sed -n \
11993         "s/'/'\\\\''/g;
11994           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11995       ;; #(
11996     *)
11997       # `set' quotes correctly as required by POSIX, so do not add quotes.
11998       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11999       ;;
12000     esac |
12001     sort
12002 ) |
12003   sed '
12004      /^ac_cv_env_/b end
12005      t clear
12006      :clear
12007      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12008      t end
12009      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12010      :end' >>confcache
12011 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12012   if test -w "$cache_file"; then
12013     if test "x$cache_file" != "x/dev/null"; then
12014       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12015 $as_echo "$as_me: updating cache $cache_file" >&6;}
12016       if test ! -f "$cache_file" || test -h "$cache_file"; then
12017         cat confcache >"$cache_file"
12018       else
12019         case $cache_file in #(
12020         */* | ?:*)
12021           mv -f confcache "$cache_file"$$ &&
12022           mv -f "$cache_file"$$ "$cache_file" ;; #(
12023         *)
12024           mv -f confcache "$cache_file" ;;
12025         esac
12026       fi
12027     fi
12028   else
12029     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12030 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12031   fi
12032 fi
12033 rm -f confcache
12034
12035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12036 # Let make expand exec_prefix.
12037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12038
12039 # Transform confdefs.h into DEFS.
12040 # Protect against shell expansion while executing Makefile rules.
12041 # Protect against Makefile macro expansion.
12042 #
12043 # If the first sed substitution is executed (which looks for macros that
12044 # take arguments), then branch to the quote section.  Otherwise,
12045 # look for a macro that doesn't take arguments.
12046 ac_script='
12047 :mline
12048 /\\$/{
12049  N
12050  s,\\\n,,
12051  b mline
12052 }
12053 t clear
12054 :clear
12055 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12056 t quote
12057 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12058 t quote
12059 b any
12060 :quote
12061 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12062 s/\[/\\&/g
12063 s/\]/\\&/g
12064 s/\$/$$/g
12065 H
12066 :any
12067 ${
12068         g
12069         s/^\n//
12070         s/\n/ /g
12071         p
12072 }
12073 '
12074 DEFS=`sed -n "$ac_script" confdefs.h`
12075
12076
12077 ac_libobjs=
12078 ac_ltlibobjs=
12079 U=
12080 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12081   # 1. Remove the extension, and $U if already installed.
12082   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12083   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12084   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12085   #    will be set to the directory where LIBOBJS objects are built.
12086   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12087   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12088 done
12089 LIBOBJS=$ac_libobjs
12090
12091 LTLIBOBJS=$ac_ltlibobjs
12092
12093
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12095 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12096    if test -n "$am_sleep_pid"; then
12097      # Hide warnings about reused PIDs.
12098      wait $am_sleep_pid 2>/dev/null
12099    fi
12100    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12101 $as_echo "done" >&6; }
12102  if test -n "$EXEEXT"; then
12103   am__EXEEXT_TRUE=
12104   am__EXEEXT_FALSE='#'
12105 else
12106   am__EXEEXT_TRUE='#'
12107   am__EXEEXT_FALSE=
12108 fi
12109
12110 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12111   as_fn_error $? "conditional \"AMDEP\" was never defined.
12112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12113 fi
12114 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12115   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12117 fi
12118
12119 : "${CONFIG_STATUS=./config.status}"
12120 ac_write_fail=0
12121 ac_clean_files_save=$ac_clean_files
12122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12125 as_write_fail=0
12126 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12127 #! $SHELL
12128 # Generated by $as_me.
12129 # Run this file to recreate the current configuration.
12130 # Compiler output produced by configure, useful for debugging
12131 # configure, is in config.log if it exists.
12132
12133 debug=false
12134 ac_cs_recheck=false
12135 ac_cs_silent=false
12136
12137 SHELL=\${CONFIG_SHELL-$SHELL}
12138 export SHELL
12139 _ASEOF
12140 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12141 ## -------------------- ##
12142 ## M4sh Initialization. ##
12143 ## -------------------- ##
12144
12145 # Be more Bourne compatible
12146 DUALCASE=1; export DUALCASE # for MKS sh
12147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12148   emulate sh
12149   NULLCMD=:
12150   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12151   # is contrary to our usage.  Disable this feature.
12152   alias -g '${1+"$@"}'='"$@"'
12153   setopt NO_GLOB_SUBST
12154 else
12155   case `(set -o) 2>/dev/null` in #(
12156   *posix*) :
12157     set -o posix ;; #(
12158   *) :
12159      ;;
12160 esac
12161 fi
12162
12163
12164 as_nl='
12165 '
12166 export as_nl
12167 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12168 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12171 # Prefer a ksh shell builtin over an external printf program on Solaris,
12172 # but without wasting forks for bash or zsh.
12173 if test -z "$BASH_VERSION$ZSH_VERSION" \
12174     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12175   as_echo='print -r --'
12176   as_echo_n='print -rn --'
12177 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12178   as_echo='printf %s\n'
12179   as_echo_n='printf %s'
12180 else
12181   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12182     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12183     as_echo_n='/usr/ucb/echo -n'
12184   else
12185     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12186     as_echo_n_body='eval
12187       arg=$1;
12188       case $arg in #(
12189       *"$as_nl"*)
12190         expr "X$arg" : "X\\(.*\\)$as_nl";
12191         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12192       esac;
12193       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12194     '
12195     export as_echo_n_body
12196     as_echo_n='sh -c $as_echo_n_body as_echo'
12197   fi
12198   export as_echo_body
12199   as_echo='sh -c $as_echo_body as_echo'
12200 fi
12201
12202 # The user is always right.
12203 if test "${PATH_SEPARATOR+set}" != set; then
12204   PATH_SEPARATOR=:
12205   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12206     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12207       PATH_SEPARATOR=';'
12208   }
12209 fi
12210
12211
12212 # IFS
12213 # We need space, tab and new line, in precisely that order.  Quoting is
12214 # there to prevent editors from complaining about space-tab.
12215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12216 # splitting by setting IFS to empty value.)
12217 IFS=" ""        $as_nl"
12218
12219 # Find who we are.  Look in the path if we contain no directory separator.
12220 as_myself=
12221 case $0 in #((
12222   *[\\/]* ) as_myself=$0 ;;
12223   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224 for as_dir in $PATH
12225 do
12226   IFS=$as_save_IFS
12227   test -z "$as_dir" && as_dir=.
12228     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12229   done
12230 IFS=$as_save_IFS
12231
12232      ;;
12233 esac
12234 # We did not find ourselves, most probably we were run as `sh COMMAND'
12235 # in which case we are not to be found in the path.
12236 if test "x$as_myself" = x; then
12237   as_myself=$0
12238 fi
12239 if test ! -f "$as_myself"; then
12240   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12241   exit 1
12242 fi
12243
12244 # Unset variables that we do not need and which cause bugs (e.g. in
12245 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12246 # suppresses any "Segmentation fault" message there.  '((' could
12247 # trigger a bug in pdksh 5.2.14.
12248 for as_var in BASH_ENV ENV MAIL MAILPATH
12249 do eval test x\${$as_var+set} = xset \
12250   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12251 done
12252 PS1='$ '
12253 PS2='> '
12254 PS4='+ '
12255
12256 # NLS nuisances.
12257 LC_ALL=C
12258 export LC_ALL
12259 LANGUAGE=C
12260 export LANGUAGE
12261
12262 # CDPATH.
12263 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12264
12265
12266 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12267 # ----------------------------------------
12268 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12269 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12270 # script with STATUS, using 1 if that was 0.
12271 as_fn_error ()
12272 {
12273   as_status=$1; test $as_status -eq 0 && as_status=1
12274   if test "$4"; then
12275     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12276     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12277   fi
12278   $as_echo "$as_me: error: $2" >&2
12279   as_fn_exit $as_status
12280 } # as_fn_error
12281
12282
12283 # as_fn_set_status STATUS
12284 # -----------------------
12285 # Set $? to STATUS, without forking.
12286 as_fn_set_status ()
12287 {
12288   return $1
12289 } # as_fn_set_status
12290
12291 # as_fn_exit STATUS
12292 # -----------------
12293 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12294 as_fn_exit ()
12295 {
12296   set +e
12297   as_fn_set_status $1
12298   exit $1
12299 } # as_fn_exit
12300
12301 # as_fn_unset VAR
12302 # ---------------
12303 # Portably unset VAR.
12304 as_fn_unset ()
12305 {
12306   { eval $1=; unset $1;}
12307 }
12308 as_unset=as_fn_unset
12309 # as_fn_append VAR VALUE
12310 # ----------------------
12311 # Append the text in VALUE to the end of the definition contained in VAR. Take
12312 # advantage of any shell optimizations that allow amortized linear growth over
12313 # repeated appends, instead of the typical quadratic growth present in naive
12314 # implementations.
12315 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12316   eval 'as_fn_append ()
12317   {
12318     eval $1+=\$2
12319   }'
12320 else
12321   as_fn_append ()
12322   {
12323     eval $1=\$$1\$2
12324   }
12325 fi # as_fn_append
12326
12327 # as_fn_arith ARG...
12328 # ------------------
12329 # Perform arithmetic evaluation on the ARGs, and store the result in the
12330 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12331 # must be portable across $(()) and expr.
12332 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12333   eval 'as_fn_arith ()
12334   {
12335     as_val=$(( $* ))
12336   }'
12337 else
12338   as_fn_arith ()
12339   {
12340     as_val=`expr "$@" || test $? -eq 1`
12341   }
12342 fi # as_fn_arith
12343
12344
12345 if expr a : '\(a\)' >/dev/null 2>&1 &&
12346    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12347   as_expr=expr
12348 else
12349   as_expr=false
12350 fi
12351
12352 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12353   as_basename=basename
12354 else
12355   as_basename=false
12356 fi
12357
12358 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12359   as_dirname=dirname
12360 else
12361   as_dirname=false
12362 fi
12363
12364 as_me=`$as_basename -- "$0" ||
12365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12366          X"$0" : 'X\(//\)$' \| \
12367          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12368 $as_echo X/"$0" |
12369     sed '/^.*\/\([^/][^/]*\)\/*$/{
12370             s//\1/
12371             q
12372           }
12373           /^X\/\(\/\/\)$/{
12374             s//\1/
12375             q
12376           }
12377           /^X\/\(\/\).*/{
12378             s//\1/
12379             q
12380           }
12381           s/.*/./; q'`
12382
12383 # Avoid depending upon Character Ranges.
12384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12387 as_cr_digits='0123456789'
12388 as_cr_alnum=$as_cr_Letters$as_cr_digits
12389
12390 ECHO_C= ECHO_N= ECHO_T=
12391 case `echo -n x` in #(((((
12392 -n*)
12393   case `echo 'xy\c'` in
12394   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12395   xy)  ECHO_C='\c';;
12396   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12397        ECHO_T=' ';;
12398   esac;;
12399 *)
12400   ECHO_N='-n';;
12401 esac
12402
12403 rm -f conf$$ conf$$.exe conf$$.file
12404 if test -d conf$$.dir; then
12405   rm -f conf$$.dir/conf$$.file
12406 else
12407   rm -f conf$$.dir
12408   mkdir conf$$.dir 2>/dev/null
12409 fi
12410 if (echo >conf$$.file) 2>/dev/null; then
12411   if ln -s conf$$.file conf$$ 2>/dev/null; then
12412     as_ln_s='ln -s'
12413     # ... but there are two gotchas:
12414     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12415     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12416     # In both cases, we have to default to `cp -pR'.
12417     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12418       as_ln_s='cp -pR'
12419   elif ln conf$$.file conf$$ 2>/dev/null; then
12420     as_ln_s=ln
12421   else
12422     as_ln_s='cp -pR'
12423   fi
12424 else
12425   as_ln_s='cp -pR'
12426 fi
12427 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12428 rmdir conf$$.dir 2>/dev/null
12429
12430
12431 # as_fn_mkdir_p
12432 # -------------
12433 # Create "$as_dir" as a directory, including parents if necessary.
12434 as_fn_mkdir_p ()
12435 {
12436
12437   case $as_dir in #(
12438   -*) as_dir=./$as_dir;;
12439   esac
12440   test -d "$as_dir" || eval $as_mkdir_p || {
12441     as_dirs=
12442     while :; do
12443       case $as_dir in #(
12444       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12445       *) as_qdir=$as_dir;;
12446       esac
12447       as_dirs="'$as_qdir' $as_dirs"
12448       as_dir=`$as_dirname -- "$as_dir" ||
12449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12450          X"$as_dir" : 'X\(//\)[^/]' \| \
12451          X"$as_dir" : 'X\(//\)$' \| \
12452          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12453 $as_echo X"$as_dir" |
12454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12455             s//\1/
12456             q
12457           }
12458           /^X\(\/\/\)[^/].*/{
12459             s//\1/
12460             q
12461           }
12462           /^X\(\/\/\)$/{
12463             s//\1/
12464             q
12465           }
12466           /^X\(\/\).*/{
12467             s//\1/
12468             q
12469           }
12470           s/.*/./; q'`
12471       test -d "$as_dir" && break
12472     done
12473     test -z "$as_dirs" || eval "mkdir $as_dirs"
12474   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12475
12476
12477 } # as_fn_mkdir_p
12478 if mkdir -p . 2>/dev/null; then
12479   as_mkdir_p='mkdir -p "$as_dir"'
12480 else
12481   test -d ./-p && rmdir ./-p
12482   as_mkdir_p=false
12483 fi
12484
12485
12486 # as_fn_executable_p FILE
12487 # -----------------------
12488 # Test if FILE is an executable regular file.
12489 as_fn_executable_p ()
12490 {
12491   test -f "$1" && test -x "$1"
12492 } # as_fn_executable_p
12493 as_test_x='test -x'
12494 as_executable_p=as_fn_executable_p
12495
12496 # Sed expression to map a string onto a valid CPP name.
12497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12498
12499 # Sed expression to map a string onto a valid variable name.
12500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12501
12502
12503 exec 6>&1
12504 ## ----------------------------------- ##
12505 ## Main body of $CONFIG_STATUS script. ##
12506 ## ----------------------------------- ##
12507 _ASEOF
12508 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12509
12510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12511 # Save the log message, to keep $0 and so on meaningful, and to
12512 # report actual input values of CONFIG_FILES etc. instead of their
12513 # values after options handling.
12514 ac_log="
12515 This file was extended by fastq-tools $as_me 0.6, which was
12516 generated by GNU Autoconf 2.69.  Invocation command line was
12517
12518   CONFIG_FILES    = $CONFIG_FILES
12519   CONFIG_HEADERS  = $CONFIG_HEADERS
12520   CONFIG_LINKS    = $CONFIG_LINKS
12521   CONFIG_COMMANDS = $CONFIG_COMMANDS
12522   $ $0 $@
12523
12524 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12525 "
12526
12527 _ACEOF
12528
12529 case $ac_config_files in *"
12530 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12531 esac
12532
12533
12534
12535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12536 # Files that config.status was made for.
12537 config_files="$ac_config_files"
12538 config_commands="$ac_config_commands"
12539
12540 _ACEOF
12541
12542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12543 ac_cs_usage="\
12544 \`$as_me' instantiates files and other configuration actions
12545 from templates according to the current configuration.  Unless the files
12546 and actions are specified as TAGs, all are instantiated by default.
12547
12548 Usage: $0 [OPTION]... [TAG]...
12549
12550   -h, --help       print this help, then exit
12551   -V, --version    print version number and configuration settings, then exit
12552       --config     print configuration, then exit
12553   -q, --quiet, --silent
12554                    do not print progress messages
12555   -d, --debug      don't remove temporary files
12556       --recheck    update $as_me by reconfiguring in the same conditions
12557       --file=FILE[:TEMPLATE]
12558                    instantiate the configuration file FILE
12559
12560 Configuration files:
12561 $config_files
12562
12563 Configuration commands:
12564 $config_commands
12565
12566 Report bugs to <dcjones@cs.washington.edu >."
12567
12568 _ACEOF
12569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12570 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12571 ac_cs_version="\\
12572 fastq-tools config.status 0.6
12573 configured by $0, generated by GNU Autoconf 2.69,
12574   with options \\"\$ac_cs_config\\"
12575
12576 Copyright (C) 2012 Free Software Foundation, Inc.
12577 This config.status script is free software; the Free Software Foundation
12578 gives unlimited permission to copy, distribute and modify it."
12579
12580 ac_pwd='$ac_pwd'
12581 srcdir='$srcdir'
12582 INSTALL='$INSTALL'
12583 MKDIR_P='$MKDIR_P'
12584 AWK='$AWK'
12585 test -n "\$AWK" || AWK=awk
12586 _ACEOF
12587
12588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12589 # The default lists apply if the user does not specify any file.
12590 ac_need_defaults=:
12591 while test $# != 0
12592 do
12593   case $1 in
12594   --*=?*)
12595     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12596     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12597     ac_shift=:
12598     ;;
12599   --*=)
12600     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12601     ac_optarg=
12602     ac_shift=:
12603     ;;
12604   *)
12605     ac_option=$1
12606     ac_optarg=$2
12607     ac_shift=shift
12608     ;;
12609   esac
12610
12611   case $ac_option in
12612   # Handling of the options.
12613   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12614     ac_cs_recheck=: ;;
12615   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12616     $as_echo "$ac_cs_version"; exit ;;
12617   --config | --confi | --conf | --con | --co | --c )
12618     $as_echo "$ac_cs_config"; exit ;;
12619   --debug | --debu | --deb | --de | --d | -d )
12620     debug=: ;;
12621   --file | --fil | --fi | --f )
12622     $ac_shift
12623     case $ac_optarg in
12624     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12625     '') as_fn_error $? "missing file argument" ;;
12626     esac
12627     as_fn_append CONFIG_FILES " '$ac_optarg'"
12628     ac_need_defaults=false;;
12629   --he | --h |  --help | --hel | -h )
12630     $as_echo "$ac_cs_usage"; exit ;;
12631   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12632   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12633     ac_cs_silent=: ;;
12634
12635   # This is an error.
12636   -*) as_fn_error $? "unrecognized option: \`$1'
12637 Try \`$0 --help' for more information." ;;
12638
12639   *) as_fn_append ac_config_targets " $1"
12640      ac_need_defaults=false ;;
12641
12642   esac
12643   shift
12644 done
12645
12646 ac_configure_extra_args=
12647
12648 if $ac_cs_silent; then
12649   exec 6>/dev/null
12650   ac_configure_extra_args="$ac_configure_extra_args --silent"
12651 fi
12652
12653 _ACEOF
12654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12655 if \$ac_cs_recheck; then
12656   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12657   shift
12658   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12659   CONFIG_SHELL='$SHELL'
12660   export CONFIG_SHELL
12661   exec "\$@"
12662 fi
12663
12664 _ACEOF
12665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12666 exec 5>>config.log
12667 {
12668   echo
12669   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12670 ## Running $as_me. ##
12671 _ASBOX
12672   $as_echo "$ac_log"
12673 } >&5
12674
12675 _ACEOF
12676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12677 #
12678 # INIT-COMMANDS
12679 #
12680 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12681
12682
12683 # The HP-UX ksh and POSIX shell print the target directory to stdout
12684 # if CDPATH is set.
12685 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12686
12687 sed_quote_subst='$sed_quote_subst'
12688 double_quote_subst='$double_quote_subst'
12689 delay_variable_subst='$delay_variable_subst'
12690 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12691 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12692 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12693 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12694 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12695 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12696 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12697 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12698 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12699 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12700 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12701 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12702 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12703 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12704 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12705 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12706 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12707 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12708 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12709 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12710 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12711 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12712 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12713 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12714 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12715 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12716 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12717 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12718 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12719 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12720 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12721 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12722 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12723 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12724 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12725 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12726 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12727 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12728 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12729 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12730 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12731 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12732 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12733 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12734 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12735 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12736 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12737 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12738 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12739 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12740 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12741 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12742 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12743 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12744 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12745 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12746 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12747 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12748 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12749 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12750 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12751 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12752 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12753 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12754 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12755 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12756 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12757 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12758 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12759 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12760 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12761 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12762 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12763 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12764 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12765 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12766 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12767 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12768 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12769 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12770 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12771 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12772 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12773 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12774 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12775 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12776 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12777 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12778 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12779 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12780 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12781 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12782 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12783 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12784 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12785 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12786 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12787 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12788 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12789 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12790 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12791 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12792 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12793 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12794 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12795 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12796 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12797 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12798 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12799 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12800 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12801 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12802 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12803 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12804 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12805 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12806 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12807 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12808 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12809 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12810 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12811 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12812 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12813 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12814 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12815 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12816 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12817 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12818 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12819 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12820
12821 LTCC='$LTCC'
12822 LTCFLAGS='$LTCFLAGS'
12823 compiler='$compiler_DEFAULT'
12824
12825 # A function that is used when there is no print builtin or printf.
12826 func_fallback_echo ()
12827 {
12828   eval 'cat <<_LTECHO_EOF
12829 \$1
12830 _LTECHO_EOF'
12831 }
12832
12833 # Quote evaled strings.
12834 for var in SHELL \
12835 ECHO \
12836 PATH_SEPARATOR \
12837 SED \
12838 GREP \
12839 EGREP \
12840 FGREP \
12841 LD \
12842 NM \
12843 LN_S \
12844 lt_SP2NL \
12845 lt_NL2SP \
12846 reload_flag \
12847 OBJDUMP \
12848 deplibs_check_method \
12849 file_magic_cmd \
12850 file_magic_glob \
12851 want_nocaseglob \
12852 DLLTOOL \
12853 sharedlib_from_linklib_cmd \
12854 AR \
12855 AR_FLAGS \
12856 archiver_list_spec \
12857 STRIP \
12858 RANLIB \
12859 CC \
12860 CFLAGS \
12861 compiler \
12862 lt_cv_sys_global_symbol_pipe \
12863 lt_cv_sys_global_symbol_to_cdecl \
12864 lt_cv_sys_global_symbol_to_c_name_address \
12865 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12866 nm_file_list_spec \
12867 lt_prog_compiler_no_builtin_flag \
12868 lt_prog_compiler_pic \
12869 lt_prog_compiler_wl \
12870 lt_prog_compiler_static \
12871 lt_cv_prog_compiler_c_o \
12872 need_locks \
12873 MANIFEST_TOOL \
12874 DSYMUTIL \
12875 NMEDIT \
12876 LIPO \
12877 OTOOL \
12878 OTOOL64 \
12879 shrext_cmds \
12880 export_dynamic_flag_spec \
12881 whole_archive_flag_spec \
12882 compiler_needs_object \
12883 with_gnu_ld \
12884 allow_undefined_flag \
12885 no_undefined_flag \
12886 hardcode_libdir_flag_spec \
12887 hardcode_libdir_separator \
12888 exclude_expsyms \
12889 include_expsyms \
12890 file_list_spec \
12891 variables_saved_for_relink \
12892 libname_spec \
12893 library_names_spec \
12894 soname_spec \
12895 install_override_mode \
12896 finish_eval \
12897 old_striplib \
12898 striplib; do
12899     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12900     *[\\\\\\\`\\"\\\$]*)
12901       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12902       ;;
12903     *)
12904       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12905       ;;
12906     esac
12907 done
12908
12909 # Double-quote double-evaled strings.
12910 for var in reload_cmds \
12911 old_postinstall_cmds \
12912 old_postuninstall_cmds \
12913 old_archive_cmds \
12914 extract_expsyms_cmds \
12915 old_archive_from_new_cmds \
12916 old_archive_from_expsyms_cmds \
12917 archive_cmds \
12918 archive_expsym_cmds \
12919 module_cmds \
12920 module_expsym_cmds \
12921 export_symbols_cmds \
12922 prelink_cmds \
12923 postlink_cmds \
12924 postinstall_cmds \
12925 postuninstall_cmds \
12926 finish_cmds \
12927 sys_lib_search_path_spec \
12928 sys_lib_dlsearch_path_spec; do
12929     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12930     *[\\\\\\\`\\"\\\$]*)
12931       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12932       ;;
12933     *)
12934       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12935       ;;
12936     esac
12937 done
12938
12939 ac_aux_dir='$ac_aux_dir'
12940 xsi_shell='$xsi_shell'
12941 lt_shell_append='$lt_shell_append'
12942
12943 # See if we are running on zsh, and set the options which allow our
12944 # commands through without removal of \ escapes INIT.
12945 if test -n "\${ZSH_VERSION+set}" ; then
12946    setopt NO_GLOB_SUBST
12947 fi
12948
12949
12950     PACKAGE='$PACKAGE'
12951     VERSION='$VERSION'
12952     TIMESTAMP='$TIMESTAMP'
12953     RM='$RM'
12954     ofile='$ofile'
12955
12956
12957
12958
12959 _ACEOF
12960
12961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12962
12963 # Handling of arguments.
12964 for ac_config_target in $ac_config_targets
12965 do
12966   case $ac_config_target in
12967     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12968     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12969     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12970     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12971     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12972     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12973     "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
12974
12975   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12976   esac
12977 done
12978
12979
12980 # If the user did not use the arguments to specify the items to instantiate,
12981 # then the envvar interface is used.  Set only those that are not.
12982 # We use the long form for the default assignment because of an extremely
12983 # bizarre bug on SunOS 4.1.3.
12984 if $ac_need_defaults; then
12985   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12986   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12987 fi
12988
12989 # Have a temporary directory for convenience.  Make it in the build tree
12990 # simply because there is no reason against having it here, and in addition,
12991 # creating and moving files from /tmp can sometimes cause problems.
12992 # Hook for its removal unless debugging.
12993 # Note that there is a small window in which the directory will not be cleaned:
12994 # after its creation but before its name has been assigned to `$tmp'.
12995 $debug ||
12996 {
12997   tmp= ac_tmp=
12998   trap 'exit_status=$?
12999   : "${ac_tmp:=$tmp}"
13000   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13001 ' 0
13002   trap 'as_fn_exit 1' 1 2 13 15
13003 }
13004 # Create a (secure) tmp directory for tmp files.
13005
13006 {
13007   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13008   test -d "$tmp"
13009 }  ||
13010 {
13011   tmp=./conf$$-$RANDOM
13012   (umask 077 && mkdir "$tmp")
13013 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13014 ac_tmp=$tmp
13015
13016 # Set up the scripts for CONFIG_FILES section.
13017 # No need to generate them if there are no CONFIG_FILES.
13018 # This happens for instance with `./config.status config.h'.
13019 if test -n "$CONFIG_FILES"; then
13020
13021
13022 ac_cr=`echo X | tr X '\015'`
13023 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13024 # But we know of no other shell where ac_cr would be empty at this
13025 # point, so we can use a bashism as a fallback.
13026 if test "x$ac_cr" = x; then
13027   eval ac_cr=\$\'\\r\'
13028 fi
13029 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13030 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13031   ac_cs_awk_cr='\\r'
13032 else
13033   ac_cs_awk_cr=$ac_cr
13034 fi
13035
13036 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13037 _ACEOF
13038
13039
13040 {
13041   echo "cat >conf$$subs.awk <<_ACEOF" &&
13042   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13043   echo "_ACEOF"
13044 } >conf$$subs.sh ||
13045   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13046 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13047 ac_delim='%!_!# '
13048 for ac_last_try in false false false false false :; do
13049   . ./conf$$subs.sh ||
13050     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13051
13052   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13053   if test $ac_delim_n = $ac_delim_num; then
13054     break
13055   elif $ac_last_try; then
13056     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13057   else
13058     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13059   fi
13060 done
13061 rm -f conf$$subs.sh
13062
13063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13064 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13065 _ACEOF
13066 sed -n '
13067 h
13068 s/^/S["/; s/!.*/"]=/
13069 p
13070 g
13071 s/^[^!]*!//
13072 :repl
13073 t repl
13074 s/'"$ac_delim"'$//
13075 t delim
13076 :nl
13077 h
13078 s/\(.\{148\}\)..*/\1/
13079 t more1
13080 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13081 p
13082 n
13083 b repl
13084 :more1
13085 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13086 p
13087 g
13088 s/.\{148\}//
13089 t nl
13090 :delim
13091 h
13092 s/\(.\{148\}\)..*/\1/
13093 t more2
13094 s/["\\]/\\&/g; s/^/"/; s/$/"/
13095 p
13096 b
13097 :more2
13098 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13099 p
13100 g
13101 s/.\{148\}//
13102 t delim
13103 ' <conf$$subs.awk | sed '
13104 /^[^""]/{
13105   N
13106   s/\n//
13107 }
13108 ' >>$CONFIG_STATUS || ac_write_fail=1
13109 rm -f conf$$subs.awk
13110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13111 _ACAWK
13112 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13113   for (key in S) S_is_set[key] = 1
13114   FS = "\a"
13115
13116 }
13117 {
13118   line = $ 0
13119   nfields = split(line, field, "@")
13120   substed = 0
13121   len = length(field[1])
13122   for (i = 2; i < nfields; i++) {
13123     key = field[i]
13124     keylen = length(key)
13125     if (S_is_set[key]) {
13126       value = S[key]
13127       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13128       len += length(value) + length(field[++i])
13129       substed = 1
13130     } else
13131       len += 1 + keylen
13132   }
13133
13134   print line
13135 }
13136
13137 _ACAWK
13138 _ACEOF
13139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13140 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13141   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13142 else
13143   cat
13144 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13145   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13146 _ACEOF
13147
13148 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13149 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13150 # trailing colons and then remove the whole line if VPATH becomes empty
13151 # (actually we leave an empty line to preserve line numbers).
13152 if test "x$srcdir" = x.; then
13153   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13154 h
13155 s///
13156 s/^/:/
13157 s/[      ]*$/:/
13158 s/:\$(srcdir):/:/g
13159 s/:\${srcdir}:/:/g
13160 s/:@srcdir@:/:/g
13161 s/^:*//
13162 s/:*$//
13163 x
13164 s/\(=[   ]*\).*/\1/
13165 G
13166 s/\n//
13167 s/^[^=]*=[       ]*$//
13168 }'
13169 fi
13170
13171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13172 fi # test -n "$CONFIG_FILES"
13173
13174
13175 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13176 shift
13177 for ac_tag
13178 do
13179   case $ac_tag in
13180   :[FHLC]) ac_mode=$ac_tag; continue;;
13181   esac
13182   case $ac_mode$ac_tag in
13183   :[FHL]*:*);;
13184   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13185   :[FH]-) ac_tag=-:-;;
13186   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13187   esac
13188   ac_save_IFS=$IFS
13189   IFS=:
13190   set x $ac_tag
13191   IFS=$ac_save_IFS
13192   shift
13193   ac_file=$1
13194   shift
13195
13196   case $ac_mode in
13197   :L) ac_source=$1;;
13198   :[FH])
13199     ac_file_inputs=
13200     for ac_f
13201     do
13202       case $ac_f in
13203       -) ac_f="$ac_tmp/stdin";;
13204       *) # Look for the file first in the build tree, then in the source tree
13205          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13206          # because $ac_f cannot contain `:'.
13207          test -f "$ac_f" ||
13208            case $ac_f in
13209            [\\/$]*) false;;
13210            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13211            esac ||
13212            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13213       esac
13214       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13215       as_fn_append ac_file_inputs " '$ac_f'"
13216     done
13217
13218     # Let's still pretend it is `configure' which instantiates (i.e., don't
13219     # use $as_me), people would be surprised to read:
13220     #    /* config.h.  Generated by config.status.  */
13221     configure_input='Generated from '`
13222           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13223         `' by configure.'
13224     if test x"$ac_file" != x-; then
13225       configure_input="$ac_file.  $configure_input"
13226       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13227 $as_echo "$as_me: creating $ac_file" >&6;}
13228     fi
13229     # Neutralize special characters interpreted by sed in replacement strings.
13230     case $configure_input in #(
13231     *\&* | *\|* | *\\* )
13232        ac_sed_conf_input=`$as_echo "$configure_input" |
13233        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13234     *) ac_sed_conf_input=$configure_input;;
13235     esac
13236
13237     case $ac_tag in
13238     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13239       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13240     esac
13241     ;;
13242   esac
13243
13244   ac_dir=`$as_dirname -- "$ac_file" ||
13245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13246          X"$ac_file" : 'X\(//\)[^/]' \| \
13247          X"$ac_file" : 'X\(//\)$' \| \
13248          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13249 $as_echo X"$ac_file" |
13250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13251             s//\1/
13252             q
13253           }
13254           /^X\(\/\/\)[^/].*/{
13255             s//\1/
13256             q
13257           }
13258           /^X\(\/\/\)$/{
13259             s//\1/
13260             q
13261           }
13262           /^X\(\/\).*/{
13263             s//\1/
13264             q
13265           }
13266           s/.*/./; q'`
13267   as_dir="$ac_dir"; as_fn_mkdir_p
13268   ac_builddir=.
13269
13270 case "$ac_dir" in
13271 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13272 *)
13273   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13274   # A ".." for each directory in $ac_dir_suffix.
13275   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13276   case $ac_top_builddir_sub in
13277   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13278   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13279   esac ;;
13280 esac
13281 ac_abs_top_builddir=$ac_pwd
13282 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13283 # for backward compatibility:
13284 ac_top_builddir=$ac_top_build_prefix
13285
13286 case $srcdir in
13287   .)  # We are building in place.
13288     ac_srcdir=.
13289     ac_top_srcdir=$ac_top_builddir_sub
13290     ac_abs_top_srcdir=$ac_pwd ;;
13291   [\\/]* | ?:[\\/]* )  # Absolute name.
13292     ac_srcdir=$srcdir$ac_dir_suffix;
13293     ac_top_srcdir=$srcdir
13294     ac_abs_top_srcdir=$srcdir ;;
13295   *) # Relative name.
13296     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13297     ac_top_srcdir=$ac_top_build_prefix$srcdir
13298     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13299 esac
13300 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13301
13302
13303   case $ac_mode in
13304   :F)
13305   #
13306   # CONFIG_FILE
13307   #
13308
13309   case $INSTALL in
13310   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13311   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13312   esac
13313   ac_MKDIR_P=$MKDIR_P
13314   case $MKDIR_P in
13315   [\\/$]* | ?:[\\/]* ) ;;
13316   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13317   esac
13318 _ACEOF
13319
13320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13321 # If the template does not know about datarootdir, expand it.
13322 # FIXME: This hack should be removed a few years after 2.60.
13323 ac_datarootdir_hack=; ac_datarootdir_seen=
13324 ac_sed_dataroot='
13325 /datarootdir/ {
13326   p
13327   q
13328 }
13329 /@datadir@/p
13330 /@docdir@/p
13331 /@infodir@/p
13332 /@localedir@/p
13333 /@mandir@/p'
13334 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13335 *datarootdir*) ac_datarootdir_seen=yes;;
13336 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13337   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13338 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13339 _ACEOF
13340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13341   ac_datarootdir_hack='
13342   s&@datadir@&$datadir&g
13343   s&@docdir@&$docdir&g
13344   s&@infodir@&$infodir&g
13345   s&@localedir@&$localedir&g
13346   s&@mandir@&$mandir&g
13347   s&\\\${datarootdir}&$datarootdir&g' ;;
13348 esac
13349 _ACEOF
13350
13351 # Neutralize VPATH when `$srcdir' = `.'.
13352 # Shell code in configure.ac might set extrasub.
13353 # FIXME: do we really want to maintain this feature?
13354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13355 ac_sed_extra="$ac_vpsub
13356 $extrasub
13357 _ACEOF
13358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13359 :t
13360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13361 s|@configure_input@|$ac_sed_conf_input|;t t
13362 s&@top_builddir@&$ac_top_builddir_sub&;t t
13363 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13364 s&@srcdir@&$ac_srcdir&;t t
13365 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13366 s&@top_srcdir@&$ac_top_srcdir&;t t
13367 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13368 s&@builddir@&$ac_builddir&;t t
13369 s&@abs_builddir@&$ac_abs_builddir&;t t
13370 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13371 s&@INSTALL@&$ac_INSTALL&;t t
13372 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13373 $ac_datarootdir_hack
13374 "
13375 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13376   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13377
13378 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13379   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13380   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13381       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13382   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13383 which seems to be undefined.  Please make sure it is defined" >&5
13384 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13385 which seems to be undefined.  Please make sure it is defined" >&2;}
13386
13387   rm -f "$ac_tmp/stdin"
13388   case $ac_file in
13389   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13390   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13391   esac \
13392   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13393  ;;
13394
13395
13396   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13397 $as_echo "$as_me: executing $ac_file commands" >&6;}
13398  ;;
13399   esac
13400
13401
13402   case $ac_file$ac_mode in
13403     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13404   # Older Autoconf quotes --file arguments for eval, but not when files
13405   # are listed without --file.  Let's play safe and only enable the eval
13406   # if we detect the quoting.
13407   case $CONFIG_FILES in
13408   *\'*) eval set x "$CONFIG_FILES" ;;
13409   *)   set x $CONFIG_FILES ;;
13410   esac
13411   shift
13412   for mf
13413   do
13414     # Strip MF so we end up with the name of the file.
13415     mf=`echo "$mf" | sed -e 's/:.*$//'`
13416     # Check whether this is an Automake generated Makefile or not.
13417     # We used to match only the files named 'Makefile.in', but
13418     # some people rename them; so instead we look at the file content.
13419     # Grep'ing the first line is not enough: some people post-process
13420     # each Makefile.in and add a new line on top of each file to say so.
13421     # Grep'ing the whole file is not good either: AIX grep has a line
13422     # limit of 2048, but all sed's we know have understand at least 4000.
13423     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13424       dirpart=`$as_dirname -- "$mf" ||
13425 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13426          X"$mf" : 'X\(//\)[^/]' \| \
13427          X"$mf" : 'X\(//\)$' \| \
13428          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13429 $as_echo X"$mf" |
13430     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13431             s//\1/
13432             q
13433           }
13434           /^X\(\/\/\)[^/].*/{
13435             s//\1/
13436             q
13437           }
13438           /^X\(\/\/\)$/{
13439             s//\1/
13440             q
13441           }
13442           /^X\(\/\).*/{
13443             s//\1/
13444             q
13445           }
13446           s/.*/./; q'`
13447     else
13448       continue
13449     fi
13450     # Extract the definition of DEPDIR, am__include, and am__quote
13451     # from the Makefile without running 'make'.
13452     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13453     test -z "$DEPDIR" && continue
13454     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13455     test -z "am__include" && continue
13456     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13457     # Find all dependency output files, they are included files with
13458     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13459     # simplest approach to changing $(DEPDIR) to its actual value in the
13460     # expansion.
13461     for file in `sed -n "
13462       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13463          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13464       # Make sure the directory exists.
13465       test -f "$dirpart/$file" && continue
13466       fdir=`$as_dirname -- "$file" ||
13467 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13468          X"$file" : 'X\(//\)[^/]' \| \
13469          X"$file" : 'X\(//\)$' \| \
13470          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13471 $as_echo X"$file" |
13472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13473             s//\1/
13474             q
13475           }
13476           /^X\(\/\/\)[^/].*/{
13477             s//\1/
13478             q
13479           }
13480           /^X\(\/\/\)$/{
13481             s//\1/
13482             q
13483           }
13484           /^X\(\/\).*/{
13485             s//\1/
13486             q
13487           }
13488           s/.*/./; q'`
13489       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13490       # echo "creating $dirpart/$file"
13491       echo '# dummy' > "$dirpart/$file"
13492     done
13493   done
13494 }
13495  ;;
13496     "libtool":C)
13497
13498     # See if we are running on zsh, and set the options which allow our
13499     # commands through without removal of \ escapes.
13500     if test -n "${ZSH_VERSION+set}" ; then
13501       setopt NO_GLOB_SUBST
13502     fi
13503
13504     cfgfile="${ofile}T"
13505     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13506     $RM "$cfgfile"
13507
13508     cat <<_LT_EOF >> "$cfgfile"
13509 #! $SHELL
13510
13511 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13512 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13513 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13514 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13515 #
13516 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13517 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13518 #                 Foundation, Inc.
13519 #   Written by Gordon Matzigkeit, 1996
13520 #
13521 #   This file is part of GNU Libtool.
13522 #
13523 # GNU Libtool is free software; you can redistribute it and/or
13524 # modify it under the terms of the GNU General Public License as
13525 # published by the Free Software Foundation; either version 2 of
13526 # the License, or (at your option) any later version.
13527 #
13528 # As a special exception to the GNU General Public License,
13529 # if you distribute this file as part of a program or library that
13530 # is built using GNU Libtool, you may include this file under the
13531 # same distribution terms that you use for the rest of that program.
13532 #
13533 # GNU Libtool is distributed in the hope that it will be useful,
13534 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13535 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13536 # GNU General Public License for more details.
13537 #
13538 # You should have received a copy of the GNU General Public License
13539 # along with GNU Libtool; see the file COPYING.  If not, a copy
13540 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13541 # obtained by writing to the Free Software Foundation, Inc.,
13542 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13543
13544
13545 # The names of the tagged configurations supported by this script.
13546 available_tags=""
13547
13548 # ### BEGIN LIBTOOL CONFIG
13549
13550 # Which release of libtool.m4 was used?
13551 macro_version=$macro_version
13552 macro_revision=$macro_revision
13553
13554 # Whether or not to build shared libraries.
13555 build_libtool_libs=$enable_shared
13556
13557 # Whether or not to build static libraries.
13558 build_old_libs=$enable_static
13559
13560 # What type of objects to build.
13561 pic_mode=$pic_mode
13562
13563 # Whether or not to optimize for fast installation.
13564 fast_install=$enable_fast_install
13565
13566 # Shell to use when invoking shell scripts.
13567 SHELL=$lt_SHELL
13568
13569 # An echo program that protects backslashes.
13570 ECHO=$lt_ECHO
13571
13572 # The PATH separator for the build system.
13573 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13574
13575 # The host system.
13576 host_alias=$host_alias
13577 host=$host
13578 host_os=$host_os
13579
13580 # The build system.
13581 build_alias=$build_alias
13582 build=$build
13583 build_os=$build_os
13584
13585 # A sed program that does not truncate output.
13586 SED=$lt_SED
13587
13588 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13589 Xsed="\$SED -e 1s/^X//"
13590
13591 # A grep program that handles long lines.
13592 GREP=$lt_GREP
13593
13594 # An ERE matcher.
13595 EGREP=$lt_EGREP
13596
13597 # A literal string matcher.
13598 FGREP=$lt_FGREP
13599
13600 # A BSD- or MS-compatible name lister.
13601 NM=$lt_NM
13602
13603 # Whether we need soft or hard links.
13604 LN_S=$lt_LN_S
13605
13606 # What is the maximum length of a command?
13607 max_cmd_len=$max_cmd_len
13608
13609 # Object file suffix (normally "o").
13610 objext=$ac_objext
13611
13612 # Executable file suffix (normally "").
13613 exeext=$exeext
13614
13615 # whether the shell understands "unset".
13616 lt_unset=$lt_unset
13617
13618 # turn spaces into newlines.
13619 SP2NL=$lt_lt_SP2NL
13620
13621 # turn newlines into spaces.
13622 NL2SP=$lt_lt_NL2SP
13623
13624 # convert \$build file names to \$host format.
13625 to_host_file_cmd=$lt_cv_to_host_file_cmd
13626
13627 # convert \$build files to toolchain format.
13628 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13629
13630 # An object symbol dumper.
13631 OBJDUMP=$lt_OBJDUMP
13632
13633 # Method to check whether dependent libraries are shared objects.
13634 deplibs_check_method=$lt_deplibs_check_method
13635
13636 # Command to use when deplibs_check_method = "file_magic".
13637 file_magic_cmd=$lt_file_magic_cmd
13638
13639 # How to find potential files when deplibs_check_method = "file_magic".
13640 file_magic_glob=$lt_file_magic_glob
13641
13642 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13643 want_nocaseglob=$lt_want_nocaseglob
13644
13645 # DLL creation program.
13646 DLLTOOL=$lt_DLLTOOL
13647
13648 # Command to associate shared and link libraries.
13649 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13650
13651 # The archiver.
13652 AR=$lt_AR
13653
13654 # Flags to create an archive.
13655 AR_FLAGS=$lt_AR_FLAGS
13656
13657 # How to feed a file listing to the archiver.
13658 archiver_list_spec=$lt_archiver_list_spec
13659
13660 # A symbol stripping program.
13661 STRIP=$lt_STRIP
13662
13663 # Commands used to install an old-style archive.
13664 RANLIB=$lt_RANLIB
13665 old_postinstall_cmds=$lt_old_postinstall_cmds
13666 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13667
13668 # Whether to use a lock for old archive extraction.
13669 lock_old_archive_extraction=$lock_old_archive_extraction
13670
13671 # A C compiler.
13672 LTCC=$lt_CC
13673
13674 # LTCC compiler flags.
13675 LTCFLAGS=$lt_CFLAGS
13676
13677 # Take the output of nm and produce a listing of raw symbols and C names.
13678 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13679
13680 # Transform the output of nm in a proper C declaration.
13681 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13682
13683 # Transform the output of nm in a C name address pair.
13684 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13685
13686 # Transform the output of nm in a C name address pair when lib prefix is needed.
13687 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13688
13689 # Specify filename containing input files for \$NM.
13690 nm_file_list_spec=$lt_nm_file_list_spec
13691
13692 # The root where to search for dependent libraries,and in which our libraries should be installed.
13693 lt_sysroot=$lt_sysroot
13694
13695 # The name of the directory that contains temporary libtool files.
13696 objdir=$objdir
13697
13698 # Used to examine libraries when file_magic_cmd begins with "file".
13699 MAGIC_CMD=$MAGIC_CMD
13700
13701 # Must we lock files when doing compilation?
13702 need_locks=$lt_need_locks
13703
13704 # Manifest tool.
13705 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13706
13707 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13708 DSYMUTIL=$lt_DSYMUTIL
13709
13710 # Tool to change global to local symbols on Mac OS X.
13711 NMEDIT=$lt_NMEDIT
13712
13713 # Tool to manipulate fat objects and archives on Mac OS X.
13714 LIPO=$lt_LIPO
13715
13716 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13717 OTOOL=$lt_OTOOL
13718
13719 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13720 OTOOL64=$lt_OTOOL64
13721
13722 # Old archive suffix (normally "a").
13723 libext=$libext
13724
13725 # Shared library suffix (normally ".so").
13726 shrext_cmds=$lt_shrext_cmds
13727
13728 # The commands to extract the exported symbol list from a shared archive.
13729 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13730
13731 # Variables whose values should be saved in libtool wrapper scripts and
13732 # restored at link time.
13733 variables_saved_for_relink=$lt_variables_saved_for_relink
13734
13735 # Do we need the "lib" prefix for modules?
13736 need_lib_prefix=$need_lib_prefix
13737
13738 # Do we need a version for libraries?
13739 need_version=$need_version
13740
13741 # Library versioning type.
13742 version_type=$version_type
13743
13744 # Shared library runtime path variable.
13745 runpath_var=$runpath_var
13746
13747 # Shared library path variable.
13748 shlibpath_var=$shlibpath_var
13749
13750 # Is shlibpath searched before the hard-coded library search path?
13751 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13752
13753 # Format of library name prefix.
13754 libname_spec=$lt_libname_spec
13755
13756 # List of archive names.  First name is the real one, the rest are links.
13757 # The last name is the one that the linker finds with -lNAME
13758 library_names_spec=$lt_library_names_spec
13759
13760 # The coded name of the library, if different from the real name.
13761 soname_spec=$lt_soname_spec
13762
13763 # Permission mode override for installation of shared libraries.
13764 install_override_mode=$lt_install_override_mode
13765
13766 # Command to use after installation of a shared archive.
13767 postinstall_cmds=$lt_postinstall_cmds
13768
13769 # Command to use after uninstallation of a shared archive.
13770 postuninstall_cmds=$lt_postuninstall_cmds
13771
13772 # Commands used to finish a libtool library installation in a directory.
13773 finish_cmds=$lt_finish_cmds
13774
13775 # As "finish_cmds", except a single script fragment to be evaled but
13776 # not shown.
13777 finish_eval=$lt_finish_eval
13778
13779 # Whether we should hardcode library paths into libraries.
13780 hardcode_into_libs=$hardcode_into_libs
13781
13782 # Compile-time system search path for libraries.
13783 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13784
13785 # Run-time system search path for libraries.
13786 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13787
13788 # Whether dlopen is supported.
13789 dlopen_support=$enable_dlopen
13790
13791 # Whether dlopen of programs is supported.
13792 dlopen_self=$enable_dlopen_self
13793
13794 # Whether dlopen of statically linked programs is supported.
13795 dlopen_self_static=$enable_dlopen_self_static
13796
13797 # Commands to strip libraries.
13798 old_striplib=$lt_old_striplib
13799 striplib=$lt_striplib
13800
13801
13802 # The linker used to build libraries.
13803 LD=$lt_LD
13804
13805 # How to create reloadable object files.
13806 reload_flag=$lt_reload_flag
13807 reload_cmds=$lt_reload_cmds
13808
13809 # Commands used to build an old-style archive.
13810 old_archive_cmds=$lt_old_archive_cmds
13811
13812 # A language specific compiler.
13813 CC=$lt_compiler
13814
13815 # Is the compiler the GNU compiler?
13816 with_gcc=$GCC
13817
13818 # Compiler flag to turn off builtin functions.
13819 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13820
13821 # Additional compiler flags for building library objects.
13822 pic_flag=$lt_lt_prog_compiler_pic
13823
13824 # How to pass a linker flag through the compiler.
13825 wl=$lt_lt_prog_compiler_wl
13826
13827 # Compiler flag to prevent dynamic linking.
13828 link_static_flag=$lt_lt_prog_compiler_static
13829
13830 # Does compiler simultaneously support -c and -o options?
13831 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13832
13833 # Whether or not to add -lc for building shared libraries.
13834 build_libtool_need_lc=$archive_cmds_need_lc
13835
13836 # Whether or not to disallow shared libs when runtime libs are static.
13837 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13838
13839 # Compiler flag to allow reflexive dlopens.
13840 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13841
13842 # Compiler flag to generate shared objects directly from archives.
13843 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13844
13845 # Whether the compiler copes with passing no objects directly.
13846 compiler_needs_object=$lt_compiler_needs_object
13847
13848 # Create an old-style archive from a shared archive.
13849 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13850
13851 # Create a temporary old-style archive to link instead of a shared archive.
13852 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13853
13854 # Commands used to build a shared archive.
13855 archive_cmds=$lt_archive_cmds
13856 archive_expsym_cmds=$lt_archive_expsym_cmds
13857
13858 # Commands used to build a loadable module if different from building
13859 # a shared archive.
13860 module_cmds=$lt_module_cmds
13861 module_expsym_cmds=$lt_module_expsym_cmds
13862
13863 # Whether we are building with GNU ld or not.
13864 with_gnu_ld=$lt_with_gnu_ld
13865
13866 # Flag that allows shared libraries with undefined symbols to be built.
13867 allow_undefined_flag=$lt_allow_undefined_flag
13868
13869 # Flag that enforces no undefined symbols.
13870 no_undefined_flag=$lt_no_undefined_flag
13871
13872 # Flag to hardcode \$libdir into a binary during linking.
13873 # This must work even if \$libdir does not exist
13874 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13875
13876 # Whether we need a single "-rpath" flag with a separated argument.
13877 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13878
13879 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13880 # DIR into the resulting binary.
13881 hardcode_direct=$hardcode_direct
13882
13883 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13884 # DIR into the resulting binary and the resulting library dependency is
13885 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13886 # library is relocated.
13887 hardcode_direct_absolute=$hardcode_direct_absolute
13888
13889 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13890 # into the resulting binary.
13891 hardcode_minus_L=$hardcode_minus_L
13892
13893 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13894 # into the resulting binary.
13895 hardcode_shlibpath_var=$hardcode_shlibpath_var
13896
13897 # Set to "yes" if building a shared library automatically hardcodes DIR
13898 # into the library and all subsequent libraries and executables linked
13899 # against it.
13900 hardcode_automatic=$hardcode_automatic
13901
13902 # Set to yes if linker adds runtime paths of dependent libraries
13903 # to runtime path list.
13904 inherit_rpath=$inherit_rpath
13905
13906 # Whether libtool must link a program against all its dependency libraries.
13907 link_all_deplibs=$link_all_deplibs
13908
13909 # Set to "yes" if exported symbols are required.
13910 always_export_symbols=$always_export_symbols
13911
13912 # The commands to list exported symbols.
13913 export_symbols_cmds=$lt_export_symbols_cmds
13914
13915 # Symbols that should not be listed in the preloaded symbols.
13916 exclude_expsyms=$lt_exclude_expsyms
13917
13918 # Symbols that must always be exported.
13919 include_expsyms=$lt_include_expsyms
13920
13921 # Commands necessary for linking programs (against libraries) with templates.
13922 prelink_cmds=$lt_prelink_cmds
13923
13924 # Commands necessary for finishing linking programs.
13925 postlink_cmds=$lt_postlink_cmds
13926
13927 # Specify filename containing input files.
13928 file_list_spec=$lt_file_list_spec
13929
13930 # How to hardcode a shared library path into an executable.
13931 hardcode_action=$hardcode_action
13932
13933 # ### END LIBTOOL CONFIG
13934
13935 _LT_EOF
13936
13937   case $host_os in
13938   aix3*)
13939     cat <<\_LT_EOF >> "$cfgfile"
13940 # AIX sometimes has problems with the GCC collect2 program.  For some
13941 # reason, if we set the COLLECT_NAMES environment variable, the problems
13942 # vanish in a puff of smoke.
13943 if test "X${COLLECT_NAMES+set}" != Xset; then
13944   COLLECT_NAMES=
13945   export COLLECT_NAMES
13946 fi
13947 _LT_EOF
13948     ;;
13949   esac
13950
13951
13952 ltmain="$ac_aux_dir/ltmain.sh"
13953
13954
13955   # We use sed instead of cat because bash on DJGPP gets confused if
13956   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13957   # text mode, it properly converts lines to CR/LF.  This bash problem
13958   # is reportedly fixed, but why not run on old versions too?
13959   sed '$q' "$ltmain" >> "$cfgfile" \
13960      || (rm -f "$cfgfile"; exit 1)
13961
13962   if test x"$xsi_shell" = xyes; then
13963   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13964 func_dirname ()\
13965 {\
13966 \    case ${1} in\
13967 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13968 \      *  ) func_dirname_result="${3}" ;;\
13969 \    esac\
13970 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13971   && mv -f "$cfgfile.tmp" "$cfgfile" \
13972     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13973 test 0 -eq $? || _lt_function_replace_fail=:
13974
13975
13976   sed -e '/^func_basename ()$/,/^} # func_basename /c\
13977 func_basename ()\
13978 {\
13979 \    func_basename_result="${1##*/}"\
13980 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13981   && mv -f "$cfgfile.tmp" "$cfgfile" \
13982     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13983 test 0 -eq $? || _lt_function_replace_fail=:
13984
13985
13986   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13987 func_dirname_and_basename ()\
13988 {\
13989 \    case ${1} in\
13990 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13991 \      *  ) func_dirname_result="${3}" ;;\
13992 \    esac\
13993 \    func_basename_result="${1##*/}"\
13994 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13995   && mv -f "$cfgfile.tmp" "$cfgfile" \
13996     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13997 test 0 -eq $? || _lt_function_replace_fail=:
13998
13999
14000   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14001 func_stripname ()\
14002 {\
14003 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14004 \    # positional parameters, so assign one to ordinary parameter first.\
14005 \    func_stripname_result=${3}\
14006 \    func_stripname_result=${func_stripname_result#"${1}"}\
14007 \    func_stripname_result=${func_stripname_result%"${2}"}\
14008 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14009   && mv -f "$cfgfile.tmp" "$cfgfile" \
14010     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14011 test 0 -eq $? || _lt_function_replace_fail=:
14012
14013
14014   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14015 func_split_long_opt ()\
14016 {\
14017 \    func_split_long_opt_name=${1%%=*}\
14018 \    func_split_long_opt_arg=${1#*=}\
14019 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14020   && mv -f "$cfgfile.tmp" "$cfgfile" \
14021     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14022 test 0 -eq $? || _lt_function_replace_fail=:
14023
14024
14025   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14026 func_split_short_opt ()\
14027 {\
14028 \    func_split_short_opt_arg=${1#??}\
14029 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14030 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14031   && mv -f "$cfgfile.tmp" "$cfgfile" \
14032     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14033 test 0 -eq $? || _lt_function_replace_fail=:
14034
14035
14036   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14037 func_lo2o ()\
14038 {\
14039 \    case ${1} in\
14040 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14041 \      *)    func_lo2o_result=${1} ;;\
14042 \    esac\
14043 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14044   && mv -f "$cfgfile.tmp" "$cfgfile" \
14045     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14046 test 0 -eq $? || _lt_function_replace_fail=:
14047
14048
14049   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14050 func_xform ()\
14051 {\
14052     func_xform_result=${1%.*}.lo\
14053 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14054   && mv -f "$cfgfile.tmp" "$cfgfile" \
14055     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14056 test 0 -eq $? || _lt_function_replace_fail=:
14057
14058
14059   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14060 func_arith ()\
14061 {\
14062     func_arith_result=$(( $* ))\
14063 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14064   && mv -f "$cfgfile.tmp" "$cfgfile" \
14065     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14066 test 0 -eq $? || _lt_function_replace_fail=:
14067
14068
14069   sed -e '/^func_len ()$/,/^} # func_len /c\
14070 func_len ()\
14071 {\
14072     func_len_result=${#1}\
14073 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14074   && mv -f "$cfgfile.tmp" "$cfgfile" \
14075     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14076 test 0 -eq $? || _lt_function_replace_fail=:
14077
14078 fi
14079
14080 if test x"$lt_shell_append" = xyes; then
14081   sed -e '/^func_append ()$/,/^} # func_append /c\
14082 func_append ()\
14083 {\
14084     eval "${1}+=\\${2}"\
14085 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14086   && mv -f "$cfgfile.tmp" "$cfgfile" \
14087     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14088 test 0 -eq $? || _lt_function_replace_fail=:
14089
14090
14091   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14092 func_append_quoted ()\
14093 {\
14094 \    func_quote_for_eval "${2}"\
14095 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14096 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14097   && mv -f "$cfgfile.tmp" "$cfgfile" \
14098     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14099 test 0 -eq $? || _lt_function_replace_fail=:
14100
14101
14102   # Save a `func_append' function call where possible by direct use of '+='
14103   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14104     && mv -f "$cfgfile.tmp" "$cfgfile" \
14105       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14106   test 0 -eq $? || _lt_function_replace_fail=:
14107 else
14108   # Save a `func_append' function call even when '+=' is not available
14109   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14110     && mv -f "$cfgfile.tmp" "$cfgfile" \
14111       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14112   test 0 -eq $? || _lt_function_replace_fail=:
14113 fi
14114
14115 if test x"$_lt_function_replace_fail" = x":"; then
14116   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14117 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14118 fi
14119
14120
14121    mv -f "$cfgfile" "$ofile" ||
14122     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14123   chmod +x "$ofile"
14124
14125  ;;
14126
14127   esac
14128 done # for ac_tag
14129
14130
14131 as_fn_exit 0
14132 _ACEOF
14133 ac_clean_files=$ac_clean_files_save
14134
14135 test $ac_write_fail = 0 ||
14136   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14137
14138
14139 # configure is writing to config.log, and then calls config.status.
14140 # config.status does its own redirection, appending to config.log.
14141 # Unfortunately, on DOS this fails, as config.log is still kept open
14142 # by configure, so config.status won't be able to write to it; its
14143 # output is simply discarded.  So we exec the FD to /dev/null,
14144 # effectively closing config.log, so it can be properly (re)opened and
14145 # appended to by config.status.  When coming back to configure, we
14146 # need to make the FD available again.
14147 if test "$no_create" != yes; then
14148   ac_cs_success=:
14149   ac_config_status_args=
14150   test "$silent" = yes &&
14151     ac_config_status_args="$ac_config_status_args --quiet"
14152   exec 5>/dev/null
14153   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14154   exec 5>>config.log
14155   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14156   # would make configure fail if this is the last instruction.
14157   $ac_cs_success || as_fn_exit 1
14158 fi
14159 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14160   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14161 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14162 fi
14163